[03:03:50]OFD Sender: No OFD packet to send [03:03:54]recv_with_timeout no data received [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]recv_with_timeout no data received [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:15]recv_with_timeout no data received [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:32]recv_with_timeout no data received [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:08]recv_with_timeout no data received [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]recv_with_timeout no data received [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:21]recv_with_timeout no data received [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:51]recv_with_timeout no data received [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:15]recv_with_timeout no data received [03:09:16]OFD Sender: No OFD packet to send [03:09:20]accept exits with 10 [03:09:20]New connection [03:09:20]New thread 3066473828 created [03:09:20]Thread 3066617188 joined [03:09:20]Waiting for new connection... [03:09:20] Sock 10.Parse request [03:09:20]Sock 10.Check first char [03:09:20]Sock 10.First char is OK [03:09:20]request: POST /json_proto HTTP/1.0 [03:09:20]Method: POST [03:09:20]URL: /json_proto [03:09:20]Method is POST - this is cgi request [03:09:20]url: /json_proto [03:09:20]query_string will be loaded in cgi processing [03:09:20]execute_cgi json_proto POST (null) [03:09:20]execute_cgi path=json_proto method=POST [03:09:20]POST find Content-Length [03:09:20]Host: 172.17.43.195:8080 [03:09:20]Content-Length: 685 [03:09:20]Content-Type: application/json [03:09:20] [03:09:20]POST finish read [03:09:20]Found Content-Length = 685 [03:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.840, "sum" : 1005.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:20]execute_script... [03:09:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.840, "sum" : 1005.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:20]POST & json_proto [03:09:20]process_json_proto [03:09:20]json parsed OK: [03:09:20]protocol is kg_v1.0 [03:09:20]action value=close_receipt [03:09:20]process_action close_receipt [03:09:20]cmd_close_receipt [03:09:20]MH_GetDate [03:09:20]Write to MH i2c: F0 00 00 77 03 69 [03:09:20]Write i2c OK [03:09:20]MH_I2C_Read... [03:09:20]Read from MH i2c: F0 [03:09:20]MH_I2C_Read... [03:09:20]Read from MH i2c: F0 09 00 [03:09:20]MH_I2C_Read... [03:09:20]Read from MH i2c: F0 09 00 77 03 00 E2 F4 22 67 74 2C AD 66 84 [03:09:20]GetLastDocTimeStamp 1730343502 [03:09:20]current date 1730344162 [03:09:20]FM_GetShiftState [03:09:20]SAM_PROTO_GetShiftState [03:09:20]wFMCommunicate request_size=4 [03:09:20]MH_SAM_APDU [03:09:20]CAPDU: 80 13 01 00 [03:09:20]Write to MH i2c: E2 08 00 78 03 80 13 01 00 00 00 00 00 F8 [03:09:20]Write i2c OK [03:09:20]MH_I2C_Read... [03:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:20]Read from MH i2c: E2 [03:09:20]MH_I2C_Read... [03:09:20]Read from MH i2c: E2 0E 00 [03:09:20]MH_I2C_Read... [03:09:20]Read from MH i2c: E2 0E 00 78 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A1 [03:09:20]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [03:09:20]wFMCommunicate OK [03:09:20]SAM_PROTO_GetShiftState done [03:09:20]FM_GetShiftState done [03:09:20]opened in 1730333258 [03:09:20]opened+sec_in_day 1730419658 [03:09:20]quantity*price = 100517 [03:09:20]sum+1 = 100519 [03:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.89 НДС 12% : 106.74 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 8 31.10.2024 03:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72933 ФПД: 170689986134296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T030922&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72933&fm=170689986134296&tin=02508201610067®Number=0000000000091644&sum=100500 [03:09:22]StoreToDocumentArchive [03:09:22]shift 557 fd 72933 [03:09:22]save to /storage/0557/doc_00072933 [03:09:22]save last doc name /storage/0557/doc_00072933 to /storage/kkm_last_doc_name [03:09:22]save OK [03:09:22]Clear old archive folders... [03:09:22]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:09:22]tlvbuf is 0160D670 [03:09:22]SAM_PROTO_ClearQueue [03:09:22]wFMCommunicate request_size=4 [03:09:22]MH_SAM_APDU [03:09:22]CAPDU: 80 09 00 00 [03:09:22]Write to MH i2c: E2 08 00 85 03 80 09 00 00 00 00 00 00 FA [03:09:22]Write i2c OK [03:09:22]MH_I2C_Read... [03:09:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:09:22]Read from MH i2c: E2 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 03 00 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [03:09:22]RAPDU: 90 00 [03:09:22]wFMCommunicate OK [03:09:22]SAM_PROTO_ClearQueue done [03:09:22]KKMCreateOFDPacket [03:09:22]OFDProtocolAddRootSTLVToBuf [03:09:22]FM_MakeSignedData [03:09:22]FM_MakeSignedData [03:09:22]SAM_PROTO_SignData [03:09:22]wFMCommunicate request_size=4 [03:09:22]MH_SAM_APDU [03:09:22]CAPDU: 80 0D 01 02 [03:09:22]Write to MH i2c: E2 08 00 86 03 80 0D 01 02 00 00 00 00 02 [03:09:22]Write i2c OK [03:09:22]MH_I2C_Read... [03:09:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:09:22]Read from MH i2c: E2 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 03 00 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [03:09:22]RAPDU: 90 00 [03:09:22]wFMCommunicate OK [03:09:22]wFMCommunicate request_size=255 [03:09:22]MH_SAM_APDU [03:09:22]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 F0 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A6 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E2 F4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1C 01 00 35 04 06 00 9B 3D [03:09:22]Write to MH i2c: E2 02 01 87 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 F0 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A6 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E2 F4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1C 01 00 35 04 06 00 9B 3D 00 00 76 [03:09:22]Write i2c OK [03:09:22]MH_I2C_Read... [03:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:22]Read from MH i2c: E2 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 03 00 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [03:09:22]RAPDU: 90 00 [03:09:22]wFMCommunicate OK [03:09:22]wFMCommunicate request_size=9 [03:09:22]MH_SAM_APDU [03:09:22]CAPDU: 80 0D 02 02 04 DB FD 81 18 [03:09:22]Write to MH i2c: E2 0C 00 88 03 80 0D 02 02 04 00 DB FD 81 18 00 00 7E [03:09:22]Write i2c OK [03:09:22]MH_I2C_Read... [03:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:22]Read from MH i2c: E2 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 03 00 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [03:09:22]RAPDU: 90 00 [03:09:22]wFMCommunicate OK [03:09:22]wFMCommunicate request_size=4 [03:09:22]MH_SAM_APDU [03:09:22]CAPDU: 80 0D 03 02 [03:09:22]Write to MH i2c: E2 08 00 89 03 80 0D 03 02 00 00 00 00 07 [03:09:22]Write i2c OK [03:09:22]MH_I2C_Read... [03:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:09:22]Read from MH i2c: E2 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 0B 00 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 0B 00 89 03 00 07 51 ED 70 7B 72 E9 12 90 00 A5 [03:09:22]RAPDU: 07 51 ED 70 7B 72 E9 12 90 00 [03:09:22]wFMCommunicate OK [03:09:22]SAM_PROTO_SignData done [03:09:22]FM_MakeSignedData done [03:09:22]CreateOFDProtocolMessage [03:09:22]wFMCommunicate request_size=4 [03:09:22]MH_SAM_APDU [03:09:22]CAPDU: 80 11 00 00 [03:09:22]Write to MH i2c: E2 08 00 8A 03 80 11 00 00 00 00 00 00 07 [03:09:22]Write i2c OK [03:09:22]MH_I2C_Read... [03:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:22]Read from MH i2c: E2 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 17 00 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 17 00 8A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [03:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:09:22]wFMCommunicate OK [03:09:22]CreateOFDProtocolMessage done [03:09:22]OFDSenderStorePacket 72933 [03:09:22]StoreOFDPacket docnum=72933 [03:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 23 CA 06 01 8A 59 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 F0 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A6 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E2 F4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1C 01 00 35 04 06 00 9B 3D DB FD 81 18 07 51 ED 70 7B 72 E9 12 [03:09:22]CheckFolder [03:09:22]dirname=/storage/ofd_packets [03:09:22]CheckFolder done [03:09:22]ProducePacketName [03:09:22]name=ofd_packets/00072933 [03:09:22]NVStorageSaveData ofd_packets/00072933 [03:09:22]File name is /storage/ofd_packets/00072933 [03:09:22]Write 300 bytes [03:09:22]NVStorageSaveData done [03:09:22]OFDSenderStorePacket done [03:09:22]KKMCreateOFDPacket done [03:09:22]NVStorageSaveData kkm_last_timestamp [03:09:22]File name is /storage/kkm_last_timestamp [03:09:22]Write 4 bytes [03:09:22]NVStorageSaveData done [03:09:22]ExternCall_PrintAddStr [03:09:22]wPrintStart [03:09:22]Write to MH i2c: 01 00 00 8B 03 8E [03:09:22]Write i2c OK [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: 01 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: 01 07 00 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 FF 0F A3 [03:09:22]RasterBufferAndPrint [03:09:22]line Счет N : (1)952533 [03:09:22]line ИНН: 02508201610067 [03:09:22]line Контрольно-Кассовый Чек [03:09:22]line ПРОДАЖА [03:09:22]line ТРК (МРК, ГНК) : 71 [03:09:22]line Товар: 2711190000 [03:09:22]line ГАЗ-К-3 [03:09:22]line 25.840 * 38.90 [03:09:22]line = 1005.18 [03:09:22]line НДС 12% НСП 1% [03:09:22]line > о реализуемом товаре [03:09:22]line ОКРУГЛЕНИЕ: -0.18 [03:09:22]line ИТОГО: 1005.00 [03:09:22]line Внесено: 1005.00 [03:09:22]line СДАЧА: 0.00 [03:09:22]line НСП 1% : 8.89 [03:09:22]line НДС 12% : 106.74 [03:09:22]line Наличными: 1005.00 [03:09:22]line Безнал.: 0.00 [03:09:22]line Место: АЗС № 113 "Партнер Нефть" [03:09:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [03:09:22]line СНО: Общий режим [03:09:22]line Чек 8 31.10.2024 03:09 [03:09:22]line Смена: 557 ФФД: 1.0 [03:09:22]line ЗНМ: 0300000087 [03:09:22]line РНМ: 0000000000091644 [03:09:22]line Версия ККМ: 001 [03:09:22]line ФМ: 0000000000874662 [03:09:22]line ФД: 72933 [03:09:22]line ФПД: 170689986134296 [03:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T030922&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72933&fm=170689986134296&tin=02508201610067®Number=0000000000091644&sum=100500 [03:09:22]written 0, free lines is 4095 [03:09:22]OFD Sender: Processing packet 72933 [packets to send 279, broken 278] [03:09:22]ProducePacketName [03:09:22]name=ofd_packets/00072933 [03:09:22]OFD Sender: To server: pG, [03:09:22]CommunicateWithHost lk.salyk.kg:30040 [03:09:22]ConnectInit lk.salyk.kg [03:09:23]Write to MH i2c: 01 00 00 B6 03 B9 [03:09:23]Write i2c OK [03:09:23]MH_I2C_Read... [03:09:23]Read from MH i2c: 01 [03:09:23]MH_I2C_Read... [03:09:23]Read from MH i2c: 01 07 00 [03:09:23]MH_I2C_Read... [03:09:23]Read from MH i2c: 01 07 00 B6 03 00 00 00 00 00 D6 0C A2 [03:09:23]RasterBufferAndPrint [03:09:23]line [03:09:23]line [03:09:23]line [03:09:23]line [03:09:23]line [03:09:23]written 0, free lines is 3293 [03:09:23]MH_Cut [03:09:23]Write to MH i2c: D1 01 00 BD 03 01 92 [03:09:23]Write i2c OK [03:09:23]MH_I2C_Read... [03:09:23]Read from MH i2c: D1 [03:09:23]MH_I2C_Read... [03:09:23]Read from MH i2c: D1 01 00 [03:09:23]MH_I2C_Read... [03:09:23]Read from MH i2c: D1 01 00 BD 03 00 91 [03:09:23]Write to MH i2c: 01 00 00 BE 03 C1 [03:09:23]Write i2c OK [03:09:23]MH_I2C_Read... [03:09:23]*** Cut start [03:09:23]*** Partial cut [03:09:23]*** CUTSNS_PIN = 1 [03:09:23]*** CUTSNS_PIN = 0 [03:09:24]*** Brake cut motor [03:09:24]Read from MH i2c: 01 [03:09:24]MH_I2C_Read... [03:09:24]*** Stop cut motor [03:09:24]*** Cut end [03:09:24]Read from MH i2c: 01 07 00 [03:09:24]MH_I2C_Read... [03:09:24]Read from MH i2c: 01 07 00 BE 03 00 00 00 00 00 FF 0F D6 [03:09:24]process_action close_receipt done [03:09:24]requested_data is exist [03:09:24]produce_requested_data [03:09:24]requested_item fm.sn is exist - process it [03:09:24]wFMCommunicate request_size=4 [03:09:24]MH_SAM_APDU [03:09:24]CAPDU: 80 11 00 00 [03:09:24]Write to MH i2c: E2 08 00 BF 03 80 11 00 00 00 00 00 00 3C [03:09:24]Write i2c OK [03:09:24]MH_I2C_Read... [03:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:24]Read from MH i2c: E2 [03:09:24]MH_I2C_Read... [03:09:24]Read from MH i2c: E2 17 00 [03:09:24]MH_I2C_Read... [03:09:24]Read from MH i2c: E2 17 00 BF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 90 [03:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:09:24]wFMCommunicate OK [03:09:24]requested_item fd.num is exist - process it [03:09:24]SAM_PROTO_GetFieldsCounters [03:09:24]wFMCommunicate request_size=4 [03:09:24]MH_SAM_APDU [03:09:24]CAPDU: 80 13 00 00 [03:09:24]Write to MH i2c: E2 08 00 C0 03 80 13 00 00 00 00 00 00 3F [03:09:24]Write i2c OK [03:09:24]MH_I2C_Read... [03:09:24]Connected sock=11 [03:09:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 23 CA 06 01 8A 59 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 F0 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A6 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E2 F4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1C 01 00 35 04 06 00 9B 3D DB FD 81 18 07 51 ED 70 7B 72 E9 12 [03:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:09:24]Read from MH i2c: E2 [03:09:24]MH_I2C_Read... [03:09:24]Read from MH i2c: E2 62 00 [03:09:24]MH_I2C_Read... [03:09:24]Read from MH i2c: E2 62 00 C0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E5 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [03:09:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E5 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:09:24]wFMCommunicate OK [03:09:24]SAM_PROTO_GetFieldsCounters done [03:09:24]requested_item shift.num is exist - process it [03:09:24]requested_item shift.opened is exist - process it [03:09:24]req_shift_opened [03:09:24]FM_GetShiftState [03:09:24]SAM_PROTO_GetShiftState [03:09:24]wFMCommunicate request_size=4 [03:09:24]MH_SAM_APDU [03:09:24]CAPDU: 80 13 01 00 [03:09:24]Write to MH i2c: E2 08 00 C1 03 80 13 01 00 00 00 00 00 41 [03:09:24]Write i2c OK [03:09:24]MH_I2C_Read... [03:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:24]Read from MH i2c: E2 [03:09:24]MH_I2C_Read... [03:09:24]Read from MH i2c: E2 0E 00 [03:09:24]MH_I2C_Read... [03:09:24]Read from MH i2c: E2 0E 00 C1 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 EA [03:09:24]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [03:09:24]wFMCommunicate OK [03:09:24]SAM_PROTO_GetShiftState done [03:09:24]FM_GetShiftState done [03:09:24]req_shift_opened done [03:09:24]requested_item shift.open_date is exist - process it [03:09:24]req_shift_open_date [03:09:24]req_shift_open_date done [03:09:24]produce_requested_data done [03:09:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72933,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [03:09:24]process_action_free close_receipt [03:09:24]json_value_free [03:09:24]json_value_free done [03:09:24]process_json_proto returns [03:09:24]Send response to host [03:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72933,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [03:09:24]free response buf [03:09:24]execute_script done [03:09:24]execute_script returns [03:09:24]free content buf [03:09:24]Sock 10.Close socket [03:09:24]Sock 10.Thread stoped [03:09:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 13 73 47 00 9D 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1C 01 00 F4 03 04 00 9B 9F 22 67 B6 04 01 00 00 A2 64 CA 98 39 EA 0A E8 [03:09:25]CommunicateWithHost err = 0 [03:09:25]CheckOFDResponse [03:09:25]1017 (14) - 77093643461234 [03:09:25]1041 (16) - 0000000000874662 [03:09:25]1040 (4) - 72933 [03:09:25]1012 (4) - 30.10.2024 21:05 [03:09:25]1206 (1) - 0 [03:09:25]OFD Sender: Remove packet 72933 [03:09:25]ProducePacketName [03:09:25]name=ofd_packets/00072933 [03:09:25]NVStorageDeleteData [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]recv_with_timeout no data received [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:03]recv_with_timeout no data received [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:20]recv_with_timeout no data received [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]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:19]recv_with_timeout no data received [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:50]recv_with_timeout no data received [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:17]recv_with_timeout no data received [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:27]recv_with_timeout no data received [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:39]recv_with_timeout no data received [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:55]recv_with_timeout no data received [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:06]recv_with_timeout no data received [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:23]recv_with_timeout no data received [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:54]recv_with_timeout no data received [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:22]recv_with_timeout no data received [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:40]recv_with_timeout no data received [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]recv_with_timeout no data received [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21: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:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]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:43:19]OFD Sender: No OFD packet to send [03:43:19]ConnectInit Can't connect to host [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:51]recv_with_timeout no data received [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:31]recv_with_timeout no data received [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:14]recv_with_timeout no data received [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:52]recv_with_timeout no data received [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:12]recv_with_timeout no data received [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:41]recv_with_timeout no data received [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:45]recv_with_timeout no data received [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:20]recv_with_timeout no data received [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:31]recv_with_timeout no data received [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:00]recv_with_timeout no data received [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:42]recv_with_timeout no data received [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:04]recv_with_timeout no data received [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:14]recv_with_timeout no data received [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:32]recv_with_timeout no data received [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:42]recv_with_timeout no data received [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:53]recv_with_timeout no data received [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:46]recv_with_timeout no data received [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:03]recv_with_timeout no data received [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:20]recv_with_timeout no data received [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:31]recv_with_timeout no data received [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [03:59:55]recv_with_timeout no data received [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:12]recv_with_timeout no data received [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:04]recv_with_timeout no data received [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:14]recv_with_timeout no data received [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]recv_with_timeout no data received [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:51]recv_with_timeout no data received [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:24]recv_with_timeout no data received [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:55]recv_with_timeout no data received [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:13]accept exits with 9 [04:04:13]New connection [04:04:13]New thread 3066617188 created [04:04:13]Thread 3066473828 joined [04:04:13]Waiting for new connection... [04:04:13] Sock 9.Parse request [04:04:13]Sock 9.Check first char [04:04:13]Sock 9.First char is OK [04:04:13]request: POST /json_proto HTTP/1.0 [04:04:13]Method: POST [04:04:13]URL: /json_proto [04:04:13]Method is POST - this is cgi request [04:04:13]url: /json_proto [04:04:13]query_string will be loaded in cgi processing [04:04:13]execute_cgi json_proto POST (null) [04:04:13]execute_cgi path=json_proto method=POST [04:04:13]POST find Content-Length [04:04:13]Host: 172.17.43.195:8080 [04:04:13]Content-Length: 677 [04:04:13]Content-Type: application/json [04:04:13] [04:04:13]POST finish read [04:04:13]Found Content-Length = 677 [04:04:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:04:13]execute_script... [04:04:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:04:13]POST & json_proto [04:04:13]process_json_proto [04:04:13]json parsed OK: [04:04:13]protocol is kg_v1.0 [04:04:13]action value=close_receipt [04:04:13]process_action close_receipt [04:04:13]cmd_close_receipt [04:04:13]MH_GetDate [04:04:13]Write to MH i2c: F0 00 00 C2 03 B4 [04:04:13]Write i2c OK [04:04:13]MH_I2C_Read... [04:04:13]Read from MH i2c: F0 [04:04:13]MH_I2C_Read... [04:04:13]Read from MH i2c: F0 09 00 [04:04:13]MH_I2C_Read... [04:04:13]Read from MH i2c: F0 09 00 C2 03 00 BE 01 23 67 74 2C AD 66 B9 [04:04:13]GetLastDocTimeStamp 1730344162 [04:04:13]current date 1730347454 [04:04:13]FM_GetShiftState [04:04:13]SAM_PROTO_GetShiftState [04:04:13]wFMCommunicate request_size=4 [04:04:13]MH_SAM_APDU [04:04:13]CAPDU: 80 13 01 00 [04:04:13]Write to MH i2c: E2 08 00 C3 03 80 13 01 00 00 00 00 00 43 [04:04:13]Write i2c OK [04:04:13]MH_I2C_Read... [04:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:04:13]Read from MH i2c: E2 [04:04:13]MH_I2C_Read... [04:04:13]Read from MH i2c: E2 0E 00 [04:04:13]MH_I2C_Read... [04:04:13]Read from MH i2c: E2 0E 00 C3 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 EC [04:04:13]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [04:04:13]wFMCommunicate OK [04:04:13]SAM_PROTO_GetShiftState done [04:04:13]FM_GetShiftState done [04:04:13]opened in 1730333258 [04:04:13]opened+sec_in_day 1730419658 [04:04:13]quantity*price = 40006 [04:04:13]sum+1 = 40007 [04:04:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 9 31.10.2024 04:04 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72934 ФПД: 179494580501350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040414&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72934&fm=179494580501350&tin=02508201610067®Number=0000000000091644&sum=40000 [04:04:14]StoreToDocumentArchive [04:04:14]shift 557 fd 72934 [04:04:14]save to /storage/0557/doc_00072934 [04:04:14]save last doc name /storage/0557/doc_00072934 to /storage/kkm_last_doc_name [04:04:14]save OK [04:04:14]Clear old archive folders... [04:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:04:14]tlvbuf is 0160CF40 [04:04:14]SAM_PROTO_ClearQueue [04:04:14]wFMCommunicate request_size=4 [04:04:14]MH_SAM_APDU [04:04:14]CAPDU: 80 09 00 00 [04:04:14]Write to MH i2c: E2 08 00 D0 03 80 09 00 00 00 00 00 00 45 [04:04:14]Write i2c OK [04:04:14]MH_I2C_Read... [04:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:04:14]Read from MH i2c: E2 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 03 00 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [04:04:14]RAPDU: 90 00 [04:04:14]wFMCommunicate OK [04:04:14]SAM_PROTO_ClearQueue done [04:04:14]KKMCreateOFDPacket [04:04:14]OFDProtocolAddRootSTLVToBuf [04:04:14]FM_MakeSignedData [04:04:14]FM_MakeSignedData [04:04:14]SAM_PROTO_SignData [04:04:14]wFMCommunicate request_size=4 [04:04:14]MH_SAM_APDU [04:04:14]CAPDU: 80 0D 01 02 [04:04:14]Write to MH i2c: E2 08 00 D1 03 80 0D 01 02 00 00 00 00 4D [04:04:14]Write i2c OK [04:04:14]MH_I2C_Read... [04:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:04:14]Read from MH i2c: E2 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 03 00 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 03 00 D1 03 00 90 00 48 [04:04:14]RAPDU: 90 00 [04:04:14]wFMCommunicate OK [04:04:14]wFMCommunicate request_size=255 [04:04:14]MH_SAM_APDU [04:04:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 BE 01 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E6 1C 01 00 35 04 06 00 A3 [04:04:14]Write to MH i2c: E2 02 01 D2 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 BE 01 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E6 1C 01 00 35 04 06 00 A3 00 00 D2 [04:04:14]Write i2c OK [04:04:14]MH_I2C_Read... [04:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:04:14]Read from MH i2c: E2 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 03 00 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 03 00 D2 03 00 90 00 49 [04:04:14]RAPDU: 90 00 [04:04:14]wFMCommunicate OK [04:04:14]wFMCommunicate request_size=10 [04:04:14]MH_SAM_APDU [04:04:14]CAPDU: 80 0D 02 02 05 3F D6 B5 BB 66 [04:04:14]Write to MH i2c: E2 0D 00 D3 03 80 0D 02 02 05 00 3F D6 B5 BB 66 00 00 45 [04:04:14]Write i2c OK [04:04:14]MH_I2C_Read... [04:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:04:14]Read from MH i2c: E2 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 03 00 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [04:04:14]RAPDU: 90 00 [04:04:14]wFMCommunicate OK [04:04:14]wFMCommunicate request_size=4 [04:04:14]MH_SAM_APDU [04:04:14]CAPDU: 80 0D 03 02 [04:04:14]Write to MH i2c: E2 08 00 D4 03 80 0D 03 02 00 00 00 00 52 [04:04:14]Write i2c OK [04:04:14]MH_I2C_Read... [04:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:04:14]Read from MH i2c: E2 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 0B 00 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 0B 00 D4 03 00 3B F3 A4 72 8B 06 92 F8 90 00 B2 [04:04:14]RAPDU: 3B F3 A4 72 8B 06 92 F8 90 00 [04:04:14]wFMCommunicate OK [04:04:14]SAM_PROTO_SignData done [04:04:14]FM_MakeSignedData done [04:04:14]CreateOFDProtocolMessage [04:04:14]wFMCommunicate request_size=4 [04:04:14]MH_SAM_APDU [04:04:14]CAPDU: 80 11 00 00 [04:04:14]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [04:04:14]Write i2c OK [04:04:14]MH_I2C_Read... [04:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:04:14]Read from MH i2c: E2 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 17 00 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [04:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:04:14]wFMCommunicate OK [04:04:14]CreateOFDProtocolMessage done [04:04:14]OFDSenderStorePacket 72934 [04:04:14]StoreOFDPacket docnum=72934 [04:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4B C3 07 01 F4 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 BE 01 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E6 1C 01 00 35 04 06 00 A3 3F D6 B5 BB 66 3B F3 A4 72 8B 06 92 F8 [04:04:14]CheckFolder [04:04:14]dirname=/storage/ofd_packets [04:04:14]CheckFolder done [04:04:14]ProducePacketName [04:04:14]name=ofd_packets/00072934 [04:04:14]NVStorageSaveData ofd_packets/00072934 [04:04:14]File name is /storage/ofd_packets/00072934 [04:04:14]Write 301 bytes [04:04:14]NVStorageSaveData done [04:04:14]OFDSenderStorePacket done [04:04:14]KKMCreateOFDPacket done [04:04:14]NVStorageSaveData kkm_last_timestamp [04:04:14]File name is /storage/kkm_last_timestamp [04:04:14]Write 4 bytes [04:04:14]NVStorageSaveData done [04:04:14]ExternCall_PrintAddStr [04:04:14]wPrintStart [04:04:14]Write to MH i2c: 01 00 00 D6 03 D9 [04:04:14]Write i2c OK [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: 01 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: 01 07 00 [04:04:14]MH_I2C_Read... [04:04:14]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 FF 0F EE [04:04:14]RasterBufferAndPrint [04:04:14]line Счет N : (1)952535 [04:04:14]line ИНН: 02508201610067 [04:04:14]line Контрольно-Кассовый Чек [04:04:14]line ПРОДАЖА [04:04:14]line ТРК (МРК, ГНК) : 63 [04:04:14]line Товар: 2710124130 [04:04:14]line Аи-92-К-5 [04:04:14]line 5.980 * 66.90 [04:04:14]line = 400.06 [04:04:14]line НДС 12% НСП 1% [04:04:14]line > о реализуемом товаре [04:04:14]line ОКРУГЛЕНИЕ: -0.06 [04:04:14]line ИТОГО: 400.00 [04:04:14]line Внесено: 400.00 [04:04:14]line СДАЧА: 0.00 [04:04:14]line НСП 1% : 3.54 [04:04:14]line НДС 12% : 42.48 [04:04:14]line Наличными: 400.00 [04:04:14]line Безнал.: 0.00 [04:04:14]line Место: АЗС № 113 "Партнер Нефть" [04:04:14]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:04:14]line СНО: Общий режим [04:04:14]line Чек 9 31.10.2024 04:04 [04:04:14]line Смена: 557 ФФД: 1.0 [04:04:14]line ЗНМ: 0300000087 [04:04:14]line РНМ: 0000000000091644 [04:04:14]line Версия ККМ: 001 [04:04:14]line ФМ: 0000000000874662 [04:04:14]line ФД: 72934 [04:04:14]line ФПД: 179494580501350 [04:04:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040414&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72934&fm=179494580501350&tin=02508201610067®Number=0000000000091644&sum=40000 [04:04:14]written 0, free lines is 4095 [04:04:14]OFD Sender: Processing packet 72934 [packets to send 279, broken 278] [04:04:14]ProducePacketName [04:04:14]name=ofd_packets/00072934 [04:04:14]OFD Sender: To server: pG, [04:04:14]CommunicateWithHost lk.salyk.kg:30040 [04:04:14]ConnectInit lk.salyk.kg [04:04:15]Write to MH i2c: 01 00 00 01 04 05 [04:04:15]Write i2c OK [04:04:15]MH_I2C_Read... [04:04:15]Read from MH i2c: 01 [04:04:15]MH_I2C_Read... [04:04:15]Read from MH i2c: 01 07 00 [04:04:15]MH_I2C_Read... [04:04:15]Read from MH i2c: 01 07 00 01 04 00 00 00 00 00 D4 0C EC [04:04:15]RasterBufferAndPrint [04:04:15]line [04:04:15]line [04:04:15]line [04:04:15]line [04:04:15]line [04:04:15]written 0, free lines is 3292 [04:04:15]MH_Cut [04:04:15]Write to MH i2c: D1 01 00 08 04 01 DE [04:04:15]Write i2c OK [04:04:15]MH_I2C_Read... [04:04:15]Read from MH i2c: D1 [04:04:15]MH_I2C_Read... [04:04:15]Read from MH i2c: D1 01 00 [04:04:15]MH_I2C_Read... [04:04:15]Read from MH i2c: D1 01 00 08 04 00 DD [04:04:15]Write to MH i2c: 01 00 00 09 04 0D [04:04:15]Write i2c OK [04:04:15]MH_I2C_Read... [04:04:16]*** Cut start [04:04:16]*** Partial cut [04:04:16]*** CUTSNS_PIN = 1 [04:04:16]*** CUTSNS_PIN = 0 [04:04:16]*** Brake cut motor [04:04:16]Connected sock=7 [04:04:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4B C3 07 01 F4 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 BE 01 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E6 1C 01 00 35 04 06 00 A3 3F D6 B5 BB 66 3B F3 A4 72 8B 06 92 F8 [04:04:16]Read from MH i2c: 01 [04:04:16]MH_I2C_Read... [04:04:16]*** Stop cut motor [04:04:16]*** Cut end [04:04:16]Read from MH i2c: 01 07 00 [04:04:16]MH_I2C_Read... [04:04:16]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 FF 0F 22 [04:04:16]process_action close_receipt done [04:04:16]requested_data is exist [04:04:16]produce_requested_data [04:04:16]requested_item fm.sn is exist - process it [04:04:16]wFMCommunicate request_size=4 [04:04:16]MH_SAM_APDU [04:04:16]CAPDU: 80 11 00 00 [04:04:16]Write to MH i2c: E2 08 00 0A 04 80 11 00 00 00 00 00 00 88 [04:04:16]Write i2c OK [04:04:16]MH_I2C_Read... [04:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:04:16]Read from MH i2c: E2 [04:04:16]MH_I2C_Read... [04:04:16]Read from MH i2c: E2 17 00 [04:04:16]MH_I2C_Read... [04:04:16]Read from MH i2c: E2 17 00 0A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [04:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:04:16]wFMCommunicate OK [04:04:16]requested_item fd.num is exist - process it [04:04:16]SAM_PROTO_GetFieldsCounters [04:04:16]wFMCommunicate request_size=4 [04:04:16]MH_SAM_APDU [04:04:16]CAPDU: 80 13 00 00 [04:04:16]Write to MH i2c: E2 08 00 0B 04 80 13 00 00 00 00 00 00 8B [04:04:16]Write i2c OK [04:04:16]MH_I2C_Read... [04:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:04:16]Read from MH i2c: E2 [04:04:16]MH_I2C_Read... [04:04:16]Read from MH i2c: E2 62 00 [04:04:16]MH_I2C_Read... [04:04:16]Read from MH i2c: E2 62 00 0B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E6 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [04:04:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E6 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:04:16]wFMCommunicate OK [04:04:16]SAM_PROTO_GetFieldsCounters done [04:04:16]requested_item shift.num is exist - process it [04:04:16]requested_item shift.opened is exist - process it [04:04:16]req_shift_opened [04:04:16]FM_GetShiftState [04:04:16]SAM_PROTO_GetShiftState [04:04:16]wFMCommunicate request_size=4 [04:04:16]MH_SAM_APDU [04:04:16]CAPDU: 80 13 01 00 [04:04:16]Write to MH i2c: E2 08 00 0C 04 80 13 01 00 00 00 00 00 8D [04:04:16]Write i2c OK [04:04:16]MH_I2C_Read... [04:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:04:17]Read from MH i2c: E2 [04:04:17]MH_I2C_Read... [04:04:17]Read from MH i2c: E2 0E 00 [04:04:17]MH_I2C_Read... [04:04:17]Read from MH i2c: E2 0E 00 0C 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 36 [04:04:17]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [04:04:17]wFMCommunicate OK [04:04:17]SAM_PROTO_GetShiftState done [04:04:17]FM_GetShiftState done [04:04:17]req_shift_opened done [04:04:17]requested_item shift.open_date is exist - process it [04:04:17]req_shift_open_date [04:04:17]req_shift_open_date done [04:04:17]produce_requested_data done [04:04:17]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72934,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [04:04:17]process_action_free close_receipt [04:04:17]json_value_free [04:04:17]json_value_free done [04:04:17]process_json_proto returns [04:04:17]Send response to host [04:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72934,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [04:04:17]free response buf [04:04:17]execute_script done [04:04:17]execute_script returns [04:04:17]free content buf [04:04:17]Sock 9.Close socket [04:04:17]Sock 9.Thread stoped [04:04:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 34 7F 47 00 61 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E6 1C 01 00 F4 03 04 00 77 AC 22 67 B6 04 01 00 00 A4 AB 53 50 8D 06 77 13 [04:04:17]CommunicateWithHost err = 0 [04:04:17]CheckOFDResponse [04:04:17]1017 (14) - 77093643461234 [04:04:17]1041 (16) - 0000000000874662 [04:04:17]1040 (4) - 72934 [04:04:17]1012 (4) - 30.10.2024 22:00 [04:04:17]1206 (1) - 0 [04:04:17]OFD Sender: Remove packet 72934 [04:04:17]ProducePacketName [04:04:17]name=ofd_packets/00072934 [04:04:17]NVStorageDeleteData [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:55]recv_with_timeout no data received [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:36]recv_with_timeout no data received [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:43]accept exits with 10 [04:05:43]New connection [04:05:43]New thread 3066473828 created [04:05:43]Thread 3066617188 joined [04:05:43]Waiting for new connection... [04:05:43] Sock 10.Parse request [04:05:43]Sock 10.Check first char [04:05:43]Sock 10.First char is OK [04:05:43]request: POST /json_proto HTTP/1.0 [04:05:43]Method: POST [04:05:43]URL: /json_proto [04:05:43]Method is POST - this is cgi request [04:05:43]url: /json_proto [04:05:43]query_string will be loaded in cgi processing [04:05:43]execute_cgi json_proto POST (null) [04:05:43]execute_cgi path=json_proto method=POST [04:05:43]POST find Content-Length [04:05:43]Host: 172.17.43.195:8080 [04:05:43]Content-Length: 685 [04:05:43]Content-Type: application/json [04:05:43] [04:05:43]POST finish read [04:05:43]Found Content-Length = 685 [04:05:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:43]execute_script... [04:05:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:43]POST & json_proto [04:05:43]process_json_proto [04:05:43]json parsed OK: [04:05:43]protocol is kg_v1.0 [04:05:43]action value=close_receipt [04:05:43]process_action close_receipt [04:05:43]cmd_close_receipt [04:05:43]MH_GetDate [04:05:43]Write to MH i2c: F0 00 00 0D 04 00 [04:05:43]Write i2c OK [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: F0 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: F0 09 00 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: F0 09 00 0D 04 00 18 02 23 67 74 2C AD 66 60 [04:05:43]GetLastDocTimeStamp 1730347454 [04:05:43]current date 1730347544 [04:05:43]FM_GetShiftState [04:05:43]SAM_PROTO_GetShiftState [04:05:43]wFMCommunicate request_size=4 [04:05:43]MH_SAM_APDU [04:05:43]CAPDU: 80 13 01 00 [04:05:43]Write to MH i2c: E2 08 00 0E 04 80 13 01 00 00 00 00 00 8F [04:05:43]Write i2c OK [04:05:43]MH_I2C_Read... [04:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:43]Read from MH i2c: E2 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 0E 00 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 0E 00 0E 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [04:05:43]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [04:05:43]wFMCommunicate OK [04:05:43]SAM_PROTO_GetShiftState done [04:05:43]FM_GetShiftState done [04:05:43]opened in 1730333258 [04:05:43]opened+sec_in_day 1730419658 [04:05:43]quantity*price = 150037 [04:05:43]sum+1 = 150038 [04:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 10 31.10.2024 04:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72935 ФПД: 41779695900531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040544&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72935&fm=41779695900531&tin=02508201610067®Number=0000000000091644&sum=150000 [04:05:44]StoreToDocumentArchive [04:05:44]shift 557 fd 72935 [04:05:44]save to /storage/0557/doc_00072935 [04:05:44]save last doc name /storage/0557/doc_00072935 to /storage/kkm_last_doc_name [04:05:44]save OK [04:05:44]Clear old archive folders... [04:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:05:44]tlvbuf is 0161C3D0 [04:05:44]SAM_PROTO_ClearQueue [04:05:44]wFMCommunicate request_size=4 [04:05:44]MH_SAM_APDU [04:05:44]CAPDU: 80 09 00 00 [04:05:44]Write to MH i2c: E2 08 00 1B 04 80 09 00 00 00 00 00 00 91 [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:05:44]Read from MH i2c: E2 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 03 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 03 00 1B 04 00 90 00 93 [04:05:44]RAPDU: 90 00 [04:05:44]wFMCommunicate OK [04:05:44]SAM_PROTO_ClearQueue done [04:05:44]KKMCreateOFDPacket [04:05:44]OFDProtocolAddRootSTLVToBuf [04:05:44]FM_MakeSignedData [04:05:44]FM_MakeSignedData [04:05:44]SAM_PROTO_SignData [04:05:44]wFMCommunicate request_size=4 [04:05:44]MH_SAM_APDU [04:05:44]CAPDU: 80 0D 01 02 [04:05:44]Write to MH i2c: E2 08 00 1C 04 80 0D 01 02 00 00 00 00 99 [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:05:44]Read from MH i2c: E2 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 03 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 03 00 1C 04 00 90 00 94 [04:05:44]RAPDU: 90 00 [04:05:44]wFMCommunicate OK [04:05:44]wFMCommunicate request_size=255 [04:05:44]MH_SAM_APDU [04:05:44]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 18 02 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1C 01 00 35 04 06 00 25 FF [04:05:44]Write to MH i2c: E2 02 01 1D 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 18 02 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1C 01 00 35 04 06 00 25 FF 00 00 55 [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:44]Read from MH i2c: E2 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 03 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 03 00 1D 04 00 90 00 95 [04:05:44]RAPDU: 90 00 [04:05:44]wFMCommunicate OK [04:05:44]wFMCommunicate request_size=9 [04:05:44]MH_SAM_APDU [04:05:44]CAPDU: 80 0D 02 02 04 97 EE D7 73 [04:05:44]Write to MH i2c: E2 0C 00 1E 04 80 0D 02 02 04 00 97 EE D7 73 00 00 73 [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:44]Read from MH i2c: E2 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 03 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [04:05:44]RAPDU: 90 00 [04:05:44]wFMCommunicate OK [04:05:44]wFMCommunicate request_size=4 [04:05:44]MH_SAM_APDU [04:05:44]CAPDU: 80 0D 03 02 [04:05:44]Write to MH i2c: E2 08 00 1F 04 80 0D 03 02 00 00 00 00 9E [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:05:44]Read from MH i2c: E2 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 0B 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 0B 00 1F 04 00 5D 0A D6 82 42 C3 59 FC 90 00 B8 [04:05:44]RAPDU: 5D 0A D6 82 42 C3 59 FC 90 00 [04:05:44]wFMCommunicate OK [04:05:44]SAM_PROTO_SignData done [04:05:44]FM_MakeSignedData done [04:05:44]CreateOFDProtocolMessage [04:05:44]wFMCommunicate request_size=4 [04:05:44]MH_SAM_APDU [04:05:44]CAPDU: 80 11 00 00 [04:05:44]Write to MH i2c: E2 08 00 20 04 80 11 00 00 00 00 00 00 9E [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:44]Read from MH i2c: E2 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 17 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 17 00 20 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [04:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:05:44]wFMCommunicate OK [04:05:44]CreateOFDProtocolMessage done [04:05:44]OFDSenderStorePacket 72935 [04:05:44]StoreOFDPacket docnum=72935 [04:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 5F B9 06 01 A3 F1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 18 02 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1C 01 00 35 04 06 00 25 FF 97 EE D7 73 5D 0A D6 82 42 C3 59 FC [04:05:44]CheckFolder [04:05:44]dirname=/storage/ofd_packets [04:05:44]CheckFolder done [04:05:44]ProducePacketName [04:05:44]name=ofd_packets/00072935 [04:05:44]NVStorageSaveData ofd_packets/00072935 [04:05:44]File name is /storage/ofd_packets/00072935 [04:05:44]Write 300 bytes [04:05:44]NVStorageSaveData done [04:05:44]OFDSenderStorePacket done [04:05:44]KKMCreateOFDPacket done [04:05:44]NVStorageSaveData kkm_last_timestamp [04:05:44]File name is /storage/kkm_last_timestamp [04:05:44]Write 4 bytes [04:05:44]NVStorageSaveData done [04:05:44]ExternCall_PrintAddStr [04:05:44]wPrintStart [04:05:44]Write to MH i2c: 01 00 00 21 04 25 [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: 01 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: 01 07 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: 01 07 00 21 04 00 00 00 00 00 FF 0F 3A [04:05:44]RasterBufferAndPrint [04:05:44]line Счет N : (1)952534 [04:05:44]line ИНН: 02508201610067 [04:05:44]line Контрольно-Кассовый Чек [04:05:44]line ПРОДАЖА [04:05:44]line ТРК (МРК, ГНК) : 71 [04:05:44]line Товар: 2711190000 [04:05:44]line ГАЗ-К-3 [04:05:44]line 38.570 * 38.90 [04:05:44]line = 1500.37 [04:05:44]line НДС 12% НСП 1% [04:05:44]line > о реализуемом товаре [04:05:44]line ОКРУГЛЕНИЕ: -0.37 [04:05:44]line ИТОГО: 1500.00 [04:05:44]line Внесено: 1500.00 [04:05:44]line СДАЧА: 0.00 [04:05:44]line НСП 1% : 13.28 [04:05:44]line НДС 12% : 159.33 [04:05:44]line Наличными: 1500.00 [04:05:44]line Безнал.: 0.00 [04:05:44]line Место: АЗС № 113 "Партнер Нефть" [04:05:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:05:44]line СНО: Общий режим [04:05:44]line Чек 10 31.10.2024 04:05 [04:05:44]line Смена: 557 ФФД: 1.0 [04:05:44]line ЗНМ: 0300000087 [04:05:44]line РНМ: 0000000000091644 [04:05:44]line Версия ККМ: 001 [04:05:44]line ФМ: 0000000000874662 [04:05:44]line ФД: 72935 [04:05:44]line ФПД: 41779695900531 [04:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040544&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72935&fm=41779695900531&tin=02508201610067®Number=0000000000091644&sum=150000 [04:05:45]OFD Sender: Processing packet 72935 [packets to send 279, broken 278] [04:05:45]ProducePacketName [04:05:45]name=ofd_packets/00072935 [04:05:45]OFD Sender: To server: pG, [04:05:45]CommunicateWithHost lk.salyk.kg:30040 [04:05:45]ConnectInit lk.salyk.kg [04:05:45]written 0, free lines is 4095 [04:05:45]Write to MH i2c: 01 00 00 4C 04 50 [04:05:45]Write i2c OK [04:05:45]MH_I2C_Read... [04:05:45]Read from MH i2c: 01 [04:05:45]MH_I2C_Read... [04:05:45]Read from MH i2c: 01 07 00 [04:05:45]MH_I2C_Read... [04:05:45]Read from MH i2c: 01 07 00 4C 04 00 00 00 00 00 CD 0C 30 [04:05:45]RasterBufferAndPrint [04:05:45]line [04:05:45]line [04:05:45]line [04:05:45]line [04:05:45]line [04:05:45]written 0, free lines is 3283 [04:05:45]MH_Cut [04:05:45]Write to MH i2c: D1 01 00 53 04 01 29 [04:05:45]Write i2c OK [04:05:45]MH_I2C_Read... [04:05:45]Read from MH i2c: D1 [04:05:45]MH_I2C_Read... [04:05:45]Read from MH i2c: D1 01 00 [04:05:45]MH_I2C_Read... [04:05:45]Read from MH i2c: D1 01 00 53 04 00 28 [04:05:45]Write to MH i2c: 01 00 00 54 04 58 [04:05:45]Write i2c OK [04:05:45]MH_I2C_Read... [04:05:46]*** Cut start [04:05:46]*** Partial cut [04:05:46]*** CUTSNS_PIN = 1 [04:05:46]*** CUTSNS_PIN = 0 [04:05:46]*** Brake cut motor [04:05:46]Connected sock=9 [04:05:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 5F B9 06 01 A3 F1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 18 02 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1C 01 00 35 04 06 00 25 FF 97 EE D7 73 5D 0A D6 82 42 C3 59 FC [04:05:46]Read from MH i2c: 01 [04:05:46]MH_I2C_Read... [04:05:46]*** Stop cut motor [04:05:46]*** Cut end [04:05:46]Read from MH i2c: 01 07 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: 01 07 00 54 04 00 00 00 00 00 FF 0F 6D [04:05:46]process_action close_receipt done [04:05:46]requested_data is exist [04:05:46]produce_requested_data [04:05:46]requested_item fm.sn is exist - process it [04:05:46]wFMCommunicate request_size=4 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 11 00 00 [04:05:46]Write to MH i2c: E2 08 00 55 04 80 11 00 00 00 00 00 00 D3 [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:46]Read from MH i2c: E2 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 17 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 17 00 55 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [04:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:05:46]wFMCommunicate OK [04:05:46]requested_item fd.num is exist - process it [04:05:46]SAM_PROTO_GetFieldsCounters [04:05:46]wFMCommunicate request_size=4 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 13 00 00 [04:05:46]Write to MH i2c: E2 08 00 56 04 80 13 00 00 00 00 00 00 D6 [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:47]Read from MH i2c: E2 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: E2 62 00 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: E2 62 00 56 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E7 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [04:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E7 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:05:47]wFMCommunicate OK [04:05:47]SAM_PROTO_GetFieldsCounters done [04:05:47]requested_item shift.num is exist - process it [04:05:47]requested_item shift.opened is exist - process it [04:05:47]req_shift_opened [04:05:47]FM_GetShiftState [04:05:47]SAM_PROTO_GetShiftState [04:05:47]wFMCommunicate request_size=4 [04:05:47]MH_SAM_APDU [04:05:47]CAPDU: 80 13 01 00 [04:05:47]Write to MH i2c: E2 08 00 57 04 80 13 01 00 00 00 00 00 D8 [04:05:47]Write i2c OK [04:05:47]MH_I2C_Read... [04:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:47]Read from MH i2c: E2 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: E2 0E 00 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: E2 0E 00 57 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 81 [04:05:47]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [04:05:47]wFMCommunicate OK [04:05:47]SAM_PROTO_GetShiftState done [04:05:47]FM_GetShiftState done [04:05:47]req_shift_opened done [04:05:47]requested_item shift.open_date is exist - process it [04:05:47]req_shift_open_date [04:05:47]req_shift_open_date done [04:05:47]produce_requested_data done [04:05:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72935,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [04:05:47]process_action_free close_receipt [04:05:47]json_value_free [04:05:47]json_value_free done [04:05:47]process_json_proto returns [04:05:47]Send response to host [04:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72935,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [04:05:47]free response buf [04:05:47]execute_script done [04:05:47]execute_script returns [04:05:47]free content buf [04:05:47]Sock 10.Close socket [04:05:47]Sock 10.Thread stoped [04:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 61 16 47 00 92 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1C 01 00 F4 03 04 00 D1 AC 22 67 B6 04 01 00 00 FE 1A 4E FB 3F A8 61 9A [04:05:47]CommunicateWithHost err = 0 [04:05:47]CheckOFDResponse [04:05:47]1017 (14) - 77093643461234 [04:05:47]1041 (16) - 0000000000874662 [04:05:47]1040 (4) - 72935 [04:05:47]1012 (4) - 30.10.2024 22:01 [04:05:47]1206 (1) - 0 [04:05:47]OFD Sender: Remove packet 72935 [04:05:47]ProducePacketName [04:05:47]name=ofd_packets/00072935 [04:05:47]NVStorageDeleteData [04:05:47]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:02]recv_with_timeout no data received [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:45]recv_with_timeout no data received [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:22]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:23]OFD Sender: No OFD packet to send [04:11:26]recv_with_timeout no data received [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:24]recv_with_timeout no data received [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:09]recv_with_timeout no data received [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:55]recv_with_timeout no data received [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]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:30]recv_with_timeout no data received [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:30]recv_with_timeout no data received [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:13]recv_with_timeout no data received [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]recv_with_timeout no data received [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:13]recv_with_timeout no data received [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:35]recv_with_timeout no data received [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:47]recv_with_timeout no data received [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:37]recv_with_timeout no data received [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:53]recv_with_timeout no data received [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]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:18]recv_with_timeout no data received [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:30]recv_with_timeout no data received [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:01]recv_with_timeout no data received [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:54]recv_with_timeout no data received [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:21]recv_with_timeout no data received [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:04]ConnectInit Can't connect to host [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:47]recv_with_timeout no data received [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35: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:15]ConnectInit Can't connect to host [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:04]ConnectInit Can't connect to host [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:38]recv_with_timeout no data received [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:37]recv_with_timeout no data received [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:37]recv_with_timeout no data received [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:55]recv_with_timeout no data received [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:35]recv_with_timeout no data received [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:54]recv_with_timeout no data received [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:12]recv_with_timeout no data received [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:32]recv_with_timeout no data received [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]recv_with_timeout no data received [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:21]recv_with_timeout no data received [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]recv_with_timeout no data received [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:21]recv_with_timeout no data received [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]recv_with_timeout no data received [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:41]recv_with_timeout no data received [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:04]recv_with_timeout no data received [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:41]recv_with_timeout no data received [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:54]recv_with_timeout no data received [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:14]recv_with_timeout no data received [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:17]recv_with_timeout no data received [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:53]recv_with_timeout no data received [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:50]recv_with_timeout no data received [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:26]recv_with_timeout no data received [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:24]recv_with_timeout no data received [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:46]recv_with_timeout no data received [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:35]recv_with_timeout no data received [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:02]recv_with_timeout no data received [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:33]recv_with_timeout no data received [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]recv_with_timeout no data received [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]recv_with_timeout no data received [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:44]recv_with_timeout no data received [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:57]recv_with_timeout no data received [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:22]recv_with_timeout no data received [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:33]recv_with_timeout no data received [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:31]recv_with_timeout no data received [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:51]recv_with_timeout no data received [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:14]recv_with_timeout no data received [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:32]recv_with_timeout no data received [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:02]recv_with_timeout no data received [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]recv_with_timeout no data received [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:02]recv_with_timeout no data received [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:29]recv_with_timeout no data received [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]recv_with_timeout no data received [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:31]recv_with_timeout no data received [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:21:57]recv_with_timeout no data received [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:44]recv_with_timeout no data received [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:00]recv_with_timeout no data received [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:31]recv_with_timeout no data received [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]recv_with_timeout no data received [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:30]recv_with_timeout no data received [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:52]recv_with_timeout no data received [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:38]recv_with_timeout no data received [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:23]recv_with_timeout no data received [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:34]recv_with_timeout no data received [05:34:36]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:43]recv_with_timeout no data received [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:34]recv_with_timeout no data received [05:36:37]OFD Sender: No OFD packet to send [05:36:40]accept exits with 7 [05:36:40]New connection [05:36:40]New thread 3066617188 created [05:36:40]Thread 3066473828 joined [05:36:40]Waiting for new connection... [05:36:40] Sock 7.Parse request [05:36:40]Sock 7.Check first char [05:36:40]Sock 7.First char is OK [05:36:40]request: POST /json_proto HTTP/1.0 [05:36:40]Method: POST [05:36:40]URL: /json_proto [05:36:40]Method is POST - this is cgi request [05:36:40]url: /json_proto [05:36:40]query_string will be loaded in cgi processing [05:36:40]execute_cgi json_proto POST (null) [05:36:40]execute_cgi path=json_proto method=POST [05:36:40]POST find Content-Length [05:36:40]Host: 172.17.43.195:8080 [05:36:40]Content-Length: 792 [05:36:40]Content-Type: application/json [05:36:40] [05:36:40]POST finish read [05:36:40]Found Content-Length = 792 [05:36:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:36:40]execute_script... [05:36: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)952536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:36:40]POST & json_proto [05:36:40]process_json_proto [05:36:40]json parsed OK: [05:36:40]protocol is kg_v1.0 [05:36:40]action value=close_receipt [05:36:40]process_action close_receipt [05:36:40]cmd_close_receipt [05:36:40]MH_GetDate [05:36:40]Write to MH i2c: F0 00 00 58 04 4B [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: F0 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: F0 09 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: F0 09 00 58 04 00 6A 17 23 67 74 2C AD 66 12 [05:36:40]GetLastDocTimeStamp 1730347544 [05:36:40]current date 1730353002 [05:36:40]FM_GetShiftState [05:36:40]SAM_PROTO_GetShiftState [05:36:40]wFMCommunicate request_size=4 [05:36:40]MH_SAM_APDU [05:36:40]CAPDU: 80 13 01 00 [05:36:40]Write to MH i2c: E2 08 00 59 04 80 13 01 00 00 00 00 00 DA [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:40]Read from MH i2c: E2 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 0E 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 0E 00 59 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 83 [05:36:40]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [05:36:40]wFMCommunicate OK [05:36:40]SAM_PROTO_GetShiftState done [05:36:40]FM_GetShiftState done [05:36:40]opened in 1730333258 [05:36:40]opened+sec_in_day 1730419658 [05:36:40]quantity*price = 0 [05:36:40]sum+1 = 1 [05:36:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 11 31.10.2024 05:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72936 ФПД: 278232948409816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053642&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72936&fm=278232948409816&tin=02508201610067®Number=0000000000091644&sum=0 [05:36:41]StoreToDocumentArchive [05:36:41]shift 557 fd 72936 [05:36:41]save to /storage/0557/doc_00072936 [05:36:41]save last doc name /storage/0557/doc_00072936 to /storage/kkm_last_doc_name [05:36:41]save OK [05:36:41]Clear old archive folders... [05:36:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:36:41]tlvbuf is 01622470 [05:36:41]SAM_PROTO_ClearQueue [05:36:41]wFMCommunicate request_size=4 [05:36:41]MH_SAM_APDU [05:36:41]CAPDU: 80 09 00 00 [05:36:41]Write to MH i2c: E2 08 00 66 04 80 09 00 00 00 00 00 00 DC [05:36:41]Write i2c OK [05:36:41]MH_I2C_Read... [05:36:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:36:41]Read from MH i2c: E2 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 03 00 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [05:36:41]RAPDU: 90 00 [05:36:41]wFMCommunicate OK [05:36:41]SAM_PROTO_ClearQueue done [05:36:41]KKMCreateOFDPacket [05:36:41]OFDProtocolAddRootSTLVToBuf [05:36:41]FM_MakeSignedData [05:36:41]FM_MakeSignedData [05:36:41]SAM_PROTO_SignData [05:36:41]wFMCommunicate request_size=4 [05:36:41]MH_SAM_APDU [05:36:41]CAPDU: 80 0D 01 02 [05:36:41]Write to MH i2c: E2 08 00 67 04 80 0D 01 02 00 00 00 00 E4 [05:36:41]Write i2c OK [05:36:41]MH_I2C_Read... [05:36:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:36:41]Read from MH i2c: E2 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 03 00 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [05:36:41]RAPDU: 90 00 [05:36:41]wFMCommunicate OK [05:36:41]wFMCommunicate request_size=255 [05:36:41]MH_SAM_APDU [05:36: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 6A 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1C 01 00 35 04 06 00 FD [05:36:41]Write to MH i2c: E2 02 01 68 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 6A 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1C 01 00 35 04 06 00 FD 00 00 07 [05:36:41]Write i2c OK [05:36:41]MH_I2C_Read... [05:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:41]Read from MH i2c: E2 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 03 00 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [05:36:41]RAPDU: 90 00 [05:36:41]wFMCommunicate OK [05:36:41]wFMCommunicate request_size=10 [05:36:41]MH_SAM_APDU [05:36:41]CAPDU: 80 0D 02 02 05 0D 28 0E 05 D8 [05:36:41]Write to MH i2c: E2 0D 00 69 04 80 0D 02 02 05 00 0D 28 0E 05 D8 00 00 11 [05:36:41]Write i2c OK [05:36:41]MH_I2C_Read... [05:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:41]Read from MH i2c: E2 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 03 00 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [05:36:41]RAPDU: 90 00 [05:36:41]wFMCommunicate OK [05:36:41]wFMCommunicate request_size=4 [05:36:41]MH_SAM_APDU [05:36:41]CAPDU: 80 0D 03 02 [05:36:41]Write to MH i2c: E2 08 00 6A 04 80 0D 03 02 00 00 00 00 E9 [05:36:41]Write i2c OK [05:36:41]MH_I2C_Read... [05:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:36:41]Read from MH i2c: E2 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 0B 00 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 0B 00 6A 04 00 6C B9 D2 7B 15 E3 E0 C4 90 00 F8 [05:36:41]RAPDU: 6C B9 D2 7B 15 E3 E0 C4 90 00 [05:36:41]wFMCommunicate OK [05:36:41]SAM_PROTO_SignData done [05:36:41]FM_MakeSignedData done [05:36:41]CreateOFDProtocolMessage [05:36:41]wFMCommunicate request_size=4 [05:36:41]MH_SAM_APDU [05:36:41]CAPDU: 80 11 00 00 [05:36:41]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [05:36:41]Write i2c OK [05:36:41]MH_I2C_Read... [05:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:41]Read from MH i2c: E2 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 17 00 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3D [05:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:36:41]wFMCommunicate OK [05:36:41]CreateOFDProtocolMessage done [05:36:41]OFDSenderStorePacket 72936 [05:36:41]StoreOFDPacket docnum=72936 [05:36:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 72 88 07 01 44 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 6A 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1C 01 00 35 04 06 00 FD 0D 28 0E 05 D8 6C B9 D2 7B 15 E3 E0 C4 [05:36:41]CheckFolder [05:36:41]dirname=/storage/ofd_packets [05:36:41]CheckFolder done [05:36:41]ProducePacketName [05:36:41]name=ofd_packets/00072936 [05:36:41]NVStorageSaveData ofd_packets/00072936 [05:36:41]File name is /storage/ofd_packets/00072936 [05:36:41]Write 301 bytes [05:36:41]NVStorageSaveData done [05:36:41]OFDSenderStorePacket done [05:36:41]KKMCreateOFDPacket done [05:36:41]NVStorageSaveData kkm_last_timestamp [05:36:41]File name is /storage/kkm_last_timestamp [05:36:41]Write 4 bytes [05:36:41]NVStorageSaveData done [05:36:41]ExternCall_PrintAddStr [05:36:41]wPrintStart [05:36:41]Write to MH i2c: 01 00 00 6C 04 70 [05:36:41]Write i2c OK [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: 01 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: 01 07 00 [05:36:41]MH_I2C_Read... [05:36:41]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [05:36:41]RasterBufferAndPrint [05:36:41]line Счет N : (1)952536 [05:36:41]line ИНН: 02508201610067 [05:36:41]line Контрольно-Кассовый Чек [05:36:41]line ПРОДАЖА [05:36:41]line ТРК (МРК, ГНК) : 53 [05:36:41]line Товар: 2710124130 [05:36:41]line Аи-92-К-5 [05:36:41]line 15.000 * 0.00 [05:36:41]line = 0.00 [05:36:41]line НДС 12% НСП 1% [05:36:41]line > о реализуемом товаре [05:36:41]line ИТОГО: 0.00 [05:36:41]line НСП 1% : 0.00 [05:36:41]line НДС 12% : 0.00 [05:36:41]line Наличными: 0.00 [05:36:41]line Безнал.: 0.00 [05:36:41]line Место: АЗС № 113 "Партнер Нефть" [05:36:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:36:41]line СНО: Общий режим [05:36:41]line Чек 11 31.10.2024 05:36 [05:36:41]line Смена: 557 ФФД: 1.0 [05:36:41]line ЗНМ: 0300000087 [05:36:41]line РНМ: 0000000000091644 [05:36:41]line Версия ККМ: 001 [05:36:41]line Талоны: Топливная Карта [05:36:41]line 03047 [05:36:41]line ФМ: 0000000000874662 [05:36:41]line ФД: 72936 [05:36:41]line ФПД: 278232948409816 [05:36:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053642&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72936&fm=278232948409816&tin=02508201610067®Number=0000000000091644&sum=0 [05:36:41]written 0, free lines is 4095 [05:36:41]OFD Sender: Processing packet 72936 [packets to send 279, broken 278] [05:36:41]ProducePacketName [05:36:41]name=ofd_packets/00072936 [05:36:41]OFD Sender: To server: pG, [05:36:41]CommunicateWithHost lk.salyk.kg:30040 [05:36:41]ConnectInit lk.salyk.kg [05:36:42]Write to MH i2c: 01 00 00 96 04 9A [05:36:42]Write i2c OK [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: 01 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: 01 07 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: 01 07 00 96 04 00 00 00 00 00 DE 0C 8B [05:36:42]RasterBufferAndPrint [05:36:42]line [05:36:42]line [05:36:42]line [05:36:42]line [05:36:42]line [05:36:42]written 0, free lines is 3300 [05:36:42]MH_Cut [05:36:42]Write to MH i2c: D1 01 00 9D 04 01 73 [05:36:42]Write i2c OK [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: D1 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: D1 01 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: D1 01 00 9D 04 00 72 [05:36:42]Write to MH i2c: 01 00 00 9E 04 A2 [05:36:42]Write i2c OK [05:36:42]MH_I2C_Read... [05:36:43]*** Cut start [05:36:43]*** Partial cut [05:36:43]*** CUTSNS_PIN = 1 [05:36:43]*** CUTSNS_PIN = 0 [05:36:43]Connected sock=11 [05:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 72 88 07 01 44 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 6A 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1C 01 00 35 04 06 00 FD 0D 28 0E 05 D8 6C B9 D2 7B 15 E3 E0 C4 [05:36:43]*** Brake cut motor [05:36:43]Read from MH i2c: 01 [05:36:43]MH_I2C_Read... [05:36:43]*** Stop cut motor [05:36:43]*** Cut end [05:36:43]Read from MH i2c: 01 07 00 [05:36:43]MH_I2C_Read... [05:36:43]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 FF 0F B7 [05:36:43]process_action close_receipt done [05:36:43]requested_data is exist [05:36:43]produce_requested_data [05:36:43]requested_item fm.sn is exist - process it [05:36:43]wFMCommunicate request_size=4 [05:36:43]MH_SAM_APDU [05:36:43]CAPDU: 80 11 00 00 [05:36:43]Write to MH i2c: E2 08 00 9F 04 80 11 00 00 00 00 00 00 1D [05:36:43]Write i2c OK [05:36:43]MH_I2C_Read... [05:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:43]Read from MH i2c: E2 [05:36:43]MH_I2C_Read... [05:36:43]Read from MH i2c: E2 17 00 [05:36:43]MH_I2C_Read... [05:36:43]Read from MH i2c: E2 17 00 9F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 71 [05:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:36:43]wFMCommunicate OK [05:36:43]requested_item fd.num is exist - process it [05:36:43]SAM_PROTO_GetFieldsCounters [05:36:43]wFMCommunicate request_size=4 [05:36:43]MH_SAM_APDU [05:36:43]CAPDU: 80 13 00 00 [05:36:43]Write to MH i2c: E2 08 00 A0 04 80 13 00 00 00 00 00 00 20 [05:36:43]Write i2c OK [05:36:43]MH_I2C_Read... [05:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:36:43]Read from MH i2c: E2 [05:36:43]MH_I2C_Read... [05:36:43]Read from MH i2c: E2 62 00 [05:36:43]MH_I2C_Read... [05:36:43]Read from MH i2c: E2 62 00 A0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E8 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [05:36:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E8 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:36:43]wFMCommunicate OK [05:36:43]SAM_PROTO_GetFieldsCounters done [05:36:43]requested_item shift.num is exist - process it [05:36:43]requested_item shift.opened is exist - process it [05:36:43]req_shift_opened [05:36:43]FM_GetShiftState [05:36:43]SAM_PROTO_GetShiftState [05:36:43]wFMCommunicate request_size=4 [05:36:43]MH_SAM_APDU [05:36:43]CAPDU: 80 13 01 00 [05:36:43]Write to MH i2c: E2 08 00 A1 04 80 13 01 00 00 00 00 00 22 [05:36:43]Write i2c OK [05:36:43]MH_I2C_Read... [05:36:43]Read from MH i2c: E2 [05:36:43]MH_I2C_Read... [05:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 56 EE 47 00 29 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1C 01 00 F4 03 04 00 21 C2 22 67 B6 04 01 00 00 18 C9 20 22 52 97 02 08 [05:36:43]CommunicateWithHost err = 0 [05:36:43]CheckOFDResponse [05:36:43]1017 (14) - 77093643461234 [05:36:43]1041 (16) - 0000000000874662 [05:36:43]1040 (4) - 72936 [05:36:43]1012 (4) - 30.10.2024 23:32 [05:36:43]1206 (1) - 0 [05:36:43]OFD Sender: Remove packet 72936 [05:36:43]ProducePacketName [05:36:43]name=ofd_packets/00072936 [05:36:43]NVStorageDeleteData [05:36:43]Read from MH i2c: E2 0E 00 [05:36:43]MH_I2C_Read... [05:36:43]Read from MH i2c: E2 0E 00 A1 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 CB [05:36:43]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [05:36:43]wFMCommunicate OK [05:36:43]SAM_PROTO_GetShiftState done [05:36:43]FM_GetShiftState done [05:36:43]req_shift_opened done [05:36:43]requested_item shift.open_date is exist - process it [05:36:43]req_shift_open_date [05:36:43]req_shift_open_date done [05:36:43]produce_requested_data done [05:36:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72936,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [05:36:43]process_action_free close_receipt [05:36:43]json_value_free [05:36:43]json_value_free done [05:36:43]process_json_proto returns [05:36:43]Send response to host [05:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72936,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [05:36:43]free response buf [05:36:43]execute_script done [05:36:43]execute_script returns [05:36:43]free content buf [05:36:43]Sock 7.Close socket [05:36:43]Sock 7.Thread stoped [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:17]recv_with_timeout no data received [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:35]recv_with_timeout no data received [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:46]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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:38]recv_with_timeout no data received [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:45]OFD Sender: No OFD packet to send [05:41:45]recv_with_timeout no data received [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:02]recv_with_timeout no data received [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:25]recv_with_timeout no data received [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:21]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:35]recv_with_timeout no data received [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:45]recv_with_timeout no data received [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:24]accept exits with 10 [05:45:24]New connection [05:45:24]New thread 3066473828 created [05:45:24]Thread 3066617188 joined [05:45:24]Waiting for new connection... [05:45:24] Sock 10.Parse request [05:45:24]Sock 10.Check first char [05:45:24]Sock 10.First char is OK [05:45:24]request: POST /json_proto HTTP/1.0 [05:45:24]Method: POST [05:45:24]URL: /json_proto [05:45:24]Method is POST - this is cgi request [05:45:24]url: /json_proto [05:45:24]query_string will be loaded in cgi processing [05:45:24]execute_cgi json_proto POST (null) [05:45:24]execute_cgi path=json_proto method=POST [05:45:24]POST find Content-Length [05:45:24]Host: 172.17.43.195:8080 [05:45:24]Content-Length: 792 [05:45:24]Content-Type: application/json [05:45:24] [05:45:24]POST finish read [05:45:24]Found Content-Length = 792 [05:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:24]execute_script... [05:45:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:24]POST & json_proto [05:45:24]process_json_proto [05:45:24]json parsed OK: [05:45:24]protocol is kg_v1.0 [05:45:24]action value=close_receipt [05:45:24]process_action close_receipt [05:45:24]cmd_close_receipt [05:45:24]MH_GetDate [05:45:24]Write to MH i2c: F0 00 00 A2 04 95 [05:45:24]Write i2c OK [05:45:24]MH_I2C_Read... [05:45:24]Read from MH i2c: F0 [05:45:24]MH_I2C_Read... [05:45:24]Read from MH i2c: F0 09 00 [05:45:24]MH_I2C_Read... [05:45:24]Read from MH i2c: F0 09 00 A2 04 00 76 19 23 67 74 2C AD 66 6A [05:45:24]GetLastDocTimeStamp 1730353002 [05:45:24]current date 1730353526 [05:45:24]FM_GetShiftState [05:45:24]SAM_PROTO_GetShiftState [05:45:24]wFMCommunicate request_size=4 [05:45:24]MH_SAM_APDU [05:45:24]CAPDU: 80 13 01 00 [05:45:24]Write to MH i2c: E2 08 00 A3 04 80 13 01 00 00 00 00 00 24 [05:45:24]Write i2c OK [05:45:24]MH_I2C_Read... [05:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:24]Read from MH i2c: E2 [05:45:24]MH_I2C_Read... [05:45:24]Read from MH i2c: E2 0E 00 [05:45:24]MH_I2C_Read... [05:45:24]Read from MH i2c: E2 0E 00 A3 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 CD [05:45:24]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [05:45:24]wFMCommunicate OK [05:45:24]SAM_PROTO_GetShiftState done [05:45:24]FM_GetShiftState done [05:45:24]opened in 1730333258 [05:45:24]opened+sec_in_day 1730419658 [05:45:24]quantity*price = 0 [05:45:24]sum+1 = 1 [05:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 12 31.10.2024 05:45 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 72937 ФПД: 265752990123761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T054526&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72937&fm=265752990123761&tin=02508201610067®Number=0000000000091644&sum=0 [05:45:25]StoreToDocumentArchive [05:45:25]shift 557 fd 72937 [05:45:25]save to /storage/0557/doc_00072937 [05:45:25]save last doc name /storage/0557/doc_00072937 to /storage/kkm_last_doc_name [05:45:25]save OK [05:45:25]Clear old archive folders... [05:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:45:25]tlvbuf is B6F03AC0 [05:45:25]SAM_PROTO_ClearQueue [05:45:25]wFMCommunicate request_size=4 [05:45:25]MH_SAM_APDU [05:45:25]CAPDU: 80 09 00 00 [05:45:25]Write to MH i2c: E2 08 00 B0 04 80 09 00 00 00 00 00 00 26 [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:45:25]Read from MH i2c: E2 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [05:45:25]RAPDU: 90 00 [05:45:25]wFMCommunicate OK [05:45:25]SAM_PROTO_ClearQueue done [05:45:25]KKMCreateOFDPacket [05:45:25]OFDProtocolAddRootSTLVToBuf [05:45:25]FM_MakeSignedData [05:45:25]FM_MakeSignedData [05:45:25]SAM_PROTO_SignData [05:45:25]wFMCommunicate request_size=4 [05:45:25]MH_SAM_APDU [05:45:25]CAPDU: 80 0D 01 02 [05:45:25]Write to MH i2c: E2 08 00 B1 04 80 0D 01 02 00 00 00 00 2E [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:45:25]Read from MH i2c: E2 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [05:45:25]RAPDU: 90 00 [05:45:25]wFMCommunicate OK [05:45:25]wFMCommunicate request_size=255 [05:45:25]MH_SAM_APDU [05:45:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 76 19 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1C 01 00 35 04 06 00 F1 [05:45:25]Write to MH i2c: E2 02 01 B2 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 76 19 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1C 01 00 35 04 06 00 F1 00 00 8C [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:26]Read from MH i2c: E2 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: E2 03 00 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [05:45:26]RAPDU: 90 00 [05:45:26]wFMCommunicate OK [05:45:26]wFMCommunicate request_size=10 [05:45:26]MH_SAM_APDU [05:45:26]CAPDU: 80 0D 02 02 05 B3 70 93 06 F1 [05:45:26]Write to MH i2c: E2 0D 00 B3 04 80 0D 02 02 05 00 B3 70 93 06 F1 00 00 E8 [05:45:26]Write i2c OK [05:45:26]MH_I2C_Read... [05:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:26]Read from MH i2c: E2 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: E2 03 00 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [05:45:26]RAPDU: 90 00 [05:45:26]wFMCommunicate OK [05:45:26]wFMCommunicate request_size=4 [05:45:26]MH_SAM_APDU [05:45:26]CAPDU: 80 0D 03 02 [05:45:26]Write to MH i2c: E2 08 00 B4 04 80 0D 03 02 00 00 00 00 33 [05:45:26]Write i2c OK [05:45:26]MH_I2C_Read... [05:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:45:26]Read from MH i2c: E2 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: E2 0B 00 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: E2 0B 00 B4 04 00 B5 A3 7D 41 BB 80 5B 3D 90 00 1D [05:45:26]RAPDU: B5 A3 7D 41 BB 80 5B 3D 90 00 [05:45:26]wFMCommunicate OK [05:45:26]SAM_PROTO_SignData done [05:45:26]FM_MakeSignedData done [05:45:26]CreateOFDProtocolMessage [05:45:26]wFMCommunicate request_size=4 [05:45:26]MH_SAM_APDU [05:45:26]CAPDU: 80 11 00 00 [05:45:26]Write to MH i2c: E2 08 00 B5 04 80 11 00 00 00 00 00 00 33 [05:45:26]Write i2c OK [05:45:26]MH_I2C_Read... [05:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:26]Read from MH i2c: E2 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: E2 17 00 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: E2 17 00 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 87 [05:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:45:26]wFMCommunicate OK [05:45:26]CreateOFDProtocolMessage done [05:45:26]OFDSenderStorePacket 72937 [05:45:26]StoreOFDPacket docnum=72937 [05:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 26 45 07 01 74 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 76 19 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1C 01 00 35 04 06 00 F1 B3 70 93 06 F1 B5 A3 7D 41 BB 80 5B 3D [05:45:26]CheckFolder [05:45:26]dirname=/storage/ofd_packets [05:45:26]CheckFolder done [05:45:26]ProducePacketName [05:45:26]name=ofd_packets/00072937 [05:45:26]NVStorageSaveData ofd_packets/00072937 [05:45:26]File name is /storage/ofd_packets/00072937 [05:45:26]Write 301 bytes [05:45:26]NVStorageSaveData done [05:45:26]OFDSenderStorePacket done [05:45:26]KKMCreateOFDPacket done [05:45:26]NVStorageSaveData kkm_last_timestamp [05:45:26]File name is /storage/kkm_last_timestamp [05:45:26]Write 4 bytes [05:45:26]NVStorageSaveData done [05:45:26]ExternCall_PrintAddStr [05:45:26]wPrintStart [05:45:26]Write to MH i2c: 01 00 00 B6 04 BA [05:45:26]Write i2c OK [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: 01 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: 01 07 00 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 FF 0F CF [05:45:26]RasterBufferAndPrint [05:45:26]line Счет N : (1)952537 [05:45:26]line ИНН: 02508201610067 [05:45:26]line Контрольно-Кассовый Чек [05:45:26]line ПРОДАЖА [05:45:26]line ТРК (МРК, ГНК) : 63 [05:45:26]line Товар: 2710124130 [05:45:26]line Аи-92-К-5 [05:45:26]line 25.000 * 0.00 [05:45:26]line = 0.00 [05:45:26]line НДС 12% НСП 1% [05:45:26]line > о реализуемом товаре [05:45:26]line ИТОГО: 0.00 [05:45:26]line НСП 1% : 0.00 [05:45:26]line НДС 12% : 0.00 [05:45:26]line Наличными: 0.00 [05:45:26]line Безнал.: 0.00 [05:45:26]line Место: АЗС № 113 "Партнер Нефть" [05:45:26]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:45:26]line СНО: Общий режим [05:45:26]line Чек 12 31.10.2024 05:45 [05:45:26]line Смена: 557 ФФД: 1.0 [05:45:26]line ЗНМ: 0300000087 [05:45:26]line РНМ: 0000000000091644 [05:45:26]line Версия ККМ: 001 [05:45:26]line Талоны: Топливная Карта [05:45:26]line 02645 [05:45:26]line ФМ: 0000000000874662 [05:45:26]line ФД: 72937 [05:45:26]line ФПД: 265752990123761 [05:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T054526&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72937&fm=265752990123761&tin=02508201610067®Number=0000000000091644&sum=0 [05:45:26]OFD Sender: Processing packet 72937 [packets to send 279, broken 278] [05:45:26]ProducePacketName [05:45:26]name=ofd_packets/00072937 [05:45:26]OFD Sender: To server: pG, [05:45:26]CommunicateWithHost lk.salyk.kg:30040 [05:45:26]ConnectInit lk.salyk.kg [05:45:26]written 0, free lines is 4095 [05:45:26]Write to MH i2c: 01 00 00 E0 04 E4 [05:45:26]Write i2c OK [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: 01 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: 01 07 00 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 DA 0C D1 [05:45:26]RasterBufferAndPrint [05:45:26]line [05:45:26]line [05:45:26]line [05:45:26]line [05:45:26]line [05:45:26]written 0, free lines is 3296 [05:45:26]MH_Cut [05:45:26]Write to MH i2c: D1 01 00 E7 04 01 BD [05:45:26]Write i2c OK [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: D1 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: D1 01 00 [05:45:26]MH_I2C_Read... [05:45:26]Read from MH i2c: D1 01 00 E7 04 00 BC [05:45:26]Write to MH i2c: 01 00 00 E8 04 EC [05:45:26]Write i2c OK [05:45:26]MH_I2C_Read... [05:45:27]*** Cut start [05:45:27]*** Partial cut [05:45:27]*** CUTSNS_PIN = 1 [05:45:27]*** CUTSNS_PIN = 0 [05:45:28]*** Brake cut motor [05:45:28]Read from MH i2c: 01 [05:45:28]MH_I2C_Read... [05:45:28]*** Stop cut motor [05:45:28]*** Cut end [05:45:28]Read from MH i2c: 01 07 00 [05:45:28]MH_I2C_Read... [05:45:28]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 FF 0F 01 [05:45:28]process_action close_receipt done [05:45:28]requested_data is exist [05:45:28]produce_requested_data [05:45:28]requested_item fm.sn is exist - process it [05:45:28]wFMCommunicate request_size=4 [05:45:28]MH_SAM_APDU [05:45:28]CAPDU: 80 11 00 00 [05:45:28]Write to MH i2c: E2 08 00 E9 04 80 11 00 00 00 00 00 00 67 [05:45:28]Write i2c OK [05:45:28]MH_I2C_Read... [05:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:28]Read from MH i2c: E2 [05:45:28]MH_I2C_Read... [05:45:28]Read from MH i2c: E2 17 00 [05:45:28]MH_I2C_Read... [05:45:28]Read from MH i2c: E2 17 00 E9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BB [05:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:45:28]wFMCommunicate OK [05:45:28]requested_item fd.num is exist - process it [05:45:28]SAM_PROTO_GetFieldsCounters [05:45:28]wFMCommunicate request_size=4 [05:45:28]MH_SAM_APDU [05:45:28]CAPDU: 80 13 00 00 [05:45:28]Write to MH i2c: E2 08 00 EA 04 80 13 00 00 00 00 00 00 6A [05:45:28]Write i2c OK [05:45:28]MH_I2C_Read... [05:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:45:28]Read from MH i2c: E2 [05:45:28]MH_I2C_Read... [05:45:28]Read from MH i2c: E2 62 00 [05:45:28]MH_I2C_Read... [05:45:28]Read from MH i2c: E2 62 00 EA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E9 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [05:45: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E9 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:45:28]wFMCommunicate OK [05:45:28]SAM_PROTO_GetFieldsCounters done [05:45:28]requested_item shift.num is exist - process it [05:45:28]requested_item shift.opened is exist - process it [05:45:28]req_shift_opened [05:45:28]FM_GetShiftState [05:45:28]SAM_PROTO_GetShiftState [05:45:28]wFMCommunicate request_size=4 [05:45:28]MH_SAM_APDU [05:45:28]CAPDU: 80 13 01 00 [05:45:28]Write to MH i2c: E2 08 00 EB 04 80 13 01 00 00 00 00 00 6C [05:45:28]Write i2c OK [05:45:28]MH_I2C_Read... [05:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:28]Read from MH i2c: E2 [05:45:28]MH_I2C_Read... [05:45:28]Read from MH i2c: E2 0E 00 [05:45:28]MH_I2C_Read... [05:45:28]Read from MH i2c: E2 0E 00 EB 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 15 [05:45:28]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [05:45:28]wFMCommunicate OK [05:45:28]SAM_PROTO_GetShiftState done [05:45:28]FM_GetShiftState done [05:45:28]req_shift_opened done [05:45:28]requested_item shift.open_date is exist - process it [05:45:28]req_shift_open_date [05:45:28]req_shift_open_date done [05:45:28]produce_requested_data done [05:45:28]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72937,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [05:45:28]process_action_free close_receipt [05:45:28]json_value_free [05:45:28]json_value_free done [05:45:28]process_json_proto returns [05:45:28]Send response to host [05:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72937,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [05:45:28]free response buf [05:45:28]execute_script done [05:45:28]execute_script returns [05:45:28]free content buf [05:45:28]Sock 10.Close socket [05:45:28]Sock 10.Thread stoped [05:45:31]Connected sock=11 [05:45:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 26 45 07 01 74 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 76 19 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1C 01 00 35 04 06 00 F1 B3 70 93 06 F1 B5 A3 7D 41 BB 80 5B 3D [05:45:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CA F3 47 00 6F A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1C 01 00 F4 03 04 00 31 C4 22 67 B6 04 01 00 00 B1 99 7A BA 73 EF 1D 19 [05:45:31]CommunicateWithHost err = 0 [05:45:31]CheckOFDResponse [05:45:31]1017 (14) - 77093643461234 [05:45:31]1041 (16) - 0000000000874662 [05:45:31]1040 (4) - 72937 [05:45:31]1012 (4) - 30.10.2024 23:41 [05:45:31]1206 (1) - 0 [05:45:31]OFD Sender: Remove packet 72937 [05:45:31]ProducePacketName [05:45:31]name=ofd_packets/00072937 [05:45:31]NVStorageDeleteData [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:41]recv_with_timeout no data received [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:11]recv_with_timeout no data received [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:34]recv_with_timeout no data received [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:26]recv_with_timeout no data received [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:36]recv_with_timeout no data received [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]recv_with_timeout no data received [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]recv_with_timeout no data received [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]recv_with_timeout no data received [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:20]recv_with_timeout no data received [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:52]recv_with_timeout no data received [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:11]recv_with_timeout no data received [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:56]recv_with_timeout no data received [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:03]recv_with_timeout no data received [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:23]accept exits with 7 [05:56:23]New connection [05:56:23]New thread 3066617188 created [05:56:23]Thread 3066473828 joined [05:56:23]Waiting for new connection... [05:56:23] Sock 7.Parse request [05:56:23]Sock 7.Check first char [05:56:23]Sock 7.First char is OK [05:56:23]request: POST /json_proto HTTP/1.0 [05:56:23]Method: POST [05:56:23]URL: /json_proto [05:56:23]Method is POST - this is cgi request [05:56:23]url: /json_proto [05:56:23]query_string will be loaded in cgi processing [05:56:23]execute_cgi json_proto POST (null) [05:56:23]execute_cgi path=json_proto method=POST [05:56:23]POST find Content-Length [05:56:23]Host: 172.17.43.195:8080 [05:56:23]Content-Length: 792 [05:56:23]Content-Type: application/json [05:56:23] [05:56:23]POST finish read [05:56:23]Found Content-Length = 792 [05:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:56:23]execute_script... [05:56:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:56:23]POST & json_proto [05:56:23]process_json_proto [05:56:23]json parsed OK: [05:56:23]protocol is kg_v1.0 [05:56:23]action value=close_receipt [05:56:23]process_action close_receipt [05:56:23]cmd_close_receipt [05:56:23]MH_GetDate [05:56:23]Write to MH i2c: F0 00 00 EC 04 DF [05:56:23]Write i2c OK [05:56:23]MH_I2C_Read... [05:56:23]Read from MH i2c: F0 [05:56:23]MH_I2C_Read... [05:56:23]Read from MH i2c: F0 09 00 [05:56:23]MH_I2C_Read... [05:56:23]Read from MH i2c: F0 09 00 EC 04 00 09 1C 23 67 74 2C AD 66 4A [05:56:23]GetLastDocTimeStamp 1730353526 [05:56:23]current date 1730354185 [05:56:23]FM_GetShiftState [05:56:23]SAM_PROTO_GetShiftState [05:56:23]wFMCommunicate request_size=4 [05:56:23]MH_SAM_APDU [05:56:23]CAPDU: 80 13 01 00 [05:56:23]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [05:56:23]Write i2c OK [05:56:23]MH_I2C_Read... [05:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:23]Read from MH i2c: E2 [05:56:23]MH_I2C_Read... [05:56:23]Read from MH i2c: E2 0E 00 [05:56:23]MH_I2C_Read... [05:56:23]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 17 [05:56:23]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [05:56:23]wFMCommunicate OK [05:56:23]SAM_PROTO_GetShiftState done [05:56:23]FM_GetShiftState done [05:56:23]opened in 1730333258 [05:56:23]opened+sec_in_day 1730419658 [05:56:23]quantity*price = 0 [05:56:23]sum+1 = 1 [05:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 13 31.10.2024 05:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72938 ФПД: 3474030159929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T055626&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72938&fm=3474030159929&tin=02508201610067®Number=0000000000091644&sum=0 [05:56:25]StoreToDocumentArchive [05:56:25]shift 557 fd 72938 [05:56:25]save to /storage/0557/doc_00072938 [05:56:25]save last doc name /storage/0557/doc_00072938 to /storage/kkm_last_doc_name [05:56:25]save OK [05:56:25]Clear old archive folders... [05:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:56:25]tlvbuf is B6F03670 [05:56:25]SAM_PROTO_ClearQueue [05:56:25]wFMCommunicate request_size=4 [05:56:25]MH_SAM_APDU [05:56:25]CAPDU: 80 09 00 00 [05:56:25]Write to MH i2c: E2 08 00 FA 04 80 09 00 00 00 00 00 00 70 [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:56:25]Read from MH i2c: E2 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [05:56:25]RAPDU: 90 00 [05:56:25]wFMCommunicate OK [05:56:25]SAM_PROTO_ClearQueue done [05:56:25]KKMCreateOFDPacket [05:56:25]OFDProtocolAddRootSTLVToBuf [05:56:25]FM_MakeSignedData [05:56:25]FM_MakeSignedData [05:56:25]SAM_PROTO_SignData [05:56:25]wFMCommunicate request_size=4 [05:56:25]MH_SAM_APDU [05:56:25]CAPDU: 80 0D 01 02 [05:56:25]Write to MH i2c: E2 08 00 FB 04 80 0D 01 02 00 00 00 00 78 [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 [05:56:25]MH_I2C_Read... [05:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:56:25]Read from MH i2c: E2 03 00 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [05:56:25]RAPDU: 90 00 [05:56:25]wFMCommunicate OK [05:56:25]wFMCommunicate request_size=255 [05:56:25]MH_SAM_APDU [05:56:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0A 1C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EA 1C 01 00 35 04 06 00 03 [05:56:25]Write to MH i2c: E2 02 01 FC 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0A 1C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EA 1C 01 00 35 04 06 00 03 00 00 AF [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:25]Read from MH i2c: E2 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [05:56:25]RAPDU: 90 00 [05:56:25]wFMCommunicate OK [05:56:25]wFMCommunicate request_size=10 [05:56:25]MH_SAM_APDU [05:56:25]CAPDU: 80 0D 02 02 05 28 DC 55 68 39 [05:56:25]Write to MH i2c: E2 0D 00 FD 04 80 0D 02 02 05 00 28 DC 55 68 39 00 00 7F [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:25]Read from MH i2c: E2 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [05:56:25]RAPDU: 90 00 [05:56:25]wFMCommunicate OK [05:56:25]wFMCommunicate request_size=4 [05:56:25]MH_SAM_APDU [05:56:25]CAPDU: 80 0D 03 02 [05:56:25]Write to MH i2c: E2 08 00 FE 04 80 0D 03 02 00 00 00 00 7D [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:56:25]Read from MH i2c: E2 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 0B 00 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 0B 00 FE 04 00 3A EB 1A F9 23 08 AC E4 90 00 71 [05:56:25]RAPDU: 3A EB 1A F9 23 08 AC E4 90 00 [05:56:25]wFMCommunicate OK [05:56:25]SAM_PROTO_SignData done [05:56:25]FM_MakeSignedData done [05:56:25]CreateOFDProtocolMessage [05:56:25]wFMCommunicate request_size=4 [05:56:25]MH_SAM_APDU [05:56:25]CAPDU: 80 11 00 00 [05:56:25]Write to MH i2c: E2 08 00 FF 04 80 11 00 00 00 00 00 00 7D [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:25]Read from MH i2c: E2 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 17 00 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 17 00 FF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D1 [05:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:56:25]wFMCommunicate OK [05:56:25]CreateOFDProtocolMessage done [05:56:25]OFDSenderStorePacket 72938 [05:56:25]StoreOFDPacket docnum=72938 [05:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 98 C1 07 01 76 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0A 1C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EA 1C 01 00 35 04 06 00 03 28 DC 55 68 39 3A EB 1A F9 23 08 AC E4 [05:56:25]CheckFolder [05:56:25]dirname=/storage/ofd_packets [05:56:25]CheckFolder done [05:56:25]ProducePacketName [05:56:25]name=ofd_packets/00072938 [05:56:25]NVStorageSaveData ofd_packets/00072938 [05:56:25]File name is /storage/ofd_packets/00072938 [05:56:25]Write 301 bytes [05:56:25]NVStorageSaveData done [05:56:25]OFDSenderStorePacket done [05:56:25]KKMCreateOFDPacket done [05:56:25]NVStorageSaveData kkm_last_timestamp [05:56:25]File name is /storage/kkm_last_timestamp [05:56:25]Write 4 bytes [05:56:25]NVStorageSaveData done [05:56:25]ExternCall_PrintAddStr [05:56:25]wPrintStart [05:56:25]Write to MH i2c: 01 00 00 00 05 05 [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: 01 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: 01 07 00 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 FF 0F 1A [05:56:25]RasterBufferAndPrint [05:56:25]line Счет N : (1)952538 [05:56:25]line ИНН: 02508201610067 [05:56:25]line Контрольно-Кассовый Чек [05:56:25]line ПРОДАЖА [05:56:25]line ТРК (МРК, ГНК) : 42 [05:56:25]line Товар: 2710124130 [05:56:25]line Аи-92-К-5 [05:56:25]line 10.000 * 0.00 [05:56:25]line = 0.00 [05:56:25]line НДС 12% НСП 1% [05:56:25]line > о реализуемом товаре [05:56:25]line ИТОГО: 0.00 [05:56:25]line НСП 1% : 0.00 [05:56:25]line НДС 12% : 0.00 [05:56:25]line Наличными: 0.00 [05:56:25]line Безнал.: 0.00 [05:56:25]line Место: АЗС № 113 "Партнер Нефть" [05:56:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:56:25]line СНО: Общий режим [05:56:25]line Чек 13 31.10.2024 05:56 [05:56:25]line Смена: 557 ФФД: 1.0 [05:56:25]line ЗНМ: 0300000087 [05:56:25]line РНМ: 0000000000091644 [05:56:25]line Версия ККМ: 001 [05:56:25]line Талоны: Топливная Карта [05:56:25]line 03047 [05:56:25]line ФМ: 0000000000874662 [05:56:25]line ФД: 72938 [05:56:25]line ФПД: 3474030159929 [05:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T055626&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72938&fm=3474030159929&tin=02508201610067®Number=0000000000091644&sum=0 [05:56:25]OFD Sender: Processing packet 72938 [packets to send 279, broken 278] [05:56:25]ProducePacketName [05:56:25]name=ofd_packets/00072938 [05:56:25]OFD Sender: To server: pG, [05:56:25]CommunicateWithHost lk.salyk.kg:30040 [05:56:25]ConnectInit lk.salyk.kg [05:56:25]written 0, free lines is 4095 [05:56:26]Write to MH i2c: 01 00 00 2A 05 2F [05:56:26]Write i2c OK [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: 01 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: 01 07 00 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 DA 0C 1C [05:56:26]RasterBufferAndPrint [05:56:26]line [05:56:26]line [05:56:26]line [05:56:26]line [05:56:26]line [05:56:26]written 0, free lines is 3296 [05:56:26]MH_Cut [05:56:26]Write to MH i2c: D1 01 00 31 05 01 08 [05:56:26]Write i2c OK [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: D1 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: D1 01 00 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: D1 01 00 31 05 00 07 [05:56:26]Write to MH i2c: 01 00 00 32 05 37 [05:56:26]Write i2c OK [05:56:26]MH_I2C_Read... [05:56:27]*** Cut start [05:56:27]*** Partial cut [05:56:27]*** CUTSNS_PIN = 1 [05:56:27]*** CUTSNS_PIN = 0 [05:56:27]*** Brake cut motor [05:56:27]Read from MH i2c: 01 [05:56:27]MH_I2C_Read... [05:56:27]*** Stop cut motor [05:56:27]*** Cut end [05:56:27]Read from MH i2c: 01 07 00 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 FF 0F 4C [05:56:27]process_action close_receipt done [05:56:27]requested_data is exist [05:56:27]produce_requested_data [05:56:27]requested_item fm.sn is exist - process it [05:56:27]wFMCommunicate request_size=4 [05:56:27]MH_SAM_APDU [05:56:27]CAPDU: 80 11 00 00 [05:56:27]Write to MH i2c: E2 08 00 33 05 80 11 00 00 00 00 00 00 B2 [05:56:27]Write i2c OK [05:56:27]MH_I2C_Read... [05:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:27]Read from MH i2c: E2 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: E2 17 00 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: E2 17 00 33 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 06 [05:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:56:27]wFMCommunicate OK [05:56:27]requested_item fd.num is exist - process it [05:56:27]SAM_PROTO_GetFieldsCounters [05:56:27]wFMCommunicate request_size=4 [05:56:27]MH_SAM_APDU [05:56:27]CAPDU: 80 13 00 00 [05:56:27]Write to MH i2c: E2 08 00 34 05 80 13 00 00 00 00 00 00 B5 [05:56:27]Write i2c OK [05:56:27]MH_I2C_Read... [05:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:56:27]Read from MH i2c: E2 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: E2 62 00 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: E2 62 00 34 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EA 1C 01 00 0E 04 04 00 2D 02 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 33 [05:56:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EA 1C 01 00 0E 04 04 00 2D 02 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 [05:56:27]wFMCommunicate OK [05:56:27]SAM_PROTO_GetFieldsCounters done [05:56:27]requested_item shift.num is exist - process it [05:56:27]requested_item shift.opened is exist - process it [05:56:27]req_shift_opened [05:56:27]FM_GetShiftState [05:56:27]SAM_PROTO_GetShiftState [05:56:27]wFMCommunicate request_size=4 [05:56:27]MH_SAM_APDU [05:56:27]CAPDU: 80 13 01 00 [05:56:27]Write to MH i2c: E2 08 00 35 05 80 13 01 00 00 00 00 00 B7 [05:56:27]Write i2c OK [05:56:27]MH_I2C_Read... [05:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:27]Read from MH i2c: E2 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: E2 0E 00 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: E2 0E 00 35 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 60 [05:56:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [05:56:27]wFMCommunicate OK [05:56:27]SAM_PROTO_GetShiftState done [05:56:27]FM_GetShiftState done [05:56:27]req_shift_opened done [05:56:27]requested_item shift.open_date is exist - process it [05:56:27]req_shift_open_date [05:56:27]req_shift_open_date done [05:56:27]produce_requested_data done [05:56:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72938,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [05:56:27]process_action_free close_receipt [05:56:27]json_value_free [05:56:27]json_value_free done [05:56:27]process_json_proto returns [05:56:27]Send response to host [05:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72938,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [05:56:27]free response buf [05:56:27]execute_script done [05:56:27]execute_script returns [05:56:27]free content buf [05:56:27]Sock 7.Close socket [05:56:27]Sock 7.Thread stoped [05:56:30]ConnectInit Can't take IP for lk.salyk.kg [05:56:30]CommunicateWithHost connect error [05:56:30]CommunicateWithHost err = -1 [05:56:30]OFD Sender: Server communicate error [05:56:30]recv_with_timeout no data received [05:56:35]OFD Sender: Processing packet 72938 [packets to send 279, broken 278] [05:56:35]ProducePacketName [05:56:35]name=ofd_packets/00072938 [05:56:35]OFD Sender: To server: pG, [05:56:35]CommunicateWithHost lk.salyk.kg:30040 [05:56:35]ConnectInit lk.salyk.kg [05:56:37]Connected sock=10 [05:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 98 C1 07 01 76 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0A 1C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EA 1C 01 00 35 04 06 00 03 28 DC 55 68 39 3A EB 1A F9 23 08 AC E4 [05:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CA 35 47 00 52 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 34 36 36 32 10 04 04 00 EA 1C 01 00 F4 03 04 00 CB C6 22 67 B6 04 01 00 00 DF 59 7F 9B 97 81 BF B5 [05:56:37]CommunicateWithHost err = 0 [05:56:37]CheckOFDResponse [05:56:37]1017 (14) - 77093643461234 [05:56:37]1041 (16) - 0000000000874662 [05:56:37]1040 (4) - 72938 [05:56:37]1012 (4) - 30.10.2024 23:52 [05:56:37]1206 (1) - 0 [05:56:37]OFD Sender: Remove packet 72938 [05:56:37]ProducePacketName [05:56:37]name=ofd_packets/00072938 [05:56:37]NVStorageDeleteData [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:01]recv_with_timeout no data received [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:37]recv_with_timeout no data received [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:55]recv_with_timeout no data received [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:56]recv_with_timeout no data received [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:09]recv_with_timeout no data received [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:30]recv_with_timeout no data received [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:57]recv_with_timeout no data received [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:42]recv_with_timeout no data received [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]recv_with_timeout no data received [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:04]recv_with_timeout no data received [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]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:09]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:09]OFD Sender: No OFD packet to send [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:44]recv_with_timeout no data received [06:07:47]accept exits with 9 [06:07:47]New connection [06:07:47]New thread 3066473828 created [06:07:47]Thread 3066617188 joined [06:07:47]Waiting for new connection... [06:07:47] Sock 9.Parse request [06:07:47]Sock 9.Check first char [06:07:47]Sock 9.First char is OK [06:07:47]request: POST /json_proto HTTP/1.0 [06:07:47]Method: POST [06:07:47]URL: /json_proto [06:07:47]Method is POST - this is cgi request [06:07:47]url: /json_proto [06:07:47]query_string will be loaded in cgi processing [06:07:47]execute_cgi json_proto POST (null) [06:07:47]execute_cgi path=json_proto method=POST [06:07:47]POST find Content-Length [06:07:47]Host: 172.17.43.195:8080 [06:07:47]Content-Length: 792 [06:07:47]Content-Type: application/json [06:07:47] [06:07:47]POST finish read [06:07:47]Found Content-Length = 792 [06:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:47]execute_script... [06:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:47]POST & json_proto [06:07:47]process_json_proto [06:07:47]json parsed OK: [06:07:47]protocol is kg_v1.0 [06:07:47]action value=close_receipt [06:07:47]process_action close_receipt [06:07:47]cmd_close_receipt [06:07:47]MH_GetDate [06:07:47]Write to MH i2c: F0 00 00 36 05 2A [06:07:47]Write i2c OK [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: F0 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: F0 09 00 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: F0 09 00 36 05 00 B5 1E 23 67 74 2C AD 66 43 [06:07:47]GetLastDocTimeStamp 1730354186 [06:07:47]current date 1730354869 [06:07:47]FM_GetShiftState [06:07:47]SAM_PROTO_GetShiftState [06:07:47]wFMCommunicate request_size=4 [06:07:47]MH_SAM_APDU [06:07:47]CAPDU: 80 13 01 00 [06:07:47]Write to MH i2c: E2 08 00 37 05 80 13 01 00 00 00 00 00 B9 [06:07:47]Write i2c OK [06:07:47]MH_I2C_Read... [06:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:47]Read from MH i2c: E2 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 0E 00 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 0E 00 37 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 62 [06:07:47]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [06:07:47]wFMCommunicate OK [06:07:47]SAM_PROTO_GetShiftState done [06:07:47]FM_GetShiftState done [06:07:47]opened in 1730333258 [06:07:47]opened+sec_in_day 1730419658 [06:07:47]quantity*price = 0 [06:07:47]sum+1 = 1 [06:07:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 14 31.10.2024 06:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72939 ФПД: 125181150960278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060749&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72939&fm=125181150960278&tin=02508201610067®Number=0000000000091644&sum=0 [06:07:48]StoreToDocumentArchive [06:07:48]shift 557 fd 72939 [06:07:48]save to /storage/0557/doc_00072939 [06:07:48]save last doc name /storage/0557/doc_00072939 to /storage/kkm_last_doc_name [06:07:48]save OK [06:07:48]Clear old archive folders... [06:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:07:48]tlvbuf is 01625960 [06:07:48]SAM_PROTO_ClearQueue [06:07:48]wFMCommunicate request_size=4 [06:07:48]MH_SAM_APDU [06:07:48]CAPDU: 80 09 00 00 [06:07:48]Write to MH i2c: E2 08 00 44 05 80 09 00 00 00 00 00 00 BB [06:07:48]Write i2c OK [06:07:48]MH_I2C_Read... [06:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:48]Read from MH i2c: E2 [06:07:48]MH_I2C_Read... [06:07:48]Read from MH i2c: E2 03 00 [06:07:48]MH_I2C_Read... [06:07:48]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [06:07:48]RAPDU: 90 00 [06:07:48]wFMCommunicate OK [06:07:48]SAM_PROTO_ClearQueue done [06:07:48]KKMCreateOFDPacket [06:07:48]OFDProtocolAddRootSTLVToBuf [06:07:48]FM_MakeSignedData [06:07:48]FM_MakeSignedData [06:07:48]SAM_PROTO_SignData [06:07:48]wFMCommunicate request_size=4 [06:07:48]MH_SAM_APDU [06:07:48]CAPDU: 80 0D 01 02 [06:07:48]Write to MH i2c: E2 08 00 45 05 80 0D 01 02 00 00 00 00 C3 [06:07:48]Write i2c OK [06:07:48]MH_I2C_Read... [06:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:49]Read from MH i2c: E2 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 03 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [06:07:49]RAPDU: 90 00 [06:07:49]wFMCommunicate OK [06:07:49]wFMCommunicate request_size=255 [06:07:49]MH_SAM_APDU [06:07:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B5 1E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1C 01 00 35 04 06 00 71 [06:07:49]Write to MH i2c: E2 02 01 46 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B5 1E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1C 01 00 35 04 06 00 71 00 00 17 [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:49]OFD Sender: No OFD packet to send [06:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:49]Read from MH i2c: E2 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 03 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [06:07:49]RAPDU: 90 00 [06:07:49]wFMCommunicate OK [06:07:49]wFMCommunicate request_size=10 [06:07:49]MH_SAM_APDU [06:07:49]CAPDU: 80 0D 02 02 05 DA 02 09 1A 96 [06:07:49]Write to MH i2c: E2 0D 00 47 05 80 0D 02 02 05 00 DA 02 09 1A 96 00 00 65 [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:49]Read from MH i2c: E2 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 03 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [06:07:49]RAPDU: 90 00 [06:07:49]wFMCommunicate OK [06:07:49]wFMCommunicate request_size=4 [06:07:49]MH_SAM_APDU [06:07:49]CAPDU: 80 0D 03 02 [06:07:49]Write to MH i2c: E2 08 00 48 05 80 0D 03 02 00 00 00 00 C8 [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:49]Read from MH i2c: E2 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 0B 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 0B 00 48 05 00 84 89 75 05 50 A8 54 05 90 00 A1 [06:07:49]RAPDU: 84 89 75 05 50 A8 54 05 90 00 [06:07:49]wFMCommunicate OK [06:07:49]SAM_PROTO_SignData done [06:07:49]FM_MakeSignedData done [06:07:49]CreateOFDProtocolMessage [06:07:49]wFMCommunicate request_size=4 [06:07:49]MH_SAM_APDU [06:07:49]CAPDU: 80 11 00 00 [06:07:49]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:49]Read from MH i2c: E2 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 17 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1C [06:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:07:49]wFMCommunicate OK [06:07:49]CreateOFDProtocolMessage done [06:07:49]OFDSenderStorePacket 72939 [06:07:49]StoreOFDPacket docnum=72939 [06:07:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 81 07 01 DF 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B5 1E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1C 01 00 35 04 06 00 71 DA 02 09 1A 96 84 89 75 05 50 A8 54 05 [06:07:49]CheckFolder [06:07:49]dirname=/storage/ofd_packets [06:07:49]CheckFolder done [06:07:49]ProducePacketName [06:07:49]name=ofd_packets/00072939 [06:07:49]NVStorageSaveData ofd_packets/00072939 [06:07:49]File name is /storage/ofd_packets/00072939 [06:07:49]Write 301 bytes [06:07:49]NVStorageSaveData done [06:07:49]OFDSenderStorePacket done [06:07:49]KKMCreateOFDPacket done [06:07:49]NVStorageSaveData kkm_last_timestamp [06:07:49]File name is /storage/kkm_last_timestamp [06:07:49]Write 4 bytes [06:07:49]NVStorageSaveData done [06:07:49]ExternCall_PrintAddStr [06:07:49]wPrintStart [06:07:49]Write to MH i2c: 01 00 00 4A 05 4F [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: 01 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: 01 07 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [06:07:49]RasterBufferAndPrint [06:07:49]line Счет N : (1)952539 [06:07:49]line ИНН: 02508201610067 [06:07:49]line Контрольно-Кассовый Чек [06:07:49]line ПРОДАЖА [06:07:49]line ТРК (МРК, ГНК) : 63 [06:07:49]line Товар: 2710124130 [06:07:49]line Аи-92-К-5 [06:07:49]line 10.000 * 0.00 [06:07:49]line = 0.00 [06:07:49]line НДС 12% НСП 1% [06:07:49]line > о реализуемом товаре [06:07:49]line ИТОГО: 0.00 [06:07:49]line НСП 1% : 0.00 [06:07:49]line НДС 12% : 0.00 [06:07:49]line Наличными: 0.00 [06:07:49]line Безнал.: 0.00 [06:07:49]line Место: АЗС № 113 "Партнер Нефть" [06:07:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:07:49]line СНО: Общий режим [06:07:49]line Чек 14 31.10.2024 06:07 [06:07:49]line Смена: 557 ФФД: 1.0 [06:07:49]line ЗНМ: 0300000087 [06:07:49]line РНМ: 0000000000091644 [06:07:49]line Версия ККМ: 001 [06:07:49]line Талоны: Топливная Карта [06:07:49]line 03047 [06:07:49]line ФМ: 0000000000874662 [06:07:49]line ФД: 72939 [06:07:49]line ФПД: 125181150960278 [06:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060749&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72939&fm=125181150960278&tin=02508201610067®Number=0000000000091644&sum=0 [06:07:49]written 0, free lines is 4095 [06:07:49]OFD Sender: Processing packet 72939 [packets to send 279, broken 278] [06:07:49]ProducePacketName [06:07:49]name=ofd_packets/00072939 [06:07:49]OFD Sender: To server: pG, [06:07:49]CommunicateWithHost lk.salyk.kg:30040 [06:07:49]ConnectInit lk.salyk.kg [06:07:49]Write to MH i2c: 01 00 00 74 05 79 [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: 01 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: 01 07 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 DA 0C 66 [06:07:49]RasterBufferAndPrint [06:07:49]line [06:07:49]line [06:07:49]line [06:07:49]line [06:07:49]line [06:07:49]written 0, free lines is 3296 [06:07:49]MH_Cut [06:07:49]Write to MH i2c: D1 01 00 7B 05 01 52 [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: D1 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: D1 01 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: D1 01 00 7B 05 00 51 [06:07:49]Write to MH i2c: 01 00 00 7C 05 81 [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:50]*** Cut start [06:07:50]*** Partial cut [06:07:50]*** CUTSNS_PIN = 1 [06:07:50]*** CUTSNS_PIN = 0 [06:07:50]*** Brake cut motor [06:07:51]Read from MH i2c: 01 [06:07:51]MH_I2C_Read... [06:07:51]*** Stop cut motor [06:07:51]*** Cut end [06:07:51]Read from MH i2c: 01 07 00 [06:07:51]MH_I2C_Read... [06:07:51]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 FF 0F 96 [06:07:51]process_action close_receipt done [06:07:51]requested_data is exist [06:07:51]produce_requested_data [06:07:51]requested_item fm.sn is exist - process it [06:07:51]wFMCommunicate request_size=4 [06:07:51]MH_SAM_APDU [06:07:51]CAPDU: 80 11 00 00 [06:07:51]Write to MH i2c: E2 08 00 7D 05 80 11 00 00 00 00 00 00 FC [06:07:51]Write i2c OK [06:07:51]MH_I2C_Read... [06:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:51]Read from MH i2c: E2 [06:07:51]MH_I2C_Read... [06:07:51]Read from MH i2c: E2 17 00 [06:07:51]MH_I2C_Read... [06:07:51]Read from MH i2c: E2 17 00 7D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 50 [06:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:07:51]wFMCommunicate OK [06:07:51]requested_item fd.num is exist - process it [06:07:51]SAM_PROTO_GetFieldsCounters [06:07:51]wFMCommunicate request_size=4 [06:07:51]MH_SAM_APDU [06:07:51]CAPDU: 80 13 00 00 [06:07:51]Write to MH i2c: E2 08 00 7E 05 80 13 00 00 00 00 00 00 FF [06:07:51]Write i2c OK [06:07:51]MH_I2C_Read... [06:07:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:51]Read from MH i2c: E2 [06:07:51]MH_I2C_Read... [06:07:51]Read from MH i2c: E2 62 00 [06:07:51]MH_I2C_Read... [06:07:51]Read from MH i2c: E2 62 00 7E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EB 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [06:07:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EB 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:07:51]wFMCommunicate OK [06:07:51]SAM_PROTO_GetFieldsCounters done [06:07:51]requested_item shift.num is exist - process it [06:07:51]requested_item shift.opened is exist - process it [06:07:51]req_shift_opened [06:07:51]FM_GetShiftState [06:07:51]SAM_PROTO_GetShiftState [06:07:51]wFMCommunicate request_size=4 [06:07:51]MH_SAM_APDU [06:07:51]CAPDU: 80 13 01 00 [06:07:51]Write to MH i2c: E2 08 00 7F 05 80 13 01 00 00 00 00 00 01 [06:07:51]Write i2c OK [06:07:51]MH_I2C_Read... [06:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:51]Read from MH i2c: E2 [06:07:51]MH_I2C_Read... [06:07:51]Read from MH i2c: E2 0E 00 [06:07:51]MH_I2C_Read... [06:07:51]Read from MH i2c: E2 0E 00 7F 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 AA [06:07:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [06:07:51]wFMCommunicate OK [06:07:51]SAM_PROTO_GetShiftState done [06:07:51]FM_GetShiftState done [06:07:51]req_shift_opened done [06:07:51]requested_item shift.open_date is exist - process it [06:07:51]req_shift_open_date [06:07:51]req_shift_open_date done [06:07:51]produce_requested_data done [06:07:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72939,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [06:07:51]process_action_free close_receipt [06:07:51]json_value_free [06:07:51]json_value_free done [06:07:51]process_json_proto returns [06:07:51]Send response to host [06:07:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72939,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [06:07:51]free response buf [06:07:51]execute_script done [06:07:51]execute_script returns [06:07:51]free content buf [06:07:51]Sock 9.Close socket [06:07:51]Sock 9.Thread stoped [06:07:55]Connected sock=10 [06:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 81 07 01 DF 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B5 1E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1C 01 00 35 04 06 00 71 DA 02 09 1A 96 84 89 75 05 50 A8 54 05 [06:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8B 36 47 00 D1 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1C 01 00 F4 03 04 00 72 C9 22 67 B6 04 01 00 00 63 FD 82 68 73 AC 71 8D [06:07:55]CommunicateWithHost err = 0 [06:07:55]CheckOFDResponse [06:07:55]1017 (14) - 77093643461234 [06:07:55]1041 (16) - 0000000000874662 [06:07:55]1040 (4) - 72939 [06:07:55]1012 (4) - 31.10.2024 00:04 [06:07:55]1206 (1) - 0 [06:07:55]OFD Sender: Remove packet 72939 [06:07:55]ProducePacketName [06:07:55]name=ofd_packets/00072939 [06:07:55]NVStorageDeleteData [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]recv_with_timeout no data received [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:51]recv_with_timeout no data received [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:21]recv_with_timeout no data received [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]recv_with_timeout no data received [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:44]recv_with_timeout no data received [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:54]recv_with_timeout no data received [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:12]recv_with_timeout no data received [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:48]recv_with_timeout no data received [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:47]recv_with_timeout no data received [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:04]recv_with_timeout no data received [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:22]recv_with_timeout no data received [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:41]recv_with_timeout no data received [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:53]recv_with_timeout no data received [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:34]recv_with_timeout no data received [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:52]recv_with_timeout no data received [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:01]recv_with_timeout no data received [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:00]recv_with_timeout no data received [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:11]recv_with_timeout no data received [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:29]recv_with_timeout no data received [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:43]recv_with_timeout no data received [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:06]recv_with_timeout no data received [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:26]recv_with_timeout no data received [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:45]recv_with_timeout no data received [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:08]recv_with_timeout no data received [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:24]recv_with_timeout no data received [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:21]recv_with_timeout no data received [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:31]recv_with_timeout no data received [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:54]recv_with_timeout no data received [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:10]recv_with_timeout no data received [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:22]recv_with_timeout no data received [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:26]recv_with_timeout no data received [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:36]recv_with_timeout no data received [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:05]recv_with_timeout no data received [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:12]recv_with_timeout no data received [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:04]recv_with_timeout no data received [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:47]recv_with_timeout no data received [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:45]recv_with_timeout no data received [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:04]recv_with_timeout no data received [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:16]recv_with_timeout no data received [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:53]recv_with_timeout no data received [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]recv_with_timeout no data received [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:46]recv_with_timeout no data received [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:03]recv_with_timeout no data received [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:21]recv_with_timeout no data received [06:42:24]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:43]accept exits with 7 [06:43:43]New connection [06:43:43]New thread 3066617188 created [06:43:43]Thread 3066473828 joined [06:43:43]Waiting for new connection... [06:43:43] Sock 7.Parse request [06:43:43]Sock 7.Check first char [06:43:43]Sock 7.First char is OK [06:43:43]request: POST /json_proto HTTP/1.0 [06:43:43]Method: POST [06:43:43]URL: /json_proto [06:43:43]Method is POST - this is cgi request [06:43:43]url: /json_proto [06:43:43]query_string will be loaded in cgi processing [06:43:43]execute_cgi json_proto POST (null) [06:43:43]execute_cgi path=json_proto method=POST [06:43:43]POST find Content-Length [06:43:43]Host: 172.17.43.195:8080 [06:43:43]Content-Length: 797 [06:43:43]Content-Type: application/json [06:43:43] [06:43:43]POST finish read [06:43:43]Found Content-Length = 797 [06:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:43]execute_script... [06:43:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:43]POST & json_proto [06:43:43]process_json_proto [06:43:43]json parsed OK: [06:43:43]protocol is kg_v1.0 [06:43:43]action value=close_receipt [06:43:43]process_action close_receipt [06:43:43]cmd_close_receipt [06:43:43]MH_GetDate [06:43:43]Write to MH i2c: F0 00 00 80 05 74 [06:43:43]Write i2c OK [06:43:43]MH_I2C_Read... [06:43:43]Read from MH i2c: F0 [06:43:43]MH_I2C_Read... [06:43:43]Read from MH i2c: F0 09 00 [06:43:43]MH_I2C_Read... [06:43:43]Read from MH i2c: F0 09 00 80 05 00 22 27 23 67 74 2C AD 66 03 [06:43:43]GetLastDocTimeStamp 1730354869 [06:43:43]current date 1730357026 [06:43:43]FM_GetShiftState [06:43:43]SAM_PROTO_GetShiftState [06:43:43]wFMCommunicate request_size=4 [06:43:43]MH_SAM_APDU [06:43:43]CAPDU: 80 13 01 00 [06:43:43]Write to MH i2c: E2 08 00 81 05 80 13 01 00 00 00 00 00 03 [06:43:43]Write i2c OK [06:43:43]MH_I2C_Read... [06:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:43]Read from MH i2c: E2 [06:43:43]MH_I2C_Read... [06:43:43]Read from MH i2c: E2 0E 00 [06:43:43]MH_I2C_Read... [06:43:43]Read from MH i2c: E2 0E 00 81 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 AC [06:43:43]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [06:43:43]wFMCommunicate OK [06:43:43]SAM_PROTO_GetShiftState done [06:43:43]FM_GetShiftState done [06:43:43]opened in 1730333258 [06:43:43]opened+sec_in_day 1730419658 [06:43:43]quantity*price = 0 [06:43:43]sum+1 = 1 [06:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 15 31.10.2024 06:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72940 ФПД: 244365321599157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T064346&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72940&fm=244365321599157&tin=02508201610067®Number=0000000000091644&sum=0 [06:43:44]StoreToDocumentArchive [06:43:44]shift 557 fd 72940 [06:43:44]save to /storage/0557/doc_00072940 [06:43:44]save last doc name /storage/0557/doc_00072940 to /storage/kkm_last_doc_name [06:43:44]save OK [06:43:44]Clear old archive folders... [06:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:43:44]tlvbuf is 01618590 [06:43:44]SAM_PROTO_ClearQueue [06:43:44]wFMCommunicate request_size=4 [06:43:44]MH_SAM_APDU [06:43:44]CAPDU: 80 09 00 00 [06:43:44]Write to MH i2c: E2 08 00 8E 05 80 09 00 00 00 00 00 00 05 [06:43:44]Write i2c OK [06:43:44]MH_I2C_Read... [06:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:43:45]Read from MH i2c: E2 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 03 00 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [06:43:45]RAPDU: 90 00 [06:43:45]wFMCommunicate OK [06:43:45]SAM_PROTO_ClearQueue done [06:43:45]KKMCreateOFDPacket [06:43:45]OFDProtocolAddRootSTLVToBuf [06:43:45]FM_MakeSignedData [06:43:45]FM_MakeSignedData [06:43:45]SAM_PROTO_SignData [06:43:45]wFMCommunicate request_size=4 [06:43:45]MH_SAM_APDU [06:43:45]CAPDU: 80 0D 01 02 [06:43:45]Write to MH i2c: E2 08 00 8F 05 80 0D 01 02 00 00 00 00 0D [06:43:45]Write i2c OK [06:43:45]MH_I2C_Read... [06:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:43:45]Read from MH i2c: E2 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 03 00 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [06:43:45]RAPDU: 90 00 [06:43:45]wFMCommunicate OK [06:43:45]wFMCommunicate request_size=255 [06:43:45]MH_SAM_APDU [06:43:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 22 27 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EC 1C 01 00 35 04 06 00 [06:43:45]Write to MH i2c: E2 02 01 90 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 22 27 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EC 1C 01 00 35 04 06 00 00 00 A2 [06:43:45]Write i2c OK [06:43:45]MH_I2C_Read... [06:43:45]OFD Sender: No OFD packet to send [06:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:45]Read from MH i2c: E2 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 03 00 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [06:43:45]RAPDU: 90 00 [06:43:45]wFMCommunicate OK [06:43:45]wFMCommunicate request_size=11 [06:43:45]MH_SAM_APDU [06:43:45]CAPDU: 80 0D 02 02 06 DE 3F BC 30 78 B5 [06:43:45]Write to MH i2c: E2 0E 00 91 05 80 0D 02 02 06 00 DE 3F BC 30 78 B5 00 00 52 [06:43:45]Write i2c OK [06:43:45]MH_I2C_Read... [06:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:45]Read from MH i2c: E2 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 03 00 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [06:43:45]RAPDU: 90 00 [06:43:45]wFMCommunicate OK [06:43:45]wFMCommunicate request_size=4 [06:43:45]MH_SAM_APDU [06:43:45]CAPDU: 80 0D 03 02 [06:43:45]Write to MH i2c: E2 08 00 92 05 80 0D 03 02 00 00 00 00 12 [06:43:45]Write i2c OK [06:43:45]MH_I2C_Read... [06:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:43:45]Read from MH i2c: E2 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 0B 00 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 0B 00 92 05 00 D4 DD 15 83 17 CA 48 F9 90 00 7E [06:43:45]RAPDU: D4 DD 15 83 17 CA 48 F9 90 00 [06:43:45]wFMCommunicate OK [06:43:45]SAM_PROTO_SignData done [06:43:45]FM_MakeSignedData done [06:43:45]CreateOFDProtocolMessage [06:43:45]wFMCommunicate request_size=4 [06:43:45]MH_SAM_APDU [06:43:45]CAPDU: 80 11 00 00 [06:43:45]Write to MH i2c: E2 08 00 93 05 80 11 00 00 00 00 00 00 12 [06:43:45]Write i2c OK [06:43:45]MH_I2C_Read... [06:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:45]Read from MH i2c: E2 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 17 00 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: E2 17 00 93 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [06:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:43:45]wFMCommunicate OK [06:43:45]CreateOFDProtocolMessage done [06:43:45]OFDSenderStorePacket 72940 [06:43:45]StoreOFDPacket docnum=72940 [06:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 CC 7F 08 01 49 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 22 27 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EC 1C 01 00 35 04 06 00 DE 3F BC 30 78 B5 D4 DD 15 83 17 CA 48 F9 [06:43:45]CheckFolder [06:43:45]dirname=/storage/ofd_packets [06:43:45]CheckFolder done [06:43:45]ProducePacketName [06:43:45]name=ofd_packets/00072940 [06:43:45]NVStorageSaveData ofd_packets/00072940 [06:43:45]File name is /storage/ofd_packets/00072940 [06:43:45]Write 302 bytes [06:43:45]NVStorageSaveData done [06:43:45]OFDSenderStorePacket done [06:43:45]KKMCreateOFDPacket done [06:43:45]NVStorageSaveData kkm_last_timestamp [06:43:45]File name is /storage/kkm_last_timestamp [06:43:45]Write 4 bytes [06:43:45]NVStorageSaveData done [06:43:45]ExternCall_PrintAddStr [06:43:45]wPrintStart [06:43:45]Write to MH i2c: 01 00 00 94 05 99 [06:43:45]Write i2c OK [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: 01 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: 01 07 00 [06:43:45]MH_I2C_Read... [06:43:45]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [06:43:45]RasterBufferAndPrint [06:43:45]line Счет N : (1)952540 [06:43:45]line ИНН: 02508201610067 [06:43:45]line Контрольно-Кассовый Чек [06:43:45]line ПРОДАЖА [06:43:45]line ТРК (МРК, ГНК) : 33 [06:43:45]line Товар: 2710194210 [06:43:45]line ДТ(л)-К-5 [06:43:45]line 19.690 * 0.00 [06:43:45]line = 0.00 [06:43:45]line НДС 12% НСП 1% [06:43:45]line > о реализуемом товаре [06:43:45]line ИТОГО: 0.00 [06:43:45]line НСП 1% : 0.00 [06:43:45]line НДС 12% : 0.00 [06:43:45]line Наличными: 0.00 [06:43:45]line Безнал.: 0.00 [06:43:45]line Место: АЗС № 113 "Партнер Нефть" [06:43:45]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:43:45]line СНО: Общий режим [06:43:45]line Чек 15 31.10.2024 06:43 [06:43:45]line Смена: 557 ФФД: 1.0 [06:43:45]line ЗНМ: 0300000087 [06:43:45]line РНМ: 0000000000091644 [06:43:45]line Версия ККМ: 001 [06:43:45]line Талоны: Топливная Карта [06:43:45]line 02083 [06:43:45]line ФМ: 0000000000874662 [06:43:45]line ФД: 72940 [06:43:45]line ФПД: 244365321599157 [06:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T064346&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72940&fm=244365321599157&tin=02508201610067®Number=0000000000091644&sum=0 [06:43:45]OFD Sender: Processing packet 72940 [packets to send 279, broken 278] [06:43:45]ProducePacketName [06:43:45]name=ofd_packets/00072940 [06:43:45]OFD Sender: To server: pG, [06:43:45]CommunicateWithHost lk.salyk.kg:30040 [06:43:45]ConnectInit lk.salyk.kg [06:43:45]written 0, free lines is 4095 [06:43:46]Write to MH i2c: 01 00 00 BE 05 C3 [06:43:46]Write i2c OK [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: 01 [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: 01 07 00 [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 D4 0C AA [06:43:46]RasterBufferAndPrint [06:43:46]line [06:43:46]line [06:43:46]line [06:43:46]line [06:43:46]line [06:43:46]written 0, free lines is 3290 [06:43:46]MH_Cut [06:43:46]Write to MH i2c: D1 01 00 C5 05 01 9C [06:43:46]Write i2c OK [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: D1 [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: D1 01 00 [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: D1 01 00 C5 05 00 9B [06:43:46]Write to MH i2c: 01 00 00 C6 05 CB [06:43:46]Write i2c OK [06:43:46]MH_I2C_Read... [06:43:46]Connected sock=10 [06:43:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 CC 7F 08 01 49 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 22 27 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EC 1C 01 00 35 04 06 00 DE 3F BC 30 78 B5 D4 DD 15 83 17 CA 48 F9 [06:43:47]*** Cut start [06:43:47]*** Partial cut [06:43:47]*** CUTSNS_PIN = 1 [06:43:47]*** CUTSNS_PIN = 0 [06:43:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DB 7D 47 00 67 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EC 1C 01 00 F4 03 04 00 D9 D1 22 67 B6 04 01 00 00 03 5F 93 7C 92 3B AC 0D [06:43:47]CommunicateWithHost err = 0 [06:43:47]CheckOFDResponse [06:43:47]1017 (14) - 77093643461234 [06:43:47]1041 (16) - 0000000000874662 [06:43:47]1040 (4) - 72940 [06:43:47]1012 (4) - 31.10.2024 00:39 [06:43:47]1206 (1) - 0 [06:43:47]OFD Sender: Remove packet 72940 [06:43:47]ProducePacketName [06:43:47]name=ofd_packets/00072940 [06:43:47]NVStorageDeleteData [06:43:47]*** Brake cut motor [06:43:47]Read from MH i2c: 01 [06:43:47]MH_I2C_Read... [06:43:47]*** Stop cut motor [06:43:47]*** Cut end [06:43:47]Read from MH i2c: 01 07 00 [06:43:47]MH_I2C_Read... [06:43:47]Read from MH i2c: 01 07 00 C6 05 00 00 00 00 00 FF 0F E0 [06:43:47]process_action close_receipt done [06:43:47]requested_data is exist [06:43:47]produce_requested_data [06:43:47]requested_item fm.sn is exist - process it [06:43:47]wFMCommunicate request_size=4 [06:43:47]MH_SAM_APDU [06:43:47]CAPDU: 80 11 00 00 [06:43:47]Write to MH i2c: E2 08 00 C7 05 80 11 00 00 00 00 00 00 46 [06:43:47]Write i2c OK [06:43:47]MH_I2C_Read... [06:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:47]Read from MH i2c: E2 [06:43:47]MH_I2C_Read... [06:43:47]Read from MH i2c: E2 17 00 [06:43:47]MH_I2C_Read... [06:43:47]Read from MH i2c: E2 17 00 C7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9A [06:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:43:47]wFMCommunicate OK [06:43:47]requested_item fd.num is exist - process it [06:43:47]SAM_PROTO_GetFieldsCounters [06:43:47]wFMCommunicate request_size=4 [06:43:47]MH_SAM_APDU [06:43:47]CAPDU: 80 13 00 00 [06:43:47]Write to MH i2c: E2 08 00 C8 05 80 13 00 00 00 00 00 00 49 [06:43:47]Write i2c OK [06:43:47]MH_I2C_Read... [06:43:47]OFD Sender: No OFD packet to send [06:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:43:47]Read from MH i2c: E2 [06:43:47]MH_I2C_Read... [06:43:47]Read from MH i2c: E2 62 00 [06:43:47]MH_I2C_Read... [06:43:47]Read from MH i2c: E2 62 00 C8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EC 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [06:43:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EC 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:43:47]wFMCommunicate OK [06:43:47]SAM_PROTO_GetFieldsCounters done [06:43:47]requested_item shift.num is exist - process it [06:43:47]requested_item shift.opened is exist - process it [06:43:47]req_shift_opened [06:43:47]FM_GetShiftState [06:43:47]SAM_PROTO_GetShiftState [06:43:47]wFMCommunicate request_size=4 [06:43:47]MH_SAM_APDU [06:43:47]CAPDU: 80 13 01 00 [06:43:47]Write to MH i2c: E2 08 00 C9 05 80 13 01 00 00 00 00 00 4B [06:43:47]Write i2c OK [06:43:47]MH_I2C_Read... [06:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:47]Read from MH i2c: E2 [06:43:47]MH_I2C_Read... [06:43:47]Read from MH i2c: E2 0E 00 [06:43:47]MH_I2C_Read... [06:43:47]Read from MH i2c: E2 0E 00 C9 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 F4 [06:43:47]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [06:43:47]wFMCommunicate OK [06:43:47]SAM_PROTO_GetShiftState done [06:43:47]FM_GetShiftState done [06:43:47]req_shift_opened done [06:43:47]requested_item shift.open_date is exist - process it [06:43:47]req_shift_open_date [06:43:47]req_shift_open_date done [06:43:47]produce_requested_data done [06:43:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72940,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [06:43:47]process_action_free close_receipt [06:43:47]json_value_free [06:43:47]json_value_free done [06:43:47]process_json_proto returns [06:43:47]Send response to host [06:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72940,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [06:43:47]free response buf [06:43:47]execute_script done [06:43:47]execute_script returns [06:43:47]free content buf [06:43:47]Sock 7.Close socket [06:43:47]Sock 7.Thread stoped [06:43:52]OFD Sender: No OFD packet to send [06:43:53]recv_with_timeout no data received [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]recv_with_timeout no data received [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:03]recv_with_timeout no data received [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:31]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:29]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:34]recv_with_timeout no data received [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:44]recv_with_timeout no data received [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:13]OFD Sender: No OFD packet to send [06:51:15]recv_with_timeout no data received [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:45]recv_with_timeout no data received [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:35]recv_with_timeout no data received [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:56]recv_with_timeout no data received [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:02]recv_with_timeout no data received [06:56:03]OFD Sender: No OFD packet to send [06:56:08]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:25]recv_with_timeout no data received [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:45]recv_with_timeout no data received [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:56]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:02]recv_with_timeout no data received [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:56]recv_with_timeout no data received [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:11]recv_with_timeout no data received [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:31]recv_with_timeout no data received [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:52]recv_with_timeout no data received [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:03]recv_with_timeout no data received [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:01]recv_with_timeout no data received [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:12]accept exits with 9 [07:06:12]New connection [07:06:12]New thread 3066473828 created [07:06:12]Thread 3066617188 joined [07:06:12]Waiting for new connection... [07:06:12] Sock 9.Parse request [07:06:12]Sock 9.Check first char [07:06:12]Sock 9.First char is OK [07:06:12]request: POST /json_proto HTTP/1.0 [07:06:12]Method: POST [07:06:12]URL: /json_proto [07:06:12]Method is POST - this is cgi request [07:06:12]url: /json_proto [07:06:12]query_string will be loaded in cgi processing [07:06:12]execute_cgi json_proto POST (null) [07:06:12]execute_cgi path=json_proto method=POST [07:06:12]POST find Content-Length [07:06:12]Host: 172.17.43.195:8080 [07:06:12]Content-Length: 754 [07:06:12]Content-Type: application/json [07:06:12] [07:06:12]POST finish read [07:06:12]Found Content-Length = 754 [07:06:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:12]execute_script... [07:06: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)952541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:12]POST & json_proto [07:06:12]process_json_proto [07:06:12]json parsed OK: [07:06:12]protocol is kg_v1.0 [07:06:12]action value=close_receipt [07:06:12]process_action close_receipt [07:06:12]cmd_close_receipt [07:06:12]MH_GetDate [07:06:12]Write to MH i2c: F0 00 00 CA 05 BE [07:06:12]Write i2c OK [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: F0 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: F0 09 00 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: F0 09 00 CA 05 00 66 2C 23 67 74 2C AD 66 96 [07:06:12]GetLastDocTimeStamp 1730357026 [07:06:12]current date 1730358374 [07:06:12]FM_GetShiftState [07:06:12]SAM_PROTO_GetShiftState [07:06:12]wFMCommunicate request_size=4 [07:06:12]MH_SAM_APDU [07:06:12]CAPDU: 80 13 01 00 [07:06:12]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [07:06:12]Write i2c OK [07:06:12]MH_I2C_Read... [07:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:12]Read from MH i2c: E2 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 0E 00 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 F6 [07:06:12]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:06:12]wFMCommunicate OK [07:06:12]SAM_PROTO_GetShiftState done [07:06:12]FM_GetShiftState done [07:06:12]opened in 1730333258 [07:06:12]opened+sec_in_day 1730419658 [07:06:12]quantity*price = 0 [07:06:12]sum+1 = 1 [07:06:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 16 31.10.2024 07:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30005682 ФМ: 0000000000874662 ФД: 72941 ФПД: 175211710324532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T070614&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72941&fm=175211710324532&tin=02508201610067®Number=0000000000091644&sum=0 [07:06:13]StoreToDocumentArchive [07:06:13]shift 557 fd 72941 [07:06:13]save to /storage/0557/doc_00072941 [07:06:13]save last doc name /storage/0557/doc_00072941 to /storage/kkm_last_doc_name [07:06:13]save OK [07:06:13]Clear old archive folders... [07:06:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:13]tlvbuf is 0160E040 [07:06:13]SAM_PROTO_ClearQueue [07:06:13]wFMCommunicate request_size=4 [07:06:13]MH_SAM_APDU [07:06:13]CAPDU: 80 09 00 00 [07:06:13]Write to MH i2c: E2 08 00 D8 05 80 09 00 00 00 00 00 00 4F [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:13]Read from MH i2c: E2 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 03 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [07:06:13]RAPDU: 90 00 [07:06:13]wFMCommunicate OK [07:06:13]SAM_PROTO_ClearQueue done [07:06:13]KKMCreateOFDPacket [07:06:13]OFDProtocolAddRootSTLVToBuf [07:06:13]FM_MakeSignedData [07:06:13]FM_MakeSignedData [07:06:13]SAM_PROTO_SignData [07:06:13]wFMCommunicate request_size=4 [07:06:13]MH_SAM_APDU [07:06:13]CAPDU: 80 0D 01 02 [07:06:13]Write to MH i2c: E2 08 00 D9 05 80 0D 01 02 00 00 00 00 57 [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:13]Read from MH i2c: E2 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 03 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [07:06:13]RAPDU: 90 00 [07:06:13]wFMCommunicate OK [07:06:13]wFMCommunicate request_size=255 [07:06:13]MH_SAM_APDU [07:06: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 66 2C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1C 01 00 35 04 06 00 9F [07:06:13]Write to MH i2c: E2 02 01 DA 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 66 2C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1C 01 00 35 04 06 00 9F 00 00 D3 [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:13]Read from MH i2c: E2 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 03 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [07:06:13]RAPDU: 90 00 [07:06:13]wFMCommunicate OK [07:06:13]wFMCommunicate request_size=10 [07:06:13]MH_SAM_APDU [07:06:13]CAPDU: 80 0D 02 02 05 5A A7 C1 1F 34 [07:06:13]Write to MH i2c: E2 0D 00 DB 05 80 0D 02 02 05 00 5A A7 C1 1F 34 00 00 79 [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:13]Read from MH i2c: E2 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 03 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [07:06:13]RAPDU: 90 00 [07:06:13]wFMCommunicate OK [07:06:13]wFMCommunicate request_size=4 [07:06:13]MH_SAM_APDU [07:06:13]CAPDU: 80 0D 03 02 [07:06:13]Write to MH i2c: E2 08 00 DC 05 80 0D 03 02 00 00 00 00 5C [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:13]Read from MH i2c: E2 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 0B 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 0B 00 DC 05 00 1F 89 52 81 98 6B 62 58 90 00 95 [07:06:13]RAPDU: 1F 89 52 81 98 6B 62 58 90 00 [07:06:13]wFMCommunicate OK [07:06:13]SAM_PROTO_SignData done [07:06:13]FM_MakeSignedData done [07:06:13]CreateOFDProtocolMessage [07:06:13]wFMCommunicate request_size=4 [07:06:13]MH_SAM_APDU [07:06:13]CAPDU: 80 11 00 00 [07:06:13]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:13]Read from MH i2c: E2 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 17 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B0 [07:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:06:13]wFMCommunicate OK [07:06:13]CreateOFDProtocolMessage done [07:06:13]OFDSenderStorePacket 72941 [07:06:13]StoreOFDPacket docnum=72941 [07:06:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 18 4B 07 01 40 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 66 2C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1C 01 00 35 04 06 00 9F 5A A7 C1 1F 34 1F 89 52 81 98 6B 62 58 [07:06:13]CheckFolder [07:06:13]dirname=/storage/ofd_packets [07:06:13]CheckFolder done [07:06:13]ProducePacketName [07:06:13]name=ofd_packets/00072941 [07:06:13]NVStorageSaveData ofd_packets/00072941 [07:06:13]File name is /storage/ofd_packets/00072941 [07:06:13]Write 301 bytes [07:06:13]NVStorageSaveData done [07:06:13]OFDSenderStorePacket done [07:06:13]KKMCreateOFDPacket done [07:06:13]NVStorageSaveData kkm_last_timestamp [07:06:13]File name is /storage/kkm_last_timestamp [07:06:13]Write 4 bytes [07:06:13]NVStorageSaveData done [07:06:13]ExternCall_PrintAddStr [07:06:13]wPrintStart [07:06:13]Write to MH i2c: 01 00 00 DE 05 E3 [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: 01 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: 01 07 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 FF 0F F8 [07:06:13]RasterBufferAndPrint [07:06:13]line Счет N : (1)952541 [07:06:13]line ИНН: 02508201610067 [07:06:13]line Контрольно-Кассовый Чек [07:06:13]line ПРОДАЖА [07:06:13]line ТРК (МРК, ГНК) : 63 [07:06:13]line Товар: 2710124130 [07:06:13]line Аи-92-К-5 [07:06:13]line 20.000 * 0.00 [07:06:13]line = 0.00 [07:06:13]line НДС 12% НСП 1% [07:06:13]line > о реализуемом товаре [07:06:13]line ИТОГО: 0.00 [07:06:13]line НСП 1% : 0.00 [07:06:13]line НДС 12% : 0.00 [07:06:13]line Наличными: 0.00 [07:06:13]line Безнал.: 0.00 [07:06:13]line Место: АЗС № 113 "Партнер Нефть" [07:06:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:06:13]line СНО: Общий режим [07:06:13]line Чек 16 31.10.2024 07:06 [07:06:13]line Смена: 557 ФФД: 1.0 [07:06:13]line ЗНМ: 0300000087 [07:06:13]line РНМ: 0000000000091644 [07:06:13]line Версия ККМ: 001 [07:06:13]line Талоны: ТК ГПНА Online [07:06:13]line 30005682 [07:06:13]line ФМ: 0000000000874662 [07:06:13]line ФД: 72941 [07:06:13]line ФПД: 175211710324532 [07:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T070614&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72941&fm=175211710324532&tin=02508201610067®Number=0000000000091644&sum=0 [07:06:14]OFD Sender: Processing packet 72941 [packets to send 279, broken 278] [07:06:14]ProducePacketName [07:06:14]name=ofd_packets/00072941 [07:06:14]OFD Sender: To server: pG, [07:06:14]CommunicateWithHost lk.salyk.kg:30040 [07:06:14]ConnectInit lk.salyk.kg [07:06:14]written 0, free lines is 4095 [07:06:14]Write to MH i2c: 01 00 00 08 06 0E [07:06:14]Write i2c OK [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: 01 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: 01 07 00 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: 01 07 00 08 06 00 00 00 00 00 D6 0C F7 [07:06:14]RasterBufferAndPrint [07:06:14]line [07:06:14]line [07:06:14]line [07:06:14]line [07:06:14]line [07:06:14]written 0, free lines is 3293 [07:06:14]MH_Cut [07:06:14]Write to MH i2c: D1 01 00 0F 06 01 E7 [07:06:14]Write i2c OK [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: D1 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: D1 01 00 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: D1 01 00 0F 06 00 E6 [07:06:14]Write to MH i2c: 01 00 00 10 06 16 [07:06:14]Write i2c OK [07:06:14]MH_I2C_Read... [07:06:15]*** Cut start [07:06:15]*** Partial cut [07:06:15]*** CUTSNS_PIN = 1 [07:06:15]*** CUTSNS_PIN = 0 [07:06:15]*** Brake cut motor [07:06:15]Read from MH i2c: 01 [07:06:15]MH_I2C_Read... [07:06:15]*** Stop cut motor [07:06:15]*** Cut end [07:06:15]Read from MH i2c: 01 07 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: 01 07 00 10 06 00 00 00 00 00 FF 0F 2B [07:06:15]process_action close_receipt done [07:06:15]requested_data is exist [07:06:15]produce_requested_data [07:06:15]requested_item fm.sn is exist - process it [07:06:15]wFMCommunicate request_size=4 [07:06:15]MH_SAM_APDU [07:06:15]CAPDU: 80 11 00 00 [07:06:15]Write to MH i2c: E2 08 00 11 06 80 11 00 00 00 00 00 00 91 [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 17 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 17 00 11 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E5 [07:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:06:15]wFMCommunicate OK [07:06:15]requested_item fd.num is exist - process it [07:06:15]SAM_PROTO_GetFieldsCounters [07:06:15]wFMCommunicate request_size=4 [07:06:15]MH_SAM_APDU [07:06:16]CAPDU: 80 13 00 00 [07:06:16]Write to MH i2c: E2 08 00 12 06 80 13 00 00 00 00 00 00 94 [07:06:16]Write i2c OK [07:06:16]MH_I2C_Read... [07:06:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:16]Read from MH i2c: E2 [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: E2 62 00 [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: E2 62 00 12 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 ED 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [07:06:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 ED 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:16]wFMCommunicate OK [07:06:16]SAM_PROTO_GetFieldsCounters done [07:06:16]requested_item shift.num is exist - process it [07:06:16]requested_item shift.opened is exist - process it [07:06:16]req_shift_opened [07:06:16]FM_GetShiftState [07:06:16]SAM_PROTO_GetShiftState [07:06:16]wFMCommunicate request_size=4 [07:06:16]MH_SAM_APDU [07:06:16]CAPDU: 80 13 01 00 [07:06:16]Write to MH i2c: E2 08 00 13 06 80 13 01 00 00 00 00 00 96 [07:06:16]Write i2c OK [07:06:16]MH_I2C_Read... [07:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:16]Read from MH i2c: E2 [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: E2 0E 00 [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: E2 0E 00 13 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 3F [07:06:16]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:06:16]wFMCommunicate OK [07:06:16]SAM_PROTO_GetShiftState done [07:06:16]FM_GetShiftState done [07:06:16]req_shift_opened done [07:06:16]requested_item shift.open_date is exist - process it [07:06:16]req_shift_open_date [07:06:16]req_shift_open_date done [07:06:16]produce_requested_data done [07:06:16]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72941,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [07:06:16]process_action_free close_receipt [07:06:16]json_value_free [07:06:16]json_value_free done [07:06:16]process_json_proto returns [07:06:16]Send response to host [07:06:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72941,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [07:06:16]free response buf [07:06:16]execute_script done [07:06:16]execute_script returns [07:06:16]free content buf [07:06:16]Sock 9.Close socket [07:06:16]Sock 9.Thread stoped [07:06:16]Connected sock=11 [07:06:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 18 4B 07 01 40 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 66 2C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1C 01 00 35 04 06 00 9F 5A A7 C1 1F 34 1F 89 52 81 98 6B 62 58 [07:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FB BF 47 00 BC C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1C 01 00 F4 03 04 00 1F D7 22 67 B6 04 01 00 00 66 CF 4D 54 93 4D CF 9F [07:06:17]CommunicateWithHost err = 0 [07:06:17]CheckOFDResponse [07:06:17]1017 (14) - 77093643461234 [07:06:17]1041 (16) - 0000000000874662 [07:06:17]1040 (4) - 72941 [07:06:17]1012 (4) - 31.10.2024 01:02 [07:06:17]1206 (1) - 0 [07:06:17]OFD Sender: Remove packet 72941 [07:06:17]ProducePacketName [07:06:17]name=ofd_packets/00072941 [07:06:17]NVStorageDeleteData [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:23]accept exits with 7 [07:06:23]New connection [07:06:23]New thread 3066617188 created [07:06:23]Thread 3066473828 joined [07:06:23]Waiting for new connection... [07:06:23] Sock 7.Parse request [07:06:23]Sock 7.Check first char [07:06:23]Sock 7.First char is OK [07:06:23]request: POST /json_proto HTTP/1.0 [07:06:23]Method: POST [07:06:23]URL: /json_proto [07:06:23]Method is POST - this is cgi request [07:06:23]url: /json_proto [07:06:23]query_string will be loaded in cgi processing [07:06:23]execute_cgi json_proto POST (null) [07:06:23]execute_cgi path=json_proto method=POST [07:06:23]POST find Content-Length [07:06:23]Host: 172.17.43.195:8080 [07:06:23]Content-Length: 792 [07:06:23]Content-Type: application/json [07:06:23] [07:06:23]POST finish read [07:06:23]Found Content-Length = 792 [07:06:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:23]execute_script... [07:06:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:23]POST & json_proto [07:06:23]process_json_proto [07:06:23]json parsed OK: [07:06:23]protocol is kg_v1.0 [07:06:23]action value=close_receipt [07:06:23]process_action close_receipt [07:06:23]cmd_close_receipt [07:06:23]MH_GetDate [07:06:23]Write to MH i2c: F0 00 00 14 06 09 [07:06:23]Write i2c OK [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: F0 [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: F0 09 00 [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: F0 09 00 14 06 00 72 2C 23 67 74 2C AD 66 ED [07:06:23]GetLastDocTimeStamp 1730358374 [07:06:23]current date 1730358386 [07:06:23]FM_GetShiftState [07:06:23]SAM_PROTO_GetShiftState [07:06:23]wFMCommunicate request_size=4 [07:06:23]MH_SAM_APDU [07:06:23]CAPDU: 80 13 01 00 [07:06:23]Write to MH i2c: E2 08 00 15 06 80 13 01 00 00 00 00 00 98 [07:06:23]Write i2c OK [07:06:23]MH_I2C_Read... [07:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:23]Read from MH i2c: E2 [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: E2 0E 00 [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: E2 0E 00 15 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 41 [07:06:23]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:06:23]wFMCommunicate OK [07:06:23]SAM_PROTO_GetShiftState done [07:06:23]FM_GetShiftState done [07:06:23]opened in 1730333258 [07:06:23]opened+sec_in_day 1730419658 [07:06:23]quantity*price = 0 [07:06:23]sum+1 = 1 [07:06:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 17 31.10.2024 07:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72942 ФПД: 77530883669140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T070626&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72942&fm=77530883669140&tin=02508201610067®Number=0000000000091644&sum=0 [07:06:24]StoreToDocumentArchive [07:06:24]shift 557 fd 72942 [07:06:24]save to /storage/0557/doc_00072942 [07:06:24]save last doc name /storage/0557/doc_00072942 to /storage/kkm_last_doc_name [07:06:24]save OK [07:06:24]Clear old archive folders... [07:06:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:24]tlvbuf is 013D8D00 [07:06:24]SAM_PROTO_ClearQueue [07:06:24]wFMCommunicate request_size=4 [07:06:24]MH_SAM_APDU [07:06:24]CAPDU: 80 09 00 00 [07:06:24]Write to MH i2c: E2 08 00 22 06 80 09 00 00 00 00 00 00 9A [07:06:24]Write i2c OK [07:06:24]MH_I2C_Read... [07:06:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:24]Read from MH i2c: E2 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: E2 03 00 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: E2 03 00 22 06 00 90 00 9C [07:06:24]RAPDU: 90 00 [07:06:24]wFMCommunicate OK [07:06:24]SAM_PROTO_ClearQueue done [07:06:24]KKMCreateOFDPacket [07:06:24]OFDProtocolAddRootSTLVToBuf [07:06:24]FM_MakeSignedData [07:06:24]FM_MakeSignedData [07:06:24]SAM_PROTO_SignData [07:06:24]wFMCommunicate request_size=4 [07:06:24]MH_SAM_APDU [07:06:24]CAPDU: 80 0D 01 02 [07:06:24]Write to MH i2c: E2 08 00 23 06 80 0D 01 02 00 00 00 00 A2 [07:06:24]Write i2c OK [07:06:24]MH_I2C_Read... [07:06:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:24]Read from MH i2c: E2 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: E2 03 00 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: E2 03 00 23 06 00 90 00 9D [07:06:24]RAPDU: 90 00 [07:06:24]wFMCommunicate OK [07:06:24]wFMCommunicate request_size=255 [07:06:24]MH_SAM_APDU [07:06:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 72 2C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1C 01 00 35 04 06 00 46 [07:06:24]Write to MH i2c: E2 02 01 24 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 72 2C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1C 01 00 35 04 06 00 46 00 00 05 [07:06:24]Write i2c OK [07:06:24]MH_I2C_Read... [07:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:25]Read from MH i2c: E2 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 03 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [07:06:25]RAPDU: 90 00 [07:06:25]wFMCommunicate OK [07:06:25]wFMCommunicate request_size=10 [07:06:25]MH_SAM_APDU [07:06:25]CAPDU: 80 0D 02 02 05 83 90 C7 BC 94 [07:06:25]Write to MH i2c: E2 0D 00 25 06 80 0D 02 02 05 00 83 90 C7 BC 94 00 00 D9 [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:25]Read from MH i2c: E2 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 03 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [07:06:25]RAPDU: 90 00 [07:06:25]wFMCommunicate OK [07:06:25]wFMCommunicate request_size=4 [07:06:25]MH_SAM_APDU [07:06:25]CAPDU: 80 0D 03 02 [07:06:25]Write to MH i2c: E2 08 00 26 06 80 0D 03 02 00 00 00 00 A7 [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:25]Read from MH i2c: E2 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 0B 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 0B 00 26 06 00 A8 82 60 D9 5D 3D 8A 9E 90 00 CD [07:06:25]RAPDU: A8 82 60 D9 5D 3D 8A 9E 90 00 [07:06:25]wFMCommunicate OK [07:06:25]SAM_PROTO_SignData done [07:06:25]FM_MakeSignedData done [07:06:25]CreateOFDProtocolMessage [07:06:25]wFMCommunicate request_size=4 [07:06:25]MH_SAM_APDU [07:06:25]CAPDU: 80 11 00 00 [07:06:25]Write to MH i2c: E2 08 00 27 06 80 11 00 00 00 00 00 00 A7 [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:25]Read from MH i2c: E2 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 17 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 17 00 27 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FB [07:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:06:25]wFMCommunicate OK [07:06:25]CreateOFDProtocolMessage done [07:06:25]OFDSenderStorePacket 72942 [07:06:25]StoreOFDPacket docnum=72942 [07:06:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E7 55 07 01 45 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 72 2C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1C 01 00 35 04 06 00 46 83 90 C7 BC 94 A8 82 60 D9 5D 3D 8A 9E [07:06:25]CheckFolder [07:06:25]dirname=/storage/ofd_packets [07:06:25]CheckFolder done [07:06:25]ProducePacketName [07:06:25]name=ofd_packets/00072942 [07:06:25]NVStorageSaveData ofd_packets/00072942 [07:06:25]File name is /storage/ofd_packets/00072942 [07:06:25]Write 301 bytes [07:06:25]NVStorageSaveData done [07:06:25]OFDSenderStorePacket done [07:06:25]KKMCreateOFDPacket done [07:06:25]NVStorageSaveData kkm_last_timestamp [07:06:25]File name is /storage/kkm_last_timestamp [07:06:25]Write 4 bytes [07:06:25]NVStorageSaveData done [07:06:25]ExternCall_PrintAddStr [07:06:25]wPrintStart [07:06:25]Write to MH i2c: 01 00 00 28 06 2E [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: 01 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: 01 07 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: 01 07 00 28 06 00 00 00 00 00 FF 0F 43 [07:06:25]RasterBufferAndPrint [07:06:25]line Счет N : (1)952542 [07:06:25]line ИНН: 02508201610067 [07:06:25]line Контрольно-Кассовый Чек [07:06:25]line ПРОДАЖА [07:06:25]line ТРК (МРК, ГНК) : 42 [07:06:25]line Товар: 2710124130 [07:06:25]line Аи-92-К-5 [07:06:25]line 14.950 * 0.00 [07:06:25]line = 0.00 [07:06:25]line НДС 12% НСП 1% [07:06:25]line > о реализуемом товаре [07:06:25]line ИТОГО: 0.00 [07:06:25]line НСП 1% : 0.00 [07:06:25]line НДС 12% : 0.00 [07:06:25]line Наличными: 0.00 [07:06:25]line Безнал.: 0.00 [07:06:25]line Место: АЗС № 113 "Партнер Нефть" [07:06:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:06:25]line СНО: Общий режим [07:06:25]line Чек 17 31.10.2024 07:06 [07:06:25]line Смена: 557 ФФД: 1.0 [07:06:25]line ЗНМ: 0300000087 [07:06:25]line РНМ: 0000000000091644 [07:06:25]line Версия ККМ: 001 [07:06:25]line Талоны: Топливная Карта [07:06:25]line 03047 [07:06:25]line ФМ: 0000000000874662 [07:06:25]line ФД: 72942 [07:06:25]line ФПД: 77530883669140 [07:06:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T070626&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72942&fm=77530883669140&tin=02508201610067®Number=0000000000091644&sum=0 [07:06:25]written 0, free lines is 4095 [07:06:25]OFD Sender: Processing packet 72942 [packets to send 279, broken 278] [07:06:25]ProducePacketName [07:06:25]name=ofd_packets/00072942 [07:06:25]OFD Sender: To server: pG, [07:06:25]CommunicateWithHost lk.salyk.kg:30040 [07:06:25]ConnectInit lk.salyk.kg [07:06:25]Write to MH i2c: 01 00 00 52 06 58 [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: 01 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: 01 07 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: 01 07 00 52 06 00 00 00 00 00 DA 0C 45 [07:06:25]RasterBufferAndPrint [07:06:25]line [07:06:25]line [07:06:25]line [07:06:25]line [07:06:25]line [07:06:25]written 0, free lines is 3299 [07:06:25]MH_Cut [07:06:25]Write to MH i2c: D1 01 00 59 06 01 31 [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: D1 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: D1 01 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: D1 01 00 59 06 00 30 [07:06:25]Write to MH i2c: 01 00 00 5A 06 60 [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:26]*** Cut start [07:06:26]*** Partial cut [07:06:26]*** CUTSNS_PIN = 1 [07:06:26]*** CUTSNS_PIN = 0 [07:06:26]*** Brake cut motor [07:06:26]Connected sock=11 [07:06:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E7 55 07 01 45 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 72 2C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1C 01 00 35 04 06 00 46 83 90 C7 BC 94 A8 82 60 D9 5D 3D 8A 9E [07:06:27]Read from MH i2c: 01 [07:06:27]MH_I2C_Read... [07:06:27]*** Stop cut motor [07:06:27]*** Cut end [07:06:27]Read from MH i2c: 01 07 00 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 FF 0F 75 [07:06:27]process_action close_receipt done [07:06:27]requested_data is exist [07:06:27]produce_requested_data [07:06:27]requested_item fm.sn is exist - process it [07:06:27]wFMCommunicate request_size=4 [07:06:27]MH_SAM_APDU [07:06:27]CAPDU: 80 11 00 00 [07:06:27]Write to MH i2c: E2 08 00 5B 06 80 11 00 00 00 00 00 00 DB [07:06:27]Write i2c OK [07:06:27]MH_I2C_Read... [07:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:27]Read from MH i2c: E2 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 17 00 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 17 00 5B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2F [07:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:06:27]wFMCommunicate OK [07:06:27]requested_item fd.num is exist - process it [07:06:27]SAM_PROTO_GetFieldsCounters [07:06:27]wFMCommunicate request_size=4 [07:06:27]MH_SAM_APDU [07:06:27]CAPDU: 80 13 00 00 [07:06:27]Write to MH i2c: E2 08 00 5C 06 80 13 00 00 00 00 00 00 DE [07:06:27]Write i2c OK [07:06:27]MH_I2C_Read... [07:06:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:27]Read from MH i2c: E2 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 62 00 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 62 00 5C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EE 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [07:06:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EE 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:27]wFMCommunicate OK [07:06:27]SAM_PROTO_GetFieldsCounters done [07:06:27]requested_item shift.num is exist - process it [07:06:27]requested_item shift.opened is exist - process it [07:06:27]req_shift_opened [07:06:27]FM_GetShiftState [07:06:27]SAM_PROTO_GetShiftState [07:06:27]wFMCommunicate request_size=4 [07:06:27]MH_SAM_APDU [07:06:27]CAPDU: 80 13 01 00 [07:06:27]Write to MH i2c: E2 08 00 5D 06 80 13 01 00 00 00 00 00 E0 [07:06:27]Write i2c OK [07:06:27]MH_I2C_Read... [07:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6C DB 47 00 BB CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1C 01 00 F4 03 04 00 29 D7 22 67 B6 04 01 00 00 8E FD 9B 09 E5 EA F3 0A [07:06:27]CommunicateWithHost err = 0 [07:06:27]CheckOFDResponse [07:06:27]1017 (14) - 77093643461234 [07:06:27]1041 (16) - 0000000000874662 [07:06:27]1040 (4) - 72942 [07:06:27]1012 (4) - 31.10.2024 01:02 [07:06:27]1206 (1) - 0 [07:06:27]OFD Sender: Remove packet 72942 [07:06:27]ProducePacketName [07:06:27]name=ofd_packets/00072942 [07:06:27]NVStorageDeleteData [07:06:27]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:27]E2 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 0E 00 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 0E 00 5D 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 89 [07:06:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:06:27]wFMCommunicate OK [07:06:27]SAM_PROTO_GetShiftState done [07:06:27]FM_GetShiftState done [07:06:27]req_shift_opened done [07:06:27]requested_item shift.open_date is exist - process it [07:06:27]req_shift_open_date [07:06:27]req_shift_open_date done [07:06:27]produce_requested_data done [07:06:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72942,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [07:06:27]process_action_free close_receipt [07:06:27]json_value_free [07:06:27]json_value_free done [07:06:27]process_json_proto returns [07:06:27]Send response to host [07:06:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72942,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [07:06:27]free response buf [07:06:27]execute_script done [07:06:27]execute_script returns [07:06:27]free content buf [07:06:27]Sock 7.Close socket [07:06:27]Sock 7.Thread stoped [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:21]recv_with_timeout no data received [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:32]recv_with_timeout no data received [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:42]recv_with_timeout no data received [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]recv_with_timeout no data received [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:23]recv_with_timeout no data received [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]recv_with_timeout no data received [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:18]recv_with_timeout no data received [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:09]recv_with_timeout no data received [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:33]recv_with_timeout no data received [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:23]recv_with_timeout no data received [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:05]recv_with_timeout no data received [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:22]recv_with_timeout no data received [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:45]recv_with_timeout no data received [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:07]recv_with_timeout no data received [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]recv_with_timeout no data received [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:51]recv_with_timeout no data received [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:35]recv_with_timeout no data received [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:35]recv_with_timeout no data received [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:01]recv_with_timeout no data received [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]recv_with_timeout no data received [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:24]recv_with_timeout no data received [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:14]recv_with_timeout no data received [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:25]recv_with_timeout no data received [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:48]recv_with_timeout no data received [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:04]recv_with_timeout no data received [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:35]recv_with_timeout no data received [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:51]recv_with_timeout no data received [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:02]recv_with_timeout no data received [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:15]recv_with_timeout no data received [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:25]recv_with_timeout no data received [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:51]recv_with_timeout no data received [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:15]recv_with_timeout no data received [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:21]recv_with_timeout no data received [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:12]recv_with_timeout no data received [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:22]accept exits with 10 [07:31:22]New connection [07:31:22]New thread 3066473828 created [07:31:22]Thread 3066617188 joined [07:31:22]Waiting for new connection... [07:31:22] Sock 10.Parse request [07:31:22]Sock 10.Check first char [07:31:22]Sock 10.First char is OK [07:31:22]request: POST /json_proto HTTP/1.0 [07:31:22]Method: POST [07:31:22]URL: /json_proto [07:31:22]Method is POST - this is cgi request [07:31:22]url: /json_proto [07:31:22]query_string will be loaded in cgi processing [07:31:22]execute_cgi json_proto POST (null) [07:31:22]execute_cgi path=json_proto method=POST [07:31:22]POST find Content-Length [07:31:22]Host: 172.17.43.195:8080 [07:31:22]Content-Length: 792 [07:31:22]Content-Type: application/json [07:31:22] [07:31:22]POST finish read [07:31:22]Found Content-Length = 792 [07:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:22]execute_script... [07:31: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)952543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:22]POST & json_proto [07:31:22]process_json_proto [07:31:22]json parsed OK: [07:31:22]protocol is kg_v1.0 [07:31:22]action value=close_receipt [07:31:22]process_action close_receipt [07:31:22]cmd_close_receipt [07:31:22]MH_GetDate [07:31:22]Write to MH i2c: F0 00 00 5E 06 53 [07:31:22]Write i2c OK [07:31:22]MH_I2C_Read... [07:31:22]Read from MH i2c: F0 [07:31:22]MH_I2C_Read... [07:31:22]Read from MH i2c: F0 09 00 [07:31:22]MH_I2C_Read... [07:31:22]Read from MH i2c: F0 09 00 5E 06 00 4D 32 23 67 74 2C AD 66 18 [07:31:22]GetLastDocTimeStamp 1730358386 [07:31:22]current date 1730359885 [07:31:22]FM_GetShiftState [07:31:22]SAM_PROTO_GetShiftState [07:31:22]wFMCommunicate request_size=4 [07:31:22]MH_SAM_APDU [07:31:22]CAPDU: 80 13 01 00 [07:31:22]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [07:31:22]Write i2c OK [07:31:22]MH_I2C_Read... [07:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:22]Read from MH i2c: E2 [07:31:22]MH_I2C_Read... [07:31:22]Read from MH i2c: E2 0E 00 [07:31:22]MH_I2C_Read... [07:31:22]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8B [07:31:22]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:31:22]wFMCommunicate OK [07:31:22]SAM_PROTO_GetShiftState done [07:31:22]FM_GetShiftState done [07:31:22]opened in 1730333258 [07:31:22]opened+sec_in_day 1730419658 [07:31:22]quantity*price = 0 [07:31:22]sum+1 = 1 [07:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре [07:31:24]line ИТОГО: 0.00 [07:31:24]line НСП 1% : 0.00 [07:31:24]line НДС 12% : 0.00 [07:31:24]line Наличными: 0.00 [07:31:24]line Безнал.: 0.00 [07:31:24]line Место: АЗС № 113 "Партнер Нефть" [07:31:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:31:24]line СНО: Общий режим [07:31:24]line Чек 18 31.10.2024 07:31 [07:31:24]line Смена: 557 ФФД: 1.0 [07:31:24]line ЗНМ: 0300000087 [07:31:24]line РНМ: 0000000000091644 [07:31:24]line Версия ККМ: 001 [07:31:24]line Талоны: Топливная Карта [07:31:24]line 03047 [07:31:24]line ФМ: 0000000000874662 [07:31:24]line ФД: 72943 [07:31:24]line ФПД: 279317218091465 [07:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T073125&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72943&fm=279317218091465&tin=02508201610067®Number=0000000000091644&sum=0 [07:31:24]written 0, free lines is 4095 [07:31:24]OFD Sender: Processing packet 72943 [packets to send 279, broken 278] [07:31:24]ProducePacketName [07:31:24]name=ofd_packets/00072943 [07:31:24]OFD Sender: To server: pG, [07:31:24]CommunicateWithHost lk.salyk.kg:30040 [07:31:24]ConnectInit lk.salyk.kg [07:31:24]Write to MH i2c: 01 00 00 9C 06 A2 [07:31:24]Write i2c OK [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: 01 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: 01 07 00 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: 01 07 00 9C 06 00 00 00 00 00 DD 0C 92 [07:31:24]RasterBufferAndPrint [07:31:24]line [07:31:24]line [07:31:24]line [07:31:24]line [07:31:24]line [07:31:24]written 0, free lines is 3299 [07:31:24]MH_Cut [07:31:24]Write to MH i2c: D1 01 00 A3 06 01 7B [07:31:24]Write i2c OK [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: D1 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: D1 01 00 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: D1 01 00 A3 06 00 7A [07:31:24]Write to MH i2c: 01 00 00 A4 06 AA [07:31:24]Write i2c OK [07:31:24]MH_I2C_Read... [07:31:25]Connected sock=11 [07:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 77 55 07 01 F8 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 4D 32 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EF 1C 01 00 35 04 06 00 FE 09 9B 90 61 C9 61 1F 5D FC EF B7 3C 78 [07:31:25]*** Cut start [07:31:25]*** Partial cut [07:31:25]*** CUTSNS_PIN = 1 [07:31:25]*** CUTSNS_PIN = 0 [07:31:25]*** Brake cut motor [07:31:26]Read from MH i2c: 01 [07:31:26]MH_I2C_Read... [07:31:26]*** Stop cut motor [07:31:26]Received data: *** Cut end [07:31:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0B 6B 47 00 42 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EF 1C 01 00 F4 03 04 00 04 DD 22 67 B6 04 01 00 00 66 DE F4 84 9A E8 8F 39 [07:31:26]CommunicateWithHost err = 0 [07:31:26]CheckOFDResponse [07:31:26]1017 (14) - 77093643461234 [07:31:26]1041 (16) - 0000000000874662 [07:31:26]1040 (4) - 72943 [07:31:26]1012 (4) - 31.10.2024 01:27 [07:31:26]1206 (1) - 0 [07:31:26]OFD Sender: Remove packet 72943 [07:31:26]ProducePacketName [07:31:26]name=ofd_packets/00072943 [07:31:26]NVStorageDeleteData [07:31:26]Read from MH i2c: 01 07 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 FF 0F BF [07:31:26]process_action close_receipt done [07:31:26]requested_data is exist [07:31:26]produce_requested_data [07:31:26]requested_item fm.sn is exist - process it [07:31:26]wFMCommunicate request_size=4 [07:31:26]MH_SAM_APDU [07:31:26]CAPDU: 80 11 00 00 [07:31:26]Write to MH i2c: E2 08 00 A5 06 80 11 00 00 00 00 00 00 25 [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:26]Read from MH i2c: E2 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 17 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 17 00 A5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 79 [07:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:31:26]wFMCommunicate OK [07:31:26]requested_item fd.num is exist - process it [07:31:26]SAM_PROTO_GetFieldsCounters [07:31:26]wFMCommunicate request_size=4 [07:31:26]MH_SAM_APDU [07:31:26]CAPDU: 80 13 00 00 [07:31:26]Write to MH i2c: E2 08 00 A6 06 80 13 00 00 00 00 00 00 28 [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:26]Read from MH i2c: E2 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 62 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 62 00 A6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EF 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [07:31:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EF 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:31:26]wFMCommunicate OK [07:31:26]SAM_PROTO_GetFieldsCounters done [07:31:26]requested_item shift.num is exist - process it [07:31:26]requested_item shift.opened is exist - process it [07:31:26]req_shift_opened [07:31:26]FM_GetShiftState [07:31:26]SAM_PROTO_GetShiftState [07:31:26]wFMCommunicate request_size=4 [07:31:26]MH_SAM_APDU [07:31:26]CAPDU: 80 13 01 00 [07:31:26]Write to MH i2c: E2 08 00 A7 06 80 13 01 00 00 00 00 00 2A [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:26]Read from MH i2c: E2 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 0E 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 0E 00 A7 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D3 [07:31:26]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:31:26]wFMCommunicate OK [07:31:26]SAM_PROTO_GetShiftState done [07:31:26]FM_GetShiftState done [07:31:26]req_shift_opened done [07:31:26]requested_item shift.open_date is exist - process it [07:31:26]req_shift_open_date [07:31:26]req_shift_open_date done [07:31:26]produce_requested_data done [07:31:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72943,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [07:31:26]process_action_free close_receipt [07:31:26]json_value_free [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7735358+1722625140=1730360498 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 B2 34 23 67 74 2C AD 66 22 [07:41:38]Current date/time: 31.10.2024 07:41 [07:41:38]FM_Init [07:41:38]wFMConnect [07:41:38]MH_SAM_On [07:41:38]Write to MH i2c: E0 00 00 08 00 E7 [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_init finished! [07:41:38]*** atr: [07:41:38]*** 0F 3B D5 18 FF 81 91 FE [07:41:38]*** 1F C3 80 73 C8 21 10 0A [07:41:38]*** 00 00 00 00 00 00 00 00 [07:41:38]*** 00 00 00 00 00 00 00 00 [07:41:38]*** 00 00 00 00 00 00 00 00 [07:41:38]*** 00 00 00 00 00 00 00 00 [07:41:38]*** 00 00 00 00 00 00 00 00 [07:41:38]*** 00 00 00 00 00 00 00 00 [07:41:38]Read from MH i2c: E0 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E0 10 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [07:41:38]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [07:41:38]wFMCommunicate request_size=10 [07:41:38]MH_SAM_APDU [07:41:38]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [07:41:38]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [07:41:38]Read from MH i2c: E2 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 03 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [07:41:38]RAPDU: 90 00 [07:41:38]wFMCommunicate OK [07:41:38]wFMCommunicate request_size=4 [07:41:38]MH_SAM_APDU [07:41:38]CAPDU: 80 11 00 00 [07:41:38]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:38]Read from MH i2c: E2 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 17 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [07:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:41:38]wFMCommunicate OK [07:41:38]Detected FM SN is 0000000000874662 [07:41:38]Stored FM SN is 0000000000874662 [07:41:38]wFMCommunicate request_size=9 [07:41:38]MH_SAM_APDU [07:41:38]CAPDU: 80 16 00 00 04 08 EB 00 00 [07:41:38]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [07:41:38]Read from MH i2c: E2 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 03 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [07:41:38]RAPDU: 90 00 [07:41:38]wFMCommunicate OK [07:41:38]FM PIN OK [07:41:38]wFMCommunicate request_size=8 [07:41:38]MH_SAM_APDU [07:41:38]CAPDU: 80 14 04 00 03 02 00 01 [07:41:38]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [07:41:38]Read from MH i2c: E2 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 03 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [07:41:38]RAPDU: 90 00 [07:41:38]wFMCommunicate OK [07:41:38]wFMCommunicate request_size=13 [07:41:38]MH_SAM_APDU [07:41:38]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [07:41:38]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [07:41:38]Read from MH i2c: E2 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 03 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [07:41:38]RAPDU: 90 00 [07:41:38]wFMCommunicate OK [07:41:38]wFMCommunicate request_size=4 [07:41:38]MH_SAM_APDU [07:41:38]CAPDU: 80 11 00 00 [07:41:38]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:38]Read from MH i2c: E2 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 17 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [07:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:41:38]wFMCommunicate OK [07:41:38]DocumentArchiveInit [07:41:38]Start Httpd... [07:41:38]Httpd thread 3066936676 created [07:41:38]Write to MH i2c: 01 00 00 0F 00 0F [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: 01 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: 01 07 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [07:41:38]Allocated Socket 5 [07:41:38]Bind OK [07:41:38]Listen OK [07:41:38]httpd running on port 8080 [07:41:38]Waiting for new connection... [07:41:38]MH Int Process started [07:41:38]OFD Sender: Processing packet 72944 [packets to send 279, broken 278] [07:41:38]ProducePacketName [07:41:38]name=ofd_packets/00072944 [07:41:38]OFD Sender: To server: pG, [07:41:38]CommunicateWithHost lk.salyk.kg:30040 [07:41:38]ConnectInit lk.salyk.kg [07:41:39]Connected sock=8 [07:41:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 EB CE 08 01 1B 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 07 33 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F0 1C 01 00 35 04 06 00 70 66 BD D1 4B C1 3C 3F 5F A6 16 66 73 EE [07:41:39]accept exits with 6 [07:41:39]New connection [07:41:39]New thread 3066649956 created [07:41:39]Waiting for new connection... [07:41:39] Sock 6.Parse request [07:41:39]Sock 6.Check first char [07:41:39]Sock 6.First char is OK [07:41:39]request: POST /json_proto HTTP/1.0 [07:41:39]Method: POST [07:41:39]URL: /json_proto [07:41:39]Method is POST - this is cgi request [07:41:39]url: /json_proto [07:41:39]query_string will be loaded in cgi processing [07:41:39]execute_cgi json_proto POST (null) [07:41:39]execute_cgi path=json_proto method=POST [07:41:39]POST find Content-Length [07:41:39]Host: 172.17.43.195:8080 [07:41:39]Content-Length: 215 [07:41:39]Content-Type: application/json [07:41:39] [07:41:39]POST finish read [07:41:39]Found Content-Length = 215 [07:41:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:39]execute_script... [07:41:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:39]POST & json_proto [07:41:39]process_json_proto [07:41:39]json parsed OK: [07:41:39]protocol is kg_v1.0 [07:41:39]action value=get_value [07:41:39]process_action get_value [07:41:39]cmd_get_value [07:41:39]process_action get_value done [07:41:39]requested_data is exist [07:41:39]produce_requested_data [07:41:39]requested_item kkm.sn is exist - process it [07:41:39]requested_item kkm.ver is exist - process it [07:41:39]requested_item fm.sn is exist - process it [07:41:39]wFMCommunicate request_size=4 [07:41:39]MH_SAM_APDU [07:41:39]CAPDU: 80 11 00 00 [07:41:39]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [07:41:39]Write i2c OK [07:41:39]MH_I2C_Read... [07:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:40]Read from MH i2c: E2 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: E2 17 00 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [07:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:41:40]wFMCommunicate OK [07:41:40]requested_item fd.num is exist - process it [07:41:40]SAM_PROTO_GetFieldsCounters [07:41:40]wFMCommunicate request_size=4 [07:41:40]MH_SAM_APDU [07:41:40]CAPDU: 80 13 00 00 [07:41:40]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [07:41:40]Write i2c OK [07:41:40]MH_I2C_Read... [07:41:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E7 11 47 00 6B C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F0 1C 01 00 F4 03 04 00 68 DF 22 67 B6 04 01 00 00 54 70 8B DF F8 16 B4 42 [07:41:40]CommunicateWithHost err = 0 [07:41:40]CheckOFDResponse [07:41:40]1017 (14) - 77093643461234 [07:41:40]1041 (16) - 0000000000874662 [07:41:40]1040 (4) - 72944 [07:41:40]1012 (4) - 31.10.2024 01:37 [07:41:40]1206 (1) - 0 [07:41:40]OFD Sender: Remove packet 72944 [07:41:40]ProducePacketName [07:41:40]name=ofd_packets/00072944 [07:41:40]NVStorageDeleteData [07:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:40]Read from MH i2c: E2 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: E2 62 00 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F0 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [07:41:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F0 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:40]wFMCommunicate OK [07:41:40]SAM_PROTO_GetFieldsCounters done [07:41:40]requested_item shift.num is exist - process it [07:41:40]requested_item shift.opened is exist - process it [07:41:40]req_shift_opened [07:41:40]FM_GetShiftState [07:41:40]SAM_PROTO_GetShiftState [07:41:40]wFMCommunicate request_size=4 [07:41:40]MH_SAM_APDU [07:41:40]CAPDU: 80 13 01 00 [07:41:40]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [07:41:40]Write i2c OK [07:41:40]MH_I2C_Read... [07:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:40]Read from MH i2c: E2 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: E2 0E 00 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [07:41:40]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:41:40]wFMCommunicate OK [07:41:40]SAM_PROTO_GetShiftState done [07:41:40]FM_GetShiftState done [07:41:40]req_shift_opened done [07:41:40]requested_item shift.open_date is exist - process it [07:41:40]req_shift_open_date [07:41:40]req_shift_open_date done [07:41:40]produce_requested_data done [07:41:40]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72944,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [07:41:40]process_action_free get_value [07:41:40]json_value_free [07:41:40]json_value_free done [07:41:40]process_json_proto returns [07:41:40]Send response to host [07:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72944,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [07:41:40]free response buf [07:41:40]execute_script done [07:41:40]execute_script returns [07:41:40]free content buf [07:41:40]Sock 6.Close socket [07:41:40]Sock 6.Thread stoped [07:41:40]accept exits with 10 [07:41:40]New connection [07:41:40]New thread 3066506596 created [07:41:40]Thread 3066649956 joined [07:41:40]Waiting for new connection... [07:41:40] Sock 10.Parse request [07:41:40]Sock 10.Check first char [07:41:40]Sock 10.First char is OK [07:41:40]request: POST /json_proto HTTP/1.0 [07:41:40]Method: POST [07:41:40]URL: /json_proto [07:41:40]Method is POST - this is cgi request [07:41:40]url: /json_proto [07:41:40]query_string will be loaded in cgi processing [07:41:40]execute_cgi json_proto POST (null) [07:41:40]execute_cgi path=json_proto method=POST [07:41:40]POST find Content-Length [07:41:40]Host: 172.17.43.195:8080 [07:41:40]Content-Length: 331 [07:41:40]Content-Type: application/json [07:41:40] [07:41:40]POST finish read [07:41:40]Found Content-Length = 331 [07:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:41:40]execute_script... [07:41:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:41:40]POST & json_proto [07:41:40]process_json_proto [07:41:40]json parsed OK: [07:41:40]protocol is kg_v1.0 [07:41:40]action value=get_value [07:41:40]process_action get_value [07:41:40]cmd_get_value [07:41:40]process_action get_value done [07:41:40]requested_data is exist [07:41:40]produce_requested_data [07:41:40]requested_item fm.sale.total is exist - process it [07:41:40]SAM_PROTO_GetFMData [07:41:40]wFMCommunicate request_size=4 [07:41:40]MH_SAM_APDU [07:41:40]CAPDU: 80 13 03 00 [07:41:40]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [07:41:40]Write i2c OK [07:41:40]MH_I2C_Read... [07:41:40]OFD Sender: No OFD packet to send [07:41:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 FD 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 96 18 01 00 69 04 A3 00 6F 04 04 00 A6 17 01 00 B1 04 05 00 A9 54 2C A4 01 70 04 05 00 08 10 AC 58 01 72 04 04 00 A1 44 80 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F1 92 A1 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A8 0F B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 1E [07:41:41]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 96 18 01 00 69 04 A3 00 6F 04 04 00 A6 17 01 00 B1 04 05 00 A9 54 2C A4 01 70 04 05 00 08 10 AC 58 01 72 04 04 00 A1 44 80 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F1 92 A1 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A8 0F B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [07:41:41]wFMCommunicate OK [07:41:41]wFMCommunicate request_size=4 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 17 00 00 [07:41:41]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 FD 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [07:41:41]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [07:41:41]wFMCommunicate OK [07:41:41]wFMCommunicate request_size=4 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 17 00 00 [07:41:41]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 FD 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [07:41:41]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [07:41:41]wFMCommunicate OK [07:41:41]wFMCommunicate request_size=4 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 17 00 00 [07:41:41]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 FD 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [07:41:41]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [07:41:41]wFMCommunicate OK [07:41:41]wFMCommunicate request_size=4 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 17 00 00 [07:41:41]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [07:41:42]Read from MH i2c: E2 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 E1 00 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [07:41:42]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:41:42]wFMCommunicate OK [07:41:42]SAM_PROTO_GetFMData done [07:41:42]requested_item fm.sale_refund.total is exist - process it [07:41:42]requested_item fm.buy.total is exist - process it [07:41:42]requested_item shift.sale.total is exist - process it [07:41:42]SAM_PROTO_GetShiftData [07:41:42]wFMCommunicate request_size=4 [07:41:42]MH_SAM_APDU [07:41:42]CAPDU: 80 13 02 00 [07:41:42]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [07:41:42]Write i2c OK [07:41:42]MH_I2C_Read... [07:41:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:41:42]Read from MH i2c: E2 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 FD 00 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 13 00 00 00 69 04 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 F0 E7 15 70 04 03 00 D4 06 07 72 04 03 00 1C E1 0E 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 96 53 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 A0 31 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [07:41:42]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 13 00 00 00 69 04 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 F0 E7 15 70 04 03 00 D4 06 07 72 04 03 00 1C E1 0E 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 96 53 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 A0 31 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [07:41:42]wFMCommunicate OK [07:41:42]wFMCommunicate request_size=4 [07:41:42]MH_SAM_APDU [07:41:42]CAPDU: 80 17 00 00 [07:41:42]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [07:41:42]Write i2c OK [07:41:42]MH_I2C_Read... [07:41:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:42]Read from MH i2c: E2 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 FD 00 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [07:41:42]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 [07:41:42]wFMCommunicate OK [07:41:42]wFMCommunicate request_size=4 [07:41:42]MH_SAM_APDU [07:41:42]CAPDU: 80 17 00 00 [07:41:42]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [07:41:42]Write i2c OK [07:41:42]MH_I2C_Read... [07:41:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:43]Read from MH i2c: E2 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 FD 00 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [07:41:43]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 [07:41:43]wFMCommunicate OK [07:41:43]wFMCommunicate request_size=4 [07:41:43]MH_SAM_APDU [07:41:43]CAPDU: 80 17 00 00 [07:41:43]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [07:41:43]Write i2c OK [07:41:43]MH_I2C_Read... [07:41:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:43]Read from MH i2c: E2 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 FD 00 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [07:41:43]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 [07:41:43]wFMCommunicate OK [07:41:43]wFMCommunicate request_size=4 [07:41:43]MH_SAM_APDU [07:41:43]CAPDU: 80 17 00 00 [07:41:43]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [07:41:43]Write i2c OK [07:41:43]MH_I2C_Read... [07:41:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:41:43]Read from MH i2c: E2 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 CB 00 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [07:41:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:41:43]wFMCommunicate OK [07:41:43]SAM_PROTO_GetShiftData done [07:41:43]requested_item shift.sale.total_cash is exist - process it [07:41:43]requested_item shift.sale_refund.total is exist - process it [07:41:43]requested_item shift.sale_refund.total_cash is exist - process it [07:41:43]requested_item shift.buy.total is exist - process it [07:41:43]requested_item shift.buy.total_cash is exist - process it [07:41:43]produce_requested_data done [07:41:43]produce_requested_data return {"fm.sale.total":70493359.77,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":14356.32,"shift.sale.total_cash":4605.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:41:43]process_action_free get_value [07:41:43]json_value_free [07:41:43]json_value_free done [07:41:43]process_json_proto returns [07:41:43]Send response to host [07:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70493359.77,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":14356.32,"shift.sale.total_cash":4605.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:41:43]free response buf [07:41:43]execute_script done [07:41:43]execute_script returns [07:41:43]free content buf [07:41:43]Sock 10.Close socket [07:41:43]Sock 10.Thread stoped [07:41:44]accept exits with 6 [07:41:44]New connection [07:41:44]New thread 3066649956 created [07:41:44]Thread 3066506596 joined [07:41:44]Waiting for new connection... [07:41:44] Sock 6.Parse request [07:41:44]Sock 6.Check first char [07:41:44]Sock 6.First char is OK [07:41:44]request: POST /json_proto HTTP/1.0 [07:41:44]Method: POST [07:41:44]URL: /json_proto [07:41:44]Method is POST - this is cgi request [07:41:44]url: /json_proto [07:41:44]query_string will be loaded in cgi processing [07:41:44]execute_cgi json_proto POST (null) [07:41:44]execute_cgi path=json_proto method=POST [07:41:44]POST find Content-Length [07:41:44]Host: 172.17.43.195:8080 [07:41:44]Content-Length: 797 [07:41:44]Content-Type: application/json [07:41:44] [07:41:44]POST finish read [07:41:44]Found Content-Length = 797 [07:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:44]execute_script... [07:41:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:44]POST & json_proto [07:41:44]process_json_proto [07:41:44]json parsed OK: [07:41:44]protocol is kg_v1.0 [07:41:44]action value=close_receipt [07:41:44]process_action close_receipt [07:41:44]cmd_close_receipt [07:41:44]MH_GetDate [07:41:44]Write to MH i2c: F0 00 00 1D 00 0C [07:41:44]Write i2c OK [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: F0 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: F0 09 00 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: F0 09 00 1D 00 00 B8 34 23 67 74 2C AD 66 3E [07:41:44]GetLastDocTimeStamp 1730360071 [07:41:44]current date 1730360504 [07:41:44]FM_GetShiftState [07:41:44]SAM_PROTO_GetShiftState [07:41:44]wFMCommunicate request_size=4 [07:41:44]MH_SAM_APDU [07:41:44]CAPDU: 80 13 01 00 [07:41:44]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [07:41:44]Write i2c OK [07:41:44]MH_I2C_Read... [07:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:44]Read from MH i2c: E2 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: E2 0E 00 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 44 [07:41:44]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:41:44]wFMCommunicate OK [07:41:44]SAM_PROTO_GetShiftState done [07:41:44]FM_GetShiftState done [07:41:44]opened in 1730333258 [07:41:44]opened+sec_in_day 1730419658 [07:41:44]quantity*price = 0 [07:41:44]sum+1 = 1 [07:41:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 20 31.10.2024 07:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72945 ФПД: 235168082803066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T074144&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72945&fm=235168082803066&tin=02508201610067®Number=0000000000091644&sum=0 [07:41:45]StoreToDocumentArchive [07:41:45]shift 557 fd 72945 [07:41:45]save to /storage/0557/doc_00072945 [07:41:45]save last doc name /storage/0557/doc_00072945 to /storage/kkm_last_doc_name [07:41:45]save OK [07:41:45]Clear old archive folders... [07:41:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:41:45]tlvbuf is 01D81D00 [07:41:45]SAM_PROTO_ClearQueue [07:41:45]wFMCommunicate request_size=4 [07:41:45]MH_SAM_APDU [07:41:45]CAPDU: 80 09 00 00 [07:41:45]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [07:41:45]Write i2c OK [07:41:45]MH_I2C_Read... [07:41:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:45]Read from MH i2c: E2 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 03 00 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [07:41:45]RAPDU: 90 00 [07:41:45]wFMCommunicate OK [07:41:45]SAM_PROTO_ClearQueue done [07:41:45]KKMCreateOFDPacket [07:41:45]OFDProtocolAddRootSTLVToBuf [07:41:45]FM_MakeSignedData [07:41:45]FM_MakeSignedData [07:41:45]SAM_PROTO_SignData [07:41:45]wFMCommunicate request_size=4 [07:41:45]MH_SAM_APDU [07:41:45]CAPDU: 80 0D 01 02 [07:41:45]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [07:41:45]Write i2c OK [07:41:45]MH_I2C_Read... [07:41:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:45]OFD Sender: No OFD packet to send [07:41:45]Read from MH i2c: E2 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 03 00 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [07:41:45]RAPDU: 90 00 [07:41:45]wFMCommunicate OK [07:41:45]wFMCommunicate request_size=255 [07:41:45]MH_SAM_APDU [07:41:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B8 34 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1C 01 00 35 04 06 00 [07:41:45]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B8 34 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1C 01 00 35 04 06 00 00 00 E7 [07:41:45]Write i2c OK [07:41:45]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [07:41:46]RAPDU: 90 00 [07:41:46]wFMCommunicate OK [07:41:46]wFMCommunicate request_size=11 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 0D 02 02 06 D5 E2 56 09 B9 7A [07:41:46]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 D5 E2 56 09 B9 7A 00 00 FD [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [07:41:46]RAPDU: 90 00 [07:41:46]wFMCommunicate OK [07:41:46]wFMCommunicate request_size=4 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 0D 03 02 [07:41:46]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 0B 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 0B 00 2F 00 00 E5 6E 90 01 59 9A DE 49 90 00 A9 [07:41:46]RAPDU: E5 6E 90 01 59 9A DE 49 90 00 [07:41:46]wFMCommunicate OK [07:41:46]SAM_PROTO_SignData done [07:41:46]FM_MakeSignedData done [07:41:46]CreateOFDProtocolMessage [07:41:46]wFMCommunicate request_size=4 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 11 00 00 [07:41:46]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 17 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [07:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:41:46]wFMCommunicate OK [07:41:46]CreateOFDProtocolMessage done [07:41:46]OFDSenderStorePacket 72945 [07:41:46]StoreOFDPacket docnum=72945 [07:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B9 96 08 01 22 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B8 34 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1C 01 00 35 04 06 00 D5 E2 56 09 B9 7A E5 6E 90 01 59 9A DE 49 [07:41:46]CheckFolder [07:41:46]dirname=/storage/ofd_packets [07:41:46]CheckFolder done [07:41:46]ProducePacketName [07:41:46]name=ofd_packets/00072945 [07:41:46]NVStorageSaveData ofd_packets/00072945 [07:41:46]File name is /storage/ofd_packets/00072945 [07:41:46]Write 302 bytes [07:41:46]NVStorageSaveData done [07:41:46]OFDSenderStorePacket done [07:41:46]KKMCreateOFDPacket done [07:41:46]NVStorageSaveData kkm_last_timestamp [07:41:46]File name is /storage/kkm_last_timestamp [07:41:46]Write 4 bytes [07:41:46]NVStorageSaveData done [07:41:46]ExternCall_PrintAddStr [07:41:46]wPrintStart [07:41:46]Write to MH i2c: 01 00 00 31 00 31 [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: 01 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: 01 07 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [07:41:46]RasterBufferAndPrint [07:41:46]line Счет N : (1)952544 [07:41:46]OFD Sender: Processing packet 72945 [packets to send 279, broken 278] [07:41:46]ProducePacketName [07:41:46]name=ofd_packets/00072945 [07:41:46]OFD Sender: To server: pG, [07:41:46]CommunicateWithHost lk.salyk.kg:30040 [07:41:46]ConnectInit lk.salyk.kg [07:41:46]line ИНН: 02508201610067 [07:41:46]line Контрольно-Кассовый Чек [07:41:46]line ПРОДАЖА [07:41:46]line ТРК (МРК, ГНК) : 22 [07:41:46]line Товар: 2710194210 [07:41:46]line ДТ(л)-К-5 [07:41:46]line 19.690 * 0.00 [07:41:46]line = 0.00 [07:41:46]line НДС 12% НСП 1% [07:41:46]line > о реализуемом товаре [07:41:46]line ИТОГО: 0.00 [07:41:46]line НСП 1% : 0.00 [07:41:46]line НДС 12% : 0.00 [07:41:46]line Наличными: 0.00 [07:41:46]line Безнал.: 0.00 [07:41:46]line Место: АЗС № 113 "Партнер Нефть" [07:41:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:41:46]line СНО: Общий режим [07:41:46]line Чек 20 31.10.2024 07:41 [07:41:46]line Смена: 557 ФФД: 1.0 [07:41:46]line ЗНМ: 0300000087 [07:41:46]line РНМ: 0000000000091644 [07:41:46]line Версия ККМ: 001 [07:41:46]line Талоны: Топливная Карта [07:41:46]line 02083 [07:41:46]line ФМ: 0000000000874662 [07:41:46]line ФД: 72945 [07:41:46]line ФПД: 235168082803066 [07:41:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T074144&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72945&fm=235168082803066&tin=02508201610067®Number=0000000000091644&sum=0 [07:41:46]written 0, free lines is 4095 [07:41:46]Connected sock=8 [07:41:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B9 96 08 01 22 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 Write to MH i2c: 00 01 1F 00 04 00 02 5B 00 00 01 5B 00 [07:41:46]12 04 04 Write i2c OK [07:41:46]00 MH_I2C_Read... [07:41:46]14 Read from MH i2c: 00 01 00 [07:41:46]00 MH_I2C_Read... [07:41:46]F4 03 04 00 B8 34 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 Read from MH i2c: 10 01 00 07 30 00 30 [07:41:46]30 MH_I2C_Read... [07:41:46]30 30 Read from MH i2c: 30 01 30 07 30 00 30 5B 30 00 30 00 39 00 31 00 36 00 34 00 34 29 11 0D 04 98 10 [07:41:47]00 RasterBufferAndPrint [07:41:47]30 line [07:41:47]30 line [07:41:47]30 line [07:41:47]30 line [07:41:47]30 line [07:41:47]30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1C 01 00 35 04 06 00 D5 E2 56 09 B9 7A E5 6E 90 written 0, free lines is 3432 [07:41:47]01 59 9A DE 49 [07:41:47]MH_Cut [07:41:47]Write to MH i2c: D1 01 00 62 00 01 34 [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: D1 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: D1 01 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: D1 01 00 62 00 00 33 [07:41:47]Write to MH i2c: 01 00 00 63 00 63 [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A8 6E 47 00 3C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1C 01 00 F4 03 04 00 6F DF 22 67 B6 04 01 00 00 02 87 DE EB 00 9D 6C A4 [07:41:47]CommunicateWithHost err = 0 [07:41:47]CheckOFDResponse [07:41:47]1017 (14) - 77093643461234 [07:41:47]1041 (16) - 0000000000874662 [07:41:47]1040 (4) - 72945 [07:41:47]1012 (4) - 31.10.2024 01:37 [07:41:47]1206 (1) - 0 [07:41:47]OFD Sender: Remove packet 72945 [07:41:47]ProducePacketName [07:41:47]name=ofd_packets/00072945 [07:41:47]NVStorageDeleteData [07:41:47]*** Cut start [07:41:47]*** Partial cut [07:41:47]*** CUTSNS_PIN = 1 [07:41:47]*** CUTSNS_PIN = 0 [07:41:47]*** Brake cut motor [07:41:48]OFD Sender: No OFD packet to send [07:41:48]Read from MH i2c: 01 *** Stop cut motor [07:41:48] [07:41:48]*** Cut end [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 07 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [07:41:48]process_action close_receipt done [07:41:48]requested_data is exist [07:41:48]produce_requested_data [07:41:48]requested_item fm.sn is exist - process it [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 11 00 00 [07:41:48]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 17 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [07:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:41:48]wFMCommunicate OK [07:41:48]requested_item fd.num is exist - process it [07:41:48]SAM_PROTO_GetFieldsCounters [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 13 00 00 [07:41:48]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 62 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F1 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [07:41:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F1 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:48]wFMCommunicate OK [07:41:48]SAM_PROTO_GetFieldsCounters done [07:41:48]requested_item shift.num is exist - process it [07:41:48]requested_item shift.opened is exist - process it [07:41:48]req_shift_opened [07:41:48]FM_GetShiftState [07:41:48]SAM_PROTO_GetShiftState [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 13 01 00 [07:41:48]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0E 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8C [07:41:48]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:41:48]wFMCommunicate OK [07:41:48]SAM_PROTO_GetShiftState done [07:41:48]FM_GetShiftState done [07:41:48]req_shift_opened done [07:41:48]requested_item shift.open_date is exist - process it [07:41:48]req_shift_open_date [07:41:48]req_shift_open_date done [07:41:48]produce_requested_data done [07:41:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72945,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [07:41:48]process_action_free close_receipt [07:41:48]json_value_free [07:41:48]json_value_free done [07:41:48]process_json_proto returns [07:41:48]Send response to host [07:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72945,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [07:41:48]free response buf [07:41:48]execute_script done [07:41:48]execute_script returns [07:41:48]free content buf [07:41:48]Sock 6.Close socket [07:41:48]Sock 6.Thread stoped [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:34]accept exits with 10 [07:42:34]New connection [07:42:34]New thread 3066506596 created [07:42:34]Thread 3066649956 joined [07:42:34]Waiting for new connection... [07:42:34] Sock 10.Parse request [07:42:34]Sock 10.Check first char [07:42:34]Sock 10.First char is OK [07:42:34]request: POST /json_proto HTTP/1.0 [07:42:34]Method: POST [07:42:34]URL: /json_proto [07:42:34]Method is POST - this is cgi request [07:42:34]url: /json_proto [07:42:34]query_string will be loaded in cgi processing [07:42:34]execute_cgi json_proto POST (null) [07:42:34]execute_cgi path=json_proto method=POST [07:42:34]POST find Content-Length [07:42:34]Host: 172.17.43.195:8080 [07:42:34]Content-Length: 792 [07:42:34]Content-Type: application/json [07:42:34] [07:42:34]POST finish read [07:42:34]Found Content-Length = 792 [07:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:34]execute_script... [07:42:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:34]POST & json_proto [07:42:34]process_json_proto [07:42:34]json parsed OK: [07:42:34]protocol is kg_v1.0 [07:42:34]action value=close_receipt [07:42:34]process_action close_receipt [07:42:34]cmd_close_receipt [07:42:34]MH_GetDate [07:42:34]Write to MH i2c: F0 00 00 67 00 56 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: F0 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: F0 09 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: F0 09 00 67 00 00 EB 34 23 67 74 2C AD 66 BB [07:42:34]GetLastDocTimeStamp 1730360504 [07:42:34]current date 1730360555 [07:42:34]FM_GetShiftState [07:42:34]SAM_PROTO_GetShiftState [07:42:34]wFMCommunicate request_size=4 [07:42:34]MH_SAM_APDU [07:42:34]CAPDU: 80 13 01 00 [07:42:34]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 0E 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8E [07:42:34]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:42:34]wFMCommunicate OK [07:42:34]SAM_PROTO_GetShiftState done [07:42:34]FM_GetShiftState done [07:42:34]opened in 1730333258 [07:42:34]opened+sec_in_day 1730419658 [07:42:34]quantity*price = 0 [07:42:34]sum+1 = 1 [07:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 21 31.10.2024 07:42 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72946 ФПД: 4649388791463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T074235&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72946&fm=4649388791463&tin=02508201610067®Number=0000000000091644&sum=0 [07:42:35]StoreToDocumentArchive [07:42:35]shift 557 fd 72946 [07:42:35]save to /storage/0557/doc_00072946 [07:42:35]save last doc name /storage/0557/doc_00072946 to /storage/kkm_last_doc_name [07:42:35]save OK [07:42:35]Clear old archive folders... [07:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:35]tlvbuf is 01D18D10 [07:42:35]SAM_PROTO_ClearQueue [07:42:35]wFMCommunicate request_size=4 [07:42:35]MH_SAM_APDU [07:42:35]CAPDU: 80 09 00 00 [07:42:35]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:35]Read from MH i2c: E2 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 03 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [07:42:35]RAPDU: 90 00 [07:42:35]wFMCommunicate OK [07:42:35]SAM_PROTO_ClearQueue done [07:42:35]KKMCreateOFDPacket [07:42:35]OFDProtocolAddRootSTLVToBuf [07:42:35]FM_MakeSignedData [07:42:35]FM_MakeSignedData [07:42:35]SAM_PROTO_SignData [07:42:35]wFMCommunicate request_size=4 [07:42:35]MH_SAM_APDU [07:42:35]CAPDU: 80 0D 01 02 [07:42:35]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:35]Read from MH i2c: E2 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 03 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [07:42:35]RAPDU: 90 00 [07:42:35]wFMCommunicate OK [07:42:35]wFMCommunicate request_size=255 [07:42:35]MH_SAM_APDU [07:42:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 EB 34 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F2 1C 01 00 35 04 06 00 04 [07:42:35]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 EB 34 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F2 1C 01 00 35 04 06 00 04 00 00 07 [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:35]Read from MH i2c: E2 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 03 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [07:42:35]RAPDU: 90 00 [07:42:35]wFMCommunicate OK [07:42:35]wFMCommunicate request_size=10 [07:42:35]MH_SAM_APDU [07:42:35]CAPDU: 80 0D 02 02 05 3A 85 2A D6 A7 [07:42:35]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 3A 85 2A D6 A7 00 00 62 [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:35]Read from MH i2c: E2 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 03 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [07:42:35]RAPDU: 90 00 [07:42:35]wFMCommunicate OK [07:42:35]wFMCommunicate request_size=4 [07:42:35]MH_SAM_APDU [07:42:35]CAPDU: 80 0D 03 02 [07:42:35]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:35]Read from MH i2c: E2 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 0B 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: E2 0B 00 79 00 00 42 83 11 4D BB F1 C7 7C 90 00 07 [07:42:35]RAPDU: 42 83 11 4D BB F1 C7 7C 90 00 [07:42:35]wFMCommunicate OK [07:42:35]SAM_PROTO_SignData done [07:42:35]FM_MakeSignedData done [07:42:35]CreateOFDProtocolMessage [07:42:35]wFMCommunicate request_size=4 [07:42:35]MH_SAM_APDU [07:42:35]CAPDU: 80 11 00 00 [07:42:35]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:36]Read from MH i2c: E2 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: E2 17 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [07:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:42:36]wFMCommunicate OK [07:42:36]CreateOFDProtocolMessage done [07:42:36]OFDSenderStorePacket 72946 [07:42:36]StoreOFDPacket docnum=72946 [07:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 72 B7 07 01 FB 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 EB 34 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F2 1C 01 00 35 04 06 00 04 3A 85 2A D6 A7 42 83 11 4D BB F1 C7 7C [07:42:36]CheckFolder [07:42:36]dirname=/storage/ofd_packets [07:42:36]CheckFolder done [07:42:36]ProducePacketName [07:42:36]name=ofd_packets/00072946 [07:42:36]NVStorageSaveData ofd_packets/00072946 [07:42:36]File name is /storage/ofd_packets/00072946 [07:42:36]Write 301 bytes [07:42:36]NVStorageSaveData done [07:42:36]OFDSenderStorePacket done [07:42:36]KKMCreateOFDPacket done [07:42:36]NVStorageSaveData kkm_last_timestamp [07:42:36]File name is /storage/kkm_last_timestamp [07:42:36]Write 4 bytes [07:42:36]NVStorageSaveData done [07:42:36]ExternCall_PrintAddStr [07:42:36]wPrintStart [07:42:36]Write to MH i2c: 01 00 00 7B 00 7B [07:42:36]OFD Sender: Processing packet 72946 [packets to send 279, broken 278] [07:42:36]ProducePacketName [07:42:36]name=ofd_packets/00072946 [07:42:36]OFD Sender: To server: pG, [07:42:36]CommunicateWithHost lk.salyk.kg:30040 [07:42:36]ConnectInit lk.salyk.kg [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [07:42:36]RasterBufferAndPrint [07:42:36]line Счет N : (1)952545 [07:42:36]line ИНН: 02508201610067 [07:42:36]line Контрольно-Кассовый Чек [07:42:36]line ПРОДАЖА [07:42:36]line ТРК (МРК, ГНК) : 53 [07:42:36]line Товар: 2710124130 [07:42:36]line Аи-92-К-5 [07:42:36]line 10.470 * 0.00 [07:42:36]line = 0.00 [07:42:36]line НДС 12% НСП 1% [07:42:36]line > о реализуемом товаре [07:42:36]line ИТОГО: 0.00 [07:42:36]line НСП 1% : 0.00 [07:42:36]line НДС 12% : 0.00 [07:42:36]line Наличными: 0.00 [07:42:36]line Безнал.: 0.00 [07:42:36]line Место: АЗС № 113 "Партнер Нефть" [07:42:36]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:42:36]line СНО: Общий режим [07:42:36]line Чек 21 31.10.2024 07:42 [07:42:36]line Смена: 557 ФФД: 1.0 [07:42:36]line ЗНМ: 0300000087 [07:42:36]line РНМ: 0000000000091644 [07:42:36]line Версия ККМ: 001 [07:42:36]line Талоны: Топливная Карта [07:42:36]line 53623 [07:42:36]line ФМ: 0000000000874662 [07:42:36]line ФД: 72946 [07:42:36]line ФПД: 4649388791463 [07:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T074235&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72946&fm=4649388791463&tin=02508201610067®Number=0000000000091644&sum=0 [07:42:36]written 0, free lines is 4095 [07:42:36]Write to MH i2c: 01 00 00 A5 00 A5 [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 D6 0C 8E [07:42:36]RasterBufferAndPrint [07:42:36]line [07:42:36]line [07:42:36]line [07:42:36]line [07:42:36]line [07:42:36]written 0, free lines is 3293 [07:42:36]MH_Cut [07:42:36]Write to MH i2c: D1 01 00 AC 00 01 7E [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: D1 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: D1 01 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: D1 01 00 AC 00 00 7D [07:42:36]Write to MH i2c: 01 00 00 AD 00 AD [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Connected sock=8 [07:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 72 B7 07 01 FB 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 EB 34 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F2 1C 01 00 35 04 06 00 04 3A 85 2A D6 A7 42 83 11 4D BB F1 C7 7C [07:42:37]*** Cut start [07:42:37]*** Partial cut [07:42:37]*** CUTSNS_PIN = 1 [07:42:37]*** CUTSNS_PIN = 0 [07:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D6 98 47 00 14 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F2 1C 01 00 F4 03 04 00 A1 DF 22 67 B6 04 01 00 00 9A 84 20 39 7B 26 94 72 [07:42:37]CommunicateWithHost err = 0 [07:42:37]CheckOFDResponse [07:42:37]1017 (14) - 77093643461234 [07:42:37]1041 (16) - 0000000000874662 [07:42:37]1040 (4) - 72946 [07:42:37]1012 (4) - 31.10.2024 01:38 [07:42:37]1206 (1) - 0 [07:42:37]OFD Sender: Remove packet 72946 [07:42:37]ProducePacketName [07:42:37]name=ofd_packets/00072946 [07:42:37]NVStorageDeleteData [07:42:37]*** Brake cut motor [07:42:37]Read from MH i2c: 01 [07:42:37]MH_I2C_Read... [07:42:37]*** Stop cut motor [07:42:37]*** Cut end [07:42:37]Read from MH i2c: 01 07 00 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [07:42:37]process_action close_receipt done [07:42:37]requested_data is exist [07:42:37]produce_requested_data [07:42:37]requested_item fm.sn is exist - process it [07:42:37]wFMCommunicate request_size=4 [07:42:37]MH_SAM_APDU [07:42:37]CAPDU: 80 11 00 00 [07:42:37]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [07:42:37]Write i2c OK [07:42:37]MH_I2C_Read... [07:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:37]Read from MH i2c: E2 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 17 00 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [07:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:42:37]wFMCommunicate OK [07:42:37]requested_item fd.num is exist - process it [07:42:37]SAM_PROTO_GetFieldsCounters [07:42:37]wFMCommunicate request_size=4 [07:42:37]MH_SAM_APDU [07:42:37]CAPDU: 80 13 00 00 [07:42:37]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [07:42:37]Write i2c OK [07:42:37]MH_I2C_Read... [07:42:37]OFD Sender: No OFD packet to send [07:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:38]Read from MH i2c: E2 [07:42:38]MH_I2C_Read... [07:42:38]Read from MH i2c: E2 62 00 [07:42:38]MH_I2C_Read... [07:42:38]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F2 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [07:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F2 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:38]wFMCommunicate OK [07:42:38]SAM_PROTO_GetFieldsCounters done [07:42:38]requested_item shift.num is exist - process it [07:42:38]requested_item shift.opened is exist - process it [07:42:38]req_shift_opened [07:42:38]FM_GetShiftState [07:42:38]SAM_PROTO_GetShiftState [07:42:38]wFMCommunicate request_size=4 [07:42:38]MH_SAM_APDU [07:42:38]CAPDU: 80 13 01 00 [07:42:38]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [07:42:38]Write i2c OK [07:42:38]MH_I2C_Read... [07:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:38]Read from MH i2c: E2 [07:42:38]MH_I2C_Read... [07:42:38]Read from MH i2c: E2 0E 00 [07:42:38]MH_I2C_Read... [07:42:38]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D6 [07:42:38]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:42:38]wFMCommunicate OK [07:42:38]SAM_PROTO_GetShiftState done [07:42:38]FM_GetShiftState done [07:42:38]req_shift_opened done [07:42:38]requested_item shift.open_date is exist - process it [07:42:38]req_shift_open_date [07:42:38]req_shift_open_date done [07:42:38]produce_requested_data done [07:42:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72946,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [07:42:38]process_action_free close_receipt [07:42:38]json_value_free [07:42:38]json_value_free done [07:42:38]process_json_proto returns [07:42:38]Send response to host [07:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72946,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [07:42:38]free response buf [07:42:38]execute_script done [07:42:38]execute_script returns [07:42:38]free content buf [07:42:38]Sock 10.Close socket [07:42:38]Sock 10.Thread stoped [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:53]recv_with_timeout no data received [07:42:57]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:54]recv_with_timeout no data received [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:19]recv_with_timeout no data received [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]recv_with_timeout no data received [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:54]recv_with_timeout no data received [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:17]recv_with_timeout no data received [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:41]accept exits with 9 [07:49:41]New connection [07:49:41]New thread 3066649956 created [07:49:41]Thread 3066506596 joined [07:49:41]Waiting for new connection... [07:49:41] Sock 9.Parse request [07:49:41]Sock 9.Check first char [07:49:41]Sock 9.First char is OK [07:49:41]request: POST /json_proto HTTP/1.0 [07:49:41]Method: POST [07:49:41]URL: /json_proto [07:49:41]Method is POST - this is cgi request [07:49:41]url: /json_proto [07:49:41]query_string will be loaded in cgi processing [07:49:41]execute_cgi json_proto POST (null) [07:49:41]execute_cgi path=json_proto method=POST [07:49:41]POST find Content-Length [07:49:41]Host: 172.17.43.195:8080 [07:49:41]Content-Length: 791 [07:49:41]Content-Type: application/json [07:49:41] [07:49:41]POST finish read [07:49:41]Found Content-Length = 791 [07:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 2.990, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:41]execute_script... [07:49:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 2.990, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:41]POST & json_proto [07:49:41]process_json_proto [07:49:41]json parsed OK: [07:49:41]protocol is kg_v1.0 [07:49:41]action value=close_receipt [07:49:41]process_action close_receipt [07:49:41]cmd_close_receipt [07:49:41]MH_GetDate [07:49:41]Write to MH i2c: F0 00 00 B1 00 A0 [07:49:41]Write i2c OK [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: F0 [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: F0 09 00 [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: F0 09 00 B1 00 00 95 36 23 67 74 2C AD 66 B1 [07:49:41]GetLastDocTimeStamp 1730360555 [07:49:41]current date 1730360981 [07:49:41]FM_GetShiftState [07:49:41]SAM_PROTO_GetShiftState [07:49:41]wFMCommunicate request_size=4 [07:49:41]MH_SAM_APDU [07:49:41]CAPDU: 80 13 01 00 [07:49:41]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [07:49:41]Write i2c OK [07:49:41]MH_I2C_Read... [07:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:41]Read from MH i2c: E2 [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: E2 0E 00 [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D8 [07:49:41]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:49:41]wFMCommunicate OK [07:49:41]SAM_PROTO_GetShiftState done [07:49:41]FM_GetShiftState done [07:49:41]opened in 1730333258 [07:49:41]opened+sec_in_day 1730419658 [07:49:41]quantity*price = 0 [07:49:41]sum+1 = 1 [07:49:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 22 31.10.2024 07:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72947 ФПД: 1774645263733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T074942&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72947&fm=1774645263733&tin=02508201610067®Number=0000000000091644&sum=0 [07:49:42]StoreToDocumentArchive [07:49:42]shift 557 fd 72947 [07:49:42]save to /storage/0557/doc_00072947 [07:49:42]save last doc name /storage/0557/doc_00072947 to /storage/kkm_last_doc_name [07:49:42]save OK [07:49:42]Clear old archive folders... [07:49:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:42]tlvbuf is 01DA5630 [07:49:42]SAM_PROTO_ClearQueue [07:49:42]wFMCommunicate request_size=4 [07:49:42]MH_SAM_APDU [07:49:42]CAPDU: 80 09 00 00 [07:49:42]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [07:49:42]Write i2c OK [07:49:42]MH_I2C_Read... [07:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:42]Read from MH i2c: E2 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 03 00 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [07:49:42]RAPDU: 90 00 [07:49:42]wFMCommunicate OK [07:49:42]SAM_PROTO_ClearQueue done [07:49:42]KKMCreateOFDPacket [07:49:42]OFDProtocolAddRootSTLVToBuf [07:49:42]FM_MakeSignedData [07:49:42]FM_MakeSignedData [07:49:42]SAM_PROTO_SignData [07:49:42]wFMCommunicate request_size=4 [07:49:42]MH_SAM_APDU [07:49:42]CAPDU: 80 0D 01 02 [07:49:42]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [07:49:42]Write i2c OK [07:49:42]MH_I2C_Read... [07:49:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:42]Read from MH i2c: E2 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 03 00 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [07:49:42]RAPDU: 90 00 [07:49:42]wFMCommunicate OK [07:49:42]wFMCommunicate request_size=255 [07:49:42]MH_SAM_APDU [07:49:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 96 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1C 01 00 35 04 06 00 01 [07:49:42]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 96 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1C 01 00 35 04 06 00 01 00 00 A8 [07:49:42]Write i2c OK [07:49:42]MH_I2C_Read... [07:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:42]Read from MH i2c: E2 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 03 00 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [07:49:42]RAPDU: 90 00 [07:49:42]wFMCommunicate OK [07:49:42]wFMCommunicate request_size=10 [07:49:42]MH_SAM_APDU [07:49:42]CAPDU: 80 0D 02 02 05 9D 31 19 BD 75 [07:49:42]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 9D 31 19 BD 75 00 00 5F [07:49:42]Write i2c OK [07:49:42]MH_I2C_Read... [07:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:42]Read from MH i2c: E2 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 03 00 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [07:49:42]RAPDU: 90 00 [07:49:42]wFMCommunicate OK [07:49:42]wFMCommunicate request_size=4 [07:49:42]MH_SAM_APDU [07:49:42]CAPDU: 80 0D 03 02 [07:49:42]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [07:49:42]Write i2c OK [07:49:42]MH_I2C_Read... [07:49:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:42]Read from MH i2c: E2 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 0B 00 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 0B 00 C3 00 00 52 19 5F 03 6E 27 F3 06 90 00 9A [07:49:42]RAPDU: 52 19 5F 03 6E 27 F3 06 90 00 [07:49:42]wFMCommunicate OK [07:49:42]SAM_PROTO_SignData done [07:49:42]FM_MakeSignedData done [07:49:42]CreateOFDProtocolMessage [07:49:42]wFMCommunicate request_size=4 [07:49:42]MH_SAM_APDU [07:49:42]CAPDU: 80 11 00 00 [07:49:42]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [07:49:42]Write i2c OK [07:49:42]MH_I2C_Read... [07:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:42]Read from MH i2c: E2 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 17 00 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [07:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:49:42]wFMCommunicate OK [07:49:42]CreateOFDProtocolMessage done [07:49:42]OFDSenderStorePacket 72947 [07:49:42]StoreOFDPacket docnum=72947 [07:49:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D2 7D 07 01 DD E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 96 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1C 01 00 35 04 06 00 01 9D 31 19 BD 75 52 19 5F 03 6E 27 F3 06 [07:49:42]CheckFolder [07:49:42]dirname=/storage/ofd_packets [07:49:42]CheckFolder done [07:49:42]ProducePacketName [07:49:42]name=ofd_packets/00072947 [07:49:42]NVStorageSaveData ofd_packets/00072947 [07:49:42]File name is /storage/ofd_packets/00072947 [07:49:42]Write 301 bytes [07:49:42]NVStorageSaveData done [07:49:42]OFDSenderStorePacket done [07:49:42]KKMCreateOFDPacket done [07:49:42]NVStorageSaveData kkm_last_timestamp [07:49:42]File name is /storage/kkm_last_timestamp [07:49:42]Write 4 bytes [07:49:42]NVStorageSaveData done [07:49:42]ExternCall_PrintAddStr [07:49:42]wPrintStart [07:49:42]Write to MH i2c: 01 00 00 C5 00 C5 [07:49:42]Write i2c OK [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: 01 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: 01 07 00 [07:49:42]MH_I2C_Read... [07:49:42]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [07:49:42]RasterBufferAndPrint [07:49:42]line Счет N : (1)952546 [07:49:42]line ИНН: 02508201610067 [07:49:42]line Контрольно-Кассовый Чек [07:49:42]line ПРОДАЖА [07:49:42]line ТРК (МРК, ГНК) : 63 [07:49:42]line Товар: 2710124130 [07:49:42]line Аи-92-К-5 [07:49:42]line 2.990 * 0.00 [07:49:42]line = 0.00 [07:49:42]line НДС 12% НСП 1% [07:49:42]line > о реализуемом товаре [07:49:42]line ИТОГО: 0.00 [07:49:42]line НСП 1% : 0.00 [07:49:42]line НДС 12% : 0.00 [07:49:42]line Наличными: 0.00 [07:49:42]line Безнал.: 0.00 [07:49:42]line Место: АЗС № 113 "Партнер Нефть" [07:49:42]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:49:42]line СНО: Общий режим [07:49:42]line Чек 22 31.10.2024 07:49 [07:49:42]line Смена: 557 ФФД: 1.0 [07:49:42]line ЗНМ: 0300000087 [07:49:42]line РНМ: 0000000000091644 [07:49:42]line Версия ККМ: 001 [07:49:42]line Талоны: Топливная Карта [07:49:42]line 53623 [07:49:42]line ФМ: 0000000000874662 [07:49:42]line ФД: 72947 [07:49:42]line ФПД: 1774645263733 [07:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T074942&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72947&fm=1774645263733&tin=02508201610067®Number=0000000000091644&sum=0 [07:49:42]written 0, free lines is 4095 [07:49:43]OFD Sender: Processing packet 72947 [packets to send 279, broken 278] [07:49:43]ProducePacketName [07:49:43]name=ofd_packets/00072947 [07:49:43]OFD Sender: To server: pG, [07:49:43]CommunicateWithHost lk.salyk.kg:30040 [07:49:43]ConnectInit lk.salyk.kg [07:49:43]Write to MH i2c: 01 00 00 EF 00 EF [07:49:43]Write i2c OK [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: 01 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: 01 07 00 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 E0 0C E2 [07:49:43]RasterBufferAndPrint [07:49:43]line [07:49:43]line [07:49:43]line [07:49:43]line [07:49:43]line [07:49:43]written 0, free lines is 3302 [07:49:43]MH_Cut [07:49:43]Write to MH i2c: D1 01 00 F6 00 01 C8 [07:49:43]Write i2c OK [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: D1 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: D1 01 00 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: D1 01 00 F6 00 00 C7 [07:49:43]Write to MH i2c: 01 00 00 F7 00 F7 [07:49:43]Write i2c OK [07:49:43]MH_I2C_Read... [07:49:43]Connected sock=10 [07: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 34 36 36 32 0F 01 00 00 D2 7D 07 01 DD E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 96 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1C 01 00 35 04 06 00 01 9D 31 19 BD 75 52 19 5F 03 6E 27 F3 06 [07:49:44]*** Cut start [07:49:44]*** Partial cut [07:49:44]*** CUTSNS_PIN = 1 [07:49:44]*** CUTSNS_PIN = 0 [07:49:44]*** Brake cut motor [07:49:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E3 FB 47 00 CC 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1C 01 00 F4 03 04 00 4D E1 22 67 B6 04 01 00 00 E5 06 45 A7 F8 3F 21 C2 [07:49:44]CommunicateWithHost err = 0 [07:49:44]CheckOFDResponse [07:49:44]1017 (14) - 77093643461234 [07:49:44]1041 (16) - 0000000000874662 [07:49:44]1040 (4) - 72947 [07:49:44]1012 (4) - 31.10.2024 01:45 [07:49:44]1206 (1) - 0 [07:49:44]OFD Sender: Remove packet 72947 [07:49:44]ProducePacketName [07:49:44]name=ofd_packets/00072947 [07:49:44]NVStorageDeleteData [07:49:44]Read from MH i2c: 01 [07:49:44]MH_I2C_Read... [07:49:44]*** Stop cut motor [07:49:44]*** Cut end [07:49:44]Read from MH i2c: 01 07 00 [07:49:44]MH_I2C_Read... [07:49:44]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [07:49:44]process_action close_receipt done [07:49:44]requested_data is exist [07:49:44]produce_requested_data [07:49:44]requested_item fm.sn is exist - process it [07:49:44]wFMCommunicate request_size=4 [07:49:44]MH_SAM_APDU [07:49:44]CAPDU: 80 11 00 00 [07:49:44]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [07:49:44]Write i2c OK [07:49:44]MH_I2C_Read... [07:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:44]Read from MH i2c: E2 [07:49:44]MH_I2C_Read... [07:49:44]Read from MH i2c: E2 17 00 [07:49:44]MH_I2C_Read... [07:49:44]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C6 [07:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:49:44]wFMCommunicate OK [07:49:44]requested_item fd.num is exist - process it [07:49:44]SAM_PROTO_GetFieldsCounters [07:49:44]wFMCommunicate request_size=4 [07:49:44]MH_SAM_APDU [07:49:44]CAPDU: 80 13 00 00 [07:49:44]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [07:49:44]Write i2c OK [07:49:44]MH_I2C_Read... [07:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:44]Read from MH i2c: E2 [07:49:44]MH_I2C_Read... [07:49:44]Read from MH i2c: E2 62 00 [07:49:44]MH_I2C_Read... [07:49:44]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F3 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [07:49:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F3 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:49:44]wFMCommunicate OK [07:49:44]SAM_PROTO_GetFieldsCounters done [07:49:44]requested_item shift.num is exist - process it [07:49:44]requested_item shift.opened is exist - process it [07:49:45]req_shift_opened [07:49:45]FM_GetShiftState [07:49:45]SAM_PROTO_GetShiftState [07:49:45]wFMCommunicate request_size=4 [07:49:45]MH_SAM_APDU [07:49:45]CAPDU: 80 13 01 00 [07:49:45]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [07:49:45]OFD Sender: No OFD packet to send [07:49:45]Write i2c OK [07:49:45]MH_I2C_Read... [07:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:45]Read from MH i2c: E2 [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: E2 0E 00 [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 20 [07:49:45]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:49:45]wFMCommunicate OK [07:49:45]SAM_PROTO_GetShiftState done [07:49:45]FM_GetShiftState done [07:49:45]req_shift_opened done [07:49:45]requested_item shift.open_date is exist - process it [07:49:45]req_shift_open_date [07:49:45]req_shift_open_date done [07:49:45]produce_requested_data done [07:49:45]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72947,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [07:49:45]process_action_free close_receipt [07:49:45]json_value_free [07:49:45]json_value_free done [07:49:45]process_json_proto returns [07:49:45]Send response to host [07:49:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72947,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [07:49:45]free response buf [07:49:45]execute_script done [07:49:45]execute_script returns [07:49:45]free content buf [07:49:45]Sock 9.Close socket [07:49:45]Sock 9.Thread stoped [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:49:57]recv_with_timeout no data received [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:45]accept exits with 8 [07:50:45]New connection [07:50:45]New thread 3066506596 created [07:50:45]Thread 3066649956 joined [07:50:45]Waiting for new connection... [07:50:45] Sock 8.Parse request [07:50:45]Sock 8.Check first char [07:50:45]Sock 8.First char is OK [07:50:45]request: POST /json_proto HTTP/1.0 [07:50:45]Method: POST [07:50:45]URL: /json_proto [07:50:45]Method is POST - this is cgi request [07:50:45]url: /json_proto [07:50:45]query_string will be loaded in cgi processing [07:50:45]execute_cgi json_proto POST (null) [07:50:45]execute_cgi path=json_proto method=POST [07:50:45]POST find Content-Length [07:50:45]Host: 172.17.43.195:8080 [07:50:45]Content-Length: 792 [07:50:45]Content-Type: application/json [07:50:45] [07:50:45]POST finish read [07:50:45]Found Content-Length = 792 [07:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:45]execute_script... [07:50:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:45]POST & json_proto [07:50:45]process_json_proto [07:50:45]json parsed OK: [07:50:45]protocol is kg_v1.0 [07:50:45]action value=close_receipt [07:50:45]process_action close_receipt [07:50:45]cmd_close_receipt [07:50:45]MH_GetDate [07:50:45]Write to MH i2c: F0 00 00 FB 00 EA [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: F0 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: F0 09 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: F0 09 00 FB 00 00 D6 36 23 67 74 2C AD 66 3C [07:50:45]GetLastDocTimeStamp 1730360982 [07:50:45]current date 1730361046 [07:50:45]FM_GetShiftState [07:50:45]SAM_PROTO_GetShiftState [07:50:45]wFMCommunicate request_size=4 [07:50:45]MH_SAM_APDU [07:50:45]CAPDU: 80 13 01 00 [07:50:45]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:45]Read from MH i2c: E2 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 0E 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 22 [07:50:45]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:50:45]wFMCommunicate OK [07:50:45]SAM_PROTO_GetShiftState done [07:50:45]FM_GetShiftState done [07:50:45]opened in 1730333258 [07:50:45]opened+sec_in_day 1730419658 [07:50:45]quantity*price = 0 [07:50:45]sum+1 = 1 [07:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 23 31.10.2024 07:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72948 ФПД: 91603503396641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T075046&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72948&fm=91603503396641&tin=02508201610067®Number=0000000000091644&sum=0 [07:50:47]StoreToDocumentArchive [07:50:47]shift 557 fd 72948 [07:50:47]save to /storage/0557/doc_00072948 [07:50:47]save last doc name /storage/0557/doc_00072948 to /storage/kkm_last_doc_name [07:50:47]save OK [07:50:47]Clear old archive folders... [07:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:47]tlvbuf is 01D8BF60 [07:50:47]SAM_PROTO_ClearQueue [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 09 00 00 [07:50:47]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [07:50:47]RAPDU: 90 00 [07:50:47]wFMCommunicate OK [07:50:47]SAM_PROTO_ClearQueue done [07:50:47]KKMCreateOFDPacket [07:50:47]OFDProtocolAddRootSTLVToBuf [07:50:47]FM_MakeSignedData [07:50:47]FM_MakeSignedData [07:50:47]SAM_PROTO_SignData [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 0D 01 02 [07:50:47]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [07:50:47]RAPDU: 90 00 [07:50:47]wFMCommunicate OK [07:50:47]wFMCommunicate request_size=255 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 D6 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1C 01 00 35 04 06 00 53 [07:50:47]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 D6 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1C 01 00 35 04 06 00 53 00 00 3C [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [07:50:47]RAPDU: 90 00 [07:50:47]wFMCommunicate OK [07:50:47]wFMCommunicate request_size=10 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 0D 02 02 05 50 1A 47 B7 21 [07:50:47]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 50 1A 47 B7 21 00 00 1A [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [07:50:47]RAPDU: 90 00 [07:50:47]wFMCommunicate OK [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 0D 03 02 [07:50:47]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 0B 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 0B 00 0D 01 00 8C FF 38 1E 96 B2 3F 65 90 00 57 [07:50:47]RAPDU: 8C FF 38 1E 96 B2 3F 65 90 00 [07:50:47]wFMCommunicate OK [07:50:47]SAM_PROTO_SignData done [07:50:47]FM_MakeSignedData done [07:50:47]CreateOFDProtocolMessage [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 0E 01 80 11 00 00 00 00 00 00 89 [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 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DD [07:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:50:47]wFMCommunicate OK [07:50:47]CreateOFDProtocolMessage done [07:50:47]OFDSenderStorePacket 72948 [07:50:47]StoreOFDPacket docnum=72948 [07:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 08 CE 07 01 06 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 D6 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1C 01 00 35 04 06 00 53 50 1A 47 B7 21 8C FF 38 1E 96 B2 3F 65 [07:50:47]CheckFolder [07:50:47]dirname=/storage/ofd_packets [07:50:47]CheckFolder done [07:50:47]ProducePacketName [07:50:47]name=ofd_packets/00072948 [07:50:47]NVStorageSaveData ofd_packets/00072948 [07:50:47]File name is /storage/ofd_packets/00072948 [07:50:47]Write 301 bytes [07:50:47]NVStorageSaveData done [07:50:47]OFDSenderStorePacket done [07:50:47]KKMCreateOFDPacket done [07:50:47]NVStorageSaveData kkm_last_timestamp [07:50:47]File name is /storage/kkm_last_timestamp [07:50:47]Write 4 bytes [07:50:47]NVStorageSaveData done [07:50:47]ExternCall_PrintAddStr [07:50:47]wPrintStart [07:50:47]Write to MH i2c: 01 00 00 0F 01 10 [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: 01 [07:50:47]MH_I2C_Read... [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 0F 01 00 00 00 00 00 FF 0F 25 [07:50:47]RasterBufferAndPrint [07:50:47]line Счет N : (1)952547 [07:50:47]line ИНН: 02508201610067 [07:50:47]line Контрольно-Кассовый Чек [07:50:47]line ПРОДАЖА [07:50:47]line ТРК (МРК, ГНК) : 42 [07:50:47]line Товар: 2710124130 [07:50:47]line Аи-92-К-5 [07:50:47]line 20.000 * 0.00 [07:50:47]line = 0.00 [07:50:47]line НДС 12% НСП 1% [07:50:47]line > о реализуемом товаре [07:50:47]line ИТОГО: 0.00 [07:50:47]line НСП 1% : 0.00 [07:50:47]line НДС 12% : 0.00 [07:50:47]line Наличными: 0.00 [07:50:47]line Безнал.: 0.00 [07:50:47]line Место: АЗС № 113 "Партнер Нефть" [07:50:47]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:50:47]line СНО: Общий режим [07:50:47]line Чек 23 31.10.2024 07:50 [07:50:47]line Смена: 557 ФФД: 1.0 [07:50:47]line ЗНМ: 0300000087 [07:50:47]line РНМ: 0000000000091644 [07:50:47]line Версия ККМ: 001 [07:50:47]line Талоны: Топливная Карта [07:50:47]line 03047 [07:50:47]line ФМ: 0000000000874662 [07:50:47]line ФД: 72948 [07:50:47]line ФПД: 91603503396641 [07:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T075046&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72948&fm=91603503396641&tin=02508201610067®Number=0000000000091644&sum=0 [07:50:47]written 0, free lines is 4095 [07:50:47]OFD Sender: Processing packet 72948 [packets to send 279, broken 278] [07:50:47]ProducePacketName [07:50:47]name=ofd_packets/00072948 [07:50:47]OFD Sender: To server: pG, [07:50:47]CommunicateWithHost lk.salyk.kg:30040 [07:50:47]ConnectInit lk.salyk.kg [07:50:48]Write to MH i2c: 01 00 00 39 01 3A [07:50:48]Write i2c OK [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: 01 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: 01 07 00 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 DA 0C 27 [07:50:48]RasterBufferAndPrint [07:50:48]line [07:50:48]line [07:50:48]line [07:50:48]line [07:50:48]line [07:50:48]written 0, free lines is 3296 [07:50:48]MH_Cut [07:50:48]Write to MH i2c: D1 01 00 40 01 01 13 [07:50:48]Write i2c OK [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: D1 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: D1 01 00 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: D1 01 00 40 01 00 12 [07:50:48]Write to MH i2c: 01 00 00 41 01 42 [07:50:48]Write i2c OK [07:50:48]MH_I2C_Read... [07:50:48]*** Cut start [07:50:48]*** Partial cut [07:50:48]*** CUTSNS_PIN = 1 [07:50:48]*** CUTSNS_PIN = 0 [07:50:49]*** Brake cut motor [07:50:49]Read from MH i2c: 01 [07:50:49]MH_I2C_Read... [07:50:49]*** Stop cut motor [07:50:49]*** Cut end [07:50:49]Read from MH i2c: 01 07 00 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [07:50:49]process_action close_receipt done [07:50:49]requested_data is exist [07:50:49]produce_requested_data [07:50:49]requested_item fm.sn is exist - process it [07:50:49]wFMCommunicate request_size=4 [07:50:49]MH_SAM_APDU [07:50:49]CAPDU: 80 11 00 00 [07:50:49]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [07:50:49]Write i2c OK [07:50:49]MH_I2C_Read... [07:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:49]Read from MH i2c: E2 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: E2 17 00 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [07:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:50:49]wFMCommunicate OK [07:50:49]requested_item fd.num is exist - process it [07:50:49]SAM_PROTO_GetFieldsCounters [07:50:49]wFMCommunicate request_size=4 [07:50:49]MH_SAM_APDU [07:50:49]CAPDU: 80 13 00 00 [07:50:49]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [07:50:49]Write i2c OK [07:50:49]MH_I2C_Read... [07:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:49]Read from MH i2c: E2 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: E2 62 00 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F4 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [07:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F4 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:49]wFMCommunicate OK [07:50:49]SAM_PROTO_GetFieldsCounters done [07:50:49]requested_item shift.num is exist - process it [07:50:49]requested_item shift.opened is exist - process it [07:50:49]req_shift_opened [07:50:49]FM_GetShiftState [07:50:49]SAM_PROTO_GetShiftState [07:50:49]wFMCommunicate request_size=4 [07:50:49]MH_SAM_APDU [07:50:49]CAPDU: 80 13 01 00 [07:50:49]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [07:50:49]Write i2c OK [07:50:49]MH_I2C_Read... [07:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:49]Read from MH i2c: E2 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: E2 0E 00 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6B [07:50:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [07:50:49]wFMCommunicate OK [07:50:49]SAM_PROTO_GetShiftState done [07:50:49]FM_GetShiftState done [07:50:49]req_shift_opened done [07:50:49]requested_item shift.open_date is exist - process it [07:50:49]req_shift_open_date [07:50:49]req_shift_open_date done [07:50:49]produce_requested_data done [07:50:49]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72948,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [07:50:49]process_action_free close_receipt [07:50:49]json_value_free [07:50:49]json_value_free done [07:50:49]process_json_proto returns [07:50:49]Send response to host [07:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72948,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [07:50:49]free response buf [07:50:49]execute_script done [07:50:49]execute_script returns [07:50:49]free content buf [07:50:49]Sock 8.Close socket [07:50:49]Sock 8.Thread stoped [07:50:51]Connected sock=11 [07:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 08 CE 07 01 06 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 D6 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1C 01 00 35 04 06 00 53 50 1A 47 B7 21 8C FF 38 1E 96 B2 3F 65 [07:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1F 49 47 00 D5 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1C 01 00 F4 03 04 00 90 E1 22 67 B6 04 01 00 00 67 9A 61 FF 0E FA 50 4A [07:50:52]CommunicateWithHost err = 0 [07:50:52]CheckOFDResponse [07:50:52]1017 (14) - 77093643461234 [07:50:52]1041 (16) - 0000000000874662 [07:50:52]1040 (4) - 72948 [07:50:52]1012 (4) - 31.10.2024 01:46 [07:50:52]1206 (1) - 0 [07:50:52]OFD Sender: Remove packet 72948 [07:50:52]ProducePacketName [07:50:52]name=ofd_packets/00072948 [07:50:52]NVStorageDeleteData [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:43]recv_with_timeout no data received [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:06]recv_with_timeout no data received [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:29]recv_with_timeout no data received [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:06]recv_with_timeout no data received [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:17]recv_with_timeout no data received [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:35]recv_with_timeout no data received [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:33]recv_with_timeout no data received [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:07]recv_with_timeout no data received [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:35]recv_with_timeout no data received [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:55:59]recv_with_timeout no data received [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:33]recv_with_timeout no data received [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:31]recv_with_timeout no data received [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:23]recv_with_timeout no data received [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:27]recv_with_timeout no data received [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:06]recv_with_timeout no data received [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:37]recv_with_timeout no data received [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:49]recv_with_timeout no data received [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:14]recv_with_timeout no data received [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:25]recv_with_timeout no data received [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:55]recv_with_timeout no data received [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:13]recv_with_timeout no data received [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]accept exits with 9 [08:02:54]New connection [08:02:54]New thread 3066649956 created [08:02:54]Thread 3066506596 joined [08:02:54]Waiting for new connection... [08:02:54] Sock 9.Parse request [08:02:54]Sock 9.Check first char [08:02:54]Sock 9.First char is OK [08:02:54]request: POST /json_proto HTTP/1.0 [08:02:54]Method: POST [08:02:54]URL: /json_proto [08:02:54]Method is POST - this is cgi request [08:02:54]url: /json_proto [08:02:54]query_string will be loaded in cgi processing [08:02:54]execute_cgi json_proto POST (null) [08:02:54]execute_cgi path=json_proto method=POST [08:02:54]POST find Content-Length [08:02:54]Host: 172.17.43.195:8080 [08:02:54]Content-Length: 791 [08:02:54]Content-Type: application/json [08:02:54] [08:02:54]POST finish read [08:02:54]Found Content-Length = 791 [08:02:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:54]execute_script... [08:02:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:54]POST & json_proto [08:02:54]process_json_proto [08:02:54]json parsed OK: [08:02:54]protocol is kg_v1.0 [08:02:54]action value=close_receipt [08:02:54]process_action close_receipt [08:02:54]cmd_close_receipt [08:02:54]MH_GetDate [08:02:54]Write to MH i2c: F0 00 00 45 01 35 [08:02:54]Write i2c OK [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: F0 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: F0 09 00 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: F0 09 00 45 01 00 AE 39 23 67 74 2C AD 66 62 [08:02:54]GetLastDocTimeStamp 1730361046 [08:02:54]current date 1730361774 [08:02:54]FM_GetShiftState [08:02:54]SAM_PROTO_GetShiftState [08:02:54]wFMCommunicate request_size=4 [08:02:54]MH_SAM_APDU [08:02:54]CAPDU: 80 13 01 00 [08:02:54]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [08:02:54]Write i2c OK [08:02:54]MH_I2C_Read... [08:02:54]OFD Sender: No OFD packet to send [08:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:54]Read from MH i2c: E2 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 0E 00 [08:02:54]MH_I2C_Read... [08:02:54]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6D [08:02:54]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:02:54]wFMCommunicate OK [08:02:54]SAM_PROTO_GetShiftState done [08:02:54]FM_GetShiftState done [08:02:54]opened in 1730333258 [08:02:54]opened+sec_in_day 1730419658 [08:02:54]quantity*price = 0 [08:02:54]sum+1 = 1 [08:02:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 24 31.10.2024 08:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72949 ФПД: 12673346903000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080254&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72949&fm=12673346903000&tin=02508201610067®Number=0000000000091644&sum=0 [08:02:55]StoreToDocumentArchive [08:02:55]shift 557 fd 72949 [08:02:55]save to /storage/0557/doc_00072949 [08:02:55]save last doc name /storage/0557/doc_00072949 to /storage/kkm_last_doc_name [08:02:55]save OK [08:02:55]Clear old archive folders... [08:02:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:55]tlvbuf is 01D237D0 [08:02:55]SAM_PROTO_ClearQueue [08:02:55]wFMCommunicate request_size=4 [08:02:55]MH_SAM_APDU [08:02:55]CAPDU: 80 09 00 00 [08:02:55]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [08:02:55]Write i2c OK [08:02:55]MH_I2C_Read... [08:02:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:55]Read from MH i2c: E2 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 03 00 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [08:02:55]RAPDU: 90 00 [08:02:55]wFMCommunicate OK [08:02:55]SAM_PROTO_ClearQueue done [08:02:55]KKMCreateOFDPacket [08:02:55]OFDProtocolAddRootSTLVToBuf [08:02:55]FM_MakeSignedData [08:02:55]FM_MakeSignedData [08:02:55]SAM_PROTO_SignData [08:02:55]wFMCommunicate request_size=4 [08:02:55]MH_SAM_APDU [08:02:55]CAPDU: 80 0D 01 02 [08:02:55]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [08:02:55]Write i2c OK [08:02:55]MH_I2C_Read... [08:02:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:55]Read from MH i2c: E2 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 03 00 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [08:02:55]RAPDU: 90 00 [08:02:55]wFMCommunicate OK [08:02:55]wFMCommunicate request_size=255 [08:02:55]MH_SAM_APDU [08:02:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 AE 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1C 01 00 35 04 06 00 0B [08:02:55]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 AE 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1C 01 00 35 04 06 00 0B 00 00 02 [08:02:55]Write i2c OK [08:02:55]MH_I2C_Read... [08:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:55]Read from MH i2c: E2 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 03 00 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [08:02:55]RAPDU: 90 00 [08:02:55]wFMCommunicate OK [08:02:55]wFMCommunicate request_size=10 [08:02:55]MH_SAM_APDU [08:02:55]CAPDU: 80 0D 02 02 05 86 BE 57 1B D8 [08:02:55]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 86 BE 57 1B D8 00 00 69 [08:02:55]Write i2c OK [08:02:55]MH_I2C_Read... [08:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:55]Read from MH i2c: E2 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 03 00 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [08:02:55]RAPDU: 90 00 [08:02:55]wFMCommunicate OK [08:02:55]wFMCommunicate request_size=4 [08:02:55]MH_SAM_APDU [08:02:55]CAPDU: 80 0D 03 02 [08:02:55]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [08:02:55]Write i2c OK [08:02:55]MH_I2C_Read... [08:02:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:55]Read from MH i2c: E2 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 0B 00 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 0B 00 57 01 00 0F 29 04 63 C2 93 C9 F3 90 00 84 [08:02:55]RAPDU: 0F 29 04 63 C2 93 C9 F3 90 00 [08:02:55]wFMCommunicate OK [08:02:55]SAM_PROTO_SignData done [08:02:55]FM_MakeSignedData done [08:02:55]CreateOFDProtocolMessage [08:02:55]wFMCommunicate request_size=4 [08:02:55]MH_SAM_APDU [08:02:55]CAPDU: 80 11 00 00 [08:02:55]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [08:02:55]Write i2c OK [08:02:55]MH_I2C_Read... [08:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:55]Read from MH i2c: E2 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 17 00 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [08:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:02:55]wFMCommunicate OK [08:02:55]CreateOFDProtocolMessage done [08:02:55]OFDSenderStorePacket 72949 [08:02:55]StoreOFDPacket docnum=72949 [08:02:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 81 07 01 DF 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 AE 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1C 01 00 35 04 06 00 0B 86 BE 57 1B D8 0F 29 04 63 C2 93 C9 F3 [08:02:55]CheckFolder [08:02:55]dirname=/storage/ofd_packets [08:02:55]CheckFolder done [08:02:55]ProducePacketName [08:02:55]name=ofd_packets/00072949 [08:02:55]NVStorageSaveData ofd_packets/00072949 [08:02:55]File name is /storage/ofd_packets/00072949 [08:02:55]Write 301 bytes [08:02:55]NVStorageSaveData done [08:02:55]OFDSenderStorePacket done [08:02:55]KKMCreateOFDPacket done [08:02:55]NVStorageSaveData kkm_last_timestamp [08:02:55]File name is /storage/kkm_last_timestamp [08:02:55]Write 4 bytes [08:02:55]NVStorageSaveData done [08:02:55]ExternCall_PrintAddStr [08:02:55]wPrintStart [08:02:55]Write to MH i2c: 01 00 00 59 01 5A [08:02:55]Write i2c OK [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: 01 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: 01 07 00 [08:02:55]MH_I2C_Read... [08:02:55]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [08:02:55]RasterBufferAndPrint [08:02:55]line Счет N : (1)952548 [08:02:55]line ИНН: 02508201610067 [08:02:55]line Контрольно-Кассовый Чек [08:02:55]line ПРОДАЖА [08:02:55]line ТРК (МРК, ГНК) : 42 [08:02:55]line Товар: 2710124130 [08:02:55]line Аи-92-К-5 [08:02:55]line 7.480 * 0.00 [08:02:55]line = 0.00 [08:02:55]line НДС 12% НСП 1% [08:02:55]line > о реализуемом товаре [08:02:55]line ИТОГО: 0.00 [08:02:55]line НСП 1% : 0.00 [08:02:55]line НДС 12% : 0.00 [08:02:55]line Наличными: 0.00 [08:02:55]line Безнал.: 0.00 [08:02:55]line Место: АЗС № 113 "Партнер Нефть" [08:02:55]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:02:55]line СНО: Общий режим [08:02:55]line Чек 24 31.10.2024 08:02 [08:02:55]line Смена: 557 ФФД: 1.0 [08:02:55]line ЗНМ: 0300000087 [08:02:55]line РНМ: 0000000000091644 [08:02:55]line Версия ККМ: 001 [08:02:55]line Талоны: Топливная Карта [08:02:55]line 53623 [08:02:55]line ФМ: 0000000000874662 [08:02:55]line ФД: 72949 [08:02:55]line ФПД: 12673346903000 [08:02:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080254&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72949&fm=12673346903000&tin=02508201610067®Number=0000000000091644&sum=0 [08:02:55]written 0, free lines is 4095 [08:02:55]OFD Sender: Processing packet 72949 [packets to send 279, broken 278] [08:02:55]ProducePacketName [08:02:55]name=ofd_packets/00072949 [08:02:55]OFD Sender: To server: pG, [08:02:55]CommunicateWithHost lk.salyk.kg:30040 [08:02:55]ConnectInit lk.salyk.kg [08:02:56]Write to MH i2c: 01 00 00 83 01 84 [08:02:56]Write i2c OK [08:02:56]MH_I2C_Read... [08:02:56]Read from MH i2c: 01 [08:02:56]MH_I2C_Read... [08:02:56]Read from MH i2c: 01 07 00 [08:02:56]MH_I2C_Read... [08:02:56]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 D7 0C 6E [08:02:56]RasterBufferAndPrint [08:02:56]line [08:02:56]line [08:02:56]line [08:02:56]line [08:02:56]line [08:02:56]written 0, free lines is 3293 [08:02:56]MH_Cut [08:02:56]Write to MH i2c: D1 01 00 8A 01 01 5D [08:02:56]Write i2c OK [08:02:56]MH_I2C_Read... [08:02:56]Read from MH i2c: D1 [08:02:56]MH_I2C_Read... [08:02:56]Read from MH i2c: D1 01 00 [08:02:56]MH_I2C_Read... [08:02:56]Read from MH i2c: D1 01 00 8A 01 00 5C [08:02:56]Write to MH i2c: 01 00 00 8B 01 8C [08:02:56]Write i2c OK [08:02:56]MH_I2C_Read... [08:02:57]*** Cut start [08:02:57]*** Partial cut [08:02:57]*** CUTSNS_PIN = 1 [08:02:57]*** CUTSNS_PIN = 0 [08:02:57]*** Brake cut motor [08:02:57]Read from MH i2c: 01 [08:02:57]MH_I2C_Read... [08:02:57]*** Stop cut motor [08:02:57]*** Cut end [08:02:57]Read from MH i2c: 01 07 00 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [08:02:57]process_action close_receipt done [08:02:57]requested_data is exist [08:02:57]produce_requested_data [08:02:57]requested_item fm.sn is exist - process it [08:02:57]wFMCommunicate request_size=4 [08:02:57]MH_SAM_APDU [08:02:57]CAPDU: 80 11 00 00 [08:02:57]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [08:02:57]Write i2c OK [08:02:57]MH_I2C_Read... [08:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:57]Read from MH i2c: E2 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: E2 17 00 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [08:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:02:57]wFMCommunicate OK [08:02:57]requested_item fd.num is exist - process it [08:02:57]SAM_PROTO_GetFieldsCounters [08:02:57]wFMCommunicate request_size=4 [08:02:57]MH_SAM_APDU [08:02:57]CAPDU: 80 13 00 00 [08:02:57]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [08:02:57]Write i2c OK [08:02:57]MH_I2C_Read... [08:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:57]Read from MH i2c: E2 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: E2 62 00 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F5 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [08:02:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F5 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:57]wFMCommunicate OK [08:02:57]SAM_PROTO_GetFieldsCounters done [08:02:57]requested_item shift.num is exist - process it [08:02:57]requested_item shift.opened is exist - process it [08:02:57]req_shift_opened [08:02:57]FM_GetShiftState [08:02:57]SAM_PROTO_GetShiftState [08:02:57]wFMCommunicate request_size=4 [08:02:57]MH_SAM_APDU [08:02:57]CAPDU: 80 13 01 00 [08:02:57]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [08:02:57]Write i2c OK [08:02:57]MH_I2C_Read... [08:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:57]Read from MH i2c: E2 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: E2 0E 00 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B5 [08:02:57]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:02:57]wFMCommunicate OK [08:02:57]SAM_PROTO_GetShiftState done [08:02:57]FM_GetShiftState done [08:02:57]req_shift_opened done [08:02:57]requested_item shift.open_date is exist - process it [08:02:57]req_shift_open_date [08:02:57]req_shift_open_date done [08:02:57]produce_requested_data done [08:02:57]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72949,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:02:57]process_action_free close_receipt [08:02:57]json_value_free [08:02:57]json_value_free done [08:02:57]process_json_proto returns [08:02:57]Send response to host [08:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72949,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:02:57]free response buf [08:02:57]execute_script done [08:02:57]execute_script returns [08:02:57]free content buf [08:02:57]Sock 9.Close socket [08:02:57]Sock 9.Thread stoped [08:03:01]Connected sock=11 [08:03:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 81 07 01 DF 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 AE 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1C 01 00 35 04 06 00 0B 86 BE 57 1B D8 0F 29 04 63 C2 93 C9 F3 [08:03:06]recv_with_timeout no data received [08:03:06]CommunicateWithHost answer receiving error [08:03:06]CommunicateWithHost err = -3 [08:03:06]OFD Sender: Server communicate error [08:03:11]OFD Sender: Processing packet 72949 [packets to send 279, broken 278] [08:03:11]ProducePacketName [08:03:11]name=ofd_packets/00072949 [08:03:11]OFD Sender: To server: pG, [08:03:11]CommunicateWithHost lk.salyk.kg:30040 [08:03:11]ConnectInit lk.salyk.kg [08:03:16]Connected sock=10 [08:03:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 81 07 01 DF 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 AE 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1C 01 00 35 04 06 00 0B 86 BE 57 1B D8 0F 29 04 63 C2 93 C9 F3 [08:03:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 07 79 47 00 50 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1C 01 00 F4 03 04 00 79 E4 22 67 B6 04 01 00 00 5A F2 6A DE C2 C2 8E AD [08:03:16]CommunicateWithHost err = 0 [08:03:16]CheckOFDResponse [08:03:16]1017 (14) - 77093643461234 [08:03:16]1041 (16) - 0000000000874662 [08:03:16]1040 (4) - 72949 [08:03:16]1012 (4) - 31.10.2024 01:59 [08:03:16]1206 (1) - 0 [08:03:16]OFD Sender: Remove packet 72949 [08:03:16]ProducePacketName [08:03:16]name=ofd_packets/00072949 [08:03:16]NVStorageDeleteData [08:03:17]OFD Sender: No OFD packet to send [08:03:20]accept exits with 8 [08:03:20]New connection [08:03:20]New thread 3066506596 created [08:03:20]Thread 3066649956 joined [08:03:20]Waiting for new connection... [08:03:20] Sock 8.Parse request [08:03:20]Sock 8.Check first char [08:03:20]Sock 8.First char is OK [08:03:20]request: POST /json_proto HTTP/1.0 [08:03:20]Method: POST [08:03:20]URL: /json_proto [08:03:20]Method is POST - this is cgi request [08:03:20]url: /json_proto [08:03:20]query_string will be loaded in cgi processing [08:03:20]execute_cgi json_proto POST (null) [08:03:20]execute_cgi path=json_proto method=POST [08:03:20]POST find Content-Length [08:03:20]Host: 172.17.43.195:8080 [08:03:20]Content-Length: 843 [08:03:20]Content-Type: application/json [08:03:20] [08:03:20]POST finish read [08:03:20]Found Content-Length = 843 [08:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:20]execute_script... [08:03:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:20]POST & json_proto [08:03:20]process_json_proto [08:03:20]json parsed OK: [08:03:20]protocol is kg_v1.0 [08:03:20]action value=close_receipt [08:03:20]process_action close_receipt [08:03:20]cmd_close_receipt [08:03:20]MH_GetDate [08:03:20]Write to MH i2c: F0 00 00 8F 01 7F [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: F0 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: F0 09 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: F0 09 00 8F 01 00 C9 39 23 67 74 2C AD 66 C7 [08:03:20]GetLastDocTimeStamp 1730361774 [08:03:20]current date 1730361801 [08:03:20]FM_GetShiftState [08:03:20]SAM_PROTO_GetShiftState [08:03:20]wFMCommunicate request_size=4 [08:03:20]MH_SAM_APDU [08:03:20]CAPDU: 80 13 01 00 [08:03:20]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:20]Read from MH i2c: E2 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: E2 0E 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B7 [08:03:20]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:03:20]wFMCommunicate OK [08:03:20]SAM_PROTO_GetShiftState done [08:03:20]FM_GetShiftState done [08:03:20]opened in 1730333258 [08:03:20]opened+sec_in_day 1730419658 [08:03:20]quantity*price = 100015 [08:03:20]sum+1 = 100017 [08:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 25 31.10.2024 08:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72950 ФПД: 225756008301772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080321&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72950&fm=225756008301772&tin=02508201610067®Number=0000000000091644&sum=100016 [08:03:21]StoreToDocumentArchive [08:03:21]shift 557 fd 72950 [08:03:21]save to /storage/0557/doc_00072950 [08:03:21]save last doc name /storage/0557/doc_00072950 to /storage/kkm_last_doc_name [08:03:21]save OK [08:03:21]Clear old archive folders... [08:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:21]tlvbuf is 01D85F10 [08:03:21]SAM_PROTO_ClearQueue [08:03:21]wFMCommunicate request_size=4 [08:03:21]MH_SAM_APDU [08:03:21]CAPDU: 80 09 00 00 [08:03:21]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [08:03:21]Write i2c OK [08:03:21]MH_I2C_Read... [08:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:21]Read from MH i2c: E2 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 03 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [08:03:21]RAPDU: 90 00 [08:03:21]wFMCommunicate OK [08:03:21]SAM_PROTO_ClearQueue done [08:03:21]KKMCreateOFDPacket [08:03:21]OFDProtocolAddRootSTLVToBuf [08:03:21]FM_MakeSignedData [08:03:21]FM_MakeSignedData [08:03:21]SAM_PROTO_SignData [08:03:21]wFMCommunicate request_size=4 [08:03:21]MH_SAM_APDU [08:03:21]CAPDU: 80 0D 01 02 [08:03:21]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [08:03:21]Write i2c OK [08:03:21]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:22]OFD Sender: No OFD packet to send [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [08:03:22]RAPDU: 90 00 [08:03:22]wFMCommunicate OK [08:03:22]wFMCommunicate request_size=255 [08:03:22]MH_SAM_APDU [08:03: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C9 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1C 01 00 35 04 06 00 CD [08:03:22]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C9 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1C 01 00 35 04 06 00 CD 00 00 75 [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [08:03:22]RAPDU: 90 00 [08:03:22]wFMCommunicate OK [08:03:22]wFMCommunicate request_size=10 [08:03:22]MH_SAM_APDU [08:03:22]CAPDU: 80 0D 02 02 05 52 EA AE 44 CC [08:03:22]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 52 EA AE 44 CC 00 00 1F [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [08:03:22]RAPDU: 90 00 [08:03:22]wFMCommunicate OK [08:03:22]wFMCommunicate request_size=4 [08:03:22]MH_SAM_APDU [08:03:22]CAPDU: 80 0D 03 02 [08:03:22]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 0B 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 0B 00 A1 01 00 00 2E B0 94 72 84 A1 6C 90 00 93 [08:03:22]RAPDU: 00 2E B0 94 72 84 A1 6C 90 00 [08:03:22]wFMCommunicate OK [08:03:22]SAM_PROTO_SignData done [08:03:22]FM_MakeSignedData done [08:03:22]CreateOFDProtocolMessage [08:03:22]wFMCommunicate request_size=4 [08:03:22]MH_SAM_APDU [08:03:22]CAPDU: 80 11 00 00 [08:03:22]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 17 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 71 [08:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:03:22]wFMCommunicate OK [08:03:22]CreateOFDProtocolMessage done [08:03:22]OFDSenderStorePacket 72950 [08:03:22]StoreOFDPacket docnum=72950 [08:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 64 20 07 01 02 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C9 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1C 01 00 35 04 06 00 CD 52 EA AE 44 CC 00 2E B0 94 72 84 A1 6C [08:03:22]CheckFolder [08:03:22]dirname=/storage/ofd_packets [08:03:22]CheckFolder done [08:03:22]ProducePacketName [08:03:22]name=ofd_packets/00072950 [08:03:22]NVStorageSaveData ofd_packets/00072950 [08:03:22]File name is /storage/ofd_packets/00072950 [08:03:22]Write 301 bytes [08:03:22]NVStorageSaveData done [08:03:22]OFDSenderStorePacket done [08:03:22]KKMCreateOFDPacket done [08:03:22]NVStorageSaveData kkm_last_timestamp [08:03:22]File name is /storage/kkm_last_timestamp [08:03:22]Write 4 bytes [08:03:22]NVStorageSaveData done [08:03:22]ExternCall_PrintAddStr [08:03:22]wPrintStart [08:03:22]Write to MH i2c: 01 00 00 A3 01 A4 [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: 01 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: 01 07 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [08:03:22]RasterBufferAndPrint [08:03:22]line Счет N : (1)952549 [08:03:22]line ИНН: 02508201610067 [08:03:22]line Контрольно-Кассовый Чек [08:03:22]line ПРОДАЖА [08:03:22]line ТРК (МРК, ГНК) : 63 [08:03:22]line Товар: 2710124130 [08:03:22]line Аи-92-К-5 [08:03:22]line 14.950 * 66.90 [08:03:22]line = 1000.16 [08:03:22]line НДС 12% НСП 1% [08:03:22]line > о реализуемом товаре [08:03:22]line ИТОГО: 1000.16 [08:03:22]line НСП 1% : 8.85 [08:03:22]line НДС 12% : 106.21 [08:03:22]line Наличными: 0.00 [08:03:22]line Безнал.: 1000.16 [08:03:22]line Место: АЗС № 113 "Партнер Нефть" [08:03:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:03:22]line СНО: Общий режим [08:03:22]line Чек 25 31.10.2024 08:03 [08:03:22]line Смена: 557 ФФД: 1.0 [08:03:22]line ЗНМ: 0300000087 [08:03:22]line РНМ: 0000000000091644 [08:03:22]line Версия ККМ: 001 [08:03:22]line Платежная система: АКБ Кыргызстан [08:03:22]line ФМ: 0000000000874662 [08:03:22]line ФД: 72950 [08:03:22]line ФПД: 225756008301772 [08:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080321&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72950&fm=225756008301772&tin=02508201610067®Number=0000000000091644&sum=100016 [08:03:22]written 0, free lines is 4095 [08:03:22]OFD Sender: Processing packet 72950 [packets to send 279, broken 278] [08:03:22]ProducePacketName [08:03:22]name=ofd_packets/00072950 [08:03:22]OFD Sender: To server: pG, [08:03:22]CommunicateWithHost lk.salyk.kg:30040 [08:03:22]ConnectInit lk.salyk.kg [08:03:22]Write to MH i2c: 01 00 00 CD 01 CE [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: 01 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: 01 07 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 E0 0C C1 [08:03:22]RasterBufferAndPrint [08:03:22]line [08:03:22]line [08:03:22]line [08:03:22]line [08:03:22]line [08:03:22]written 0, free lines is 3306 [08:03:22]MH_Cut [08:03:22]Write to MH i2c: D1 01 00 D4 01 01 A7 [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: D1 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: D1 01 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: D1 01 00 D4 01 00 A6 [08:03:22]Write to MH i2c: 01 00 00 D5 01 D6 [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:23]*** Cut start [08:03:23]*** Partial cut [08:03:23]*** CUTSNS_PIN = 1 [08:03:23]*** CUTSNS_PIN = 0 [08:03:24]*** Brake cut motor [08:03:24]Read from MH i2c: 01 [08:03:24]MH_I2C_Read... [08:03:24]*** Stop cut motor [08:03:24]*** Cut end [08:03:24]Read from MH i2c: 01 07 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [08:03:24]process_action close_receipt done [08:03:24]requested_data is exist [08:03:24]produce_requested_data [08:03:24]requested_item fm.sn is exist - process it [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 11 00 00 [08:03:24]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 17 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [08:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:03:24]wFMCommunicate OK [08:03:24]requested_item fd.num is exist - process it [08:03:24]SAM_PROTO_GetFieldsCounters [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 13 00 00 [08:03:24]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 62 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F6 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [08:03:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F6 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:24]wFMCommunicate OK [08:03:24]SAM_PROTO_GetFieldsCounters done [08:03:24]requested_item shift.num is exist - process it [08:03:24]requested_item shift.opened is exist - process it [08:03:24]req_shift_opened [08:03:24]FM_GetShiftState [08:03:24]SAM_PROTO_GetShiftState [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 13 01 00 [08:03:24]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 0E 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 FF [08:03:24]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:03:24]wFMCommunicate OK [08:03:24]SAM_PROTO_GetShiftState done [08:03:24]FM_GetShiftState done [08:03:24]req_shift_opened done [08:03:24]requested_item shift.open_date is exist - process it [08:03:24]req_shift_open_date [08:03:24]req_shift_open_date done [08:03:24]produce_requested_data done [08:03:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72950,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:03:24]process_action_free close_receipt [08:03:24]json_value_free [08:03:24]json_value_free done [08:03:24]process_json_proto returns [08:03:24]Send response to host [08:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72950,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:03:24]free response buf [08:03:24]execute_script done [08:03:24]execute_script returns [08:03:24]free content buf [08:03:24]Sock 8.Close socket [08:03:24]Sock 8.Thread stoped [08:03:26]recv_with_timeout no data received [08:03:27]ConnectInit Can't take IP for lk.salyk.kg [08:03:27]CommunicateWithHost connect error [08:03:27]CommunicateWithHost err = -1 [08:03:27]OFD Sender: Server communicate error [08:03:32]OFD Sender: Processing packet 72950 [packets to send 279, broken 278] [08:03:32]ProducePacketName [08:03:32]name=ofd_packets/00072950 [08:03:32]OFD Sender: To server: pG, [08:03:32]CommunicateWithHost lk.salyk.kg:30040 [08:03:32]ConnectInit lk.salyk.kg [08:03:40]Connected sock=10 [08:03:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 64 20 07 01 02 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C9 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1C 01 00 35 04 06 00 CD 52 EA AE 44 CC 00 2E B0 94 72 84 A1 6C [08:03:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 80 07 47 00 77 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1C 01 00 F4 03 04 00 91 E4 22 67 B6 04 01 00 00 01 DF 4D 69 DB B2 36 0A [08:03:41]CommunicateWithHost err = 0 [08:03:41]CheckOFDResponse [08:03:41]1017 (14) - 77093643461234 [08:03:41]1041 (16) - 0000000000874662 [08:03:41]1040 (4) - 72950 [08:03:41]1012 (4) - 31.10.2024 01:59 [08:03:41]1206 (1) - 0 [08:03:41]OFD Sender: Remove packet 72950 [08:03:41]ProducePacketName [08:03:41]name=ofd_packets/00072950 [08:03:41]NVStorageDeleteData [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:38]recv_with_timeout no data received [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:07]recv_with_timeout no data received [08:07:10]accept exits with 9 [08:07:10]New connection [08:07:10]New thread 3066649956 created [08:07:10]Thread 3066506596 joined [08:07:10]Waiting for new connection... [08:07:10] Sock 9.Parse request [08:07:10]Sock 9.Check first char [08:07:10]Sock 9.First char is OK [08:07:10]request: POST /json_proto HTTP/1.0 [08:07:10]Method: POST [08:07:10]URL: /json_proto [08:07:10]Method is POST - this is cgi request [08:07:10]url: /json_proto [08:07:10]query_string will be loaded in cgi processing [08:07:10]execute_cgi json_proto POST (null) [08:07:10]execute_cgi path=json_proto method=POST [08:07:10]POST find Content-Length [08:07:10]Host: 172.17.43.195:8080 [08:07:10]Content-Length: 792 [08:07:10]Content-Type: application/json [08:07:10] [08:07:10]POST finish read [08:07:10]Found Content-Length = 792 [08:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:10]execute_script... [08:07:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:10]POST & json_proto [08:07:10]process_json_proto [08:07:10]json parsed OK: [08:07:10]protocol is kg_v1.0 [08:07:10]action value=close_receipt [08:07:10]process_action close_receipt [08:07:10]cmd_close_receipt [08:07:10]MH_GetDate [08:07:10]Write to MH i2c: F0 00 00 D9 01 C9 [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: F0 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: F0 09 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: F0 09 00 D9 01 00 AE 3A 23 67 74 2C AD 66 F7 [08:07:10]GetLastDocTimeStamp 1730361801 [08:07:10]current date 1730362030 [08:07:10]FM_GetShiftState [08:07:10]SAM_PROTO_GetShiftState [08:07:10]wFMCommunicate request_size=4 [08:07:10]MH_SAM_APDU [08:07:10]CAPDU: 80 13 01 00 [08:07:10]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:10]Read from MH i2c: E2 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 0E 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 01 [08:07:10]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:07:10]wFMCommunicate OK [08:07:10]SAM_PROTO_GetShiftState done [08:07:10]FM_GetShiftState done [08:07:10]opened in 1730333258 [08:07:10]opened+sec_in_day 1730419658 [08:07:10]quantity*price = 0 [08:07:10]sum+1 = 1 [08:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 26 31.10.2024 08:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 72951 ФПД: 74577974268200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080710&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72951&fm=74577974268200&tin=02508201610067®Number=0000000000091644&sum=0 [08:07:11]StoreToDocumentArchive [08:07:11]shift 557 fd 72951 [08:07:11]save to /storage/0557/doc_00072951 [08:07:11]save last doc name /storage/0557/doc_00072951 to /storage/kkm_last_doc_name [08:07:11]save OK [08:07:11]Clear old archive folders... [08:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:11]tlvbuf is 01D14420 [08:07:11]SAM_PROTO_ClearQueue [08:07:11]wFMCommunicate request_size=4 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 09 00 00 [08:07:11]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:11]Read from MH i2c: E2 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [08:07:11]RAPDU: 90 00 [08:07:11]wFMCommunicate OK [08:07:11]SAM_PROTO_ClearQueue done [08:07:11]KKMCreateOFDPacket [08:07:11]OFDProtocolAddRootSTLVToBuf [08:07:11]FM_MakeSignedData [08:07:11]FM_MakeSignedData [08:07:11]SAM_PROTO_SignData [08:07:11]wFMCommunicate request_size=4 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 0D 01 02 [08:07:11]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:11]Read from MH i2c: E2 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [08:07:11]RAPDU: 90 00 [08:07:11]wFMCommunicate OK [08:07:11]wFMCommunicate request_size=255 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AE 3A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F7 1C 01 00 35 04 06 00 43 [08:07:11]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AE 3A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F7 1C 01 00 35 04 06 00 43 00 00 B5 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:11]Read from MH i2c: E2 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [08:07:11]RAPDU: 90 00 [08:07:11]wFMCommunicate OK [08:07:11]wFMCommunicate request_size=10 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 0D 02 02 05 D4 09 AA 11 28 [08:07:11]Write to MH i2c: E2 0D 00 EA 01 80 0D 02 02 05 00 D4 09 AA 11 28 00 00 2F [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:11]Read from MH i2c: E2 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [08:07:11]RAPDU: 90 00 [08:07:11]wFMCommunicate OK [08:07:11]wFMCommunicate request_size=4 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 0D 03 02 [08:07:11]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:11]Read from MH i2c: E2 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 0B 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 0B 00 EB 01 00 88 58 73 CB 05 A0 43 18 90 00 86 [08:07:11]RAPDU: 88 58 73 CB 05 A0 43 18 90 00 [08:07:11]wFMCommunicate OK [08:07:11]SAM_PROTO_SignData done [08:07:11]FM_MakeSignedData done [08:07:11]CreateOFDProtocolMessage [08:07:11]wFMCommunicate request_size=4 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 11 00 00 [08:07:11]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:11]Read from MH i2c: E2 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 17 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BB [08:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:07:11]wFMCommunicate OK [08:07:11]CreateOFDProtocolMessage done [08:07:11]OFDSenderStorePacket 72951 [08:07:11]StoreOFDPacket docnum=72951 [08:07:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EE 53 07 01 03 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AE 3A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F7 1C 01 00 35 04 06 00 43 D4 09 AA 11 28 88 58 73 CB 05 A0 43 18 [08:07:11]CheckFolder [08:07:11]dirname=/storage/ofd_packets [08:07:11]CheckFolder done [08:07:11]ProducePacketName [08:07:11]name=ofd_packets/00072951 [08:07:11]NVStorageSaveData ofd_packets/00072951 [08:07:11]File name is /storage/ofd_packets/00072951 [08:07:11]Write 301 bytes [08:07:11]NVStorageSaveData done [08:07:11]OFDSenderStorePacket done [08:07:11]KKMCreateOFDPacket done [08:07:11]NVStorageSaveData kkm_last_timestamp [08:07:11]File name is /storage/kkm_last_timestamp [08:07:11]Write 4 bytes [08:07:11]NVStorageSaveData done [08:07:11]ExternCall_PrintAddStr [08:07:11]wPrintStart [08:07:11]Write to MH i2c: 01 00 00 ED 01 EE [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: 01 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: 01 07 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [08:07:11]RasterBufferAndPrint [08:07:11]line Счет N : (1)952552 [08:07:11]line ИНН: 02508201610067 [08:07:11]line Контрольно-Кассовый Чек [08:07:11]line ПРОДАЖА [08:07:11]line ТРК (МРК, ГНК) : 63 [08:07:11]line Товар: 2710124130 [08:07:11]line Аи-92-К-5 [08:07:11]line 10.000 * 0.00 [08:07:11]line = 0.00 [08:07:11]line НДС 12% НСП 1% [08:07:11]line > о реализуемом товаре [08:07:11]line ИТОГО: 0.00 [08:07:11]line НСП 1% : 0.00 [08:07:11]line НДС 12% : 0.00 [08:07:11]line Наличными: 0.00 [08:07:11]line Безнал.: 0.00 [08:07:11]line Место: АЗС № 113 "Партнер Нефть" [08:07:11]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:07:11]line СНО: Общий режим [08:07:11]line Чек 26 31.10.2024 08:07 [08:07:11]line Смена: 557 ФФД: 1.0 [08:07:11]line ЗНМ: 0300000087 [08:07:11]line РНМ: 0000000000091644 [08:07:11]line Версия ККМ: 001 [08:07:11]line Талоны: Топливная Карта [08:07:11]line 02645 [08:07:11]line ФМ: 0000000000874662 [08:07:11]line ФД: 72951 [08:07:11]line ФПД: 74577974268200 [08:07:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080710&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72951&fm=74577974268200&tin=02508201610067®Number=0000000000091644&sum=0 [08:07:11]written 0, free lines is 4095 [08:07:11]OFD Sender: Processing packet 72951 [packets to send 279, broken 278] [08:07:11]ProducePacketName [08:07:11]name=ofd_packets/00072951 [08:07:11]OFD Sender: To server: pG, [08:07:11]CommunicateWithHost lk.salyk.kg:30040 [08:07:11]ConnectInit lk.salyk.kg [08:07:12]Write to MH i2c: 01 00 00 17 02 19 [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: 01 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: 01 07 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 DA 0C 06 [08:07:12]RasterBufferAndPrint [08:07:12]line [08:07:12]line [08:07:12]line [08:07:12]line [08:07:12]line [08:07:12]written 0, free lines is 3296 [08:07:12]MH_Cut [08:07:12]Write to MH i2c: D1 01 00 1E 02 01 F2 [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: D1 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: D1 01 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: D1 01 00 1E 02 00 F1 [08:07:12]Write to MH i2c: 01 00 00 1F 02 21 [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]*** Cut start [08:07:12]*** Partial cut [08:07:12]*** CUTSNS_PIN = 1 [08:07:13]*** CUTSNS_PIN = 0 [08:07:13]*** Brake cut motor [08:07:13]Read from MH i2c: 01 [08:07:13]MH_I2C_Read... [08:07:13]*** Stop cut motor [08:07:13]Read from MH i2c: 01 07 00 [08:07:13]MH_I2C_Read... [08:07:13]*** Cut end [08:07:13]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [08:07:13]process_action close_receipt done [08:07:13]requested_data is exist [08:07:13]produce_requested_data [08:07:13]requested_item fm.sn is exist - process it [08:07:13]wFMCommunicate request_size=4 [08:07:13]MH_SAM_APDU [08:07:13]CAPDU: 80 11 00 00 [08:07:13]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:13]Read from MH i2c: E2 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 17 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F0 [08:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:07:13]wFMCommunicate OK [08:07:13]requested_item fd.num is exist - process it [08:07:13]SAM_PROTO_GetFieldsCounters [08:07:13]wFMCommunicate request_size=4 [08:07:13]MH_SAM_APDU [08:07:13]CAPDU: 80 13 00 00 [08:07:13]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:13]Read from MH i2c: E2 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 62 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [08:07:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:13]wFMCommunicate OK [08:07:13]SAM_PROTO_GetFieldsCounters done [08:07:13]requested_item shift.num is exist - process it [08:07:13]requested_item shift.opened is exist - process it [08:07:13]req_shift_opened [08:07:13]FM_GetShiftState [08:07:13]SAM_PROTO_GetShiftState [08:07:13]wFMCommunicate request_size=4 [08:07:13]MH_SAM_APDU [08:07:13]CAPDU: 80 13 01 00 [08:07:13]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:13]Read from MH i2c: E2 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4A [08:07:13]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:07:13]wFMCommunicate OK [08:07:13]SAM_PROTO_GetShiftState done [08:07:13]FM_GetShiftState done [08:07:13]req_shift_opened done [08:07:13]requested_item shift.open_date is exist - process it [08:07:13]req_shift_open_date [08:07:13]req_shift_open_date done [08:07:13]produce_requested_data done [08:07:13]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72951,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:07:13]process_action_free close_receipt [08:07:13]json_value_free [08:07:13]json_value_free done [08:07:13]process_json_proto returns [08:07:13]Send response to host [08:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72951,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:07:13]free response buf [08:07:13]execute_script done [08:07:13]execute_script returns [08:07:13]free content buf [08:07:13]Sock 9.Close socket [08:07:13]Sock 9.Thread stoped [08:07:16]accept exits with 8 [08:07:16]New connection [08:07:16]New thread 3066506596 created [08:07:16]Thread 3066649956 joined [08:07:16]Waiting for new connection... [08:07:16] Sock 8.Parse request [08:07:16]Sock 8.Check first char [08:07:16]Sock 8.First char is OK [08:07:16]request: POST /json_proto HTTP/1.0 [08:07:16]Method: POST [08:07:16]URL: /json_proto [08:07:16]Method is POST - this is cgi request [08:07:16]url: /json_proto [08:07:16]query_string will be loaded in cgi processing [08:07:16]execute_cgi json_proto POST (null) [08:07:16]execute_cgi path=json_proto method=POST [08:07:16]POST find Content-Length [08:07:16]Host: 172.17.43.195:8080 [08:07:16]Content-Length: 677 [08:07:16]Content-Type: application/json [08:07:16] [08:07:16]POST finish read [08:07:16]Found Content-Length = 677 [08:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:16]execute_script... [08:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:16]POST & json_proto [08:07:16]process_json_proto [08:07:16]json parsed OK: [08:07:16]protocol is kg_v1.0 [08:07:16]action value=close_receipt [08:07:16]process_action close_receipt [08:07:16]cmd_close_receipt [08:07:16]MH_GetDate [08:07:16]Write to MH i2c: F0 00 00 23 02 14 [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: F0 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: F0 09 00 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: F0 09 00 23 02 00 B5 3A 23 67 74 2C AD 66 49 [08:07:16]GetLastDocTimeStamp 1730362030 [08:07:16]current date 1730362037 [08:07:16]FM_GetShiftState [08:07:16]SAM_PROTO_GetShiftState [08:07:16]wFMCommunicate request_size=4 [08:07:16]MH_SAM_APDU [08:07:16]CAPDU: 80 13 01 00 [08:07:16]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:16]Read from MH i2c: E2 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: E2 0E 00 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4C [08:07:16]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:07:16]wFMCommunicate OK [08:07:16]SAM_PROTO_GetShiftState done [08:07:16]FM_GetShiftState done [08:07:16]opened in 1730333258 [08:07:16]opened+sec_in_day 1730419658 [08:07:16]quantity*price = 50041 [08:07:16]sum+1 = 50042 [08:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 27 31.10.2024 08:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72952 ФПД: 61144534795420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080717&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72952&fm=61144534795420&tin=02508201610067®Number=0000000000091644&sum=50000 [08:07:17]StoreToDocumentArchive [08:07:17]shift 557 fd 72952 [08:07:17]save to /storage/0557/doc_00072952 [08:07:17]save last doc name /storage/0557/doc_00072952 to /storage/kkm_last_doc_name [08:07:17]save OK [08:07:17]Clear old archive folders... [08:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:17]tlvbuf is 01D20AF0 [08:07:17]SAM_PROTO_ClearQueue [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 09 00 00 [08:07:17]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_ClearQueue done [08:07:17]KKMCreateOFDPacket [08:07:17]OFDProtocolAddRootSTLVToBuf [08:07:17]FM_MakeSignedData [08:07:17]FM_MakeSignedData [08:07:17]SAM_PROTO_SignData [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 01 02 [08:07:17]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]wFMCommunicate request_size=255 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B5 3A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F8 1C 01 00 35 04 06 00 37 [08:07:17]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B5 3A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F8 1C 01 00 35 04 06 00 37 00 00 4B [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]wFMCommunicate request_size=10 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 0D 02 02 05 9C 52 46 C4 9C [08:07:18]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 9C 52 46 C4 9C 00 00 4E [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]wFMCommunicate request_size=4 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 0D 03 02 [08:07:18]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 0B 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 0B 00 35 02 00 06 2C FE 8A 24 F5 BD 45 90 00 88 [08:07:18]RAPDU: 06 2C FE 8A 24 F5 BD 45 90 00 [08:07:18]wFMCommunicate OK [08:07:18]SAM_PROTO_SignData done [08:07:18]FM_MakeSignedData done [08:07:18]CreateOFDProtocolMessage [08:07:18]wFMCommunicate request_size=4 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 11 00 00 [08:07:18]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 17 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 06 [08:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:07:18]wFMCommunicate OK [08:07:18]CreateOFDProtocolMessage done [08:07:18]OFDSenderStorePacket 72952 [08:07:18]StoreOFDPacket docnum=72952 [08:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D0 B0 07 01 FA 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B5 3A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F8 1C 01 00 35 04 06 00 37 9C 52 46 C4 9C 06 2C FE 8A 24 F5 BD 45 [08:07:18]CheckFolder [08:07:18]dirname=/storage/ofd_packets [08:07:18]CheckFolder done [08:07:18]ProducePacketName [08:07:18]name=ofd_packets/00072952 [08:07:18]NVStorageSaveData ofd_packets/00072952 [08:07:18]File name is /storage/ofd_packets/00072952 [08:07:18]Write 301 bytes [08:07:18]NVStorageSaveData done [08:07:18]OFDSenderStorePacket done [08:07:18]KKMCreateOFDPacket done [08:07:18]NVStorageSaveData kkm_last_timestamp [08:07:18]File name is /storage/kkm_last_timestamp [08:07:18]Write 4 bytes [08:07:18]NVStorageSaveData done [08:07:18]ExternCall_PrintAddStr [08:07:18]wPrintStart [08:07:18]Write to MH i2c: 01 00 00 37 02 39 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [08:07:18]RasterBufferAndPrint [08:07:18]line Счет N : (1)952553 [08:07:18]line ИНН: 02508201610067 [08:07:18]line Контрольно-Кассовый Чек [08:07:18]line ПРОДАЖА [08:07:18]line ТРК (МРК, ГНК) : 21 [08:07:18]line Товар: 2710124130 [08:07:18]line Аи-92-К-5 [08:07:18]line 7.480 * 66.90 [08:07:18]line = 500.41 [08:07:18]line НДС 12% НСП 1% [08:07:18]line > о реализуемом товаре [08:07:18]line ОКРУГЛЕНИЕ: -0.41 [08:07:18]line ИТОГО: 500.00 [08:07:18]line Внесено: 500.00 [08:07:18]line СДАЧА: 0.00 [08:07:18]line НСП 1% : 4.43 [08:07:18]line НДС 12% : 53.14 [08:07:18]line Наличными: 500.00 [08:07:18]line Безнал.: 0.00 [08:07:18]line Место: АЗС № 113 "Партнер Нефть" [08:07:18]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:07:18]line СНО: Общий режим [08:07:18]line Чек 27 31.10.2024 08:07 [08:07:18]line Смена: 557 ФФД: 1.0 [08:07:18]line ЗНМ: 0300000087 [08:07:18]line РНМ: 0000000000091644 [08:07:18]line Версия ККМ: 001 [08:07:18]line ФМ: 0000000000874662 [08:07:18]line ФД: 72952 [08:07:18]line ФПД: 61144534795420 [08:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080717&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72952&fm=61144534795420&tin=02508201610067®Number=0000000000091644&sum=50000 [08:07:18]written 0, free lines is 4095 [08:07:18]Write to MH i2c: 01 00 00 62 02 64 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 D0 0C 47 [08:07:18]RasterBufferAndPrint [08:07:18]line [08:07:18]line [08:07:18]line [08:07:18]line [08:07:18]line [08:07:18]written 0, free lines is 3290 [08:07:18]MH_Cut [08:07:18]Write to MH i2c: D1 01 00 69 02 01 3D [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: D1 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: D1 01 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: D1 01 00 69 02 00 3C [08:07:18]Write to MH i2c: 01 00 00 6A 02 6C [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:19]*** Cut start [08:07:19]*** Partial cut [08:07:19]*** CUTSNS_PIN = 1 [08:07:19]*** CUTSNS_PIN = 0 [08:07:19]*** Brake cut motor [08:07:20]Read from MH i2c: 01 [08:07:20]MH_I2C_Read... [08:07:20]*** Stop cut motor [08:07:20]*** Cut end [08:07:20]Read from MH i2c: 01 07 00 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [08:07:20]process_action close_receipt done [08:07:20]requested_data is exist [08:07:20]produce_requested_data [08:07:20]requested_item fm.sn is exist - process it [08:07:20]wFMCommunicate request_size=4 [08:07:20]MH_SAM_APDU [08:07:20]CAPDU: 80 11 00 00 [08:07:20]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [08:07:20]Write i2c OK [08:07:20]MH_I2C_Read... [08:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:20]Read from MH i2c: E2 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 17 00 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3B [08:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:07:20]wFMCommunicate OK [08:07:20]requested_item fd.num is exist - process it [08:07:20]SAM_PROTO_GetFieldsCounters [08:07:20]wFMCommunicate request_size=4 [08:07:20]MH_SAM_APDU [08:07:20]CAPDU: 80 13 00 00 [08:07:20]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [08:07:20]Write i2c OK [08:07:20]MH_I2C_Read... [08:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:20]Read from MH i2c: E2 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 62 00 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 62 00 6C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F8 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [08:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F8 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:20]wFMCommunicate OK [08:07:20]SAM_PROTO_GetFieldsCounters done [08:07:20]requested_item shift.num is exist - process it [08:07:20]requested_item shift.opened is exist - process it [08:07:20]req_shift_opened [08:07:20]FM_GetShiftState [08:07:20]SAM_PROTO_GetShiftState [08:07:20]wFMCommunicate request_size=4 [08:07:20]MH_SAM_APDU [08:07:20]CAPDU: 80 13 01 00 [08:07:20]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [08:07:20]Write i2c OK [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 [08:07:20]MH_I2C_Read... [08:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:20]Read from MH i2c: E2 0E 00 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 95 [08:07:20]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:07:20]wFMCommunicate OK [08:07:20]SAM_PROTO_GetShiftState done [08:07:20]FM_GetShiftState done [08:07:20]req_shift_opened done [08:07:20]requested_item shift.open_date is exist - process it [08:07:20]req_shift_open_date [08:07:20]req_shift_open_date done [08:07:20]produce_requested_data done [08:07:20]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72952,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:07:20]process_action_free close_receipt [08:07:20]json_value_free [08:07:20]json_value_free done [08:07:20]process_json_proto returns [08:07:20]Send response to host [08:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72952,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:07:20]free response buf [08:07:20]execute_script done [08:07:20]execute_script returns [08:07:20]free content buf [08:07:20]Sock 8.Close socket [08:07:20]Sock 8.Thread stoped [08:07:46]recv_with_timeout no data received [08:07:57]recv_with_timeout no data received [08:09:26]ConnectInit Can't connect to host [08:09:26]CommunicateWithHost connect error [08:09:26]CommunicateWithHost err = -1 [08:09:26]OFD Sender: Server communicate error [08:09:26]OFD Sender: Processing packet 72951 [packets to send 280, broken 278] [08:09:26]ProducePacketName [08:09:26]name=ofd_packets/00072951 [08:09:26]OFD Sender: To server: pG, [08:09:26]CommunicateWithHost lk.salyk.kg:30040 [08:09:26]ConnectInit lk.salyk.kg [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 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]Read from MH i2c: A0 01 *** [00:00:10]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 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7737599+1722625140=1730362739 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 74 3D 23 67 74 2C AD 66 ED [08:19:00]Current date/time: 31.10.2024 08:19 [08:19:00]FM_Init [08:19:00]wFMConnect [08:19:00]MH_SAM_On [08:19:00]Write to MH i2c: E0 00 00 08 00 E7 [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_init finished! [08:19:00]*** atr: [08:19:00]*** 0F 3B D5 18 FF 81 91 FE [08:19:00]*** 1F C3 80 73 C8 21 10 0A [08:19:00]*** 00 00 00 00 00 00 00 00 [08:19:00]*** 00 00 00 00 00 00 00 00 [08:19:00]*** 00 00 00 00 00 00 00 00 [08:19:00]*** 00 00 00 00 00 00 00 00 [08:19:00]*** 00 00 00 00 00 00 00 00 [08:19:00]*** 00 00 00 00 00 00 00 00 [08:19:00]Read from MH i2c: E0 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E0 10 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [08:19:00]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:19:00]wFMCommunicate request_size=10 [08:19:00]MH_SAM_APDU [08:19:00]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:19:00]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:19:00]Read from MH i2c: E2 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 03 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:19:00]RAPDU: 90 00 [08:19:00]wFMCommunicate OK [08:19:00]wFMCommunicate request_size=4 [08:19:00]MH_SAM_APDU [08:19:00]CAPDU: 80 11 00 00 [08:19:00]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:00]Read from MH i2c: E2 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 17 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [08:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:19:00]wFMCommunicate OK [08:19:00]Detected FM SN is 0000000000874662 [08:19:00]Stored FM SN is 0000000000874662 [08:19:00]wFMCommunicate request_size=9 [08:19:00]MH_SAM_APDU [08:19:00]CAPDU: 80 16 00 00 04 08 EB 00 00 [08:19:00]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:19:00]Read from MH i2c: E2 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 03 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:19:00]RAPDU: 90 00 [08:19:00]wFMCommunicate OK [08:19:00]FM PIN OK [08:19:00]wFMCommunicate request_size=8 [08:19:00]MH_SAM_APDU [08:19:00]CAPDU: 80 14 04 00 03 02 00 01 [08:19:00]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:19:00]Read from MH i2c: E2 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 03 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:19:00]RAPDU: 90 00 [08:19:00]wFMCommunicate OK [08:19:00]wFMCommunicate request_size=13 [08:19:00]MH_SAM_APDU [08:19:00]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:19:00]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:19:00]Read from MH i2c: E2 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 03 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:19:00]RAPDU: 90 00 [08:19:00]wFMCommunicate OK [08:19:00]wFMCommunicate request_size=4 [08:19:00]MH_SAM_APDU [08:19:00]CAPDU: 80 11 00 00 [08:19:00]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:00]Read from MH i2c: E2 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 17 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [08:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:19:00]wFMCommunicate OK [08:19:00]DocumentArchiveInit [08:19:00]Start Httpd... [08:19:00]Httpd thread 3067915620 created [08:19:00]Write to MH i2c: 01 00 00 0F 00 0F [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: 01 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: 01 07 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:19:00]Allocated Socket 5 [08:19:00]Bind OK [08:19:00]Listen OK [08:19:00]httpd running on port 8080 [08:19:00]Waiting for new connection... [08:19:00]MH Int Process started [08:19:00]OFD Sender: Processing packet 72951 [packets to send 280, broken 278] [08:19:00]ProducePacketName [08:19:00]name=ofd_packets/00072951 [08:19:00]OFD Sender: To server: pG, [08:19:00]CommunicateWithHost lk.salyk.kg:30040 [08:19:00]ConnectInit lk.salyk.kg [08:19:01]Connected sock=8 [08:19:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EE 53 07 01 03 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AE 3A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F7 1C 01 00 35 04 06 00 43 D4 09 AA 11 28 88 58 73 CB 05 A0 43 18 [08:19:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CD 3D 47 00 6B 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 34 36 36 32 10 04 04 00 F7 1C 01 00 F4 03 04 00 2A E8 22 67 B6 04 01 00 00 6E 27 4D 39 97 F8 F3 53 [08:19:02]CommunicateWithHost err = 0 [08:19:02]CheckOFDResponse [08:19:02]1017 (14) - 77093643461234 [08:19:02]1041 (16) - 0000000000874662 [08:19:02]1040 (4) - 72951 [08:19:02]1012 (4) - 31.10.2024 02:15 [08:19:02]1206 (1) - 0 [08:19:02]OFD Sender: Remove packet 72951 [08:19:02]ProducePacketName [08:19:02]name=ofd_packets/00072951 [08:19:02]NVStorageDeleteData [08:19:02]OFD Sender: Processing packet 72952 [packets to send 279, broken 278] [08:19:02]ProducePacketName [08:19:02]name=ofd_packets/00072952 [08:19:02]OFD Sender: To server: pG, [08:19:02]CommunicateWithHost lk.salyk.kg:30040 [08:19:02]ConnectInit lk.salyk.kg [08:19:04]Connected sock=8 [08:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D0 B0 07 01 FA 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B5 3A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F8 1C 01 00 35 04 06 00 37 9C 52 46 C4 9C 06 2C FE 8A 24 F5 BD 45 [08:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E9 9B 47 00 8B 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F8 1C 01 00 F4 03 04 00 2C E8 22 67 B6 04 01 00 00 C1 45 62 BA 2B 74 52 90 [08:19:04]CommunicateWithHost err = 0 [08:19:04]CheckOFDResponse [08:19:04]1017 (14) - 77093643461234 [08:19:04]1041 (16) - 0000000000874662 [08:19:04]1040 (4) - 72952 [08:19:04]1012 (4) - 31.10.2024 02:15 [08:19:04]1206 (1) - 0 [08:19:04]OFD Sender: Remove packet 72952 [08:19:04]ProducePacketName [08:19:04]name=ofd_packets/00072952 [08:19:04]NVStorageDeleteData [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:36]accept exits with 6 [08:19:36]New connection [08:19:36]New thread 3067628900 created [08:19:36]Waiting for new connection... [08:19:36] Sock 6.Parse request [08:19:36]Sock 6.Check first char [08:19:36]Sock 6.First char is OK [08:19:36]request: POST /json_proto HTTP/1.0 [08:19:36]Method: POST [08:19:36]URL: /json_proto [08:19:36]Method is POST - this is cgi request [08:19:36]url: /json_proto [08:19:36]query_string will be loaded in cgi processing [08:19:36]execute_cgi json_proto POST (null) [08:19:36]execute_cgi path=json_proto method=POST [08:19:36]POST find Content-Length [08:19:36]Host: 172.17.43.195:8080 [08:19:36]Content-Length: 215 [08:19:36]Content-Type: application/json [08:19:36] [08:19:36]POST finish read [08:19:36]Found Content-Length = 215 [08:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:36]execute_script... [08:19:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:36]POST & json_proto [08:19:36]process_json_proto [08:19:36]json parsed OK: [08:19:36]protocol is kg_v1.0 [08:19:36]action value=get_value [08:19:36]process_action get_value [08:19:36]cmd_get_value [08:19:36]process_action get_value done [08:19:36]requested_data is exist [08:19:36]produce_requested_data [08:19:36]requested_item kkm.sn is exist - process it [08:19:36]requested_item kkm.ver is exist - process it [08:19:36]requested_item fm.sn is exist - process it [08:19:36]wFMCommunicate request_size=4 [08:19:36]MH_SAM_APDU [08:19:36]CAPDU: 80 11 00 00 [08:19:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [08:19:36]Write i2c OK [08:19:36]MH_I2C_Read... [08:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:36]Read from MH i2c: E2 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 17 00 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [08:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:19:36]wFMCommunicate OK [08:19:36]requested_item fd.num is exist - process it [08:19:36]SAM_PROTO_GetFieldsCounters [08:19:36]wFMCommunicate request_size=4 [08:19:36]MH_SAM_APDU [08:19:36]CAPDU: 80 13 00 00 [08:19:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [08:19:36]Write i2c OK [08:19:36]MH_I2C_Read... [08:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:36]Read from MH i2c: E2 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 62 00 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F8 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [08:19:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F8 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:36]wFMCommunicate OK [08:19:36]SAM_PROTO_GetFieldsCounters done [08:19:36]requested_item shift.num is exist - process it [08:19:36]requested_item shift.opened is exist - process it [08:19:36]req_shift_opened [08:19:36]FM_GetShiftState [08:19:36]SAM_PROTO_GetShiftState [08:19:36]wFMCommunicate request_size=4 [08:19:36]MH_SAM_APDU [08:19:36]CAPDU: 80 13 01 00 [08:19:36]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [08:19:36]Write i2c OK [08:19:36]MH_I2C_Read... [08:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:36]Read from MH i2c: E2 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 0E 00 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [08:19:36]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:19:36]wFMCommunicate OK [08:19:36]SAM_PROTO_GetShiftState done [08:19:36]FM_GetShiftState done [08:19:36]req_shift_opened done [08:19:36]requested_item shift.open_date is exist - process it [08:19:36]req_shift_open_date [08:19:36]req_shift_open_date done [08:19:36]produce_requested_data done [08:19:36]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72952,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:19:36]process_action_free get_value [08:19:36]json_value_free [08:19:36]json_value_free done [08:19:36]process_json_proto returns [08:19:36]Send response to host [08:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72952,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:19:36]free response buf [08:19:36]execute_script done [08:19:36]execute_script returns [08:19:36]free content buf [08:19:36]Sock 6.Close socket [08:19:36]Sock 6.Thread stoped [08:19:36]accept exits with 10 [08:19:36]New connection [08:19:36]New thread 3067485540 created [08:19:36]Thread 3067628900 joined [08:19:36]Waiting for new connection... [08:19:36] Sock 10.Parse request [08:19:36]Sock 10.Check first char [08:19:36]Sock 10.First char is OK [08:19:36]request: POST /json_proto HTTP/1.0 [08:19:36]Method: POST [08:19:36]URL: /json_proto [08:19:36]Method is POST - this is cgi request [08:19:36]url: /json_proto [08:19:36]query_string will be loaded in cgi processing [08:19:36]execute_cgi json_proto POST (null) [08:19:36]execute_cgi path=json_proto method=POST [08:19:36]POST find Content-Length [08:19:36]Host: 172.17.43.195:8080 [08:19:36]Content-Length: 331 [08:19:36]Content-Type: application/json [08:19:36] [08:19:36]POST finish read [08:19:36]Found Content-Length = 331 [08:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:19:36]execute_script... [08:19:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:19:36]POST & json_proto [08:19:36]process_json_proto [08:19:36]json parsed OK: [08:19:36]protocol is kg_v1.0 [08:19:36]action value=get_value [08:19:36]process_action get_value [08:19:36]cmd_get_value [08:19:36]process_action get_value done [08:19:36]requested_data is exist [08:19:36]produce_requested_data [08:19:36]requested_item fm.sale.total is exist - process it [08:19:36]SAM_PROTO_GetFMData [08:19:36]wFMCommunicate request_size=4 [08:19:36]MH_SAM_APDU [08:19:36]CAPDU: 80 13 03 00 [08:19:36]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [08:19:36]Write i2c OK [08:19:36]MH_I2C_Read... [08:19:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:19:36]Read from MH i2c: E2 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 FD 00 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 9E 18 01 00 69 04 A3 00 6F 04 04 00 AE 17 01 00 B1 04 05 00 A9 9E 2E A4 01 70 04 05 00 58 D3 AC 58 01 72 04 04 00 51 CB 81 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 30 D1 A1 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D8 14 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 78 [08:19:36]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9E 18 01 00 69 04 A3 00 6F 04 04 00 AE 17 01 00 B1 04 05 00 A9 9E 2E A4 01 70 04 05 00 58 D3 AC 58 01 72 04 04 00 51 CB 81 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 30 D1 A1 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D8 14 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [08:19:36]wFMCommunicate OK [08:19:36]wFMCommunicate request_size=4 [08:19:36]MH_SAM_APDU [08:19:36]CAPDU: 80 17 00 00 [08:19:36]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [08:19:37]Write i2c OK [08:19:37]MH_I2C_Read... [08:19:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:19:37]Read from MH i2c: E2 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 FD 00 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [08:19:37]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [08:19:37]wFMCommunicate OK [08:19:37]wFMCommunicate request_size=4 [08:19:37]MH_SAM_APDU [08:19:37]CAPDU: 80 17 00 00 [08:19:37]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [08:19:37]Write i2c OK [08:19:37]MH_I2C_Read... [08:19:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:19:37]Read from MH i2c: E2 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 FD 00 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [08:19:37]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [08:19:37]wFMCommunicate OK [08:19:37]wFMCommunicate request_size=4 [08:19:37]MH_SAM_APDU [08:19:37]CAPDU: 80 17 00 00 [08:19:37]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [08:19:37]Write i2c OK [08:19:37]MH_I2C_Read... [08:19:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:19:37]Read from MH i2c: E2 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 FD 00 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [08:19:37]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [08:19:37]wFMCommunicate OK [08:19:37]wFMCommunicate request_size=4 [08:19:37]MH_SAM_APDU [08:19:37]CAPDU: 80 17 00 00 [08:19:37]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [08:19:37]Write i2c OK [08:19:37]MH_I2C_Read... [08:19:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [08:19:38]Read from MH i2c: E2 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 E1 00 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [08:19:38]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:19:38]wFMCommunicate OK [08:19:38]SAM_PROTO_GetFMData done [08:19:38]requested_item fm.sale_refund.total is exist - process it [08:19:38]requested_item fm.buy.total is exist - process it [08:19:38]requested_item shift.sale.total is exist - process it [08:19:38]SAM_PROTO_GetShiftData [08:19:38]wFMCommunicate request_size=4 [08:19:38]MH_SAM_APDU [08:19:38]CAPDU: 80 13 02 00 [08:19:38]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [08:19:38]Write i2c OK [08:19:38]MH_I2C_Read... [08:19:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:19:38]Read from MH i2c: E2 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 FD 00 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 F0 31 18 70 04 03 00 24 CA 07 72 04 03 00 CC 67 10 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 D5 91 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 D0 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 6C [08:19:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 F0 31 18 70 04 03 00 24 CA 07 72 04 03 00 CC 67 10 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 D5 91 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 D0 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:19:38]wFMCommunicate OK [08:19:38]wFMCommunicate request_size=4 [08:19:38]MH_SAM_APDU [08:19:38]CAPDU: 80 17 00 00 [08:19:38]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [08:19:38]Write i2c OK [08:19:38]MH_I2C_Read... [08:19:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:19:38]Read from MH i2c: E2 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 FD 00 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [08:19:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:19:38]wFMCommunicate OK [08:19:38]wFMCommunicate request_size=4 [08:19:38]MH_SAM_APDU [08:19:38]CAPDU: 80 17 00 00 [08:19:38]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [08:19:38]Write i2c OK [08:19:38]MH_I2C_Read... [08:19:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:19:39]Read from MH i2c: E2 [08:19:39]MH_I2C_Read... [08:19:39]Read from MH i2c: E2 FD 00 [08:19:39]MH_I2C_Read... [08:19:39]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [08:19:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:19:39]wFMCommunicate OK [08:19:39]wFMCommunicate request_size=4 [08:19:39]MH_SAM_APDU [08:19:39]CAPDU: 80 17 00 00 [08:19:39]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [08:19:39]Write i2c OK [08:19:39]MH_I2C_Read... [08:19:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:19:39]Read from MH i2c: E2 [08:19:39]MH_I2C_Read... [08:19:39]Read from MH i2c: E2 FD 00 [08:19:39]MH_I2C_Read... [08:19:39]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [08:19:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:19:39]wFMCommunicate OK [08:19:39]wFMCommunicate request_size=4 [08:19:39]MH_SAM_APDU [08:19:39]CAPDU: 80 17 00 00 [08:19:39]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [08:19:39]Write i2c OK [08:19:39]MH_I2C_Read... [08:19:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:19:39]Read from MH i2c: E2 [08:19:39]MH_I2C_Read... [08:19:39]Read from MH i2c: E2 CB 00 [08:19:39]MH_I2C_Read... [08:19:39]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [08:19:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:19:39]wFMCommunicate OK [08:19:39]SAM_PROTO_GetShiftData done [08:19:39]requested_item shift.sale.total_cash is exist - process it [08:19:39]requested_item shift.sale_refund.total is exist - process it [08:19:39]requested_item shift.sale_refund.total_cash is exist - process it [08:19:39]requested_item shift.buy.total is exist - process it [08:19:39]requested_item shift.buy.total_cash is exist - process it [08:19:39]produce_requested_data done [08:19:39]produce_requested_data return {"fm.sale.total":70494859.93,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":15856.48,"shift.sale.total_cash":5105.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:19:39]process_action_free get_value [08:19:39]json_value_free [08:19:39]json_value_free done [08:19:39]process_json_proto returns [08:19:39]Send response to host [08:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70494859.93,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":15856.48,"shift.sale.total_cash":5105.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:19:39]free response buf [08:19:39]execute_script done [08:19:39]execute_script returns [08:19:39]free content buf [08:19:39]Sock 10.Close socket [08:19:39]Sock 10.Thread stoped [08:19:40]accept exits with 6 [08:19:40]New connection [08:19:40]New thread 3067628900 created [08:19:40]Thread 3067485540 joined [08:19:40]Waiting for new connection... [08:19:40] Sock 6.Parse request [08:19:40]Sock 6.Check first char [08:19:40]Sock 6.First char is OK [08:19:40]request: POST /json_proto HTTP/1.0 [08:19:40]Method: POST [08:19:40]URL: /json_proto [08:19:40]Method is POST - this is cgi request [08:19:40]url: /json_proto [08:19:40]query_string will be loaded in cgi processing [08:19:40]execute_cgi json_proto POST (null) [08:19:40]execute_cgi path=json_proto method=POST [08:19:40]POST find Content-Length [08:19:40]Host: 172.17.43.195:8080 [08:19:40]Content-Length: 792 [08:19:40]Content-Type: application/json [08:19:40] [08:19:40]POST finish read [08:19:40]Found Content-Length = 792 [08:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:40]execute_script... [08:19: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)952554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:40]POST & json_proto [08:19:40]process_json_proto [08:19:40]json parsed OK: [08:19:40]protocol is kg_v1.0 [08:19:40]action value=close_receipt [08:19:40]process_action close_receipt [08:19:40]cmd_close_receipt [08:19:40]MH_GetDate [08:19:40]Write to MH i2c: F0 00 00 1D 00 0C [08:19:40]Write i2c OK [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: F0 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: F0 09 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: F0 09 00 1D 00 00 9C 3D 23 67 74 2C AD 66 2B [08:19:40]GetLastDocTimeStamp 1730362037 [08:19:40]current date 1730362780 [08:19:40]FM_GetShiftState [08:19:40]SAM_PROTO_GetShiftState [08:19:40]wFMCommunicate request_size=4 [08:19:40]MH_SAM_APDU [08:19:40]CAPDU: 80 13 01 00 [08:19:40]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [08:19:40]Write i2c OK [08:19:40]MH_I2C_Read... [08:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:40]Read from MH i2c: E2 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 0E 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 44 [08:19:40]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:19:40]wFMCommunicate OK [08:19:40]SAM_PROTO_GetShiftState done [08:19:40]FM_GetShiftState done [08:19:40]opened in 1730333258 [08:19:40]opened+sec_in_day 1730419658 [08:19:40]quantity*price = 0 [08:19:40]sum+1 = 1 [08:19:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 28 31.10.2024 08:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72953 ФПД: 278543982749360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T081940&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72953&fm=278543982749360&tin=02508201610067®Number=0000000000091644&sum=0 [08:19:41]StoreToDocumentArchive [08:19:41]shift 557 fd 72953 [08:19:41]save to /storage/0557/doc_00072953 [08:19:41]save last doc name /storage/0557/doc_00072953 to /storage/kkm_last_doc_name [08:19:41]save OK [08:19:41]Clear old archive folders... [08:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:41]tlvbuf is 00D3FE60 [08:19:41]SAM_PROTO_ClearQueue [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 09 00 00 [08:19:41]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]SAM_PROTO_ClearQueue done [08:19:41]KKMCreateOFDPacket [08:19:41]OFDProtocolAddRootSTLVToBuf [08:19:41]FM_MakeSignedData [08:19:41]FM_MakeSignedData [08:19:41]SAM_PROTO_SignData [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 0D 01 02 [08:19:41]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]wFMCommunicate request_size=255 [08:19:41]MH_SAM_APDU [08:19: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9C 3D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F9 1C 01 00 35 04 06 00 FD [08:19:41]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9C 3D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F9 1C 01 00 35 04 06 00 FD 00 00 42 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]wFMCommunicate request_size=10 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 0D 02 02 05 55 93 25 66 B0 [08:19:41]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 55 93 25 66 B0 00 00 D5 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:42]Read from MH i2c: E2 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 03 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [08:19:42]RAPDU: 90 00 [08:19:42]wFMCommunicate OK [08:19:42]wFMCommunicate request_size=4 [08:19:42]MH_SAM_APDU [08:19:42]CAPDU: 80 0D 03 02 [08:19:42]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:42]Read from MH i2c: E2 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 0B 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 0B 00 2F 00 00 1A EB FC 13 BA 4C 04 18 90 00 E1 [08:19:42]RAPDU: 1A EB FC 13 BA 4C 04 18 90 00 [08:19:42]wFMCommunicate OK [08:19:42]SAM_PROTO_SignData done [08:19:42]FM_MakeSignedData done [08:19:42]CreateOFDProtocolMessage [08:19:42]wFMCommunicate request_size=4 [08:19:42]MH_SAM_APDU [08:19:42]CAPDU: 80 11 00 00 [08:19:42]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:42]Read from MH i2c: E2 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 17 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [08:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:19:42]wFMCommunicate OK [08:19:42]CreateOFDProtocolMessage done [08:19:42]OFDSenderStorePacket 72953 [08:19:42]StoreOFDPacket docnum=72953 [08:19:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4E 78 07 01 BC 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9C 3D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F9 1C 01 00 35 04 06 00 FD 55 93 25 66 B0 1A EB FC 13 BA 4C 04 18 [08:19:42]CheckFolder [08:19:42]dirname=/storage/ofd_packets [08:19:42]CheckFolder done [08:19:42]ProducePacketName [08:19:42]name=ofd_packets/00072953 [08:19:42]NVStorageSaveData ofd_packets/00072953 [08:19:42]File name is /storage/ofd_packets/00072953 [08:19:42]Write 301 bytes [08:19:42]NVStorageSaveData done [08:19:42]OFDSenderStorePacket done [08:19:42]KKMCreateOFDPacket done [08:19:42]NVStorageSaveData kkm_last_timestamp [08:19:42]File name is /storage/kkm_last_timestamp [08:19:42]Write 4 bytes [08:19:42]NVStorageSaveData done [08:19:42]ExternCall_PrintAddStr [08:19:42]wPrintStart [08:19:42]Write to MH i2c: 01 00 00 31 00 31 [08:19:42]OFD Sender: Processing packet 72953 [packets to send 279, broken 278] [08:19:42]ProducePacketName [08:19:42]name=ofd_packets/00072953 [08:19:42]OFD Sender: To server: pG, [08:19:42]CommunicateWithHost lk.salyk.kg:30040 [08:19:42]ConnectInit lk.salyk.kg [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [08:19:42]RasterBufferAndPrint [08:19:42]line Счет N : (1)952554 [08:19:42]line ИНН: 02508201610067 [08:19:42]line Контрольно-Кассовый Чек [08:19:42]line ПРОДАЖА [08:19:42]line ТРК (МРК, ГНК) : 63 [08:19:42]line Товар: 2710124130 [08:19:42]line Аи-92-К-5 [08:19:42]line 15.000 * 0.00 [08:19:42]line = 0.00 [08:19:42]line НДС 12% НСП 1% [08:19:42]line > о реализуемом товаре [08:19:42]line ИТОГО: 0.00 [08:19:42]line НСП 1% : 0.00 [08:19:42]line НДС 12% : 0.00 [08:19:42]line Наличными: 0.00 [08:19:42]line Безнал.: 0.00 [08:19:42]line Место: АЗС № 113 "Партнер Нефть" [08:19:42]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:19:42]line СНО: Общий режим [08:19:42]line Чек 28 31.10.2024 08:19 [08:19:42]line Смена: 557 ФФД: 1.0 [08:19:42]line ЗНМ: 0300000087 [08:19:42]line РНМ: 0000000000091644 [08:19:42]line Версия ККМ: 001 [08:19:42]line Талоны: Топливная Карта [08:19:42]line 03047 [08:19:42]line ФМ: 0000000000874662 [08:19:42]line ФД: 72953 [08:19:42]line ФПД: 278543982749360 [08:19:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T081940&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72953&fm=278543982749360&tin=02508201610067®Number=0000000000091644&sum=0 [08:19:42]written 0, free lines is 4095 [08:19:42]Write to MH i2c: 01 00 00 5B 00 5B [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F0 0C 5E [08:19:42]RasterBufferAndPrint [08:19:42]line [08:19:42]line [08:19:42]line [08:19:42]line [08:19:42]line [08:19:42]written 0, free lines is 3330 [08:19:42]MH_Cut [08:19:42]Write to MH i2c: D1 01 00 62 00 01 34 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: D1 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: D1 01 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: D1 01 00 62 00 00 33 [08:19:42]Write to MH i2c: 01 00 00 63 00 63 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:43]*** Cut start [08:19:43]*** Partial cut [08:19:43]*** CUTSNS_PIN = 1 [08:19:43]*** CUTSNS_PIN = 0 [08:19:43]*** Brake cut motor [08:19:44]Read from MH i2c: 01 [08:19:44]MH_I2C_Read... [08:19:44]*** Stop cut motor [08:19:44]*** Cut end [08:19:44]Read from MH i2c: 01 07 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [08:19:44]process_action close_receipt done [08:19:44]requested_data is exist [08:19:44]produce_requested_data [08:19:44]requested_item fm.sn is exist - process it [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 11 00 00 [08:19:44]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 17 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [08:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:19:44]wFMCommunicate OK [08:19:44]requested_item fd.num is exist - process it [08:19:44]SAM_PROTO_GetFieldsCounters [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 13 00 00 [08:19:44]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 62 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F9 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [08:19:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F9 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:44]wFMCommunicate OK [08:19:44]SAM_PROTO_GetFieldsCounters done [08:19:44]requested_item shift.num is exist - process it [08:19:44]requested_item shift.opened is exist - process it [08:19:44]req_shift_opened [08:19:44]FM_GetShiftState [08:19:44]SAM_PROTO_GetShiftState [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 13 01 00 [08:19:44]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 0E 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8C [08:19:44]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:19:44]wFMCommunicate OK [08:19:44]SAM_PROTO_GetShiftState done [08:19:44]FM_GetShiftState done [08:19:44]req_shift_opened done [08:19:44]requested_item shift.open_date is exist - process it [08:19:44]req_shift_open_date [08:19:44]req_shift_open_date done [08:19:44]produce_requested_data done [08:19:44]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72953,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:19:44]process_action_free close_receipt [08:19:44]json_value_free [08:19:44]json_value_free done [08:19:44]process_json_proto returns [08:19:44]Send response to host [08:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72953,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:19:44]free response buf [08:19:44]execute_script done [08:19:44]execute_script returns [08:19:44]free content buf [08:19:44]Sock 6.Close socket [08:19:44]Sock 6.Thread stoped [08:19:45]Connected sock=11 [08:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4E 78 07 01 BC 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9C 3D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F9 1C 01 00 35 04 06 00 FD 55 93 25 66 B0 1A EB FC 13 BA 4C 04 18 [08:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 52 47 00 C1 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F9 1C 01 00 F4 03 04 00 55 E8 22 67 B6 04 01 00 00 3B 17 65 13 57 38 CE 03 [08:19:45]CommunicateWithHost err = 0 [08:19:45]CheckOFDResponse [08:19:45]1017 (14) - 77093643461234 [08:19:45]1041 (16) - 0000000000874662 [08:19:45]1040 (4) - 72953 [08:19:45]1012 (4) - 31.10.2024 02:15 [08:19:45]1206 (1) - 0 [08:19:45]OFD Sender: Remove packet 72953 [08:19:45]ProducePacketName [08:19:45]name=ofd_packets/00072953 [08:19:45]NVStorageDeleteData [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:38]recv_with_timeout no data received [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:55]accept exits with 9 [08:20:55]New connection [08:20:55]New thread 3067485540 created [08:20:55]Thread 3067628900 joined [08:20:55]Waiting for new connection... [08:20:55] Sock 9.Parse request [08:20:55]Sock 9.Check first char [08:20:55]Sock 9.First char is OK [08:20:55]request: POST /json_proto HTTP/1.0 [08:20:55]Method: POST [08:20:55]URL: /json_proto [08:20:55]Method is POST - this is cgi request [08:20:55]url: /json_proto [08:20:55]query_string will be loaded in cgi processing [08:20:55]execute_cgi json_proto POST (null) [08:20:55]execute_cgi path=json_proto method=POST [08:20:55]POST find Content-Length [08:20:55]Host: 172.17.43.195:8080 [08:20:55]Content-Length: 682 [08:20:55]Content-Type: application/json [08:20:55] [08:20:55]POST finish read [08:20:55]Found Content-Length = 682 [08:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.230, "sum" : 592.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:55]execute_script... [08:20: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)952555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.230, "sum" : 592.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:55]POST & json_proto [08:20:55]process_json_proto [08:20:55]json parsed OK: [08:20:55]protocol is kg_v1.0 [08:20:55]action value=close_receipt [08:20:55]process_action close_receipt [08:20:55]cmd_close_receipt [08:20:55]MH_GetDate [08:20:55]Write to MH i2c: F0 00 00 67 00 56 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: F0 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: F0 09 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: F0 09 00 67 00 00 E8 3D 23 67 74 2C AD 66 C1 [08:20:55]GetLastDocTimeStamp 1730362780 [08:20:55]current date 1730362856 [08:20:55]FM_GetShiftState [08:20:55]SAM_PROTO_GetShiftState [08:20:55]wFMCommunicate request_size=4 [08:20:55]MH_SAM_APDU [08:20:55]CAPDU: 80 13 01 00 [08:20:55]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:55]Read from MH i2c: E2 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 0E 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8E [08:20:55]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:20:55]wFMCommunicate OK [08:20:55]SAM_PROTO_GetShiftState done [08:20:55]FM_GetShiftState done [08:20:55]opened in 1730333258 [08:20:55]opened+sec_in_day 1730419658 [08:20:55]quantity*price = 59244 [08:20:55]sum+1 = 59246 [08:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 592.00 Внесено: 1000.00 СДАЧА: 408.00 НСП 1% : 5.24 НДС 12% : 62.91 Наличными: 592.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 29 31.10.2024 08:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72954 ФПД: 46551668817334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T082056&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72954&fm=46551668817334&tin=02508201610067®Number=0000000000091644&sum=59200 [08:20:56]StoreToDocumentArchive [08:20:56]shift 557 fd 72954 [08:20:56]save to /storage/0557/doc_00072954 [08:20:56]save last doc name /storage/0557/doc_00072954 to /storage/kkm_last_doc_name [08:20:56]save OK [08:20:56]Clear old archive folders... [08:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:20:56]tlvbuf is 00CEBD80 [08:20:56]SAM_PROTO_ClearQueue [08:20:56]wFMCommunicate request_size=4 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 09 00 00 [08:20:56]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [08:20:56]RAPDU: 90 00 [08:20:56]wFMCommunicate OK [08:20:56]SAM_PROTO_ClearQueue done [08:20:56]KKMCreateOFDPacket [08:20:56]OFDProtocolAddRootSTLVToBuf [08:20:56]FM_MakeSignedData [08:20:56]FM_MakeSignedData [08:20:56]SAM_PROTO_SignData [08:20:56]wFMCommunicate request_size=4 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 0D 01 02 [08:20:56]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [08:20:56]RAPDU: 90 00 [08:20:56]wFMCommunicate OK [08:20:56]wFMCommunicate request_size=255 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6D E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 18 00 00 00 00 07 04 06 00 40 E7 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 E8 3D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FA 1C 01 00 35 04 06 00 2A 56 [08:20:56]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6D E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 18 00 00 00 00 07 04 06 00 40 E7 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 E8 3D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FA 1C 01 00 35 04 06 00 2A 56 00 00 85 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:57]Read from MH i2c: E2 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 03 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [08:20:57]RAPDU: 90 00 [08:20:57]wFMCommunicate OK [08:20:57]wFMCommunicate request_size=9 [08:20:57]MH_SAM_APDU [08:20:57]CAPDU: 80 0D 02 02 04 A7 AE FD B6 [08:20:57]Write to MH i2c: E2 0C 00 78 00 80 0D 02 02 04 00 A7 AE FD B6 00 00 02 [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:57]Read from MH i2c: E2 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 03 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [08:20:57]RAPDU: 90 00 [08:20:57]wFMCommunicate OK [08:20:57]wFMCommunicate request_size=4 [08:20:57]MH_SAM_APDU [08:20:57]CAPDU: 80 0D 03 02 [08:20:57]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:57]Read from MH i2c: E2 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 0B 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 0B 00 79 00 00 DE DA A3 9B 4E CB BD FE 90 00 BF [08:20:57]RAPDU: DE DA A3 9B 4E CB BD FE 90 00 [08:20:57]wFMCommunicate OK [08:20:57]SAM_PROTO_SignData done [08:20:57]FM_MakeSignedData done [08:20:57]CreateOFDProtocolMessage [08:20:57]wFMCommunicate request_size=4 [08:20:57]MH_SAM_APDU [08:20:57]CAPDU: 80 11 00 00 [08:20:57]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:57]Read from MH i2c: E2 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 17 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [08:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:20:57]wFMCommunicate OK [08:20:57]CreateOFDProtocolMessage done [08:20:57]OFDSenderStorePacket 72954 [08:20:57]StoreOFDPacket docnum=72954 [08:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 93 EF 06 01 1D F4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6D E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 18 00 00 00 00 07 04 06 00 40 E7 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 E8 3D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FA 1C 01 00 35 04 06 00 2A 56 A7 AE FD B6 DE DA A3 9B 4E CB BD FE [08:20:57]CheckFolder [08:20:57]dirname=/storage/ofd_packets [08:20:57]CheckFolder done [08:20:57]ProducePacketName [08:20:57]name=ofd_packets/00072954 [08:20:57]NVStorageSaveData ofd_packets/00072954 [08:20:57]File name is /storage/ofd_packets/00072954 [08:20:57]Write 300 bytes [08:20:57]NVStorageSaveData done [08:20:57]OFDSenderStorePacket done [08:20:57]KKMCreateOFDPacket done [08:20:57]NVStorageSaveData kkm_last_timestamp [08:20:57]File name is /storage/kkm_last_timestamp [08:20:57]Write 4 bytes [08:20:57]NVStorageSaveData done [08:20:57]OFD Sender: Processing packet 72954 [packets to send 279, broken 278] [08:20:57]ProducePacketName [08:20:57]name=ofd_packets/00072954 [08:20:57]OFD Sender: To server: pG, [08:20:57]CommunicateWithHost lk.salyk.kg:30040 [08:20:57]ConnectInit lk.salyk.kg [08:20:57]ExternCall_PrintAddStr [08:20:57]wPrintStart [08:20:57]Write to MH i2c: 01 00 00 7B 00 7B [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [08:20:57]RasterBufferAndPrint [08:20:57]line Счет N : (1)952555 [08:20:57]line ИНН: 02508201610067 [08:20:57]line Контрольно-Кассовый Чек [08:20:57]line ПРОДАЖА [08:20:57]line ТРК (МРК, ГНК) : 71 [08:20:57]line Товар: 2711190000 [08:20:57]line ГАЗ-К-3 [08:20:57]line 15.230 * 38.90 [08:20:57]line = 592.45 [08:20:57]line НДС 12% НСП 1% [08:20:57]line > о реализуемом товаре [08:20:57]line ОКРУГЛЕНИЕ: -0.45 [08:20:57]line ИТОГО: 592.00 [08:20:57]line Внесено: 1000.00 [08:20:57]line СДАЧА: 408.00 [08:20:57]line НСП 1% : 5.24 [08:20:57]line НДС 12% : 62.91 [08:20:57]line Наличными: 592.00 [08:20:57]line Безнал.: 0.00 [08:20:57]line Место: АЗС № 113 "Партнер Нефть" [08:20:57]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:20:57]line СНО: Общий режим [08:20:57]line Чек 29 31.10.2024 08:20 [08:20:57]line Смена: 557 ФФД: 1.0 [08:20:57]line ЗНМ: 0300000087 [08:20:57]line РНМ: 0000000000091644 [08:20:57]line Версия ККМ: 001 [08:20:57]line ФМ: 0000000000874662 [08:20:57]line ФД: 72954 [08:20:57]line ФПД: 46551668817334 [08:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T082056&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72954&fm=46551668817334&tin=02508201610067®Number=0000000000091644&sum=59200 [08:20:57]written 0, free lines is 4095 [08:20:57]Write to MH i2c: 01 00 00 A6 00 A6 [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 D6 0C 8F [08:20:57]RasterBufferAndPrint [08:20:57]line [08:20:57]line [08:20:57]line [08:20:57]line [08:20:57]line [08:20:57]written 0, free lines is 3294 [08:20:57]MH_Cut [08:20:57]Write to MH i2c: D1 01 00 AD 00 01 7F [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: D1 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: D1 01 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: D1 01 00 AD 00 00 7E [08:20:57]Write to MH i2c: 01 00 00 AE 00 AE [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:58]*** Cut start [08:20:58]*** Partial cut [08:20:58]*** CUTSNS_PIN = 1 [08:20:58]*** CUTSNS_PIN = 0 [08:20:58]Connected sock=11 [08:20:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 93 EF 06 01 1D F4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6D E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 18 00 00 00 00 07 04 06 00 40 E7 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 E8 3D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FA 1C 01 00 35 04 06 00 2A 56 A7 AE FD B6 DE DA A3 9B 4E CB BD FE [08:20:58]*** Brake cut motor [08:20:59]Read from MH i2c: 01 [08:20:59]MH_I2C_Read... [08:20:59]*** Stop cut motor [08:20:59]*** Cut end [08:20:59]Read from MH i2c: 01 07 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [08:20:59]process_action close_receipt done [08:20:59]requested_data is exist [08:20:59]produce_requested_data [08:20:59]requested_item fm.sn is exist - process it [08:20:59]wFMCommunicate request_size=4 [08:20:59]MH_SAM_APDU [08:20:59]CAPDU: 80 11 00 00 [08:20:59]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [08:20:59]Write i2c OK [08:20:59]MH_I2C_Read... [08:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:59]Read from MH i2c: E2 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 17 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [08:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:20:59]wFMCommunicate OK [08:20:59]requested_item fd.num is exist - process it [08:20:59]SAM_PROTO_GetFieldsCounters [08:20:59]wFMCommunicate request_size=4 [08:20:59]MH_SAM_APDU [08:20:59]CAPDU: 80 13 00 00 [08:20:59]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [08:20:59]Write i2c OK [08:20:59]MH_I2C_Read... [08:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6B DF 47 00 BA 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 34 36 36 32 10 04 04 00 FA 1C 01 00 F4 03 04 00 9F E8 22 67 B6 04 01 00 00 E5 91 1D F6 7C 7A 48 74 [08:20:59]CommunicateWithHost err = 0 [08:20:59]CheckOFDResponse [08:20:59]1017 (14) - 77093643461234 [08:20:59]1041 (16) - 0000000000874662 [08:20:59]1040 (4) - 72954 [08:20:59]1012 (4) - 31.10.2024 02:17 [08:20:59]1206 (1) - 0 [08:20:59]OFD Sender: Remove packet 72954 [08:20:59]ProducePacketName [08:20:59]name=ofd_packets/00072954 [08:20:59]NVStorageDeleteData [08:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:59]Read from MH i2c: E2 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 62 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FA 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [08:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FA 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:59]wFMCommunicate OK [08:20:59]SAM_PROTO_GetFieldsCounters done [08:20:59]requested_item shift.num is exist - process it [08:20:59]requested_item shift.opened is exist - process it [08:20:59]req_shift_opened [08:20:59]FM_GetShiftState [08:20:59]SAM_PROTO_GetShiftState [08:20:59]wFMCommunicate request_size=4 [08:20:59]MH_SAM_APDU [08:20:59]CAPDU: 80 13 01 00 [08:20:59]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [08:20:59]Write i2c OK [08:20:59]MH_I2C_Read... [08:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:59]Read from MH i2c: E2 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 0E 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D7 [08:20:59]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:20:59]wFMCommunicate OK [08:20:59]SAM_PROTO_GetShiftState done [08:20:59]FM_GetShiftState done [08:20:59]req_shift_opened done [08:20:59]requested_item shift.open_date is exist - process it [08:20:59]req_shift_open_date [08:20:59]req_shift_open_date done [08:20:59]produce_requested_data done [08:20:59]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72954,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:20:59]process_action_free close_receipt [08:20:59]json_value_free [08:20:59]json_value_free done [08:20:59]process_json_proto returns [08:20:59]Send response to host [08:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72954,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:20:59]free response buf [08:20:59]execute_script done [08:20:59]execute_script returns [08:20:59]free content buf [08:20:59]Sock 9.Close socket [08:20:59]Sock 9.Thread stoped [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]accept exits with 8 [08:22:04]New connection [08:22:04]New thread 3067628900 created [08:22:04]Thread 3067485540 joined [08:22:04]Waiting for new connection... [08:22:04] Sock 8.Parse request [08:22:04]Sock 8.Check first char [08:22:04]Sock 8.First char is OK [08:22:04]request: POST /json_proto HTTP/1.0 [08:22:04]Method: POST [08:22:04]URL: /json_proto [08:22:04]Method is POST - this is cgi request [08:22:04]url: /json_proto [08:22:04]query_string will be loaded in cgi processing [08:22:04]execute_cgi json_proto POST (null) [08:22:04]execute_cgi path=json_proto method=POST [08:22:04]POST find Content-Length [08:22:04]Host: 172.17.43.195:8080 [08:22:04]Content-Length: 792 [08:22:04]Content-Type: application/json [08:22:04] [08:22:04]POST finish read [08:22:04]Found Content-Length = 792 [08:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:04]execute_script... [08:22: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)952556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:04]POST & json_proto [08:22:04]process_json_proto [08:22:04]json parsed OK: [08:22:04]protocol is kg_v1.0 [08:22:04]action value=close_receipt [08:22:04]process_action close_receipt [08:22:04]cmd_close_receipt [08:22:04]MH_GetDate [08:22:04]Write to MH i2c: F0 00 00 B2 00 A1 [08:22:04]Write i2c OK [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: F0 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: F0 09 00 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: F0 09 00 B2 00 00 2D 3E 23 67 74 2C AD 66 52 [08:22:04]GetLastDocTimeStamp 1730362856 [08:22:04]current date 1730362925 [08:22:04]FM_GetShiftState [08:22:04]SAM_PROTO_GetShiftState [08:22:04]wFMCommunicate request_size=4 [08:22:04]MH_SAM_APDU [08:22:04]CAPDU: 80 13 01 00 [08:22:04]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [08:22:04]Write i2c OK [08:22:04]MH_I2C_Read... [08:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:04]Read from MH i2c: E2 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: E2 0E 00 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D9 [08:22:04]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:22:04]wFMCommunicate OK [08:22:04]SAM_PROTO_GetShiftState done [08:22:04]FM_GetShiftState done [08:22:04]opened in 1730333258 [08:22:04]opened+sec_in_day 1730419658 [08:22:04]quantity*price = 0 [08:22:04]sum+1 = 1 [08:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 30 31.10.2024 08:22 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72955 ФПД: 65959538005177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T082205&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72955&fm=65959538005177&tin=02508201610067®Number=0000000000091644&sum=0 [08:22:06]StoreToDocumentArchive [08:22:06]shift 557 fd 72955 [08:22:06]save to /storage/0557/doc_00072955 [08:22:06]save last doc name /storage/0557/doc_00072955 to /storage/kkm_last_doc_name [08:22:06]save OK [08:22:06]Clear old archive folders... [08:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:06]tlvbuf is 00CE8390 [08:22:06]SAM_PROTO_ClearQueue [08:22:06]wFMCommunicate request_size=4 [08:22:06]MH_SAM_APDU [08:22:06]CAPDU: 80 09 00 00 [08:22:06]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:06]Read from MH i2c: E2 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 03 00 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [08:22:06]RAPDU: 90 00 [08:22:06]wFMCommunicate OK [08:22:06]SAM_PROTO_ClearQueue done [08:22:06]KKMCreateOFDPacket [08:22:06]OFDProtocolAddRootSTLVToBuf [08:22:06]FM_MakeSignedData [08:22:06]FM_MakeSignedData [08:22:06]SAM_PROTO_SignData [08:22:06]wFMCommunicate request_size=4 [08:22:06]MH_SAM_APDU [08:22:06]CAPDU: 80 0D 01 02 [08:22:06]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:06]Read from MH i2c: E2 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 03 00 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [08:22:06]RAPDU: 90 00 [08:22:06]wFMCommunicate OK [08:22:06]wFMCommunicate request_size=255 [08:22:06]MH_SAM_APDU [08:22: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2D 3E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FB 1C 01 00 35 04 06 00 3B [08:22:06]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2D 3E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FB 1C 01 00 35 04 06 00 3B 00 00 10 [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:06]Read from MH i2c: E2 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 03 00 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [08:22:06]RAPDU: 90 00 [08:22:06]wFMCommunicate OK [08:22:06]wFMCommunicate request_size=10 [08:22:06]MH_SAM_APDU [08:22:06]CAPDU: 80 0D 02 02 05 FD 66 D5 14 B9 [08:22:06]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 FD 66 D5 14 B9 00 00 4C [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:06]Read from MH i2c: E2 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 03 00 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [08:22:06]RAPDU: 90 00 [08:22:06]wFMCommunicate OK [08:22:06]wFMCommunicate request_size=4 [08:22:06]MH_SAM_APDU [08:22:06]CAPDU: 80 0D 03 02 [08:22:06]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:06]Read from MH i2c: E2 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 0B 00 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 0B 00 C4 00 00 81 FB 41 11 20 D9 83 1E 90 00 A8 [08:22:06]RAPDU: 81 FB 41 11 20 D9 83 1E 90 00 [08:22:06]wFMCommunicate OK [08:22:06]SAM_PROTO_SignData done [08:22:06]FM_MakeSignedData done [08:22:06]CreateOFDProtocolMessage [08:22:06]wFMCommunicate request_size=4 [08:22:06]MH_SAM_APDU [08:22:06]CAPDU: 80 11 00 00 [08:22:06]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:06]Read from MH i2c: E2 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 17 00 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 93 [08:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:22:06]wFMCommunicate OK [08:22:06]CreateOFDProtocolMessage done [08:22:06]OFDSenderStorePacket 72955 [08:22:06]StoreOFDPacket docnum=72955 [08:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BD 3A 07 01 2E 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2D 3E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FB 1C 01 00 35 04 06 00 3B FD 66 D5 14 B9 81 FB 41 11 20 D9 83 1E [08:22:06]CheckFolder [08:22:06]dirname=/storage/ofd_packets [08:22:06]CheckFolder done [08:22:06]ProducePacketName [08:22:06]name=ofd_packets/00072955 [08:22:06]NVStorageSaveData ofd_packets/00072955 [08:22:06]File name is /storage/ofd_packets/00072955 [08:22:06]Write 301 bytes [08:22:06]NVStorageSaveData done [08:22:06]OFDSenderStorePacket done [08:22:06]KKMCreateOFDPacket done [08:22:06]NVStorageSaveData kkm_last_timestamp [08:22:06]File name is /storage/kkm_last_timestamp [08:22:06]Write 4 bytes [08:22:06]NVStorageSaveData done [08:22:06]ExternCall_PrintAddStr [08:22:06]wPrintStart [08:22:06]Write to MH i2c: 01 00 00 C6 00 C6 [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: 01 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: 01 07 00 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [08:22:06]RasterBufferAndPrint [08:22:06]line Счет N : (1)952556 [08:22:06]line ИНН: 02508201610067 [08:22:06]line Контрольно-Кассовый Чек [08:22:06]line ПРОДАЖА [08:22:06]line ТРК (МРК, ГНК) : 63 [08:22:06]line Товар: 2710124130 [08:22:06]line Аи-92-К-5 [08:22:06]line 10.000 * 0.00 [08:22:06]line = 0.00 [08:22:06]line НДС 12% НСП 1% [08:22:06]line > о реализуемом товаре [08:22:06]line ИТОГО: 0.00 [08:22:06]line НСП 1% : 0.00 [08:22:06]line НДС 12% : 0.00 [08:22:06]line Наличными: 0.00 [08:22:06]line Безнал.: 0.00 [08:22:06]line Место: АЗС № 113 "Партнер Нефть" [08:22:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:22:06]line СНО: Общий режим [08:22:06]line Чек 30 31.10.2024 08:22 [08:22:06]line Смена: 557 ФФД: 1.0 [08:22:06]line ЗНМ: 0300000087 [08:22:06]line РНМ: 0000000000091644 [08:22:06]line Версия ККМ: 001 [08:22:06]line Талоны: Топливная Карта [08:22:06]line 03047 [08:22:06]line ФМ: 0000000000874662 [08:22:06]line ФД: 72955 [08:22:06]line ФПД: 65959538005177 [08:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T082205&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72955&fm=65959538005177&tin=02508201610067®Number=0000000000091644&sum=0 [08:22:06]written 0, free lines is 4095 [08:22:06]recv_with_timeout no data received [08:22:06]OFD Sender: Processing packet 72955 [packets to send 279, broken 278] [08:22:06]ProducePacketName [08:22:06]name=ofd_packets/00072955 [08:22:06]OFD Sender: To server: pG, [08:22:06]CommunicateWithHost lk.salyk.kg:30040 [08:22:06]ConnectInit lk.salyk.kg [08:22:07]Write to MH i2c: 01 00 00 F0 00 F0 [08:22:07]Write i2c OK [08:22:07]MH_I2C_Read... [08:22:07]Read from MH i2c: 01 [08:22:07]MH_I2C_Read... [08:22:07]Read from MH i2c: 01 07 00 [08:22:07]MH_I2C_Read... [08:22:07]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 E0 0C E3 [08:22:07]RasterBufferAndPrint [08:22:07]line [08:22:07]line [08:22:07]line [08:22:07]line [08:22:07]line [08:22:07]written 0, free lines is 3302 [08:22:07]MH_Cut [08:22:07]Write to MH i2c: D1 01 00 F7 00 01 C9 [08:22:07]Write i2c OK [08:22:07]MH_I2C_Read... [08:22:07]Read from MH i2c: D1 [08:22:07]MH_I2C_Read... [08:22:07]Read from MH i2c: D1 01 00 [08:22:07]MH_I2C_Read... [08:22:07]Read from MH i2c: D1 01 00 F7 00 00 C8 [08:22:07]Write to MH i2c: 01 00 00 F8 00 F8 [08:22:07]Write i2c OK [08:22:07]MH_I2C_Read... [08:22:07]*** Cut start [08:22:07]*** Partial cut [08:22:07]*** CUTSNS_PIN = 1 [08:22:07]*** CUTSNS_PIN = 0 [08:22:08]*** Brake cut motor [08:22:08]Read from MH i2c: 01 [08:22:08]MH_I2C_Read... [08:22:08]*** Stop cut motor [08:22:08]*** Cut end [08:22:08]Read from MH i2c: 01 07 00 [08:22:08]MH_I2C_Read... [08:22:08]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [08:22:08]process_action close_receipt done [08:22:08]requested_data is exist [08:22:08]produce_requested_data [08:22:08]requested_item fm.sn is exist - process it [08:22:08]wFMCommunicate request_size=4 [08:22:08]MH_SAM_APDU [08:22:08]CAPDU: 80 11 00 00 [08:22:08]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [08:22:08]Write i2c OK [08:22:08]MH_I2C_Read... [08:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:08]Read from MH i2c: E2 [08:22:08]MH_I2C_Read... [08:22:08]Read from MH i2c: E2 17 00 [08:22:08]MH_I2C_Read... [08:22:08]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [08:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:22:08]wFMCommunicate OK [08:22:08]requested_item fd.num is exist - process it [08:22:08]SAM_PROTO_GetFieldsCounters [08:22:08]wFMCommunicate request_size=4 [08:22:08]MH_SAM_APDU [08:22:08]CAPDU: 80 13 00 00 [08:22:08]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [08:22:08]Write i2c OK [08:22:08]MH_I2C_Read... [08:22:08]Connected sock=9 [08:22:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BD 3A 07 01 2E 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2D 3E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FB 1C 01 00 35 04 06 00 3B FD 66 D5 14 B9 81 FB 41 11 20 D9 83 1E [08:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:08]Read from MH i2c: E2 [08:22:08]MH_I2C_Read... [08:22:08]Read from MH i2c: E2 62 00 [08:22:08]MH_I2C_Read... [08:22:08]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FB 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [08:22:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FB 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:08]wFMCommunicate OK [08:22:08]SAM_PROTO_GetFieldsCounters done [08:22:08]requested_item shift.num is exist - process it [08:22:08]requested_item shift.opened is exist - process it [08:22:08]req_shift_opened [08:22:08]FM_GetShiftState [08:22:08]SAM_PROTO_GetShiftState [08:22:08]wFMCommunicate request_size=4 [08:22:08]MH_SAM_APDU [08:22:08]CAPDU: 80 13 01 00 [08:22:08]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [08:22:08]Write i2c OK [08:22:08]MH_I2C_Read... [08:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:08]Read from MH i2c: E2 [08:22:08]MH_I2C_Read... [08:22:08]Read from MH i2c: E2 0E 00 [08:22:08]MH_I2C_Read... [08:22:08]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 21 [08:22:08]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:22:08]wFMCommunicate OK [08:22:08]SAM_PROTO_GetShiftState done [08:22:08]FM_GetShiftState done [08:22:08]req_shift_opened done [08:22:08]requested_item shift.open_date is exist - process it [08:22:08]req_shift_open_date [08:22:08]req_shift_open_date done [08:22:08]produce_requested_data done [08:22:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72955,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:22:08]process_action_free close_receipt [08:22:08]json_value_free [08:22:08]json_value_free done [08:22:08]process_json_proto returns [08:22:08]Send response to host [08:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72955,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:22:08]free response buf [08:22:08]execute_script done [08:22:08]execute_script returns [08:22:08]free content buf [08:22:08]Sock 8.Close socket [08:22:08]Sock 8.Thread stoped [08:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 90 59 47 00 CE C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FB 1C 01 00 F4 03 04 00 E5 E8 22 67 B6 04 01 00 00 8C 98 5C CA A0 23 38 D2 [08:22:09]CommunicateWithHost err = 0 [08:22:09]CheckOFDResponse [08:22:09]1017 (14) - 77093643461234 [08:22:09]1041 (16) - 0000000000874662 [08:22:09]1040 (4) - 72955 [08:22:09]1012 (4) - 31.10.2024 02:18 [08:22:09]1206 (1) - 0 [08:22:09]OFD Sender: Remove packet 72955 [08:22:09]ProducePacketName [08:22:09]name=ofd_packets/00072955 [08:22:09]NVStorageDeleteData [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:17]recv_with_timeout no data received [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:29]recv_with_timeout no data received [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:53]recv_with_timeout no data received [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:40]recv_with_timeout no data received [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:53]accept exits with 10 [08:23:53]New connection [08:23:53]New thread 3067485540 created [08:23:53]Thread 3067628900 joined [08:23:53]Waiting for new connection... [08:23:53] Sock 10.Parse request [08:23:53]Sock 10.Check first char [08:23:53]Sock 10.First char is OK [08:23:53]request: POST /json_proto HTTP/1.0 [08:23:53]Method: POST [08:23:53]URL: /json_proto [08:23:53]Method is POST - this is cgi request [08:23:53]url: /json_proto [08:23:53]query_string will be loaded in cgi processing [08:23:53]execute_cgi json_proto POST (null) [08:23:53]execute_cgi path=json_proto method=POST [08:23:53]POST find Content-Length [08:23:53]Host: 172.17.43.195:8080 [08:23:53]Content-Length: 791 [08:23:53]Content-Type: application/json [08:23:53] [08:23:53]POST finish read [08:23:53]Found Content-Length = 791 [08:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:53]execute_script... [08:23:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:53]POST & json_proto [08:23:53]process_json_proto [08:23:53]json parsed OK: [08:23:53]protocol is kg_v1.0 [08:23:53]action value=close_receipt [08:23:53]process_action close_receipt [08:23:53]cmd_close_receipt [08:23:53]MH_GetDate [08:23:53]Write to MH i2c: F0 00 00 FC 00 EB [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: F0 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: F0 09 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: F0 09 00 FC 00 00 9A 3E 23 67 74 2C AD 66 09 [08:23:53]GetLastDocTimeStamp 1730362925 [08:23:53]current date 1730363034 [08:23:53]FM_GetShiftState [08:23:53]SAM_PROTO_GetShiftState [08:23:53]wFMCommunicate request_size=4 [08:23:53]MH_SAM_APDU [08:23:53]CAPDU: 80 13 01 00 [08:23:53]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:53]Read from MH i2c: E2 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 0E 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 23 [08:23:53]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:23:53]wFMCommunicate OK [08:23:53]SAM_PROTO_GetShiftState done [08:23:53]FM_GetShiftState done [08:23:53]opened in 1730333258 [08:23:53]opened+sec_in_day 1730419658 [08:23:53]quantity*price = 0 [08:23:53]sum+1 = 1 [08:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 31 31.10.2024 08:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 72956 ФПД: 227642154713123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T082354&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72956&fm=227642154713123&tin=02508201610067®Number=0000000000091644&sum=0 [08:23:54]StoreToDocumentArchive [08:23:54]shift 557 fd 72956 [08:23:54]save to /storage/0557/doc_00072956 [08:23:54]save last doc name /storage/0557/doc_00072956 to /storage/kkm_last_doc_name [08:23:54]save OK [08:23:54]Clear old archive folders... [08:23:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:54]tlvbuf is 00CE1240 [08:23:54]SAM_PROTO_ClearQueue [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 09 00 00 [08:23:54]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 03 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [08:23:54]RAPDU: 90 00 [08:23:54]wFMCommunicate OK [08:23:54]SAM_PROTO_ClearQueue done [08:23:54]KKMCreateOFDPacket [08:23:54]OFDProtocolAddRootSTLVToBuf [08:23:54]FM_MakeSignedData [08:23:54]FM_MakeSignedData [08:23:54]SAM_PROTO_SignData [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 0D 01 02 [08:23:54]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 03 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [08:23:54]RAPDU: 90 00 [08:23:54]wFMCommunicate OK [08:23:54]wFMCommunicate request_size=255 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 9A 3E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FC 1C 01 00 35 04 06 00 CF [08:23:54]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 9A 3E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FC 1C 01 00 35 04 06 00 CF 00 00 C2 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=10 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 02 02 05 0A 11 C4 80 23 [08:23:55]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 0A 11 C4 80 23 00 00 14 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 03 02 [08:23:55]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 0B 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 0B 00 0E 01 00 6D 01 89 1B E1 53 DD 96 90 00 44 [08:23:55]RAPDU: 6D 01 89 1B E1 53 DD 96 90 00 [08:23:55]wFMCommunicate OK [08:23:55]SAM_PROTO_SignData done [08:23:55]FM_MakeSignedData done [08:23:55]CreateOFDProtocolMessage [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 11 00 00 [08:23:55]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 17 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [08:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:23:55]wFMCommunicate OK [08:23:55]CreateOFDProtocolMessage done [08:23:55]OFDSenderStorePacket 72956 [08:23:55]StoreOFDPacket docnum=72956 [08:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F4 9E 07 01 51 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 9A 3E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FC 1C 01 00 35 04 06 00 CF 0A 11 C4 80 23 6D 01 89 1B E1 53 DD 96 [08:23:55]CheckFolder [08:23:55]dirname=/storage/ofd_packets [08:23:55]CheckFolder done [08:23:55]ProducePacketName [08:23:55]name=ofd_packets/00072956 [08:23:55]NVStorageSaveData ofd_packets/00072956 [08:23:55]File name is /storage/ofd_packets/00072956 [08:23:55]Write 301 bytes [08:23:55]NVStorageSaveData done [08:23:55]OFDSenderStorePacket done [08:23:55]KKMCreateOFDPacket done [08:23:55]NVStorageSaveData kkm_last_timestamp [08:23:55]File name is /storage/kkm_last_timestamp [08:23:55]Write 4 bytes [08:23:55]NVStorageSaveData done [08:23:55]ExternCall_PrintAddStr [08:23:55]wPrintStart [08:23:55]Write to MH i2c: 01 00 00 10 01 11 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [08:23:55]RasterBufferAndPrint [08:23:55]line Счет N : (1)952557 [08:23:55]line ИНН: 02508201610067 [08:23:55]line Контрольно-Кассовый Чек [08:23:55]line ПРОДАЖА [08:23:55]line ТРК (МРК, ГНК) : 53 [08:23:55]line Товар: 2710124130 [08:23:55]line Аи-92-К-5 [08:23:55]line 5.000 * 0.00 [08:23:55]line = 0.00 [08:23:55]line НДС 12% НСП 1% [08:23:55]line > о реализуемом товаре [08:23:55]line ИТОГО: 0.00 [08:23:55]line НСП 1% : 0.00 [08:23:55]line НДС 12% : 0.00 [08:23:55]line Наличными: 0.00 [08:23:55]line Безнал.: 0.00 [08:23:55]line Место: АЗС № 113 "Партнер Нефть" [08:23:55]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:23:55]line СНО: Общий режим [08:23:55]line Чек 31 31.10.2024 08:23 [08:23:55]line Смена: 557 ФФД: 1.0 [08:23:55]line ЗНМ: 0300000087 [08:23:55]line РНМ: 0000000000091644 [08:23:55]line Версия ККМ: 001 [08:23:55]line Талоны: Топливная Карта [08:23:55]line 02645 [08:23:55]line ФМ: 0000000000874662 [08:23:55]line ФД: 72956 [08:23:55]line ФПД: 227642154713123 [08:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T082354&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72956&fm=227642154713123&tin=02508201610067®Number=0000000000091644&sum=0 [08:23:55]OFD Sender: Processing packet 72956 [packets to send 279, broken 278] [08:23:55]ProducePacketName [08:23:55]name=ofd_packets/00072956 [08:23:55]OFD Sender: To server: pG, [08:23:55]CommunicateWithHost lk.salyk.kg:30040 [08:23:55]ConnectInit lk.salyk.kg [08:23:55]written 0, free lines is 4095 [08:23:56]Write to MH i2c: 01 00 00 3A 01 3B [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 E2 0C 30 [08:23:56]RasterBufferAndPrint [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]written 0, free lines is 3304 [08:23:56]MH_Cut [08:23:56]Write to MH i2c: D1 01 00 41 01 01 14 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 41 01 00 13 [08:23:56]Write to MH i2c: 01 00 00 42 01 43 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** Cut start [08:23:56]*** Partial cut [08:23:56]*** CUTSNS_PIN = 1 [08:23:56]*** CUTSNS_PIN = 0 [08:23:57]*** Brake cut motor [08:23:57]Read from MH i2c: 01 [08:23:57]MH_I2C_Read... [08:23:57]*** Stop cut motor [08:23:57]*** Cut end [08:23:57]Read from MH i2c: 01 07 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [08:23:57]process_action close_receipt done [08:23:57]requested_data is exist [08:23:57]produce_requested_data [08:23:57]requested_item fm.sn is exist - process it [08:23:57]wFMCommunicate request_size=4 [08:23:57]MH_SAM_APDU [08:23:57]CAPDU: 80 11 00 00 [08:23:57]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:57]Read from MH i2c: E2 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 17 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [08:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:23:57]wFMCommunicate OK [08:23:57]requested_item fd.num is exist - process it [08:23:57]SAM_PROTO_GetFieldsCounters [08:23:57]wFMCommunicate request_size=4 [08:23:57]MH_SAM_APDU [08:23:57]CAPDU: 80 13 00 00 [08:23:57]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:57]Read from MH i2c: E2 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 62 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FC 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [08:23:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FC 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:57]wFMCommunicate OK [08:23:57]SAM_PROTO_GetFieldsCounters done [08:23:57]requested_item shift.num is exist - process it [08:23:57]requested_item shift.opened is exist - process it [08:23:57]req_shift_opened [08:23:57]FM_GetShiftState [08:23:57]SAM_PROTO_GetShiftState [08:23:57]wFMCommunicate request_size=4 [08:23:57]MH_SAM_APDU [08:23:57]CAPDU: 80 13 01 00 [08:23:57]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:57]Read from MH i2c: E2 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 0E 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6C [08:23:57]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:23:57]wFMCommunicate OK [08:23:57]SAM_PROTO_GetShiftState done [08:23:57]FM_GetShiftState done [08:23:57]req_shift_opened done [08:23:57]requested_item shift.open_date is exist - process it [08:23:57]req_shift_open_date [08:23:57]req_shift_open_date done [08:23:57]produce_requested_data done [08:23:57]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72956,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:23:57]process_action_free close_receipt [08:23:57]json_value_free [08:23:57]json_value_free done [08:23:57]process_json_proto returns [08:23:57]Send response to host [08:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72956,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:23:57]free response buf [08:23:57]execute_script done [08:23:57]execute_script returns [08:23:57]free content buf [08:23:57]Sock 10.Close socket [08:23:57]Sock 10.Thread stoped [08:23:59]Connected sock=11 [08:23:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F4 9E 07 01 51 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 9A 3E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FC 1C 01 00 35 04 06 00 CF 0A 11 C4 80 23 6D 01 89 1B E1 53 DD 96 [08:24:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8A 92 47 00 95 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 34 36 36 32 10 04 04 00 FC 1C 01 00 F4 03 04 00 54 E9 22 67 B6 04 01 00 00 0E 29 31 3A F0 6F FE 79 [08:24:00]CommunicateWithHost err = 0 [08:24:00]CheckOFDResponse [08:24:00]1017 (14) - 77093643461234 [08:24:00]1041 (16) - 0000000000874662 [08:24:00]1040 (4) - 72956 [08:24:00]1012 (4) - 31.10.2024 02:20 [08:24:00]1206 (1) - 0 [08:24:00]OFD Sender: Remove packet 72956 [08:24:00]ProducePacketName [08:24:00]name=ofd_packets/00072956 [08:24:00]NVStorageDeleteData [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:09]recv_with_timeout no data received [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:34]recv_with_timeout no data received [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:49]recv_with_timeout no data received [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:51]accept exits with 8 [08:27:51]New connection [08:27:51]New thread 3067628900 created [08:27:51]Thread 3067485540 joined [08:27:51]Waiting for new connection... [08:27:51] Sock 8.Parse request [08:27:51]Sock 8.Check first char [08:27:51]Sock 8.First char is OK [08:27:51]request: POST /json_proto HTTP/1.0 [08:27:51]Method: POST [08:27:51]URL: /json_proto [08:27:51]Method is POST - this is cgi request [08:27:51]url: /json_proto [08:27:51]query_string will be loaded in cgi processing [08:27:51]execute_cgi json_proto POST (null) [08:27:51]execute_cgi path=json_proto method=POST [08:27:51]POST find Content-Length [08:27:51]Host: 172.17.43.195:8080 [08:27:51]Content-Length: 792 [08:27:51]Content-Type: application/json [08:27:51] [08:27:51]POST finish read [08:27:51]Found Content-Length = 792 [08:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:51]execute_script... [08:27:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:51]POST & json_proto [08:27:51]process_json_proto [08:27:51]json parsed OK: [08:27:51]protocol is kg_v1.0 [08:27:51]action value=close_receipt [08:27:51]process_action close_receipt [08:27:51]cmd_close_receipt [08:27:51]MH_GetDate [08:27:51]Write to MH i2c: F0 00 00 46 01 36 [08:27:51]Write i2c OK [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: F0 [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: F0 09 00 [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: F0 09 00 46 01 00 88 3F 23 67 74 2C AD 66 43 [08:27:51]GetLastDocTimeStamp 1730363034 [08:27:51]current date 1730363272 [08:27:51]FM_GetShiftState [08:27:51]SAM_PROTO_GetShiftState [08:27:51]wFMCommunicate request_size=4 [08:27:51]MH_SAM_APDU [08:27:51]CAPDU: 80 13 01 00 [08:27:51]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [08:27:51]Write i2c OK [08:27:51]MH_I2C_Read... [08:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:51]Read from MH i2c: E2 [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: E2 0E 00 [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6E [08:27:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:27:51]wFMCommunicate OK [08:27:51]SAM_PROTO_GetShiftState done [08:27:51]FM_GetShiftState done [08:27:51]opened in 1730333258 [08:27:51]opened+sec_in_day 1730419658 [08:27:51]quantity*price = 0 [08:27:51]sum+1 = 1 [08:27:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 32 31.10.2024 08:27 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72957 ФПД: 147550987131583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T082752&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72957&fm=147550987131583&tin=02508201610067®Number=0000000000091644&sum=0 [08:27:53]StoreToDocumentArchive [08:27:53]shift 557 fd 72957 [08:27:53]save to /storage/0557/doc_00072957 [08:27:53]save last doc name /storage/0557/doc_00072957 to /storage/kkm_last_doc_name [08:27:53]save OK [08:27:53]Clear old archive folders... [08:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:53]tlvbuf is 00CE2EA0 [08:27:53]SAM_PROTO_ClearQueue [08:27:53]wFMCommunicate request_size=4 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 09 00 00 [08:27:53]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [08:27:53]RAPDU: 90 00 [08:27:53]wFMCommunicate OK [08:27:53]SAM_PROTO_ClearQueue done [08:27:53]KKMCreateOFDPacket [08:27:53]OFDProtocolAddRootSTLVToBuf [08:27:53]FM_MakeSignedData [08:27:53]FM_MakeSignedData [08:27:53]SAM_PROTO_SignData [08:27:53]wFMCommunicate request_size=4 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 0D 01 02 [08:27:53]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [08:27:53]RAPDU: 90 00 [08:27:53]wFMCommunicate OK [08:27:53]wFMCommunicate request_size=255 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 88 3F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FD 1C 01 00 35 04 06 00 86 [08:27:53]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 88 3F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FD 1C 01 00 35 04 06 00 86 00 00 50 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [08:27:53]RAPDU: 90 00 [08:27:53]wFMCommunicate OK [08:27:53]wFMCommunicate request_size=10 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 0D 02 02 05 32 64 2C 9A BF [08:27:53]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 32 64 2C 9A BF 00 00 F7 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [08:27:53]RAPDU: 90 00 [08:27:53]wFMCommunicate OK [08:27:53]wFMCommunicate request_size=4 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 0D 03 02 [08:27:53]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 0B 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 0B 00 58 01 00 50 DB 42 DB 5E 10 51 C0 90 00 9C [08:27:53]RAPDU: 50 DB 42 DB 5E 10 51 C0 90 00 [08:27:53]wFMCommunicate OK [08:27:53]SAM_PROTO_SignData done [08:27:53]FM_MakeSignedData done [08:27:53]CreateOFDProtocolMessage [08:27:53]wFMCommunicate request_size=4 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 11 00 00 [08:27:53]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 17 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [08:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:27:53]wFMCommunicate OK [08:27:53]CreateOFDProtocolMessage done [08:27:53]OFDSenderStorePacket 72957 [08:27:53]StoreOFDPacket docnum=72957 [08:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C5 63 07 01 39 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 88 3F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FD 1C 01 00 35 04 06 00 86 32 64 2C 9A BF 50 DB 42 DB 5E 10 51 C0 [08:27:53]CheckFolder [08:27:53]dirname=/storage/ofd_packets [08:27:53]CheckFolder done [08:27:53]ProducePacketName [08:27:53]name=ofd_packets/00072957 [08:27:53]NVStorageSaveData ofd_packets/00072957 [08:27:53]File name is /storage/ofd_packets/00072957 [08:27:53]Write 301 bytes [08:27:53]NVStorageSaveData done [08:27:53]OFDSenderStorePacket done [08:27:53]KKMCreateOFDPacket done [08:27:53]NVStorageSaveData kkm_last_timestamp [08:27:53]File name is /storage/kkm_last_timestamp [08:27:53]Write 4 bytes [08:27:53]NVStorageSaveData done [08:27:53]ExternCall_PrintAddStr [08:27:53]wPrintStart [08:27:53]Write to MH i2c: 01 00 00 5A 01 5B [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: 01 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: 01 07 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [08:27:53]RasterBufferAndPrint [08:27:53]line Счет N : (1)952558 [08:27:53]line ИНН: 02508201610067 [08:27:53]line Контрольно-Кассовый Чек [08:27:53]line ПРОДАЖА [08:27:53]line ТРК (МРК, ГНК) : 63 [08:27:53]line Товар: 2710124130 [08:27:53]line Аи-92-К-5 [08:27:53]line 10.000 * 0.00 [08:27:53]line = 0.00 [08:27:53]line НДС 12% НСП 1% [08:27:53]line > о реализуемом товаре [08:27:53]line ИТОГО: 0.00 [08:27:53]line НСП 1% : 0.00 [08:27:53]line НДС 12% : 0.00 [08:27:53]line Наличными: 0.00 [08:27:53]line Безнал.: 0.00 [08:27:53]line Место: АЗС № 113 "Партнер Нефть" [08:27:53]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:27:53]line СНО: Общий режим [08:27:53]line Чек 32 31.10.2024 08:27 [08:27:53]line Смена: 557 ФФД: 1.0 [08:27:53]line ЗНМ: 0300000087 [08:27:53]line РНМ: 0000000000091644 [08:27:53]line Версия ККМ: 001 [08:27:53]line Талоны: Топливная Карта [08:27:53]line 03047 [08:27:53]line ФМ: 0000000000874662 [08:27:53]line ФД: 72957 [08:27:53]line ФПД: 147550987131583 [08:27:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T082752&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72957&fm=147550987131583&tin=02508201610067®Number=0000000000091644&sum=0 [08:27:53]written 0, free lines is 4095 [08:27:53]OFD Sender: Processing packet 72957 [packets to send 279, broken 278] [08:27:53]ProducePacketName [08:27:53]name=ofd_packets/00072957 [08:27:53]OFD Sender: To server: pG, [08:27:53]CommunicateWithHost lk.salyk.kg:30040 [08:27:53]ConnectInit lk.salyk.kg [08:27:54]Write to MH i2c: 01 00 00 84 01 85 [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: 01 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: 01 07 00 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 DF 0C 77 [08:27:54]RasterBufferAndPrint [08:27:54]line [08:27:54]line [08:27:54]line [08:27:54]line [08:27:54]line [08:27:54]written 0, free lines is 3301 [08:27:54]MH_Cut [08:27:54]Write to MH i2c: D1 01 00 8B 01 01 5E [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: D1 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: D1 01 00 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: D1 01 00 8B 01 00 5D [08:27:54]Write to MH i2c: 01 00 00 8C 01 8D [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:54]*** Cut start [08:27:54]*** Partial cut [08:27:54]*** CUTSNS_PIN = 1 [08:27:54]*** CUTSNS_PIN = 0 [08:27:55]*** Brake cut motor [08:27:55]Connected sock=10 [08:27:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C5 63 07 01 39 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 88 3F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FD 1C 01 00 35 04 06 00 86 32 64 2C 9A BF 50 DB 42 DB 5E 10 51 C0 [08:27:55]Read from MH i2c: 01 [08:27:55]MH_I2C_Read... [08:27:55]*** Stop cut motor [08:27:55]*** Cut end [08:27:55]Read from MH i2c: 01 07 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [08:27:55]process_action close_receipt done [08:27:55]requested_data is exist [08:27:55]produce_requested_data [08:27:55]requested_item fm.sn is exist - process it [08:27:55]wFMCommunicate request_size=4 [08:27:55]MH_SAM_APDU [08:27:55]CAPDU: 80 11 00 00 [08:27:55]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [08:27:55]Write i2c OK [08:27:55]MH_I2C_Read... [08:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:55]Read from MH i2c: E2 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 17 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [08:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:27:55]wFMCommunicate OK [08:27:55]requested_item fd.num is exist - process it [08:27:55]SAM_PROTO_GetFieldsCounters [08:27:55]wFMCommunicate request_size=4 [08:27:55]MH_SAM_APDU [08:27:55]CAPDU: 80 13 00 00 [08:27:55]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [08:27:55]Write i2c OK [08:27:55]MH_I2C_Read... [08:27:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:55]Read from MH i2c: E2 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 62 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FD 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [08:27:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FD 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:55]wFMCommunicate OK [08:27:55]SAM_PROTO_GetFieldsCounters done [08:27:55]requested_item shift.num is exist - process it [08:27:55]requested_item shift.opened is exist - process it [08:27:55]req_shift_opened [08:27:55]FM_GetShiftState [08:27:55]SAM_PROTO_GetShiftState [08:27:55]wFMCommunicate request_size=4 [08:27:55]MH_SAM_APDU [08:27:55]CAPDU: 80 13 01 00 [08:27:55]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [08:27:55]Write i2c OK [08:27:55]MH_I2C_Read... [08:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:55]Read from MH i2c: E2 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 0E 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B6 [08:27:55]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:27:55]wFMCommunicate OK [08:27:55]SAM_PROTO_GetShiftState done [08:27:55]FM_GetShiftState done [08:27:55]req_shift_opened done [08:27:55]requested_item shift.open_date is exist - process it [08:27:55]req_shift_open_date [08:27:55]req_shift_open_date done [08:27:55]produce_requested_data done [08:27:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72957,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:27:55]process_action_free close_receipt [08:27:55]json_value_free [08:27:55]json_value_free done [08:27:55]process_json_proto returns [08:27:55]Send response to host [08:27:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72957,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:27:55]free response buf [08:27:55]execute_script done [08:27:55]execute_script returns [08:27:55]free content buf [08:27:55]Sock 8.Close socket [08:27:55]Sock 8.Thread stoped [08:27:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 01 13 47 00 33 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FD 1C 01 00 F4 03 04 00 40 EA 22 67 B6 04 01 00 00 3C 00 9E C8 F0 43 90 D9 [08:27:56]CommunicateWithHost err = 0 [08:27:56]CheckOFDResponse [08:27:56]1017 (14) - 77093643461234 [08:27:56]1041 (16) - 0000000000874662 [08:27:56]1040 (4) - 72957 [08:27:56]1012 (4) - 31.10.2024 02:24 [08:27:56]1206 (1) - 0 [08:27:56]OFD Sender: Remove packet 72957 [08:27:56]ProducePacketName [08:27:56]name=ofd_packets/00072957 [08:27:56]NVStorageDeleteData [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:09]recv_with_timeout no data received [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:40]recv_with_timeout no data received [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:28:56]recv_with_timeout no data received [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:27]recv_with_timeout no data received [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:37]recv_with_timeout no data received [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:17]recv_with_timeout no data received [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]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:38]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:55]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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:56]recv_with_timeout no data received [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:56]recv_with_timeout no data received [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:54]recv_with_timeout no data received [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:12]recv_with_timeout no data received [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:56]recv_with_timeout no data received [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:13]recv_with_timeout no data received [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:46]recv_with_timeout no data received [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]recv_with_timeout no data received [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]recv_with_timeout no data received [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:40]recv_with_timeout no data received [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:10]recv_with_timeout no data received [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:46]recv_with_timeout no data received [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:26]recv_with_timeout no data received [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:01]accept exits with 9 [08:46:01]New connection [08:46:01]New thread 3067485540 created [08:46:01]Thread 3067628900 joined [08:46:01]Waiting for new connection... [08:46:01] Sock 9.Parse request [08:46:01]Sock 9.Check first char [08:46:01]Sock 9.First char is OK [08:46:01]request: POST /json_proto HTTP/1.0 [08:46:01]Method: POST [08:46:01]URL: /json_proto [08:46:01]Method is POST - this is cgi request [08:46:01]url: /json_proto [08:46:01]query_string will be loaded in cgi processing [08:46:01]execute_cgi json_proto POST (null) [08:46:01]execute_cgi path=json_proto method=POST [08:46:01]POST find Content-Length [08:46:01]Host: 172.17.43.195:8080 [08:46:01]Content-Length: 843 [08:46:01]Content-Type: application/json [08:46:01] [08:46:01]POST finish read [08:46:01]Found Content-Length = 843 [08:46:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.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" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:01]execute_script... [08:46:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.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" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:01]POST & json_proto [08:46:01]process_json_proto [08:46:01]json parsed OK: [08:46:01]protocol is kg_v1.0 [08:46:01]action value=close_receipt [08:46:01]process_action close_receipt [08:46:01]cmd_close_receipt [08:46:01]MH_GetDate [08:46:01]Write to MH i2c: F0 00 00 90 01 80 [08:46:01]Write i2c OK [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: F0 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: F0 09 00 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: F0 09 00 90 01 00 C9 43 23 67 74 2C AD 66 D2 [08:46:01]GetLastDocTimeStamp 1730363272 [08:46:01]current date 1730364361 [08:46:01]FM_GetShiftState [08:46:01]SAM_PROTO_GetShiftState [08:46:01]wFMCommunicate request_size=4 [08:46:01]MH_SAM_APDU [08:46:01]CAPDU: 80 13 01 00 [08:46:01]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [08:46:01]Write i2c OK [08:46:01]MH_I2C_Read... [08:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:01]Read from MH i2c: E2 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: E2 0E 00 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B8 [08:46:01]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:46:01]wFMCommunicate OK [08:46:01]SAM_PROTO_GetShiftState done [08:46:01]FM_GetShiftState done [08:46:01]opened in 1730333258 [08:46:01]opened+sec_in_day 1730419658 [08:46:01]quantity*price = 300064 [08:46:01]sum+1 = 300066 [08:46:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 33 31.10.2024 08:46 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72958 ФПД: 168325747070556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T084601&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72958&fm=168325747070556&tin=02508201610067®Number=0000000000091644&sum=300065 [08:46:02]StoreToDocumentArchive [08:46:02]shift 557 fd 72958 [08:46:02]save to /storage/0557/doc_00072958 [08:46:02]save last doc name /storage/0557/doc_00072958 to /storage/kkm_last_doc_name [08:46:02]save OK [08:46:02]Clear old archive folders... [08:46:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:02]tlvbuf is B6F4D520 [08:46:02]SAM_PROTO_ClearQueue [08:46:02]wFMCommunicate request_size=4 [08:46:02]MH_SAM_APDU [08:46:02]CAPDU: 80 09 00 00 [08:46:02]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:02]Read from MH i2c: E2 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 03 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [08:46:02]RAPDU: 90 00 [08:46:02]wFMCommunicate OK [08:46:02]SAM_PROTO_ClearQueue done [08:46:02]KKMCreateOFDPacket [08:46:02]OFDProtocolAddRootSTLVToBuf [08:46:02]FM_MakeSignedData [08:46:02]FM_MakeSignedData [08:46:02]SAM_PROTO_SignData [08:46:02]wFMCommunicate request_size=4 [08:46:02]MH_SAM_APDU [08:46:02]CAPDU: 80 0D 01 02 [08:46:02]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:02]Read from MH i2c: E2 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 03 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [08:46:02]RAPDU: 90 00 [08:46:02]wFMCommunicate OK [08:46:02]wFMCommunicate request_size=255 [08:46:02]MH_SAM_APDU [08:46:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C9 43 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FE 1C 01 00 35 04 06 00 99 [08:46:02]Write to MH i2c: E2 02 01 A0 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C9 43 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FE 1C 01 00 35 04 06 00 99 00 00 F5 [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:02]Read from MH i2c: E2 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 03 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [08:46:02]RAPDU: 90 00 [08:46:02]wFMCommunicate OK [08:46:02]wFMCommunicate request_size=10 [08:46:02]MH_SAM_APDU [08:46:02]CAPDU: 80 0D 02 02 05 17 64 5C 56 5C [08:46:02]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 17 64 5C 56 5C 00 00 AF [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:02]Read from MH i2c: E2 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 03 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [08:46:02]RAPDU: 90 00 [08:46:02]wFMCommunicate OK [08:46:02]wFMCommunicate request_size=4 [08:46:02]MH_SAM_APDU [08:46:02]CAPDU: 80 0D 03 02 [08:46:02]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:02]Read from MH i2c: E2 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 0B 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 0B 00 A2 01 00 ED F9 3B 70 17 18 D7 38 90 00 EE [08:46:02]RAPDU: ED F9 3B 70 17 18 D7 38 90 00 [08:46:02]wFMCommunicate OK [08:46:02]SAM_PROTO_SignData done [08:46:02]FM_MakeSignedData done [08:46:02]CreateOFDProtocolMessage [08:46:02]wFMCommunicate request_size=4 [08:46:02]MH_SAM_APDU [08:46:02]CAPDU: 80 11 00 00 [08:46:02]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:02]Read from MH i2c: E2 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 17 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 72 [08:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:46:02]wFMCommunicate OK [08:46:02]CreateOFDProtocolMessage done [08:46:02]OFDSenderStorePacket 72958 [08:46:02]StoreOFDPacket docnum=72958 [08:46:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0B E5 07 01 BE 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C9 43 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FE 1C 01 00 35 04 06 00 99 17 64 5C 56 5C ED F9 3B 70 17 18 D7 38 [08:46:02]CheckFolder [08:46:02]dirname=/storage/ofd_packets [08:46:02]CheckFolder done [08:46:02]ProducePacketName [08:46:02]name=ofd_packets/00072958 [08:46:02]NVStorageSaveData ofd_packets/00072958 [08:46:02]File name is /storage/ofd_packets/00072958 [08:46:02]Write 301 bytes [08:46:02]NVStorageSaveData done [08:46:02]OFDSenderStorePacket done [08:46:02]KKMCreateOFDPacket done [08:46:02]NVStorageSaveData kkm_last_timestamp [08:46:02]File name is /storage/kkm_last_timestamp [08:46:02]Write 4 bytes [08:46:02]NVStorageSaveData done [08:46:02]ExternCall_PrintAddStr [08:46:02]wPrintStart [08:46:02]Write to MH i2c: 01 00 00 A4 01 A5 [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: 01 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: 01 07 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [08:46:02]RasterBufferAndPrint [08:46:02]line Счет N : (1)952559 [08:46:02]line ИНН: 02508201610067 [08:46:02]line Контрольно-Кассовый Чек [08:46:02]line ПРОДАЖА [08:46:02]line ТРК (МРК, ГНК) : 62 [08:46:02]line Товар: 2710124500 [08:46:02]line Аи-95-К-3 [08:46:02]line 40.440 * 74.20 [08:46:02]line = 3000.65 [08:46:02]line НДС 12% НСП 1% [08:46:02]line > о реализуемом товаре [08:46:02]line ИТОГО: 3000.65 [08:46:02]line НСП 1% : 26.55 [08:46:02]line НДС 12% : 318.65 [08:46:02]line Наличными: 0.00 [08:46:02]line Безнал.: 3000.65 [08:46:02]line Место: АЗС № 113 "Партнер Нефть" [08:46:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:46:02]line СНО: Общий режим [08:46:02]line Чек 33 31.10.2024 08:46 [08:46:02]line Смена: 557 ФФД: 1.0 [08:46:02]line ЗНМ: 0300000087 [08:46:02]line РНМ: 0000000000091644 [08:46:02]line Версия ККМ: 001 [08:46:02]line Платежная система: АКБ Кыргызстан [08:46:02]line ФМ: 0000000000874662 [08:46:02]line ФД: 72958 [08:46:02]line ФПД: 168325747070556 [08:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T084601&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72958&fm=168325747070556&tin=02508201610067®Number=0000000000091644&sum=300065 [08:46:03]written 0, free lines is 4095 [08:46:03]OFD Sender: Processing packet 72958 [packets to send 279, broken 278] [08:46:03]ProducePacketName [08:46:03]name=ofd_packets/00072958 [08:46:03]OFD Sender: To server: pG, [08:46:03]CommunicateWithHost lk.salyk.kg:30040 [08:46:03]ConnectInit lk.salyk.kg [08:46:03]Write to MH i2c: 01 00 00 CE 01 CF [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: 01 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: 01 07 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 E7 0C C9 [08:46:03]RasterBufferAndPrint [08:46:03]line [08:46:03]line [08:46:03]line [08:46:03]line [08:46:03]line [08:46:03]written 0, free lines is 3310 [08:46:03]MH_Cut [08:46:03]Write to MH i2c: D1 01 00 D5 01 01 A8 [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: D1 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: D1 01 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: D1 01 00 D5 01 00 A7 [08:46:03]Write to MH i2c: 01 00 00 D6 01 D7 [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:04]*** Cut start [08:46:04]*** Partial cut [08:46:04]*** CUTSNS_PIN = 1 [08:46:04]*** CUTSNS_PIN = 0 [08:46:04]*** Brake cut motor [08:46:05]Read from MH i2c: 01 [08:46:05]*** Stop cut motor [08:46:05]*** Cut end [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: 01 07 00 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [08:46:05]process_action close_receipt done [08:46:05]requested_data is exist [08:46:05]produce_requested_data [08:46:05]requested_item fm.sn is exist - process it [08:46:05]wFMCommunicate request_size=4 [08:46:05]MH_SAM_APDU [08:46:05]CAPDU: 80 11 00 00 [08:46:05]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [08:46:05]Write i2c OK [08:46:05]MH_I2C_Read... [08:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:05]Read from MH i2c: E2 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: E2 17 00 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [08:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:46:05]wFMCommunicate OK [08:46:05]requested_item fd.num is exist - process it [08:46:05]SAM_PROTO_GetFieldsCounters [08:46:05]wFMCommunicate request_size=4 [08:46:05]MH_SAM_APDU [08:46:05]CAPDU: 80 13 00 00 [08:46:05]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [08:46:05]Write i2c OK [08:46:05]MH_I2C_Read... [08:46:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:05]Read from MH i2c: E2 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: E2 62 00 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: E2 62 00 D8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FE 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [08:46:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FE 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:05]wFMCommunicate OK [08:46:05]SAM_PROTO_GetFieldsCounters done [08:46:05]requested_item shift.num is exist - process it [08:46:05]requested_item shift.opened is exist - process it [08:46:05]req_shift_opened [08:46:05]FM_GetShiftState [08:46:05]SAM_PROTO_GetShiftState [08:46:05]wFMCommunicate request_size=4 [08:46:05]MH_SAM_APDU [08:46:05]CAPDU: 80 13 01 00 [08:46:05]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [08:46:05]Write i2c OK [08:46:05]MH_I2C_Read... [08:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:05]Read from MH i2c: E2 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: E2 0E 00 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 00 [08:46:05]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:46:05]wFMCommunicate OK [08:46:05]SAM_PROTO_GetShiftState done [08:46:05]FM_GetShiftState done [08:46:05]req_shift_opened done [08:46:05]requested_item shift.open_date is exist - process it [08:46:05]req_shift_open_date [08:46:05]req_shift_open_date done [08:46:05]produce_requested_data done [08:46:05]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72958,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:46:05]process_action_free close_receipt [08:46:05]json_value_free [08:46:05]json_value_free done [08:46:05]process_json_proto returns [08:46:05]Send response to host [08:46:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72958,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:46:05]free response buf [08:46:05]execute_script done [08:46:05]execute_script returns [08:46:05]free content buf [08:46:05]Sock 9.Close socket [08:46:05]Sock 9.Thread stoped [08:46:08]recv_with_timeout no data received [08:46:08]ConnectInit Can't take IP for lk.salyk.kg [08:46:08]CommunicateWithHost connect error [08:46:08]CommunicateWithHost err = -1 [08:46:08]OFD Sender: Server communicate error [08:46:13]OFD Sender: Processing packet 72958 [packets to send 279, broken 278] [08:46:13]ProducePacketName [08:46:13]name=ofd_packets/00072958 [08:46:13]OFD Sender: To server: pG, [08:46:13]CommunicateWithHost lk.salyk.kg:30040 [08:46:13]ConnectInit lk.salyk.kg [08:46:18]ConnectInit Can't take IP for lk.salyk.kg [08:46:18]CommunicateWithHost connect error [08:46:18]CommunicateWithHost err = -1 [08:46:18]OFD Sender: Server communicate error [08:46:23]OFD Sender: Processing packet 72958 [packets to send 279, broken 278] [08:46:23]ProducePacketName [08:46:23]name=ofd_packets/00072958 [08:46:23]OFD Sender: To server: pG, [08:46:23]CommunicateWithHost lk.salyk.kg:30040 [08:46:23]ConnectInit lk.salyk.kg [08:46:23]recv_with_timeout no data received [08:46:28]ConnectInit Can't take IP for lk.salyk.kg [08:46:28]CommunicateWithHost connect error [08:46:28]CommunicateWithHost err = -1 [08:46:28]OFD Sender: Server communicate error [08:46:33]OFD Sender: Processing packet 72958 [packets to send 279, broken 278] [08:46:33]ProducePacketName [08:46:33]name=ofd_packets/00072958 [08:46:33]OFD Sender: To server: pG, [08:46:33]CommunicateWithHost lk.salyk.kg:30040 [08:46:33]ConnectInit lk.salyk.kg [08:46:38]Connected sock=10 [08:46:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0B E5 07 01 BE 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C9 43 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FE 1C 01 00 35 04 06 00 99 17 64 5C 56 5C ED F9 3B 70 17 18 D7 38 [08:46:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 0E 47 00 28 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FE 1C 01 00 F4 03 04 00 A3 EE 22 67 B6 04 01 00 00 E0 E0 52 48 97 AC 63 71 [08:46:39]CommunicateWithHost err = 0 [08:46:39]CheckOFDResponse [08:46:39]1017 (14) - 77093643461234 [08:46:39]1041 (16) - 0000000000874662 [08:46:39]1040 (4) - 72958 [08:46:39]1012 (4) - 31.10.2024 02:42 [08:46:39]1206 (1) - 0 [08:46:39]OFD Sender: Remove packet 72958 [08:46:39]ProducePacketName [08:46:39]name=ofd_packets/00072958 [08:46:39]NVStorageDeleteData [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]recv_with_timeout no data received [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:11]accept exits with 8 [08:48:11]New connection [08:48:11]New thread 3067628900 created [08:48:11]Thread 3067485540 joined [08:48:11]Waiting for new connection... [08:48:11] Sock 8.Parse request [08:48:11]Sock 8.Check first char [08:48:11]Sock 8.First char is OK [08:48:11]request: POST /json_proto HTTP/1.0 [08:48:11]Method: POST [08:48:11]URL: /json_proto [08:48:11]Method is POST - this is cgi request [08:48:11]url: /json_proto [08:48:11]query_string will be loaded in cgi processing [08:48:11]execute_cgi json_proto POST (null) [08:48:11]execute_cgi path=json_proto method=POST [08:48:11]POST find Content-Length [08:48:11]Host: 172.17.43.195:8080 [08:48:11]Content-Length: 792 [08:48:11]Content-Type: application/json [08:48:11] [08:48:11]POST finish read [08:48:11]Found Content-Length = 792 [08:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:11]execute_script... [08:48:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:11]POST & json_proto [08:48:11]process_json_proto [08:48:11]json parsed OK: [08:48:11]protocol is kg_v1.0 [08:48:11]action value=close_receipt [08:48:11]process_action close_receipt [08:48:11]cmd_close_receipt [08:48:11]MH_GetDate [08:48:11]Write to MH i2c: F0 00 00 DA 01 CA [08:48:11]Write i2c OK [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: F0 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: F0 09 00 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: F0 09 00 DA 01 00 4B 44 23 67 74 2C AD 66 9F [08:48:11]GetLastDocTimeStamp 1730364361 [08:48:11]current date 1730364491 [08:48:11]FM_GetShiftState [08:48:11]SAM_PROTO_GetShiftState [08:48:11]wFMCommunicate request_size=4 [08:48:11]MH_SAM_APDU [08:48:11]CAPDU: 80 13 01 00 [08:48:11]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [08:48:11]Write i2c OK [08:48:11]MH_I2C_Read... [08:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:11]Read from MH i2c: E2 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: E2 0E 00 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 02 [08:48:11]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:48:11]wFMCommunicate OK [08:48:11]SAM_PROTO_GetShiftState done [08:48:11]FM_GetShiftState done [08:48:11]opened in 1730333258 [08:48:11]opened+sec_in_day 1730419658 [08:48:11]quantity*price = 0 [08:48:11]sum+1 = 1 [08:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 34 31.10.2024 08:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72959 ФПД: 10435285360151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T084811&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72959&fm=10435285360151&tin=02508201610067®Number=0000000000091644&sum=0 [08:48:12]StoreToDocumentArchive [08:48:12]shift 557 fd 72959 [08:48:12]save to /storage/0557/doc_00072959 [08:48:12]save last doc name /storage/0557/doc_00072959 to /storage/kkm_last_doc_name [08:48:12]save OK [08:48:12]Clear old archive folders... [08:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:12]tlvbuf is 00CE1FC0 [08:48:12]SAM_PROTO_ClearQueue [08:48:12]wFMCommunicate request_size=4 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 09 00 00 [08:48:12]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 03 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [08:48:12]RAPDU: 90 00 [08:48:12]wFMCommunicate OK [08:48:12]SAM_PROTO_ClearQueue done [08:48:12]KKMCreateOFDPacket [08:48:12]OFDProtocolAddRootSTLVToBuf [08:48:12]FM_MakeSignedData [08:48:12]FM_MakeSignedData [08:48:12]SAM_PROTO_SignData [08:48:12]wFMCommunicate request_size=4 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 0D 01 02 [08:48:12]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 03 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [08:48:12]RAPDU: 90 00 [08:48:12]wFMCommunicate OK [08:48:12]wFMCommunicate request_size=255 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4B 44 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FF 1C 01 00 35 04 06 00 09 [08:48:12]Write to MH i2c: E2 02 01 EA 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4B 44 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FF 1C 01 00 35 04 06 00 09 00 00 33 [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 03 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [08:48:12]RAPDU: 90 00 [08:48:12]wFMCommunicate OK [08:48:12]wFMCommunicate request_size=10 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 0D 02 02 05 7D A7 7A 1E 17 [08:48:12]Write to MH i2c: E2 0D 00 EB 01 80 0D 02 02 05 00 7D A7 7A 1E 17 00 00 43 [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 03 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [08:48:12]RAPDU: 90 00 [08:48:12]wFMCommunicate OK [08:48:12]wFMCommunicate request_size=4 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 0D 03 02 [08:48:12]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 0B 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 0B 00 EC 01 00 65 5E D2 75 F2 F8 44 EB 90 00 8C [08:48:12]RAPDU: 65 5E D2 75 F2 F8 44 EB 90 00 [08:48:12]wFMCommunicate OK [08:48:12]SAM_PROTO_SignData done [08:48:12]FM_MakeSignedData done [08:48:12]CreateOFDProtocolMessage [08:48:12]wFMCommunicate request_size=4 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 11 00 00 [08:48:12]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 17 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BC [08:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:48:12]wFMCommunicate OK [08:48:12]CreateOFDProtocolMessage done [08:48:12]OFDSenderStorePacket 72959 [08:48:12]StoreOFDPacket docnum=72959 [08:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4D DB 07 01 23 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4B 44 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FF 1C 01 00 35 04 06 00 09 7D A7 7A 1E 17 65 5E D2 75 F2 F8 44 EB [08:48:12]CheckFolder [08:48:12]dirname=/storage/ofd_packets [08:48:12]CheckFolder done [08:48:12]ProducePacketName [08:48:12]name=ofd_packets/00072959 [08:48:12]NVStorageSaveData ofd_packets/00072959 [08:48:12]File name is /storage/ofd_packets/00072959 [08:48:12]Write 301 bytes [08:48:12]NVStorageSaveData done [08:48:12]OFDSenderStorePacket done [08:48:12]KKMCreateOFDPacket done [08:48:12]NVStorageSaveData kkm_last_timestamp [08:48:12]File name is /storage/kkm_last_timestamp [08:48:12]Write 4 bytes [08:48:12]NVStorageSaveData done [08:48:12]ExternCall_PrintAddStr [08:48:12]wPrintStart [08:48:12]Write to MH i2c: 01 00 00 EE 01 EF [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: 01 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: 01 07 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [08:48:12]RasterBufferAndPrint [08:48:12]line Счет N : (1)952560 [08:48:12]line ИНН: 02508201610067 [08:48:12]line Контрольно-Кассовый Чек [08:48:12]line ПРОДАЖА [08:48:12]line ТРК (МРК, ГНК) : 53 [08:48:12]line Товар: 2710124130 [08:48:12]line Аи-92-К-5 [08:48:12]line 10.000 * 0.00 [08:48:12]line = 0.00 [08:48:12]line НДС 12% НСП 1% [08:48:12]line > о реализуемом товаре [08:48:12]line ИТОГО: 0.00 [08:48:12]line НСП 1% : 0.00 [08:48:12]line НДС 12% : 0.00 [08:48:12]line Наличными: 0.00 [08:48:12]line Безнал.: 0.00 [08:48:12]line Место: АЗС № 113 "Партнер Нефть" [08:48:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:48:12]line СНО: Общий режим [08:48:12]line Чек 34 31.10.2024 08:48 [08:48:12]line Смена: 557 ФФД: 1.0 [08:48:12]line ЗНМ: 0300000087 [08:48:12]line РНМ: 0000000000091644 [08:48:12]line Версия ККМ: 001 [08:48:12]line Талоны: Топливная Карта [08:48:12]line 03047 [08:48:12]line ФМ: 0000000000874662 [08:48:12]line ФД: 72959 [08:48:12]line ФПД: 10435285360151 [08:48:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T084811&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72959&fm=10435285360151&tin=02508201610067®Number=0000000000091644&sum=0 [08:48:12]written 0, free lines is 4095 [08:48:13]OFD Sender: Processing packet 72959 [packets to send 279, broken 278] [08:48:13]ProducePacketName [08:48:13]name=ofd_packets/00072959 [08:48:13]OFD Sender: To server: pG, [08:48:13]CommunicateWithHost lk.salyk.kg:30040 [08:48:13]ConnectInit lk.salyk.kg [08:48:13]Write to MH i2c: 01 00 00 18 02 1A [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: 01 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: 01 07 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 DF 0C 0C [08:48:13]RasterBufferAndPrint [08:48:13]line [08:48:13]line [08:48:13]line [08:48:13]line [08:48:13]line [08:48:13]written 0, free lines is 3301 [08:48:13]MH_Cut [08:48:13]Write to MH i2c: D1 01 00 1F 02 01 F3 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: D1 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: D1 01 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: D1 01 00 1F 02 00 F2 [08:48:13]Write to MH i2c: 01 00 00 20 02 22 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]Connected sock=9 [08:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4D DB 07 01 23 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4B 44 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FF 1C 01 00 35 04 06 00 09 7D A7 7A 1E 17 65 5E D2 75 F2 F8 44 EB [08:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6F F0 47 00 92 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 FF 1C 01 00 F4 03 04 00 02 EF 22 67 B6 04 01 00 00 DB CB 7D 0F 06 E1 28 80 [08:48:13]CommunicateWithHost err = 0 [08:48:13]CheckOFDResponse [08:48:13]1017 (14) - 77093643461234 [08:48:13]1041 (16) - 0000000000874662 [08:48:13]1040 (4) - 72959 [08:48:13]1012 (4) - 31.10.2024 02:44 [08:48:13]1206 (1) - 0 [08:48:13]OFD Sender: Remove packet 72959 [08:48:13]ProducePacketName [08:48:13]name=ofd_packets/00072959 [08:48:13]NVStorageDeleteData [08:48:14]*** Cut start [08:48:14]*** Partial cut [08:48:14]*** CUTSNS_PIN = 1 [08:48:14]*** CUTSNS_PIN = 0 [08:48:14]*** Brake cut motor [08:48:14]OFD Sender: No OFD packet to send [08:48:14]Read from MH i2c: 01 [08:48:14]MH_I2C_Read... [08:48:14]*** Stop cut motor [08:48:14]*** Cut end [08:48:14]Read from MH i2c: 01 07 00 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [08:48:14]process_action close_receipt done [08:48:14]requested_data is exist [08:48:14]produce_requested_data [08:48:14]requested_item fm.sn is exist - process it [08:48:14]wFMCommunicate request_size=4 [08:48:14]MH_SAM_APDU [08:48:14]CAPDU: 80 11 00 00 [08:48:14]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [08:48:14]Write i2c OK [08:48:14]MH_I2C_Read... [08:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:14]Read from MH i2c: E2 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: E2 17 00 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F1 [08:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:48:14]wFMCommunicate OK [08:48:14]requested_item fd.num is exist - process it [08:48:14]SAM_PROTO_GetFieldsCounters [08:48:14]wFMCommunicate request_size=4 [08:48:14]MH_SAM_APDU [08:48:14]CAPDU: 80 13 00 00 [08:48:14]Write to MH i2c: E2 08 00 22 02 80 13 00 00 00 00 00 00 A0 [08:48:14]Write i2c OK [08:48:14]MH_I2C_Read... [08:48:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:14]Read from MH i2c: E2 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: E2 62 00 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: E2 62 00 22 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FF 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [08:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 FF 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:15]wFMCommunicate OK [08:48:15]SAM_PROTO_GetFieldsCounters done [08:48:15]requested_item shift.num is exist - process it [08:48:15]requested_item shift.opened is exist - process it [08:48:15]req_shift_opened [08:48:15]FM_GetShiftState [08:48:15]SAM_PROTO_GetShiftState [08:48:15]wFMCommunicate request_size=4 [08:48:15]MH_SAM_APDU [08:48:15]CAPDU: 80 13 01 00 [08:48:15]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [08:48:15]Write i2c OK [08:48:15]MH_I2C_Read... [08:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:15]Read from MH i2c: E2 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: E2 0E 00 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4B [08:48:15]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:48:15]wFMCommunicate OK [08:48:15]SAM_PROTO_GetShiftState done [08:48:15]FM_GetShiftState done [08:48:15]req_shift_opened done [08:48:15]requested_item shift.open_date is exist - process it [08:48:15]req_shift_open_date [08:48:15]req_shift_open_date done [08:48:15]produce_requested_data done [08:48:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72959,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:48:15]process_action_free close_receipt [08:48:15]json_value_free [08:48:15]json_value_free done [08:48:15]process_json_proto returns [08:48:15]Send response to host [08:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72959,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:48:15]free response buf [08:48:15]execute_script done [08:48:15]execute_script returns [08:48:15]free content buf [08:48:15]Sock 8.Close socket [08:48:15]Sock 8.Thread stoped [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:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:57]recv_with_timeout no data received [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:50]recv_with_timeout no data received [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:34]accept exits with 10 [08:53:34]New connection [08:53:34]New thread 3067485540 created [08:53:34]Thread 3067628900 joined [08:53:34]Waiting for new connection... [08:53:34] Sock 10.Parse request [08:53:34]Sock 10.Check first char [08:53:34]Sock 10.First char is OK [08:53:34]request: POST /json_proto HTTP/1.0 [08:53:34]Method: POST [08:53:34]URL: /json_proto [08:53:34]Method is POST - this is cgi request [08:53:34]url: /json_proto [08:53:34]query_string will be loaded in cgi processing [08:53:34]execute_cgi json_proto POST (null) [08:53:34]execute_cgi path=json_proto method=POST [08:53:34]POST find Content-Length [08:53:34]Host: 172.17.43.195:8080 [08:53:34]Content-Length: 682 [08:53:34]Content-Type: application/json [08:53:34] [08:53:34]POST finish read [08:53:34]Found Content-Length = 682 [08:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:34]execute_script... [08:53:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:34]POST & json_proto [08:53:34]process_json_proto [08:53:34]json parsed OK: [08:53:34]protocol is kg_v1.0 [08:53:34]action value=close_receipt [08:53:34]process_action close_receipt [08:53:34]cmd_close_receipt [08:53:34]MH_GetDate [08:53:34]Write to MH i2c: F0 00 00 24 02 15 [08:53:34]Write i2c OK [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: F0 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: F0 09 00 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: F0 09 00 24 02 00 8E 45 23 67 74 2C AD 66 2E [08:53:34]GetLastDocTimeStamp 1730364491 [08:53:34]current date 1730364814 [08:53:34]FM_GetShiftState [08:53:34]SAM_PROTO_GetShiftState [08:53:34]wFMCommunicate request_size=4 [08:53:34]MH_SAM_APDU [08:53:34]CAPDU: 80 13 01 00 [08:53:34]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [08:53:34]Write i2c OK [08:53:34]MH_I2C_Read... [08:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:34]Read from MH i2c: E2 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 0E 00 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4D [08:53:34]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:53:34]wFMCommunicate OK [08:53:34]SAM_PROTO_GetShiftState done [08:53:34]FM_GetShiftState done [08:53:34]opened in 1730333258 [08:53:34]opened+sec_in_day 1730419658 [08:53:34]quantity*price = 100021 [08:53:34]sum+1 = 100023 [08:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 35 31.10.2024 08:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72960 ФПД: 181818862842397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T085334&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72960&fm=181818862842397&tin=02508201610067®Number=0000000000091644&sum=100000 [08:53:35]StoreToDocumentArchive [08:53:35]shift 557 fd 72960 [08:53:35]save to /storage/0557/doc_00072960 [08:53:35]save last doc name /storage/0557/doc_00072960 to /storage/kkm_last_doc_name [08:53:35]save OK [08:53:35]Clear old archive folders... [08:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:35]tlvbuf is 00CE0210 [08:53:35]SAM_PROTO_ClearQueue [08:53:35]wFMCommunicate request_size=4 [08:53:35]MH_SAM_APDU [08:53:35]CAPDU: 80 09 00 00 [08:53:35]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [08:53:35]Write i2c OK [08:53:35]MH_I2C_Read... [08:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:35]Read from MH i2c: E2 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 03 00 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [08:53:35]RAPDU: 90 00 [08:53:35]wFMCommunicate OK [08:53:35]SAM_PROTO_ClearQueue done [08:53:35]KKMCreateOFDPacket [08:53:35]OFDProtocolAddRootSTLVToBuf [08:53:35]FM_MakeSignedData [08:53:35]FM_MakeSignedData [08:53:35]SAM_PROTO_SignData [08:53:35]wFMCommunicate request_size=4 [08:53:35]MH_SAM_APDU [08:53:35]CAPDU: 80 0D 01 02 [08:53:35]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [08:53:35]Write i2c OK [08:53:35]MH_I2C_Read... [08:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:35]Read from MH i2c: E2 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 03 00 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [08:53:35]RAPDU: 90 00 [08:53:35]wFMCommunicate OK [08:53:35]wFMCommunicate request_size=255 [08:53:35]MH_SAM_APDU [08:53:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8E 45 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 00 1D 01 00 35 04 06 00 A5 [08:53:35]Write to MH i2c: E2 02 01 34 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8E 45 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 00 1D 01 00 35 04 06 00 A5 00 00 CA [08:53:35]Write i2c OK [08:53:35]MH_I2C_Read... [08:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:35]Read from MH i2c: E2 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 03 00 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [08:53:35]RAPDU: 90 00 [08:53:35]wFMCommunicate OK [08:53:35]wFMCommunicate request_size=10 [08:53:35]MH_SAM_APDU [08:53:35]CAPDU: 80 0D 02 02 05 5D 00 BB B2 1D [08:53:35]Write to MH i2c: E2 0D 00 35 02 80 0D 02 02 05 00 5D 00 BB B2 1D 00 00 A2 [08:53:35]Write i2c OK [08:53:35]MH_I2C_Read... [08:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:35]Read from MH i2c: E2 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 03 00 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [08:53:35]RAPDU: 90 00 [08:53:35]wFMCommunicate OK [08:53:35]wFMCommunicate request_size=4 [08:53:35]MH_SAM_APDU [08:53:35]CAPDU: 80 0D 03 02 [08:53:35]Write to MH i2c: E2 08 00 36 02 80 0D 03 02 00 00 00 00 B3 [08:53:35]Write i2c OK [08:53:35]MH_I2C_Read... [08:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:35]Read from MH i2c: E2 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 0B 00 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 0B 00 36 02 00 09 A9 03 8E 2F 5B FC 8E 90 00 0B [08:53:35]RAPDU: 09 A9 03 8E 2F 5B FC 8E 90 00 [08:53:35]wFMCommunicate OK [08:53:35]SAM_PROTO_SignData done [08:53:35]FM_MakeSignedData done [08:53:35]CreateOFDProtocolMessage [08:53:35]wFMCommunicate request_size=4 [08:53:35]MH_SAM_APDU [08:53:35]CAPDU: 80 11 00 00 [08:53:35]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [08:53:35]Write i2c OK [08:53:35]MH_I2C_Read... [08:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:35]Read from MH i2c: E2 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 17 00 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 07 [08:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:53:35]wFMCommunicate OK [08:53:35]CreateOFDProtocolMessage done [08:53:35]OFDSenderStorePacket 72960 [08:53:35]StoreOFDPacket docnum=72960 [08:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F5 7B 07 01 57 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8E 45 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 00 1D 01 00 35 04 06 00 A5 5D 00 BB B2 1D 09 A9 03 8E 2F 5B FC 8E [08:53:35]CheckFolder [08:53:35]dirname=/storage/ofd_packets [08:53:35]CheckFolder done [08:53:35]ProducePacketName [08:53:35]name=ofd_packets/00072960 [08:53:35]NVStorageSaveData ofd_packets/00072960 [08:53:35]File name is /storage/ofd_packets/00072960 [08:53:35]Write 301 bytes [08:53:35]NVStorageSaveData done [08:53:35]OFDSenderStorePacket done [08:53:35]KKMCreateOFDPacket done [08:53:35]NVStorageSaveData kkm_last_timestamp [08:53:35]File name is /storage/kkm_last_timestamp [08:53:35]Write 4 bytes [08:53:35]NVStorageSaveData done [08:53:35]OFD Sender: Processing packet 72960 [packets to send 279, broken 278] [08:53:35]ProducePacketName [08:53:35]name=ofd_packets/00072960 [08:53:35]OFD Sender: To server: pG, [08:53:35]CommunicateWithHost lk.salyk.kg:30040 [08:53:35]ConnectInit lk.salyk.kg [08:53:35]ExternCall_PrintAddStr [08:53:35]wPrintStart [08:53:35]Write to MH i2c: 01 00 00 38 02 3A [08:53:35]Write i2c OK [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: 01 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: 01 07 00 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [08:53:35]RasterBufferAndPrint [08:53:35]line Счет N : (1)952561 [08:53:35]line ИНН: 02508201610067 [08:53:35]line Контрольно-Кассовый Чек [08:53:35]line ПРОДАЖА [08:53:35]line ТРК (МРК, ГНК) : 31 [08:53:35]line Товар: 2710124500 [08:53:35]line Аи-95-К-3 [08:53:35]line 13.480 * 74.20 [08:53:35]line = 1000.22 [08:53:35]line НДС 12% НСП 1% [08:53:35]line > о реализуемом товаре [08:53:35]line ОКРУГЛЕНИЕ: -0.22 [08:53:35]line ИТОГО: 1000.00 [08:53:35]line Внесено: 1000.00 [08:53:35]line СДАЧА: 0.00 [08:53:35]line НСП 1% : 8.85 [08:53:35]line НДС 12% : 106.22 [08:53:35]line Наличными: 1000.00 [08:53:35]line Безнал.: 0.00 [08:53:35]line Место: АЗС № 113 "Партнер Нефть" [08:53:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:53:35]line СНО: Общий режим [08:53:35]line Чек 35 31.10.2024 08:53 [08:53:35]line Смена: 557 ФФД: 1.0 [08:53:35]line ЗНМ: 0300000087 [08:53:35]line РНМ: 0000000000091644 [08:53:35]line Версия ККМ: 001 [08:53:35]line ФМ: 0000000000874662 [08:53:35]line ФД: 72960 [08:53:35]line ФПД: 181818862842397 [08:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T085334&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72960&fm=181818862842397&tin=02508201610067®Number=0000000000091644&sum=100000 [08:53:36]written 0, free lines is 4095 [08:53:36]Connected sock=11 [08:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F5 7B 07 01 57 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8E 45 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 00 1D 01 00 35 04 06 00 A5 5D 00 BB B2 1D 09 A9 03 8E 2F 5B FC 8E [08:53:36]Write to MH i2c: 01 00 00 63 02 65 [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: 01 [08:53:36]MH_I2C_Read... [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 63 02 00 00 00 00 00 E4 0C 5C [08:53:36]RasterBufferAndPrint [08:53:36]line [08:53:36]line [08:53:36]line [08:53:36]line [08:53:36]line [08:53:36]written 0, free lines is 3306 [08:53:36]MH_Cut [08:53:36]Write to MH i2c: D1 01 00 6A 02 01 3E [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: D1 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: D1 01 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: D1 01 00 6A 02 00 3D [08:53:36]Write to MH i2c: 01 00 00 6B 02 6D [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 70 C8 47 00 68 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 00 1D 01 00 F4 03 04 00 45 F0 22 67 B6 04 01 00 00 D1 73 FE CD 77 37 CB 75 [08:53:37]CommunicateWithHost err = 0 [08:53:37]CheckOFDResponse [08:53:37]1017 (14) - 77093643461234 [08:53:37]1041 (16) - 0000000000874662 [08:53:37]1040 (4) - 72960 [08:53:37]1012 (4) - 31.10.2024 02:49 [08:53:37]1206 (1) - 0 [08:53:37]OFD Sender: Remove packet 72960 [08:53:37]ProducePacketName [08:53:37]name=ofd_packets/00072960 [08:53:37]NVStorageDeleteData [08:53:37]*** Cut start [08:53:37]*** Partial cut [08:53:37]*** CUTSNS_PIN = 1 [08:53:37]*** CUTSNS_PIN = 0 [08:53:37]OFD Sender: No OFD packet to send [08:53:37]*** Brake cut motor [08:53:38]Read from MH i2c: 01 [08:53:38]MH_I2C_Read... [08:53:38]*** Stop cut motor [08:53:38]*** Cut end [08:53:38]Read from MH i2c: 01 07 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [08:53:38]process_action close_receipt done [08:53:38]requested_data is exist [08:53:38]produce_requested_data [08:53:38]requested_item fm.sn is exist - process it [08:53:38]wFMCommunicate request_size=4 [08:53:38]MH_SAM_APDU [08:53:38]CAPDU: 80 11 00 00 [08:53:38]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:38]Read from MH i2c: E2 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 17 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [08:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:53:38]wFMCommunicate OK [08:53:38]requested_item fd.num is exist - process it [08:53:38]SAM_PROTO_GetFieldsCounters [08:53:38]wFMCommunicate request_size=4 [08:53:38]MH_SAM_APDU [08:53:38]CAPDU: 80 13 00 00 [08:53:38]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:38]Read from MH i2c: E2 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 62 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 00 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [08:53: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 00 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:38]wFMCommunicate OK [08:53:38]SAM_PROTO_GetFieldsCounters done [08:53:38]requested_item shift.num is exist - process it [08:53:38]requested_item shift.opened is exist - process it [08:53:38]req_shift_opened [08:53:38]FM_GetShiftState [08:53:38]SAM_PROTO_GetShiftState [08:53:38]wFMCommunicate request_size=4 [08:53:38]MH_SAM_APDU [08:53:38]CAPDU: 80 13 01 00 [08:53:38]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:38]Read from MH i2c: E2 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 0E 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 96 [08:53:38]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [08:53:38]wFMCommunicate OK [08:53:38]SAM_PROTO_GetShiftState done [08:53:38]FM_GetShiftState done [08:53:38]req_shift_opened done [08:53:38]requested_item shift.open_date is exist - process it [08:53:38]req_shift_open_date [08:53:38]req_shift_open_date done [08:53:38]produce_requested_data done [08:53:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72960,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [08:53:38]process_action_free close_receipt [08:53:38]json_value_free [08:53:38]json_value_free done [08:53:38]process_json_proto returns [08:53:38]Send response to host [08:53:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72960,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [08:53:38]free response buf [08:53:38]execute_script done [08:53:38]execute_script returns [08:53:38]free content buf [08:53:38]Sock 10.Close socket [08:53:38]Sock 10.Thread stoped [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:19]recv_with_timeout no data received [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:30]recv_with_timeout no data received [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:40]recv_with_timeout no data received [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:06]recv_with_timeout no data received [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:23]recv_with_timeout no data received [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:04]recv_with_timeout no data received [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:15]recv_with_timeout no data received [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:27]recv_with_timeout no data received [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:56]recv_with_timeout no data received [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:27]accept exits with 8 [09:01:27]New connection [09:01:27]New thread 3067628900 created [09:01:27]Thread 3067485540 joined [09:01:27]Waiting for new connection... [09:01:27] Sock 8.Parse request [09:01:27]Sock 8.Check first char [09:01:27]Sock 8.First char is OK [09:01:27]request: POST /json_proto HTTP/1.0 [09:01:27]Method: POST [09:01:27]URL: /json_proto [09:01:27]Method is POST - this is cgi request [09:01:27]url: /json_proto [09:01:27]query_string will be loaded in cgi processing [09:01:27]execute_cgi json_proto POST (null) [09:01:27]execute_cgi path=json_proto method=POST [09:01:27]POST find Content-Length [09:01:27]Host: 172.17.43.195:8080 [09:01:27]Content-Length: 687 [09:01:27]Content-Type: application/json [09:01:27] [09:01:27]POST finish read [09:01:27]Found Content-Length = 687 [09:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:27]execute_script... [09:01:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:27]POST & json_proto [09:01:27]process_json_proto [09:01:27]json parsed OK: [09:01:27]protocol is kg_v1.0 [09:01:27]action value=close_receipt [09:01:27]process_action close_receipt [09:01:27]cmd_close_receipt [09:01:27]MH_GetDate [09:01:27]Write to MH i2c: F0 00 00 6F 02 60 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: F0 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: F0 09 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: F0 09 00 6F 02 00 68 47 23 67 74 2C AD 66 55 [09:01:27]GetLastDocTimeStamp 1730364814 [09:01:27]current date 1730365288 [09:01:27]FM_GetShiftState [09:01:27]SAM_PROTO_GetShiftState [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 13 01 00 [09:01:27]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0E 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 98 [09:01:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetShiftState done [09:01:27]FM_GetShiftState done [09:01:27]opened in 1730333258 [09:01:27]opened+sec_in_day 1730419658 [09:01:27]quantity*price = 200025 [09:01:27]sum+1 = 200026 [09:01:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 36 31.10.2024 09:01 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72961 ФПД: 273509159795777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T090128&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72961&fm=273509159795777&tin=02508201610067®Number=0000000000091644&sum=200000 [09:01:28]StoreToDocumentArchive [09:01:28]shift 557 fd 72961 [09:01:28]save to /storage/0557/doc_00072961 [09:01:28]save last doc name /storage/0557/doc_00072961 to /storage/kkm_last_doc_name [09:01:28]save OK [09:01:28]Clear old archive folders... [09:01:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:01:28]tlvbuf is 00CE2B90 [09:01:28]SAM_PROTO_ClearQueue [09:01:28]wFMCommunicate request_size=4 [09:01:28]MH_SAM_APDU [09:01:28]CAPDU: 80 09 00 00 [09:01:28]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 03 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [09:01:28]RAPDU: 90 00 [09:01:28]wFMCommunicate OK [09:01:28]SAM_PROTO_ClearQueue done [09:01:28]KKMCreateOFDPacket [09:01:28]OFDProtocolAddRootSTLVToBuf [09:01:28]FM_MakeSignedData [09:01:28]FM_MakeSignedData [09:01:28]SAM_PROTO_SignData [09:01:28]wFMCommunicate request_size=4 [09:01:28]MH_SAM_APDU [09:01:28]CAPDU: 80 0D 01 02 [09:01:28]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 03 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [09:01:28]RAPDU: 90 00 [09:01:28]wFMCommunicate OK [09:01:28]wFMCommunicate request_size=255 [09:01:28]MH_SAM_APDU [09:01:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 47 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 01 1D 01 00 35 04 06 00 [09:01:28]Write to MH i2c: E2 02 01 7F 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 47 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 01 1D 01 00 35 04 06 00 00 00 FF [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [09:01:29]RAPDU: 90 00 [09:01:29]wFMCommunicate OK [09:01:29]wFMCommunicate request_size=11 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 0D 02 02 06 F8 C1 50 4F FC 41 [09:01:29]Write to MH i2c: E2 0E 00 80 02 80 0D 02 02 06 00 F8 C1 50 4F FC 41 00 00 9D [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [09:01:29]RAPDU: 90 00 [09:01:29]wFMCommunicate OK [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 0D 03 02 [09:01:29]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0B 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0B 00 81 02 00 F9 BC DA 6C 26 3B 98 10 90 00 03 [09:01:29]RAPDU: F9 BC DA 6C 26 3B 98 10 90 00 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_SignData done [09:01:29]FM_MakeSignedData done [09:01:29]CreateOFDProtocolMessage [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 11 00 00 [09:01:29]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [09:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:01:29]wFMCommunicate OK [09:01:29]CreateOFDProtocolMessage done [09:01:29]OFDSenderStorePacket 72961 [09:01:29]StoreOFDPacket docnum=72961 [09:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 7A C0 08 01 E6 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 47 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 01 1D 01 00 35 04 06 00 F8 C1 50 4F FC 41 F9 BC DA 6C 26 3B 98 10 [09:01:29]CheckFolder [09:01:29]dirname=/storage/ofd_packets [09:01:29]CheckFolder done [09:01:29]ProducePacketName [09:01:29]name=ofd_packets/00072961 [09:01:29]NVStorageSaveData ofd_packets/00072961 [09:01:29]File name is /storage/ofd_packets/00072961 [09:01:29]Write 302 bytes [09:01:29]NVStorageSaveData done [09:01:29]OFDSenderStorePacket done [09:01:29]KKMCreateOFDPacket done [09:01:29]NVStorageSaveData kkm_last_timestamp [09:01:29]File name is /storage/kkm_last_timestamp [09:01:29]Write 4 bytes [09:01:29]NVStorageSaveData done [09:01:29]ExternCall_PrintAddStr [09:01:29]wPrintStart [09:01:29]Write to MH i2c: 01 00 00 83 02 85 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: 01 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: 01 07 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [09:01:29]RasterBufferAndPrint [09:01:29]line Счет N : (1)952562 [09:01:29]line ИНН: 02508201610067 [09:01:29]line Контрольно-Кассовый Чек [09:01:29]line ПРОДАЖА [09:01:29]line ТРК (МРК, ГНК) : 33 [09:01:29]line Товар: 2710194210 [09:01:29]line ДТ(л)-К-5 [09:01:29]line 26.250 * 76.20 [09:01:29]line = 2000.25 [09:01:29]line НДС 12% НСП 1% [09:01:29]line > о реализуемом товаре [09:01:29]line ОКРУГЛЕНИЕ: -0.25 [09:01:29]line ИТОГО: 2000.00 [09:01:29]line Внесено: 2000.00 [09:01:29]line СДАЧА: 0.00 [09:01:29]line НСП 1% : 17.70 [09:01:29]line НДС 12% : 212.42 [09:01:29]line Наличными: 2000.00 [09:01:29]line Безнал.: 0.00 [09:01:29]line Место: АЗС № 113 "Партнер Нефть" [09:01:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:01:29]line СНО: Общий режим [09:01:29]line Чек 36 31.10.2024 09:01 [09:01:29]line Смена: 557 ФФД: 1.0 [09:01:29]line ЗНМ: 0300000087 [09:01:29]line РНМ: 0000000000091644 [09:01:29]line Версия ККМ: 001 [09:01:29]line ФМ: 0000000000874662 [09:01:29]line ФД: 72961 [09:01:29]line ФПД: 273509159795777 [09:01:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T090128&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72961&fm=273509159795777&tin=02508201610067®Number=0000000000091644&sum=200000 [09:01:29]OFD Sender: Processing packet 72961 [packets to send 279, broken 278] [09:01:29]ProducePacketName [09:01:29]name=ofd_packets/00072961 [09:01:29]OFD Sender: To server: pG, [09:01:29]CommunicateWithHost lk.salyk.kg:30040 [09:01:29]ConnectInit lk.salyk.kg [09:01:29]written 0, free lines is 4095 [09:01:30]Write to MH i2c: 01 00 00 AE 02 B0 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 07 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 CF 0C 92 [09:01:30]RasterBufferAndPrint [09:01:30]line [09:01:30]line [09:01:30]line [09:01:30]line [09:01:30]line [09:01:30]written 0, free lines is 3286 [09:01:30]MH_Cut [09:01:30]Write to MH i2c: D1 01 00 B5 02 01 89 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: D1 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: D1 01 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: D1 01 00 B5 02 00 88 [09:01:30]Write to MH i2c: 01 00 00 B6 02 B8 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]Connected sock=10 [09:01:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 7A C0 08 01 E6 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 47 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 01 1D 01 00 35 04 06 00 F8 C1 50 4F FC 41 F9 BC DA 6C 26 3B 98 10 [09:01:30]*** Cut start [09:01:30]*** Partial cut [09:01:30]*** CUTSNS_PIN = 1 [09:01:30]*** CUTSNS_PIN = 0 [09:01:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FF 4D 47 00 6B 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 01 1D 01 00 F4 03 04 00 1E F2 22 67 B6 04 01 00 00 49 D8 AA 86 D2 1F 73 02 [09:01:30]CommunicateWithHost err = 0 [09:01:30]CheckOFDResponse [09:01:30]1017 (14) - 77093643461234 [09:01:30]1041 (16) - 0000000000874662 [09:01:30]1040 (4) - 72961 [09:01:30]1012 (4) - 31.10.2024 02:57 [09:01:30]1206 (1) - 0 [09:01:30]OFD Sender: Remove packet 72961 [09:01:30]ProducePacketName [09:01:30]name=ofd_packets/00072961 [09:01:30]NVStorageDeleteData [09:01:31]*** Brake cut motor [09:01:31]OFD Sender: No OFD packet to send [09:01:31]Read from MH i2c: 01 [09:01:31]MH_I2C_Read... [09:01:31]*** Stop cut motor [09:01:31]*** Cut end [09:01:31]Read from MH i2c: 01 07 00 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [09:01:31]process_action close_receipt done [09:01:31]requested_data is exist [09:01:31]produce_requested_data [09:01:31]requested_item fm.sn is exist - process it [09:01:31]wFMCommunicate request_size=4 [09:01:31]MH_SAM_APDU [09:01:31]CAPDU: 80 11 00 00 [09:01:31]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [09:01:31]Write i2c OK [09:01:31]MH_I2C_Read... [09:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:31]Read from MH i2c: E2 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 17 00 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 87 [09:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:01:31]wFMCommunicate OK [09:01:31]requested_item fd.num is exist - process it [09:01:31]SAM_PROTO_GetFieldsCounters [09:01:31]wFMCommunicate request_size=4 [09:01:31]MH_SAM_APDU [09:01:31]CAPDU: 80 13 00 00 [09:01:31]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [09:01:31]Write i2c OK [09:01:31]MH_I2C_Read... [09:01:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:31]Read from MH i2c: E2 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 62 00 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 62 00 B8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 01 1D 01 00 0E 04 04 00 2D 02 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 11 [09:01:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 01 1D 01 00 0E 04 04 00 2D 02 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:01:31]wFMCommunicate OK [09:01:31]SAM_PROTO_GetFieldsCounters done [09:01:31]requested_item shift.num is exist - process it [09:01:31]requested_item shift.opened is exist - process it [09:01:31]req_shift_opened [09:01:31]FM_GetShiftState [09:01:31]SAM_PROTO_GetShiftState [09:01:31]wFMCommunicate request_size=4 [09:01:31]MH_SAM_APDU [09:01:31]CAPDU: 80 13 01 00 [09:01:31]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [09:01:31]Write i2c OK [09:01:31]MH_I2C_Read... [09:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:31]Read from MH i2c: E2 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 0E 00 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E1 [09:01:31]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:01:31]wFMCommunicate OK [09:01:31]SAM_PROTO_GetShiftState done [09:01:31]FM_GetShiftState done [09:01:31]req_shift_opened done [09:01:31]requested_item shift.open_date is exist - process it [09:01:31]req_shift_open_date [09:01:31]req_shift_open_date done [09:01:31]produce_requested_data done [09:01:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72961,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:01:31]process_action_free close_receipt [09:01:31]json_value_free [09:01:31]json_value_free done [09:01:31]process_json_proto returns [09:01:31]Send response to host [09:01:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72961,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:01:31]free response buf [09:01:31]execute_script done [09:01:31]execute_script returns [09:01:31]free content buf [09:01:31]Sock 8.Close socket [09:01:31]Sock 8.Thread stoped [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:15]recv_with_timeout no data received [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:32]recv_with_timeout no data received [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:48]recv_with_timeout no data received [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:38]recv_with_timeout no data received [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:49]recv_with_timeout no data received [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:50]recv_with_timeout no data received [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:14]recv_with_timeout no data received [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:24]recv_with_timeout no data received [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:39]accept exits with 9 [09:05:39]New connection [09:05:39]New thread 3067485540 created [09:05:39]Thread 3067628900 joined [09:05:39]Waiting for new connection... [09:05:39] Sock 9.Parse request [09:05:39]Sock 9.Check first char [09:05:39]Sock 9.First char is OK [09:05:39]request: POST /json_proto HTTP/1.0 [09:05:39]Method: POST [09:05:39]URL: /json_proto [09:05:39]Method is POST - this is cgi request [09:05:39]url: /json_proto [09:05:39]query_string will be loaded in cgi processing [09:05:39]execute_cgi json_proto POST (null) [09:05:39]execute_cgi path=json_proto method=POST [09:05:39]POST find Content-Length [09:05:39]Host: 172.17.43.195:8080 [09:05:39]Content-Length: 800 [09:05:39]Content-Type: application/json [09:05:39] [09:05:39]POST finish read [09:05:39]Found Content-Length = 800 [09:05:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:39]execute_script... [09:05:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:39]POST & json_proto [09:05:39]process_json_proto [09:05:39]json parsed OK: [09:05:39]protocol is kg_v1.0 [09:05:39]action value=close_receipt [09:05:39]process_action close_receipt [09:05:39]cmd_close_receipt [09:05:39]MH_GetDate [09:05:39]Write to MH i2c: F0 00 00 BA 02 AB [09:05:39]Write i2c OK [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: F0 [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: F0 09 00 [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: F0 09 00 BA 02 00 64 48 23 67 74 2C AD 66 9D [09:05:39]GetLastDocTimeStamp 1730365288 [09:05:39]current date 1730365540 [09:05:39]FM_GetShiftState [09:05:39]SAM_PROTO_GetShiftState [09:05:39]wFMCommunicate request_size=4 [09:05:39]MH_SAM_APDU [09:05:39]CAPDU: 80 13 01 00 [09:05:39]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [09:05:39]Write i2c OK [09:05:39]MH_I2C_Read... [09:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:39]Read from MH i2c: E2 [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: E2 0E 00 [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E3 [09:05:39]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:05:39]wFMCommunicate OK [09:05:39]SAM_PROTO_GetShiftState done [09:05:39]FM_GetShiftState done [09:05:39]opened in 1730333258 [09:05:39]opened+sec_in_day 1730419658 [09:05:39]quantity*price = 40006 [09:05:39]sum+1 = 40007 [09:05:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 37 31.10.2024 09:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72962 ФПД: 239244234313772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T090540&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72962&fm=239244234313772&tin=02508201610067®Number=0000000000091644&sum=40006 [09:05:40]StoreToDocumentArchive [09:05:40]shift 557 fd 72962 [09:05:40]save to /storage/0557/doc_00072962 [09:05:40]save last doc name /storage/0557/doc_00072962 to /storage/kkm_last_doc_name [09:05:40]save OK [09:05:40]Clear old archive folders... [09:05:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:40]tlvbuf is 00CE1220 [09:05:40]SAM_PROTO_ClearQueue [09:05:40]wFMCommunicate request_size=4 [09:05:40]MH_SAM_APDU [09:05:40]CAPDU: 80 09 00 00 [09:05:40]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [09:05:40]Write i2c OK [09:05:40]MH_I2C_Read... [09:05:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:40]Read from MH i2c: E2 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 03 00 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [09:05:40]RAPDU: 90 00 [09:05:40]wFMCommunicate OK [09:05:40]SAM_PROTO_ClearQueue done [09:05:40]KKMCreateOFDPacket [09:05:40]OFDProtocolAddRootSTLVToBuf [09:05:40]FM_MakeSignedData [09:05:40]FM_MakeSignedData [09:05:40]SAM_PROTO_SignData [09:05:40]wFMCommunicate request_size=4 [09:05:40]MH_SAM_APDU [09:05:40]CAPDU: 80 0D 01 02 [09:05:40]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [09:05:40]Write i2c OK [09:05:40]MH_I2C_Read... [09:05:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:40]Read from MH i2c: E2 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 03 00 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [09:05:40]RAPDU: 90 00 [09:05:40]wFMCommunicate OK [09:05:40]wFMCommunicate request_size=255 [09:05:40]MH_SAM_APDU [09:05:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 64 48 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 02 1D 01 00 35 04 06 00 D9 [09:05:40]Write to MH i2c: E2 02 01 CA 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 64 48 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 02 1D 01 00 35 04 06 00 D9 00 00 31 [09:05:40]Write i2c OK [09:05:40]MH_I2C_Read... [09:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:41]Read from MH i2c: E2 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 03 00 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [09:05:41]RAPDU: 90 00 [09:05:41]wFMCommunicate OK [09:05:41]wFMCommunicate request_size=10 [09:05:41]MH_SAM_APDU [09:05:41]CAPDU: 80 0D 02 02 05 97 63 99 D0 2C [09:05:41]Write to MH i2c: E2 0D 00 CB 02 80 0D 02 02 05 00 97 63 99 D0 2C 00 00 E0 [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:41]Read from MH i2c: E2 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 03 00 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [09:05:41]RAPDU: 90 00 [09:05:41]wFMCommunicate OK [09:05:41]wFMCommunicate request_size=4 [09:05:41]MH_SAM_APDU [09:05:41]CAPDU: 80 0D 03 02 [09:05:41]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:41]Read from MH i2c: E2 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 0B 00 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 0B 00 CC 02 00 70 0A A9 49 9C 36 65 89 90 00 76 [09:05:41]RAPDU: 70 0A A9 49 9C 36 65 89 90 00 [09:05:41]wFMCommunicate OK [09:05:41]SAM_PROTO_SignData done [09:05:41]FM_MakeSignedData done [09:05:41]CreateOFDProtocolMessage [09:05:41]wFMCommunicate request_size=4 [09:05:41]MH_SAM_APDU [09:05:41]CAPDU: 80 11 00 00 [09:05:41]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:41]Read from MH i2c: E2 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 17 00 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9D [09:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:05:41]wFMCommunicate OK [09:05:41]CreateOFDProtocolMessage done [09:05:41]OFDSenderStorePacket 72962 [09:05:41]StoreOFDPacket docnum=72962 [09:05:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 52 C7 07 01 1E 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 64 48 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 02 1D 01 00 35 04 06 00 D9 97 63 99 D0 2C 70 0A A9 49 9C 36 65 89 [09:05:41]CheckFolder [09:05:41]dirname=/storage/ofd_packets [09:05:41]CheckFolder done [09:05:41]ProducePacketName [09:05:41]name=ofd_packets/00072962 [09:05:41]NVStorageSaveData ofd_packets/00072962 [09:05:41]File name is /storage/ofd_packets/00072962 [09:05:41]Write 301 bytes [09:05:41]NVStorageSaveData done [09:05:41]OFDSenderStorePacket done [09:05:41]KKMCreateOFDPacket done [09:05:41]NVStorageSaveData kkm_last_timestamp [09:05:41]File name is /storage/kkm_last_timestamp [09:05:41]Write 4 bytes [09:05:41]NVStorageSaveData done [09:05:41]ExternCall_PrintAddStr [09:05:41]wPrintStart [09:05:41]Write to MH i2c: 01 00 00 CE 02 D0 [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: 01 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: 01 07 00 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [09:05:41]RasterBufferAndPrint [09:05:41]line Счет N : (1)952563 [09:05:41]line ИНН: 02508201610067 [09:05:41]line Контрольно-Кассовый Чек [09:05:41]line ПРОДАЖА [09:05:41]line ТРК (МРК, ГНК) : 53 [09:05:41]line Товар: 2710124130 [09:05:41]line Аи-92-К-5 [09:05:41]line 5.980 * 66.90 [09:05:41]line = 400.06 [09:05:41]line НДС 12% НСП 1% [09:05:41]line > о реализуемом товаре [09:05:41]line ИТОГО: 400.06 [09:05:41]line НСП 1% : 3.54 [09:05:41]line НДС 12% : 42.48 [09:05:41]line Наличными: 0.00 [09:05:41]line Безнал.: 400.06 [09:05:41]line Место: АЗС № 113 "Партнер Нефть" [09:05:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:05:41]line СНО: Общий режим [09:05:41]line Чек 37 31.10.2024 09:05 [09:05:41]line Смена: 557 ФФД: 1.0 [09:05:41]line ЗНМ: 0300000087 [09:05:41]line РНМ: 0000000000091644 [09:05:41]line Версия ККМ: 001 [09:05:41]line Платежная система: O! деньги [09:05:41]line ФМ: 0000000000874662 [09:05:41]line ФД: 72962 [09:05:41]line ФПД: 239244234313772 [09:05:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T090540&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72962&fm=239244234313772&tin=02508201610067®Number=0000000000091644&sum=40006 [09:05:41]written 0, free lines is 4095 [09:05:41]OFD Sender: Processing packet 72962 [packets to send 279, broken 278] [09:05:41]ProducePacketName [09:05:41]name=ofd_packets/00072962 [09:05:41]OFD Sender: To server: pG, [09:05:41]CommunicateWithHost lk.salyk.kg:30040 [09:05:41]ConnectInit lk.salyk.kg [09:05:41]Write to MH i2c: 01 00 00 F8 02 FA [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: 01 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: 01 07 00 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 E6 0C F3 [09:05:41]RasterBufferAndPrint [09:05:41]line [09:05:41]line [09:05:41]line [09:05:41]line [09:05:41]line [09:05:41]written 0, free lines is 3308 [09:05:41]MH_Cut [09:05:41]Write to MH i2c: D1 01 00 FF 02 01 D3 [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: D1 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: D1 01 00 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: D1 01 00 FF 02 00 D2 [09:05:41]Write to MH i2c: 01 00 00 00 03 03 [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:42]Connected sock=10 [09:05:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 52 C7 07 01 1E 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 64 48 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 02 1D 01 00 35 04 06 00 D9 97 63 99 D0 2C 70 0A A9 49 9C 36 65 89 [09:05:42]*** Cut start [09:05:42]*** Partial cut [09:05:42]*** CUTSNS_PIN = 1 [09:05:42]*** CUTSNS_PIN = 0 [09:05:42]*** Brake cut motor [09:05:43]Read from MH i2c: 01 [09:05:43]MH_I2C_Read... [09:05:43]*** Stop cut motor [09:05:43]*** Cut end [09:05:43]Read from MH i2c: 01 07 00 [09:05:43]MH_I2C_Read... [09:05:43]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 FF 0F 18 [09:05:43]process_action close_receipt done [09:05:43]requested_data is exist [09:05:43]produce_requested_data [09:05:43]requested_item fm.sn is exist - process it [09:05:43]wFMCommunicate request_size=4 [09:05:43]MH_SAM_APDU [09:05:43]CAPDU: 80 11 00 00 [09:05:43]Write to MH i2c: E2 08 00 01 03 80 11 00 00 00 00 00 00 7E [09:05:43]Write i2c OK [09:05:43]MH_I2C_Read... [09:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 41 42 47 00 A5 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 02 1D 01 00 F4 03 04 00 1B F3 22 67 B6 04 01 00 00 B8 E5 38 AD 74 35 7E 59 [09:05:43]CommunicateWithHost err = 0 [09:05:43]CheckOFDResponse [09:05:43]1017 (14) - 77093643461234 [09:05:43]1041 (16) - 0000000000874662 [09:05:43]1040 (4) - 72962 [09:05:43]1012 (4) - 31.10.2024 03:01 [09:05:43]1206 (1) - 0 [09:05:43]OFD Sender: Remove packet 72962 [09:05:43]ProducePacketName [09:05:43]name=ofd_packets/00072962 [09:05:43]NVStorageDeleteData [09:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:43]Read from MH i2c: E2 [09:05:43]MH_I2C_Read... [09:05:43]Read from MH i2c: E2 17 00 [09:05:43]MH_I2C_Read... [09:05:43]Read from MH i2c: E2 17 00 01 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D2 [09:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:05:43]wFMCommunicate OK [09:05:43]requested_item fd.num is exist - process it [09:05:43]SAM_PROTO_GetFieldsCounters [09:05:43]wFMCommunicate request_size=4 [09:05:43]MH_SAM_APDU [09:05:43]CAPDU: 80 13 00 00 [09:05:43]Write to MH i2c: E2 08 00 02 03 80 13 00 00 00 00 00 00 81 [09:05:43]Write i2c OK [09:05:43]MH_I2C_Read... [09:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:43]Read from MH i2c: E2 [09:05:43]MH_I2C_Read... [09:05:43]Read from MH i2c: E2 62 00 [09:05:43]MH_I2C_Read... [09:05:43]Read from MH i2c: E2 62 00 02 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 02 1D 01 00 0E 04 04 00 2D 02 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 60 [09:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 02 1D 01 00 0E 04 04 00 2D 02 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:05:43]wFMCommunicate OK [09:05:43]SAM_PROTO_GetFieldsCounters done [09:05:43]requested_item shift.num is exist - process it [09:05:43]requested_item shift.opened is exist - process it [09:05:43]req_shift_opened [09:05:43]FM_GetShiftState [09:05:43]SAM_PROTO_GetShiftState [09:05:43]wFMCommunicate request_size=4 [09:05:43]MH_SAM_APDU [09:05:43]CAPDU: 80 13 01 00 [09:05:43]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [09:05:43]Write i2c OK [09:05:43]MH_I2C_Read... [09:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:43]Read from MH i2c: E2 [09:05:43]MH_I2C_Read... [09:05:43]Read from MH i2c: E2 0E 00 [09:05:43]MH_I2C_Read... [09:05:43]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2C [09:05:43]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:05:43]wFMCommunicate OK [09:05:43]SAM_PROTO_GetShiftState done [09:05:43]FM_GetShiftState done [09:05:43]req_shift_opened done [09:05:43]requested_item shift.open_date is exist - process it [09:05:43]req_shift_open_date [09:05:43]req_shift_open_date done [09:05:43]produce_requested_data done [09:05:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72962,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:05:43]process_action_free close_receipt [09:05:43]json_value_free [09:05:43]json_value_free done [09:05:43]process_json_proto returns [09:05:43]Send response to host [09:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72962,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:05:43]free response buf [09:05:43]execute_script done [09:05:43]execute_script returns [09:05:43]free content buf [09:05:43]Sock 9.Close socket [09:05:43]Sock 9.Thread stoped [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:46]recv_with_timeout no data received [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:10]recv_with_timeout no data received [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:36]recv_with_timeout no data received [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:15]recv_with_timeout no data received [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:30]accept exits with 8 [09:08:30]New connection [09:08:30]New thread 3067628900 created [09:08:30]Thread 3067485540 joined [09:08:30]Waiting for new connection... [09:08:30] Sock 8.Parse request [09:08:30]Sock 8.Check first char [09:08:30]Sock 8.First char is OK [09:08:30]request: POST /json_proto HTTP/1.0 [09:08:30]Method: POST [09:08:30]URL: /json_proto [09:08:30]Method is POST - this is cgi request [09:08:30]url: /json_proto [09:08:30]query_string will be loaded in cgi processing [09:08:30]execute_cgi json_proto POST (null) [09:08:30]execute_cgi path=json_proto method=POST [09:08:30]POST find Content-Length [09:08:30]Host: 172.17.43.195:8080 [09:08:30]Content-Length: 685 [09:08:30]Content-Type: application/json [09:08:30] [09:08:30]POST finish read [09:08:30]Found Content-Length = 685 [09:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:30]execute_script... [09:08:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:30]POST & json_proto [09:08:30]process_json_proto [09:08:30]json parsed OK: [09:08:30]protocol is kg_v1.0 [09:08:30]action value=close_receipt [09:08:30]process_action close_receipt [09:08:30]cmd_close_receipt [09:08:30]MH_GetDate [09:08:30]Write to MH i2c: F0 00 00 04 03 F6 [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: F0 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: F0 09 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: F0 09 00 04 03 00 0F 49 23 67 74 2C AD 66 94 [09:08:30]GetLastDocTimeStamp 1730365540 [09:08:30]current date 1730365711 [09:08:30]FM_GetShiftState [09:08:30]SAM_PROTO_GetShiftState [09:08:30]wFMCommunicate request_size=4 [09:08:30]MH_SAM_APDU [09:08:30]CAPDU: 80 13 01 00 [09:08:30]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:30]Read from MH i2c: E2 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 0E 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2E [09:08:30]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:08:30]wFMCommunicate OK [09:08:30]SAM_PROTO_GetShiftState done [09:08:30]FM_GetShiftState done [09:08:30]opened in 1730333258 [09:08:30]opened+sec_in_day 1730419658 [09:08:30]quantity*price = 120006 [09:08:30]sum+1 = 120008 [09:08:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 38 31.10.2024 09:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72963 ФПД: 140519431469480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T090831&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72963&fm=140519431469480&tin=02508201610067®Number=0000000000091644&sum=120000 [09:08:32]StoreToDocumentArchive [09:08:32]shift 557 fd 72963 [09:08:32]save to /storage/0557/doc_00072963 [09:08:32]save last doc name /storage/0557/doc_00072963 to /storage/kkm_last_doc_name [09:08:32]save OK [09:08:32]Clear old archive folders... [09:08:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:08:32]tlvbuf is 00CE1B30 [09:08:32]SAM_PROTO_ClearQueue [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 09 00 00 [09:08:32]Write to MH i2c: E2 08 00 12 03 80 09 00 00 00 00 00 00 87 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 03 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [09:08:32]RAPDU: 90 00 [09:08:32]wFMCommunicate OK [09:08:32]SAM_PROTO_ClearQueue done [09:08:32]KKMCreateOFDPacket [09:08:32]OFDProtocolAddRootSTLVToBuf [09:08:32]FM_MakeSignedData [09:08:32]FM_MakeSignedData [09:08:32]SAM_PROTO_SignData [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 0D 01 02 [09:08:32]Write to MH i2c: E2 08 00 13 03 80 0D 01 02 00 00 00 00 8F [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 03 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [09:08:32]RAPDU: 90 00 [09:08:32]wFMCommunicate OK [09:08:32]wFMCommunicate request_size=255 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0F 49 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 03 1D 01 00 35 04 06 00 7F CD [09:08:32]Write to MH i2c: E2 02 01 14 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0F 49 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 03 1D 01 00 35 04 06 00 7F CD 00 00 06 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 03 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [09:08:32]RAPDU: 90 00 [09:08:32]wFMCommunicate OK [09:08:32]wFMCommunicate request_size=9 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 0D 02 02 04 3A CB F9 A8 [09:08:32]Write to MH i2c: E2 0C 00 15 03 80 0D 02 02 04 00 3A CB F9 A8 00 00 40 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 03 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [09:08:32]RAPDU: 90 00 [09:08:32]wFMCommunicate OK [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 0D 03 02 [09:08:32]Write to MH i2c: E2 08 00 16 03 80 0D 03 02 00 00 00 00 94 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 0B 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 0B 00 16 03 00 D8 1D F5 6D CF 31 23 5A 90 00 69 [09:08:32]RAPDU: D8 1D F5 6D CF 31 23 5A 90 00 [09:08:32]wFMCommunicate OK [09:08:32]SAM_PROTO_SignData done [09:08:32]FM_MakeSignedData done [09:08:32]CreateOFDProtocolMessage [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 11 00 00 [09:08:32]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 17 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E8 [09:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:08:32]wFMCommunicate OK [09:08:32]CreateOFDProtocolMessage done [09:08:32]OFDSenderStorePacket 72963 [09:08:32]StoreOFDPacket docnum=72963 [09:08:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 E7 67 06 01 AD 76 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0F 49 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 03 1D 01 00 35 04 06 00 7F CD 3A CB F9 A8 D8 1D F5 6D CF 31 23 5A [09:08:32]CheckFolder [09:08:32]dirname=/storage/ofd_packets [09:08:32]CheckFolder done [09:08:32]ProducePacketName [09:08:32]name=ofd_packets/00072963 [09:08:32]NVStorageSaveData ofd_packets/00072963 [09:08:32]File name is /storage/ofd_packets/00072963 [09:08:32]Write 300 bytes [09:08:32]NVStorageSaveData done [09:08:32]OFDSenderStorePacket done [09:08:32]KKMCreateOFDPacket done [09:08:32]NVStorageSaveData kkm_last_timestamp [09:08:32]File name is /storage/kkm_last_timestamp [09:08:32]Write 4 bytes [09:08:32]NVStorageSaveData done [09:08:32]ExternCall_PrintAddStr [09:08:32]wPrintStart [09:08:32]Write to MH i2c: 01 00 00 18 03 1B [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: 01 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: 01 07 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [09:08:32]RasterBufferAndPrint [09:08:32]line Счет N : (1)952564 [09:08:32]line ИНН: 02508201610067 [09:08:32]line Контрольно-Кассовый Чек [09:08:32]line ПРОДАЖА [09:08:32]line ТРК (МРК, ГНК) : 71 [09:08:32]line Товар: 2711190000 [09:08:32]line ГАЗ-К-3 [09:08:32]line 30.850 * 38.90 [09:08:32]line = 1200.07 [09:08:32]line НДС 12% НСП 1% [09:08:32]line > о реализуемом товаре [09:08:32]line ОКРУГЛЕНИЕ: -0.07 [09:08:32]line ИТОГО: 1200.00 [09:08:32]line Внесено: 1200.00 [09:08:32]line СДАЧА: 0.00 [09:08:32]line НСП 1% : 10.62 [09:08:32]line НДС 12% : 127.44 [09:08:32]line Наличными: 1200.00 [09:08:32]line Безнал.: 0.00 [09:08:32]line Место: АЗС № 113 "Партнер Нефть" [09:08:32]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:08:32]line СНО: Общий режим [09:08:32]line Чек 38 31.10.2024 09:08 [09:08:32]line Смена: 557 ФФД: 1.0 [09:08:32]line ЗНМ: 0300000087 [09:08:32]line РНМ: 0000000000091644 [09:08:32]line Версия ККМ: 001 [09:08:32]line ФМ: 0000000000874662 [09:08:32]line ФД: 72963 [09:08:32]line ФПД: 140519431469480 [09:08:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T090831&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72963&fm=140519431469480&tin=02508201610067®Number=0000000000091644&sum=120000 [09:08:32]written 0, free lines is 4095 [09:08:32]OFD Sender: Processing packet 72963 [packets to send 279, broken 278] [09:08:32]ProducePacketName [09:08:32]name=ofd_packets/00072963 [09:08:32]OFD Sender: To server: pG, [09:08:32]CommunicateWithHost lk.salyk.kg:30040 [09:08:32]ConnectInit lk.salyk.kg [09:08:33]Write to MH i2c: 01 00 00 43 03 46 [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: 01 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: 01 07 00 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 D8 0C 31 [09:08:33]RasterBufferAndPrint [09:08:33]line [09:08:33]line [09:08:33]line [09:08:33]line [09:08:33]line [09:08:33]written 0, free lines is 3295 [09:08:33]MH_Cut [09:08:33]Write to MH i2c: D1 01 00 4A 03 01 1F [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: D1 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: D1 01 00 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: D1 01 00 4A 03 00 1E [09:08:33]Write to MH i2c: 01 00 00 4B 03 4E [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:33]*** Cut start [09:08:33]*** Partial cut [09:08:33]*** CUTSNS_PIN = 1 [09:08:33]*** CUTSNS_PIN = 0 [09:08:34]*** Brake cut motor [09:08:34]recv_with_timeout no data received [09:08:34]Read from MH i2c: 01 [09:08:34]MH_I2C_Read... [09:08:34]*** Stop cut motor [09:08:34]*** Cut end [09:08:34]Read from MH i2c: 01 07 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [09:08:34]process_action close_receipt done [09:08:34]requested_data is exist [09:08:34]produce_requested_data [09:08:34]requested_item fm.sn is exist - process it [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 11 00 00 [09:08:34]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 17 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1D [09:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:08:34]wFMCommunicate OK [09:08:34]requested_item fd.num is exist - process it [09:08:34]SAM_PROTO_GetFieldsCounters [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 13 00 00 [09:08:34]Write to MH i2c: E2 08 00 4D 03 80 13 00 00 00 00 00 00 CC [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 62 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 62 00 4D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 03 1D 01 00 0E 04 04 00 2D 02 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 AF [09:08:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 03 1D 01 00 0E 04 04 00 2D 02 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:08:34]wFMCommunicate OK [09:08:34]SAM_PROTO_GetFieldsCounters done [09:08:34]requested_item shift.num is exist - process it [09:08:34]requested_item shift.opened is exist - process it [09:08:34]req_shift_opened [09:08:34]FM_GetShiftState [09:08:34]SAM_PROTO_GetShiftState [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 13 01 00 [09:08:34]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0E 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 77 [09:08:34]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:08:34]wFMCommunicate OK [09:08:34]SAM_PROTO_GetShiftState done [09:08:34]FM_GetShiftState done [09:08:34]req_shift_opened done [09:08:34]requested_item shift.open_date is exist - process it [09:08:34]req_shift_open_date [09:08:34]req_shift_open_date done [09:08:34]produce_requested_data done [09:08:34]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72963,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:08:34]process_action_free close_receipt [09:08:34]json_value_free [09:08:34]json_value_free done [09:08:34]process_json_proto returns [09:08:34]Send response to host [09:08:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72963,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:08:34]free response buf [09:08:34]execute_script done [09:08:34]execute_script returns [09:08:34]free content buf [09:08:34]Sock 8.Close socket [09:08:34]Sock 8.Thread stoped [09:08:42]Connected sock=11 [09:08:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 E7 67 06 01 AD 76 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0F 49 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 03 1D 01 00 35 04 06 00 7F CD 3A CB F9 A8 D8 1D F5 6D CF 31 23 5A [09:08:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 27 CC 47 00 CC 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 03 1D 01 00 F4 03 04 00 CF F3 22 67 B6 04 01 00 00 28 98 B0 1D 03 87 86 09 [09:08:43]CommunicateWithHost err = 0 [09:08:43]CheckOFDResponse [09:08:43]1017 (14) - 77093643461234 [09:08:43]1041 (16) - 0000000000874662 [09:08:43]1040 (4) - 72963 [09:08:43]1012 (4) - 31.10.2024 03:04 [09:08:43]1206 (1) - 0 [09:08:43]OFD Sender: Remove packet 72963 [09:08:43]ProducePacketName [09:08:43]name=ofd_packets/00072963 [09:08:43]NVStorageDeleteData [09:08:43]OFD Sender: No OFD packet to send [09:08:48]recv_with_timeout no data received [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]recv_with_timeout no data received [09:09:28]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:54]recv_with_timeout no data received [09:09:57]accept exits with 10 [09:09:57]New connection [09:09:57]New thread 3067485540 created [09:09:57]Thread 3067628900 joined [09:09:57]Waiting for new connection... [09:09:57] Sock 10.Parse request [09:09:57]Sock 10.Check first char [09:09:57]Sock 10.First char is OK [09:09:57]request: POST /json_proto HTTP/1.0 [09:09:57]Method: POST [09:09:57]URL: /json_proto [09:09:57]Method is POST - this is cgi request [09:09:57]url: /json_proto [09:09:57]query_string will be loaded in cgi processing [09:09:57]execute_cgi json_proto POST (null) [09:09:57]execute_cgi path=json_proto method=POST [09:09:57]POST find Content-Length [09:09:57]Host: 172.17.43.195:8080 [09:09:57]Content-Length: 791 [09:09:57]Content-Type: application/json [09:09:57] [09:09:57]POST finish read [09:09:57]Found Content-Length = 791 [09:09:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 4.490, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:57]execute_script... [09:09: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)952565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 4.490, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:57]POST & json_proto [09:09:57]process_json_proto [09:09:57]json parsed OK: [09:09:57]protocol is kg_v1.0 [09:09:57]action value=close_receipt [09:09:57]process_action close_receipt [09:09:57]cmd_close_receipt [09:09:57]MH_GetDate [09:09:57]Write to MH i2c: F0 00 00 4F 03 41 [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: F0 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: F0 09 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: F0 09 00 4F 03 00 65 49 23 67 74 2C AD 66 35 [09:09:57]GetLastDocTimeStamp 1730365711 [09:09:57]current date 1730365797 [09:09:57]FM_GetShiftState [09:09:57]SAM_PROTO_GetShiftState [09:09:57]wFMCommunicate request_size=4 [09:09:57]MH_SAM_APDU [09:09:57]CAPDU: 80 13 01 00 [09:09:57]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:57]Read from MH i2c: E2 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 0E 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 79 [09:09:57]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:09:57]wFMCommunicate OK [09:09:57]SAM_PROTO_GetShiftState done [09:09:57]FM_GetShiftState done [09:09:57]opened in 1730333258 [09:09:57]opened+sec_in_day 1730419658 [09:09:57]quantity*price = 0 [09:09:57]sum+1 = 1 [09:09:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 39 31.10.2024 09:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72964 ФПД: 260455391660909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T090957&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72964&fm=260455391660909&tin=02508201610067®Number=0000000000091644&sum=0 [09:09:58]StoreToDocumentArchive [09:09:58]shift 557 fd 72964 [09:09:58]save to /storage/0557/doc_00072964 [09:09:58]save last doc name /storage/0557/doc_00072964 to /storage/kkm_last_doc_name [09:09:58]save OK [09:09:58]Clear old archive folders... [09:09:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:58]tlvbuf is 00CE3460 [09:09:58]SAM_PROTO_ClearQueue [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 09 00 00 [09:09:58]Write to MH i2c: E2 08 00 5D 03 80 09 00 00 00 00 00 00 D2 [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [09:09:58]RAPDU: 90 00 [09:09:58]wFMCommunicate OK [09:09:58]SAM_PROTO_ClearQueue done [09:09:58]KKMCreateOFDPacket [09:09:58]OFDProtocolAddRootSTLVToBuf [09:09:58]FM_MakeSignedData [09:09:58]FM_MakeSignedData [09:09:58]SAM_PROTO_SignData [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 0D 01 02 [09:09:58]Write to MH i2c: E2 08 00 5E 03 80 0D 01 02 00 00 00 00 DA [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [09:09:58]RAPDU: 90 00 [09:09:58]wFMCommunicate OK [09:09:58]wFMCommunicate request_size=255 [09:09:58]MH_SAM_APDU [09:09: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 8A 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 65 49 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 04 1D 01 00 35 04 06 00 EC [09:09:58]Write to MH i2c: E2 02 01 5F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 65 49 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 04 1D 01 00 35 04 06 00 EC 00 00 1B [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [09:09:58]RAPDU: 90 00 [09:09:58]wFMCommunicate OK [09:09:58]wFMCommunicate request_size=10 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 0D 02 02 05 E1 FF 19 8B 6D [09:09:58]Write to MH i2c: E2 0D 00 60 03 80 0D 02 02 05 00 E1 FF 19 8B 6D 00 00 D8 [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [09:09:58]RAPDU: 90 00 [09:09:58]wFMCommunicate OK [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 0D 03 02 [09:09:58]Write to MH i2c: E2 08 00 61 03 80 0D 03 02 00 00 00 00 DF [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 0B 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 0B 00 61 03 00 6D E0 62 36 E1 23 43 47 90 00 53 [09:09:58]RAPDU: 6D E0 62 36 E1 23 43 47 90 00 [09:09:58]wFMCommunicate OK [09:09:58]SAM_PROTO_SignData done [09:09:58]FM_MakeSignedData done [09:09:58]CreateOFDProtocolMessage [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 11 00 00 [09:09:58]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 17 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [09:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:09:58]wFMCommunicate OK [09:09:58]CreateOFDProtocolMessage done [09:09:58]OFDSenderStorePacket 72964 [09:09:58]StoreOFDPacket docnum=72964 [09:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 79 07 01 8B DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 65 49 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 04 1D 01 00 35 04 06 00 EC E1 FF 19 8B 6D 6D E0 62 36 E1 23 43 47 [09:09:58]CheckFolder [09:09:58]dirname=/storage/ofd_packets [09:09:58]CheckFolder done [09:09:58]ProducePacketName [09:09:58]name=ofd_packets/00072964 [09:09:58]NVStorageSaveData ofd_packets/00072964 [09:09:58]File name is /storage/ofd_packets/00072964 [09:09:58]Write 301 bytes [09:09:58]NVStorageSaveData done [09:09:58]OFDSenderStorePacket done [09:09:58]KKMCreateOFDPacket done [09:09:58]NVStorageSaveData kkm_last_timestamp [09:09:58]File name is /storage/kkm_last_timestamp [09:09:58]Write 4 bytes [09:09:58]NVStorageSaveData done [09:09:58]ExternCall_PrintAddStr [09:09:58]wPrintStart [09:09:58]Write to MH i2c: 01 00 00 63 03 66 [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 07 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 07 00 63 03 00 00 00 00 00 FF 0F 7B [09:09:58]RasterBufferAndPrint [09:09:58]line Счет N : (1)952565 [09:09:58]line ИНН: 02508201610067 [09:09:58]line Контрольно-Кассовый Чек [09:09:58]line ПРОДАЖА [09:09:58]line ТРК (МРК, ГНК) : 63 [09:09:58]line Товар: 2710124130 [09:09:58]line Аи-92-К-5 [09:09:58]line 4.490 * 0.00 [09:09:58]line = 0.00 [09:09:58]line НДС 12% НСП 1% [09:09:58]line > о реализуемом товаре [09:09:58]line ИТОГО: 0.00 [09:09:58]line НСП 1% : 0.00 [09:09:58]line НДС 12% : 0.00 [09:09:58]line Наличными: 0.00 [09:09:58]line Безнал.: 0.00 [09:09:58]line Место: АЗС № 113 "Партнер Нефть" [09:09:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:09:58]line СНО: Общий режим [09:09:58]line Чек 39 31.10.2024 09:09 [09:09:58]line Смена: 557 ФФД: 1.0 [09:09:58]line ЗНМ: 0300000087 [09:09:58]line РНМ: 0000000000091644 [09:09:58]line Версия ККМ: 001 [09:09:58]line Талоны: Топливная Карта [09:09:58]line 03047 [09:09:58]line ФМ: 0000000000874662 [09:09:58]line ФД: 72964 [09:09:58]line ФПД: 260455391660909 [09:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T090957&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72964&fm=260455391660909&tin=02508201610067®Number=0000000000091644&sum=0 [09:09:58]written 0, free lines is 4095 [09:09:58]OFD Sender: Processing packet 72964 [packets to send 279, broken 278] [09:09:58]ProducePacketName [09:09:58]name=ofd_packets/00072964 [09:09:58]OFD Sender: To server: pG, [09:09:58]CommunicateWithHost lk.salyk.kg:30040 [09:09:58]ConnectInit lk.salyk.kg [09:09:59]Write to MH i2c: 01 00 00 8D 03 90 [09:09:59]Write i2c OK [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: 01 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: 01 07 00 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 E4 0C 87 [09:09:59]RasterBufferAndPrint [09:09:59]line [09:09:59]line [09:09:59]line [09:09:59]line [09:09:59]line [09:09:59]written 0, free lines is 3306 [09:09:59]MH_Cut [09:09:59]Write to MH i2c: D1 01 00 94 03 01 69 [09:09:59]Write i2c OK [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: D1 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: D1 01 00 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: D1 01 00 94 03 00 68 [09:09:59]Write to MH i2c: 01 00 00 95 03 98 [09:09:59]Write i2c OK [09:09:59]MH_I2C_Read... [09:09:59]*** Cut start [09:09:59]*** Partial cut [09:09:59]*** CUTSNS_PIN = 1 [09:09:59]*** CUTSNS_PIN = 0 [09:10:00]*** Brake cut motor [09:10:00]Read from MH i2c: 01 [09:10:00]MH_I2C_Read... [09:10:00]*** Stop cut motor [09:10:00]*** Cut end [09:10:00]Read from MH i2c: 01 07 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [09:10:00]process_action close_receipt done [09:10:00]requested_data is exist [09:10:00]produce_requested_data [09:10:00]requested_item fm.sn is exist - process it [09:10:00]wFMCommunicate request_size=4 [09:10:00]MH_SAM_APDU [09:10:00]CAPDU: 80 11 00 00 [09:10:00]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:00]Read from MH i2c: E2 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 17 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 67 [09:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:10:00]wFMCommunicate OK [09:10:00]requested_item fd.num is exist - process it [09:10:00]SAM_PROTO_GetFieldsCounters [09:10:00]wFMCommunicate request_size=4 [09:10:00]MH_SAM_APDU [09:10:00]CAPDU: 80 13 00 00 [09:10:00]Write to MH i2c: E2 08 00 97 03 80 13 00 00 00 00 00 00 16 [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:00]Read from MH i2c: E2 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 62 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 62 00 97 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 04 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [09:10:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 04 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:00]wFMCommunicate OK [09:10:00]SAM_PROTO_GetFieldsCounters done [09:10:00]requested_item shift.num is exist - process it [09:10:00]requested_item shift.opened is exist - process it [09:10:00]req_shift_opened [09:10:00]FM_GetShiftState [09:10:00]SAM_PROTO_GetShiftState [09:10:00]wFMCommunicate request_size=4 [09:10:00]MH_SAM_APDU [09:10:00]CAPDU: 80 13 01 00 [09:10:00]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:00]Read from MH i2c: E2 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 0E 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C1 [09:10:00]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:10:00]wFMCommunicate OK [09:10:00]SAM_PROTO_GetShiftState done [09:10:00]FM_GetShiftState done [09:10:00]req_shift_opened done [09:10:00]requested_item shift.open_date is exist - process it [09:10:00]req_shift_open_date [09:10:00]req_shift_open_date done [09:10:00]produce_requested_data done [09:10:00]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72964,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:10:00]process_action_free close_receipt [09:10:00]json_value_free [09:10:00]json_value_free done [09:10:00]process_json_proto returns [09:10:00]Send response to host [09:10:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72964,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:10:00]free response buf [09:10:00]execute_script done [09:10:00]execute_script returns [09:10:00]free content buf [09:10:00]Sock 10.Close socket [09:10:00]Sock 10.Thread stoped [09:10:03]ConnectInit Can't take IP for lk.salyk.kg [09:10:03]CommunicateWithHost connect error [09:10:03]CommunicateWithHost err = -1 [09:10:03]OFD Sender: Server communicate error [09:10:08]OFD Sender: Processing packet 72964 [packets to send 279, broken 278] [09:10:08]ProducePacketName [09:10:08]name=ofd_packets/00072964 [09:10:08]OFD Sender: To server: pG, [09:10:08]CommunicateWithHost lk.salyk.kg:30040 [09:10:08]ConnectInit lk.salyk.kg [09:10:09]Connected sock=9 [09:10:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 79 07 01 8B DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 65 49 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 04 1D 01 00 35 04 06 00 EC E1 FF 19 8B 6D 6D E0 62 36 E1 23 43 47 [09:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2C FD 47 00 0F 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 04 1D 01 00 F4 03 04 00 26 F4 22 67 B6 04 01 00 00 3A 6C 25 DA 45 77 FD 72 [09:10:09]CommunicateWithHost err = 0 [09:10:09]CheckOFDResponse [09:10:09]1017 (14) - 77093643461234 [09:10:09]1041 (16) - 0000000000874662 [09:10:09]1040 (4) - 72964 [09:10:09]1012 (4) - 31.10.2024 03:06 [09:10:09]1206 (1) - 0 [09:10:09]OFD Sender: Remove packet 72964 [09:10:09]ProducePacketName [09:10:09]name=ofd_packets/00072964 [09:10:09]NVStorageDeleteData [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:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:04]recv_with_timeout no data received [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:47]recv_with_timeout no data received [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]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:14]recv_with_timeout no data received [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:27]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:31]recv_with_timeout no data received [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:49]recv_with_timeout no data received [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:37]recv_with_timeout no data received [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:21]recv_with_timeout no data received [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:27]recv_with_timeout no data received [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:40]recv_with_timeout no data received [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:50]accept exits with 8 [09:21:50]New connection [09:21:50]New thread 3067628900 created [09:21:50]Thread 3067485540 joined [09:21:50]Waiting for new connection... [09:21:50] Sock 8.Parse request [09:21:50]Sock 8.Check first char [09:21:50]Sock 8.First char is OK [09:21:50]request: POST /json_proto HTTP/1.0 [09:21:50]Method: POST [09:21:50]URL: /json_proto [09:21:50]Method is POST - this is cgi request [09:21:50]url: /json_proto [09:21:50]query_string will be loaded in cgi processing [09:21:50]execute_cgi json_proto POST (null) [09:21:50]execute_cgi path=json_proto method=POST [09:21:50]POST find Content-Length [09:21:50]Host: 172.17.43.195:8080 [09:21:50]Content-Length: 792 [09:21:50]Content-Type: application/json [09:21:50] [09:21:50]POST finish read [09:21:50]Found Content-Length = 792 [09:21:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:50]execute_script... [09:21:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:50]POST & json_proto [09:21:50]process_json_proto [09:21:50]json parsed OK: [09:21:50]protocol is kg_v1.0 [09:21:50]action value=close_receipt [09:21:50]process_action close_receipt [09:21:50]cmd_close_receipt [09:21:50]MH_GetDate [09:21:50]Write to MH i2c: F0 00 00 99 03 8B [09:21:50]Write i2c OK [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: F0 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: F0 09 00 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: F0 09 00 99 03 00 2F 4C 23 67 74 2C AD 66 4C [09:21:50]GetLastDocTimeStamp 1730365797 [09:21:50]current date 1730366511 [09:21:50]FM_GetShiftState [09:21:50]SAM_PROTO_GetShiftState [09:21:50]wFMCommunicate request_size=4 [09:21:50]MH_SAM_APDU [09:21:50]CAPDU: 80 13 01 00 [09:21:50]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [09:21:50]Write i2c OK [09:21:50]MH_I2C_Read... [09:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:50]Read from MH i2c: E2 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 0E 00 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C3 [09:21:50]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:21:50]wFMCommunicate OK [09:21:50]SAM_PROTO_GetShiftState done [09:21:50]FM_GetShiftState done [09:21:50]opened in 1730333258 [09:21:50]opened+sec_in_day 1730419658 [09:21:50]quantity*price = 0 [09:21:50]sum+1 = 1 [09:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 40 31.10.2024 09:21 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72965 ФПД: 35402988940830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092151&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72965&fm=35402988940830&tin=02508201610067®Number=0000000000091644&sum=0 [09:21:51]StoreToDocumentArchive [09:21:51]shift 557 fd 72965 [09:21:51]save to /storage/0557/doc_00072965 [09:21:51]save last doc name /storage/0557/doc_00072965 to /storage/kkm_last_doc_name [09:21:51]save OK [09:21:51]Clear old archive folders... [09:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:51]tlvbuf is 00D13870 [09:21:51]SAM_PROTO_ClearQueue [09:21:51]wFMCommunicate request_size=4 [09:21:51]MH_SAM_APDU [09:21:51]CAPDU: 80 09 00 00 [09:21:51]Write to MH i2c: E2 08 00 A7 03 80 09 00 00 00 00 00 00 1C [09:21:51]Write i2c OK [09:21:51]MH_I2C_Read... [09:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:51]Read from MH i2c: E2 [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: E2 03 00 [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [09:21:51]RAPDU: 90 00 [09:21:51]wFMCommunicate OK [09:21:51]SAM_PROTO_ClearQueue done [09:21:51]KKMCreateOFDPacket [09:21:51]OFDProtocolAddRootSTLVToBuf [09:21:51]FM_MakeSignedData [09:21:51]FM_MakeSignedData [09:21:51]SAM_PROTO_SignData [09:21:51]wFMCommunicate request_size=4 [09:21:51]MH_SAM_APDU [09:21:51]CAPDU: 80 0D 01 02 [09:21:51]Write to MH i2c: E2 08 00 A8 03 80 0D 01 02 00 00 00 00 24 [09:21:51]Write i2c OK [09:21:51]MH_I2C_Read... [09:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:51]Read from MH i2c: E2 [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: E2 03 00 [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [09:21:51]RAPDU: 90 00 [09:21:51]wFMCommunicate OK [09:21:51]wFMCommunicate request_size=255 [09:21:51]MH_SAM_APDU [09:21: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2F 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 05 1D 01 00 35 04 06 00 20 [09:21:51]Write to MH i2c: E2 02 01 A9 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2F 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 05 1D 01 00 35 04 06 00 20 00 00 3B [09:21:51]Write i2c OK [09:21:51]MH_I2C_Read... [09:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:52]Read from MH i2c: E2 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 03 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [09:21:52]RAPDU: 90 00 [09:21:52]wFMCommunicate OK [09:21:52]wFMCommunicate request_size=10 [09:21:52]MH_SAM_APDU [09:21:52]CAPDU: 80 0D 02 02 05 32 E6 94 6E 1E [09:21:52]Write to MH i2c: E2 0D 00 AA 03 80 0D 02 02 05 00 32 E6 94 6E 1E 00 00 69 [09:21:52]Write i2c OK [09:21:52]MH_I2C_Read... [09:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:52]Read from MH i2c: E2 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 03 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [09:21:52]RAPDU: 90 00 [09:21:52]wFMCommunicate OK [09:21:52]wFMCommunicate request_size=4 [09:21:52]MH_SAM_APDU [09:21:52]CAPDU: 80 0D 03 02 [09:21:52]Write to MH i2c: E2 08 00 AB 03 80 0D 03 02 00 00 00 00 29 [09:21:52]Write i2c OK [09:21:52]MH_I2C_Read... [09:21:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:52]Read from MH i2c: E2 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 0B 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 0B 00 AB 03 00 7E EC FA 13 F4 25 49 36 90 00 39 [09:21:52]RAPDU: 7E EC FA 13 F4 25 49 36 90 00 [09:21:52]wFMCommunicate OK [09:21:52]SAM_PROTO_SignData done [09:21:52]FM_MakeSignedData done [09:21:52]CreateOFDProtocolMessage [09:21:52]wFMCommunicate request_size=4 [09:21:52]MH_SAM_APDU [09:21:52]CAPDU: 80 11 00 00 [09:21:52]Write to MH i2c: E2 08 00 AC 03 80 11 00 00 00 00 00 00 29 [09:21:52]Write i2c OK [09:21:52]MH_I2C_Read... [09:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:52]Read from MH i2c: E2 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 17 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 17 00 AC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [09:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:21:52]wFMCommunicate OK [09:21:52]CreateOFDProtocolMessage done [09:21:52]OFDSenderStorePacket 72965 [09:21:52]StoreOFDPacket docnum=72965 [09:21:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 47 2E 07 01 40 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2F 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 05 1D 01 00 35 04 06 00 20 32 E6 94 6E 1E 7E EC FA 13 F4 25 49 36 [09:21:52]CheckFolder [09:21:52]dirname=/storage/ofd_packets [09:21:52]CheckFolder done [09:21:52]ProducePacketName [09:21:52]name=ofd_packets/00072965 [09:21:52]NVStorageSaveData ofd_packets/00072965 [09:21:52]File name is /storage/ofd_packets/00072965 [09:21:52]Write 301 bytes [09:21:52]NVStorageSaveData done [09:21:52]OFDSenderStorePacket done [09:21:52]KKMCreateOFDPacket done [09:21:52]NVStorageSaveData kkm_last_timestamp [09:21:52]File name is /storage/kkm_last_timestamp [09:21:52]Write 4 bytes [09:21:52]NVStorageSaveData done [09:21:52]OFD Sender: Processing packet 72965 [packets to send 279, broken 278] [09:21:52]ProducePacketName [09:21:52]name=ofd_packets/00072965 [09:21:52]OFD Sender: To server: pG, [09:21:52]CommunicateWithHost lk.salyk.kg:30040 [09:21:52]ConnectInit lk.salyk.kg [09:21:52]ExternCall_PrintAddStr [09:21:52]wPrintStart [09:21:52]Write to MH i2c: 01 00 00 AD 03 B0 [09:21:52]Write i2c OK [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: 01 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: 01 07 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [09:21:52]RasterBufferAndPrint [09:21:52]line Счет N : (1)952567 [09:21:52]line ИНН: 02508201610067 [09:21:52]line Контрольно-Кассовый Чек [09:21:52]line ПРОДАЖА [09:21:52]line ТРК (МРК, ГНК) : 53 [09:21:52]line Товар: 2710124130 [09:21:52]line Аи-92-К-5 [09:21:52]line 20.000 * 0.00 [09:21:52]line = 0.00 [09:21:52]line НДС 12% НСП 1% [09:21:52]line > о реализуемом товаре [09:21:52]line ИТОГО: 0.00 [09:21:52]line НСП 1% : 0.00 [09:21:52]line НДС 12% : 0.00 [09:21:52]line Наличными: 0.00 [09:21:52]line Безнал.: 0.00 [09:21:52]line Место: АЗС № 113 "Партнер Нефть" [09:21:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:21:52]line СНО: Общий режим [09:21:52]line Чек 40 31.10.2024 09:21 [09:21:52]line Смена: 557 ФФД: 1.0 [09:21:52]line ЗНМ: 0300000087 [09:21:52]line РНМ: 0000000000091644 [09:21:52]line Версия ККМ: 001 [09:21:52]line Талоны: Топливная Карта [09:21:52]line 03047 [09:21:52]line ФМ: 0000000000874662 [09:21:52]line ФД: 72965 [09:21:52]line ФПД: 35402988940830 [09:21:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092151&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72965&fm=35402988940830&tin=02508201610067®Number=0000000000091644&sum=0 [09:21:52]written 0, free lines is 4095 [09:21:53]Write to MH i2c: 01 00 00 D7 03 DA [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: 01 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: 01 07 00 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: 01 07 00 D7 03 00 00 00 00 00 E1 0C CE [09:21:53]RasterBufferAndPrint [09:21:53]line [09:21:53]line [09:21:53]line [09:21:53]line [09:21:53]line [09:21:53]written 0, free lines is 3303 [09:21:53]MH_Cut [09:21:53]Write to MH i2c: D1 01 00 DE 03 01 B3 [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: D1 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: D1 01 00 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: D1 01 00 DE 03 00 B2 [09:21:53]Write to MH i2c: 01 00 00 DF 03 E2 [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]*** Cut start [09:21:53]*** Partial cut [09:21:53]*** CUTSNS_PIN = 1 [09:21:53]*** CUTSNS_PIN = 0 [09:21:54]*** Brake cut motor [09:21:54]Read from MH i2c: 01 [09:21:54]MH_I2C_Read... [09:21:54]*** Stop cut motor [09:21:54]*** Cut end [09:21:54]Read from MH i2c: 01 07 00 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 FF 0F F7 [09:21:54]process_action close_receipt done [09:21:54]requested_data is exist [09:21:54]produce_requested_data [09:21:54]requested_item fm.sn is exist - process it [09:21:54]wFMCommunicate request_size=4 [09:21:54]MH_SAM_APDU [09:21:54]CAPDU: 80 11 00 00 [09:21:54]Write to MH i2c: E2 08 00 E0 03 80 11 00 00 00 00 00 00 5D [09:21:54]Write i2c OK [09:21:54]MH_I2C_Read... [09:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:54]Read from MH i2c: E2 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: E2 17 00 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: E2 17 00 E0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B1 [09:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:21:54]wFMCommunicate OK [09:21:54]requested_item fd.num is exist - process it [09:21:54]SAM_PROTO_GetFieldsCounters [09:21:54]wFMCommunicate request_size=4 [09:21:54]MH_SAM_APDU [09:21:54]CAPDU: 80 13 00 00 [09:21:54]Write to MH i2c: E2 08 00 E1 03 80 13 00 00 00 00 00 00 60 [09:21:54]Write i2c OK [09:21:54]MH_I2C_Read... [09:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:54]Read from MH i2c: E2 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: E2 62 00 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: E2 62 00 E1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 05 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [09:21:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 05 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:54]wFMCommunicate OK [09:21:54]SAM_PROTO_GetFieldsCounters done [09:21:54]requested_item shift.num is exist - process it [09:21:54]requested_item shift.opened is exist - process it [09:21:54]req_shift_opened [09:21:54]FM_GetShiftState [09:21:54]SAM_PROTO_GetShiftState [09:21:54]wFMCommunicate request_size=4 [09:21:54]MH_SAM_APDU [09:21:54]CAPDU: 80 13 01 00 [09:21:54]Write to MH i2c: E2 08 00 E2 03 80 13 01 00 00 00 00 00 62 [09:21:54]Write i2c OK [09:21:54]MH_I2C_Read... [09:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:54]Read from MH i2c: E2 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: E2 0E 00 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: E2 0E 00 E2 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0B [09:21:54]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:21:54]wFMCommunicate OK [09:21:54]SAM_PROTO_GetShiftState done [09:21:54]FM_GetShiftState done [09:21:54]req_shift_opened done [09:21:54]requested_item shift.open_date is exist - process it [09:21:54]req_shift_open_date [09:21:54]req_shift_open_date done [09:21:54]produce_requested_data done [09:21:54]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72965,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:21:54]process_action_free close_receipt [09:21:54]json_value_free [09:21:54]json_value_free done [09:21:54]process_json_proto returns [09:21:54]Send response to host [09:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72965,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:21:54]free response buf [09:21:54]execute_script done [09:21:54]execute_script returns [09:21:54]free content buf [09:21:54]Sock 8.Close socket [09:21:54]Sock 8.Thread stoped [09:21:56]Connected sock=12 [09:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 47 2E 07 01 40 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2F 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 05 1D 01 00 35 04 06 00 20 32 E6 94 6E 1E 7E EC FA 13 F4 25 49 36 [09:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0A 05 47 00 66 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 05 1D 01 00 F4 03 04 00 E9 F6 22 67 B6 04 01 00 00 6C CD 0A 6D D1 EB 97 AE [09:21:56]CommunicateWithHost err = 0 [09:21:56]CheckOFDResponse [09:21:56]1017 (14) - 77093643461234 [09:21:56]1041 (16) - 0000000000874662 [09:21:56]1040 (4) - 72965 [09:21:56]1012 (4) - 31.10.2024 03:18 [09:21:56]1206 (1) - 0 [09:21:56]OFD Sender: Remove packet 72965 [09:21:56]ProducePacketName [09:21:56]name=ofd_packets/00072965 [09:21:56]NVStorageDeleteData [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:25]recv_with_timeout no data received [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:32]accept exits with 10 [09:22:32]New connection [09:22:32]New thread 3067485540 created [09:22:32]Thread 3067628900 joined [09:22:32]Waiting for new connection... [09:22:32] Sock 10.Parse request [09:22:32]Sock 10.Check first char [09:22:32]Sock 10.First char is OK [09:22:32]request: POST /json_proto HTTP/1.0 [09:22:32]Method: POST [09:22:32]URL: /json_proto [09:22:32]Method is POST - this is cgi request [09:22:32]url: /json_proto [09:22:32]query_string will be loaded in cgi processing [09:22:32]execute_cgi json_proto POST (null) [09:22:32]execute_cgi path=json_proto method=POST [09:22:32]POST find Content-Length [09:22:32]Host: 172.17.43.195:8080 [09:22:32]Content-Length: 687 [09:22:32]Content-Type: application/json [09:22:32] [09:22:32]POST finish read [09:22:32]Found Content-Length = 687 [09:22:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 81.100, "sum" : 6179.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6500.00, "total" : 6179.00, "payments": [ { "type": 0, "sum" : 6179.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:32]execute_script... [09:22:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 81.100, "sum" : 6179.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6500.00, "total" : 6179.00, "payments": [ { "type": 0, "sum" : 6179.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:32]POST & json_proto [09:22:32]process_json_proto [09:22:32]json parsed OK: [09:22:32]protocol is kg_v1.0 [09:22:32]action value=close_receipt [09:22:32]process_action close_receipt [09:22:32]cmd_close_receipt [09:22:32]MH_GetDate [09:22:32]Write to MH i2c: F0 00 00 E3 03 D5 [09:22:32]Write i2c OK [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: F0 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: F0 09 00 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: F0 09 00 E3 03 00 59 4C 23 67 74 2C AD 66 C0 [09:22:32]GetLastDocTimeStamp 1730366511 [09:22:32]current date 1730366553 [09:22:32]FM_GetShiftState [09:22:32]SAM_PROTO_GetShiftState [09:22:32]wFMCommunicate request_size=4 [09:22:32]MH_SAM_APDU [09:22:32]CAPDU: 80 13 01 00 [09:22:32]Write to MH i2c: E2 08 00 E4 03 80 13 01 00 00 00 00 00 64 [09:22:32]Write i2c OK [09:22:32]MH_I2C_Read... [09:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:32]Read from MH i2c: E2 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: E2 0E 00 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: E2 0E 00 E4 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0D [09:22:32]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:22:32]wFMCommunicate OK [09:22:32]SAM_PROTO_GetShiftState done [09:22:32]FM_GetShiftState done [09:22:32]opened in 1730333258 [09:22:32]opened+sec_in_day 1730419658 [09:22:32]quantity*price = 617982 [09:22:32]sum+1 = 617983 [09:22:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 6179.00 Внесено: 6500.00 СДАЧА: 321.00 НСП 1% : 54.69 НДС 12% : 656.26 Наличными: 6179.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 41 31.10.2024 09:22 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72966 ФПД: 132674252356602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092233&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72966&fm=132674252356602&tin=02508201610067®Number=0000000000091644&sum=617900 [09:22:34]StoreToDocumentArchive [09:22:34]shift 557 fd 72966 [09:22:34]save to /storage/0557/doc_00072966 [09:22:34]save last doc name /storage/0557/doc_00072966 to /storage/kkm_last_doc_name [09:22:34]save OK [09:22:34]Clear old archive folders... [09:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:22:34]tlvbuf is 00CE7F10 [09:22:34]SAM_PROTO_ClearQueue [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 09 00 00 [09:22:34]Write to MH i2c: E2 08 00 F1 03 80 09 00 00 00 00 00 00 66 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_ClearQueue done [09:22:34]KKMCreateOFDPacket [09:22:34]OFDProtocolAddRootSTLVToBuf [09:22:34]FM_MakeSignedData [09:22:34]FM_MakeSignedData [09:22:34]SAM_PROTO_SignData [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 01 02 [09:22:34]Write to MH i2c: E2 08 00 F2 03 80 0D 01 02 00 00 00 00 6E [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]wFMCommunicate request_size=255 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 3C 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FE 6D 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 6D 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 00 01 00 00 00 07 04 06 00 AC 6D 09 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 59 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 06 1D 01 00 35 04 06 00 [09:22:34]Write to MH i2c: E2 02 01 F3 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 3C 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FE 6D 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 6D 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 00 01 00 00 00 07 04 06 00 AC 6D 09 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 59 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 06 1D 01 00 35 04 06 00 00 00 CD [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]wFMCommunicate request_size=11 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 02 02 06 78 AA A1 AE BB FA [09:22:34]Write to MH i2c: E2 0E 00 F4 03 80 0D 02 02 06 00 78 AA A1 AE BB FA 00 00 A3 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 03 02 [09:22:34]Write to MH i2c: E2 08 00 F5 03 80 0D 03 02 00 00 00 00 73 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 0B 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 0B 00 F5 03 00 E2 69 BC 8D 9B 61 7D 7B 90 00 FC [09:22:34]RAPDU: E2 69 BC 8D 9B 61 7D 7B 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_SignData done [09:22:34]FM_MakeSignedData done [09:22:34]CreateOFDProtocolMessage [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 11 00 00 [09:22:34]Write to MH i2c: E2 08 00 F6 03 80 11 00 00 00 00 00 00 73 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 F6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [09:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:22:34]wFMCommunicate OK [09:22:34]CreateOFDProtocolMessage done [09:22:34]OFDSenderStorePacket 72966 [09:22:34]StoreOFDPacket docnum=72966 [09:22:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F4 DB 08 01 ED 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 3C 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FE 6D 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 6D 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 00 01 00 00 00 07 04 06 00 AC 6D 09 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 59 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 06 1D 01 00 35 04 06 00 78 AA A1 AE BB FA E2 69 BC 8D 9B 61 7D 7B [09:22:34]CheckFolder [09:22:34]dirname=/storage/ofd_packets [09:22:34]CheckFolder done [09:22:34]ProducePacketName [09:22:34]name=ofd_packets/00072966 [09:22:34]NVStorageSaveData ofd_packets/00072966 [09:22:34]File name is /storage/ofd_packets/00072966 [09:22:34]Write 302 bytes [09:22:34]NVStorageSaveData done [09:22:34]OFDSenderStorePacket done [09:22:34]KKMCreateOFDPacket done [09:22:34]NVStorageSaveData kkm_last_timestamp [09:22:34]File name is /storage/kkm_last_timestamp [09:22:34]Write 4 bytes [09:22:34]NVStorageSaveData done [09:22:34]ExternCall_PrintAddStr [09:22:34]wPrintStart [09:22:34]Write to MH i2c: 01 00 00 F7 03 FA [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 F7 03 00 00 00 00 00 FF 0F 0F [09:22:34]RasterBufferAndPrint [09:22:34]line Счет N : (1)952566 [09:22:34]line ИНН: 02508201610067 [09:22:34]line Контрольно-Кассовый Чек [09:22:34]line ПРОДАЖА [09:22:34]line ТРК (МРК, ГНК) : 33 [09:22:34]line Товар: 2710194210 [09:22:34]line ДТ(л)-К-5 [09:22:34]line 81.100 * 76.20 [09:22:34]line = 6179.82 [09:22:34]line НДС 12% НСП 1% [09:22:34]line > о реализуемом товаре [09:22:34]line ОКРУГЛЕНИЕ: -0.82 [09:22:34]line ИТОГО: 6179.00 [09:22:34]line Внесено: 6500.00 [09:22:34]line СДАЧА: 321.00 [09:22:34]line НСП 1% : 54.69 [09:22:34]line НДС 12% : 656.26 [09:22:34]line Наличными: 6179.00 [09:22:34]line Безнал.: 0.00 [09:22:34]line Место: АЗС № 113 "Партнер Нефть" [09:22:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:22:34]line СНО: Общий режим [09:22:34]line Чек 41 31.10.2024 09:22 [09:22:34]line Смена: 557 ФФД: 1.0 [09:22:34]line ЗНМ: 0300000087 [09:22:34]line РНМ: 0000000000091644 [09:22:34]line Версия ККМ: 001 [09:22:34]line ФМ: 0000000000874662 [09:22:34]line ФД: 72966 [09:22:34]line ФПД: 132674252356602 [09:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092233&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72966&fm=132674252356602&tin=02508201610067®Number=0000000000091644&sum=617900 [09:22:34]written 0, free lines is 4095 [09:22:34]OFD Sender: Processing packet 72966 [packets to send 279, broken 278] [09:22:34]ProducePacketName [09:22:34]name=ofd_packets/00072966 [09:22:34]OFD Sender: To server: pG, [09:22:34]CommunicateWithHost lk.salyk.kg:30040 [09:22:34]ConnectInit lk.salyk.kg [09:22:35]Write to MH i2c: 01 00 00 22 04 26 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 E0 0C 19 [09:22:35]RasterBufferAndPrint [09:22:35]line [09:22:35]line [09:22:35]line [09:22:35]line [09:22:35]line [09:22:35]written 0, free lines is 3302 [09:22:35]MH_Cut [09:22:35]Write to MH i2c: D1 01 00 29 04 01 FF [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: D1 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: D1 01 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: D1 01 00 29 04 00 FE [09:22:35]Write to MH i2c: 01 00 00 2A 04 2E [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]Connected sock=8 [09:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F4 DB 08 01 ED 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 3C 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FE 6D 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 6D 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 00 01 00 00 00 07 04 06 00 AC 6D 09 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 59 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 06 1D 01 00 35 04 06 00 78 AA A1 AE BB FA E2 69 BC 8D 9B 61 7D 7B [09:22:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 51 CD 47 00 DB C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 06 1D 01 00 F4 03 04 00 10 F7 22 67 B6 04 01 00 00 FE D1 21 85 1D 46 AF 9A [09:22:35]CommunicateWithHost err = 0 [09:22:35]CheckOFDResponse [09:22:35]1017 (14) - 77093643461234 [09:22:35]1041 (16) - 0000000000874662 [09:22:35]1040 (4) - 72966 [09:22:35]1012 (4) - 31.10.2024 03:18 [09:22:35]1206 (1) - 0 [09:22:35]OFD Sender: Remove packet 72966 [09:22:35]ProducePacketName [09:22:35]name=ofd_packets/00072966 [09:22:35]NVStorageDeleteData [09:22:35]*** Cut start [09:22:35]*** Partial cut [09:22:35]*** CUTSNS_PIN = 1 [09:22:35]*** CUTSNS_PIN = 0 [09:22:36]*** Brake cut motor [09:22:36]OFD Sender: No OFD packet to send [09:22:36]Read from MH i2c: 01 [09:22:36]MH_I2C_Read... [09:22:36]*** Stop cut motor [09:22:36]*** Cut end [09:22:36]Read from MH i2c: 01 07 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 FF 0F 43 [09:22:36]process_action close_receipt done [09:22:36]requested_data is exist [09:22:36]produce_requested_data [09:22:36]requested_item fm.sn is exist - process it [09:22:36]wFMCommunicate request_size=4 [09:22:36]MH_SAM_APDU [09:22:36]CAPDU: 80 11 00 00 [09:22:36]Write to MH i2c: E2 08 00 2B 04 80 11 00 00 00 00 00 00 A9 [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:36]Read from MH i2c: E2 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 17 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 17 00 2B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FD [09:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:22:36]wFMCommunicate OK [09:22:36]requested_item fd.num is exist - process it [09:22:36]SAM_PROTO_GetFieldsCounters [09:22:36]wFMCommunicate request_size=4 [09:22:36]MH_SAM_APDU [09:22:36]CAPDU: 80 13 00 00 [09:22:36]Write to MH i2c: E2 08 00 2C 04 80 13 00 00 00 00 00 00 AC [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:36]Read from MH i2c: E2 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 62 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 62 00 2C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 06 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [09:22:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 06 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:36]wFMCommunicate OK [09:22:36]SAM_PROTO_GetFieldsCounters done [09:22:36]requested_item shift.num is exist - process it [09:22:36]requested_item shift.opened is exist - process it [09:22:36]req_shift_opened [09:22:36]FM_GetShiftState [09:22:36]SAM_PROTO_GetShiftState [09:22:36]wFMCommunicate request_size=4 [09:22:36]MH_SAM_APDU [09:22:36]CAPDU: 80 13 01 00 [09:22:36]Write to MH i2c: E2 08 00 2D 04 80 13 01 00 00 00 00 00 AE [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 [09:22:36]MH_I2C_Read... [09:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:36]Read from MH i2c: E2 0E 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 0E 00 2D 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 57 [09:22:36]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:22:36]wFMCommunicate OK [09:22:36]SAM_PROTO_GetShiftState done [09:22:36]FM_GetShiftState done [09:22:36]req_shift_opened done [09:22:36]requested_item shift.open_date is exist - process it [09:22:36]req_shift_open_date [09:22:36]req_shift_open_date done [09:22:36]produce_requested_data done [09:22:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72966,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:22:36]process_action_free close_receipt [09:22:36]json_value_free [09:22:36]json_value_free done [09:22:36]process_json_proto returns [09:22:36]Send response to host [09:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72966,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:22:36]free response buf [09:22:36]execute_script done [09:22:36]execute_script returns [09:22:36]free content buf [09:22:36]Sock 10.Close socket [09:22:36]Sock 10.Thread stoped [09:22:41]OFD Sender: No OFD packet to send [09:22:46]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:16]recv_with_timeout no data received [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:39]accept exits with 9 [09:23:39]New connection [09:23:39]New thread 3067628900 created [09:23:39]Thread 3067485540 joined [09:23:39]Waiting for new connection... [09:23:39] Sock 9.Parse request [09:23:39]Sock 9.Check first char [09:23:39]Sock 9.First char is OK [09:23:39]request: POST /json_proto HTTP/1.0 [09:23:39]Method: POST [09:23:39]URL: /json_proto [09:23:39]Method is POST - this is cgi request [09:23:39]url: /json_proto [09:23:39]query_string will be loaded in cgi processing [09:23:39]execute_cgi json_proto POST (null) [09:23:39]execute_cgi path=json_proto method=POST [09:23:39]POST find Content-Length [09:23:39]Host: 172.17.43.195:8080 [09:23:39]Content-Length: 791 [09:23:39]Content-Type: application/json [09:23:39] [09:23:39]POST finish read [09:23:39]Found Content-Length = 791 [09:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 9.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:39]execute_script... [09:23:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 9.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:39]POST & json_proto [09:23:39]process_json_proto [09:23:39]json parsed OK: [09:23:39]protocol is kg_v1.0 [09:23:39]action value=close_receipt [09:23:39]process_action close_receipt [09:23:39]cmd_close_receipt [09:23:39]MH_GetDate [09:23:39]Write to MH i2c: F0 00 00 2E 04 21 [09:23:39]Write i2c OK [09:23:39]MH_I2C_Read... [09:23:39]Read from MH i2c: F0 [09:23:39]MH_I2C_Read... [09:23:39]Read from MH i2c: F0 09 00 [09:23:39]MH_I2C_Read... [09:23:39]Read from MH i2c: F0 09 00 2E 04 00 9C 4C 23 67 74 2C AD 66 4F [09:23:39]GetLastDocTimeStamp 1730366553 [09:23:39]current date 1730366620 [09:23:39]FM_GetShiftState [09:23:39]SAM_PROTO_GetShiftState [09:23:39]wFMCommunicate request_size=4 [09:23:39]MH_SAM_APDU [09:23:39]CAPDU: 80 13 01 00 [09:23:39]Write to MH i2c: E2 08 00 2F 04 80 13 01 00 00 00 00 00 B0 [09:23:39]Write i2c OK [09:23:39]MH_I2C_Read... [09:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:39]Read from MH i2c: E2 [09:23:39]MH_I2C_Read... [09:23:39]Read from MH i2c: E2 0E 00 [09:23:39]MH_I2C_Read... [09:23:39]Read from MH i2c: E2 0E 00 2F 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 59 [09:23:39]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:23:39]wFMCommunicate OK [09:23:39]SAM_PROTO_GetShiftState done [09:23:39]FM_GetShiftState done [09:23:39]opened in 1730333258 [09:23:39]opened+sec_in_day 1730419658 [09:23:39]quantity*price = 0 [09:23:39]sum+1 = 1 [09:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 42 31.10.2024 09:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72967 ФПД: 137901322508734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092340&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72967&fm=137901322508734&tin=02508201610067®Number=0000000000091644&sum=0 [09:23:40]StoreToDocumentArchive [09:23:40]shift 557 fd 72967 [09:23:40]save to /storage/0557/doc_00072967 [09:23:40]save last doc name /storage/0557/doc_00072967 to /storage/kkm_last_doc_name [09:23:40]save OK [09:23:40]Clear old archive folders... [09:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:40]tlvbuf is 00D12650 [09:23:40]SAM_PROTO_ClearQueue [09:23:40]wFMCommunicate request_size=4 [09:23:40]MH_SAM_APDU [09:23:40]CAPDU: 80 09 00 00 [09:23:40]Write to MH i2c: E2 08 00 3C 04 80 09 00 00 00 00 00 00 B2 [09:23:40]Write i2c OK [09:23:40]MH_I2C_Read... [09:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:40]Read from MH i2c: E2 [09:23:40]MH_I2C_Read... [09:23:40]Read from MH i2c: E2 03 00 [09:23:40]MH_I2C_Read... [09:23:40]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [09:23:40]RAPDU: 90 00 [09:23:40]wFMCommunicate OK [09:23:40]SAM_PROTO_ClearQueue done [09:23:40]KKMCreateOFDPacket [09:23:40]OFDProtocolAddRootSTLVToBuf [09:23:40]FM_MakeSignedData [09:23:40]FM_MakeSignedData [09:23:40]SAM_PROTO_SignData [09:23:40]wFMCommunicate request_size=4 [09:23:40]MH_SAM_APDU [09:23:40]CAPDU: 80 0D 01 02 [09:23:40]Write to MH i2c: E2 08 00 3D 04 80 0D 01 02 00 00 00 00 BA [09:23:40]Write i2c OK [09:23:40]MH_I2C_Read... [09:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:40]Read from MH i2c: E2 [09:23:40]MH_I2C_Read... [09:23:40]Read from MH i2c: E2 03 00 [09:23:40]MH_I2C_Read... [09:23:40]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [09:23:40]RAPDU: 90 00 [09:23:40]wFMCommunicate OK [09:23:40]wFMCommunicate request_size=255 [09:23:40]MH_SAM_APDU [09:23:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 26 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 9C 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 07 1D 01 00 35 04 06 00 7D [09:23:40]Write to MH i2c: E2 02 01 3E 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 AC 26 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 9C 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 07 1D 01 00 35 04 06 00 7D 00 00 03 [09:23:40]Write i2c OK [09:23:40]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [09:23:41]RAPDU: 90 00 [09:23:41]wFMCommunicate OK [09:23:41]wFMCommunicate request_size=10 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 0D 02 02 05 6B A7 57 99 BE [09:23:41]Write to MH i2c: E2 0D 00 3F 04 80 0D 02 02 05 00 6B A7 57 99 BE 00 00 87 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [09:23:41]RAPDU: 90 00 [09:23:41]wFMCommunicate OK [09:23:41]wFMCommunicate request_size=4 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 0D 03 02 [09:23:41]Write to MH i2c: E2 08 00 40 04 80 0D 03 02 00 00 00 00 BF [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 0B 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 0B 00 40 04 00 6E 95 07 8C DF 40 74 10 90 00 F9 [09:23:41]RAPDU: 6E 95 07 8C DF 40 74 10 90 00 [09:23:41]wFMCommunicate OK [09:23:41]SAM_PROTO_SignData done [09:23:41]FM_MakeSignedData done [09:23:41]CreateOFDProtocolMessage [09:23:41]wFMCommunicate request_size=4 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 11 00 00 [09:23:41]Write to MH i2c: E2 08 00 41 04 80 11 00 00 00 00 00 00 BF [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 17 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 17 00 41 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 13 [09:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:23:41]wFMCommunicate OK [09:23:41]CreateOFDProtocolMessage done [09:23:41]OFDSenderStorePacket 72967 [09:23:41]StoreOFDPacket docnum=72967 [09:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 6C 30 07 01 9C FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 26 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 9C 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 07 1D 01 00 35 04 06 00 7D 6B A7 57 99 BE 6E 95 07 8C DF 40 74 10 [09:23:41]CheckFolder [09:23:41]dirname=/storage/ofd_packets [09:23:41]CheckFolder done [09:23:41]ProducePacketName [09:23:41]name=ofd_packets/00072967 [09:23:41]NVStorageSaveData ofd_packets/00072967 [09:23:41]File name is /storage/ofd_packets/00072967 [09:23:41]Write 301 bytes [09:23:41]NVStorageSaveData done [09:23:41]OFDSenderStorePacket done [09:23:41]KKMCreateOFDPacket done [09:23:41]NVStorageSaveData kkm_last_timestamp [09:23:41]File name is /storage/kkm_last_timestamp [09:23:41]Write 4 bytes [09:23:41]NVStorageSaveData done [09:23:41]ExternCall_PrintAddStr [09:23:41]wPrintStart [09:23:41]Write to MH i2c: 01 00 00 42 04 46 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: 01 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: 01 07 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: 01 07 00 42 04 00 00 00 00 00 FF 0F 5B [09:23:41]RasterBufferAndPrint [09:23:41]line Счет N : (1)952569 [09:23:41]line ИНН: 02508201610067 [09:23:41]line Контрольно-Кассовый Чек [09:23:41]line ПРОДАЖА [09:23:41]line ТРК (МРК, ГНК) : 53 [09:23:41]line Товар: 2710124130 [09:23:41]line Аи-92-К-5 [09:23:41]line 9.900 * 0.00 [09:23:41]line = 0.00 [09:23:41]line НДС 12% НСП 1% [09:23:41]line > о реализуемом товаре [09:23:41]line ИТОГО: 0.00 [09:23:41]line НСП 1% : 0.00 [09:23:41]line НДС 12% : 0.00 [09:23:41]line Наличными: 0.00 [09:23:41]line Безнал.: 0.00 [09:23:41]line Место: АЗС № 113 "Партнер Нефть" [09:23:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:23:41]line СНО: Общий режим [09:23:41]line Чек 42 31.10.2024 09:23 [09:23:41]line Смена: 557 ФФД: 1.0 [09:23:41]line ЗНМ: 0300000087 [09:23:41]line РНМ: 0000000000091644 [09:23:41]line Версия ККМ: 001 [09:23:41]line Талоны: Топливная Карта [09:23:41]line 03047 [09:23:41]line ФМ: 0000000000874662 [09:23:41]line ФД: 72967 [09:23:41]line ФПД: 137901322508734 [09:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092340&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72967&fm=137901322508734&tin=02508201610067®Number=0000000000091644&sum=0 [09:23:41]written 0, free lines is 4095 [09:23:41]OFD Sender: Processing packet 72967 [packets to send 279, broken 278] [09:23:41]ProducePacketName [09:23:41]name=ofd_packets/00072967 [09:23:41]OFD Sender: To server: pG, [09:23:41]CommunicateWithHost lk.salyk.kg:30040 [09:23:41]ConnectInit lk.salyk.kg [09:23:41]Write to MH i2c: 01 00 00 6C 04 70 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: 01 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: 01 07 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 E4 0C 67 [09:23:41]RasterBufferAndPrint [09:23:41]line [09:23:41]line [09:23:41]line [09:23:41]line [09:23:41]line [09:23:41]written 0, free lines is 3306 [09:23:41]MH_Cut [09:23:41]Write to MH i2c: D1 01 00 73 04 01 49 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: D1 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: D1 01 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: D1 01 00 73 04 00 48 [09:23:41]Write to MH i2c: 01 00 00 74 04 78 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]Connected sock=10 [09:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 6C 30 07 01 9C FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 26 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 9C 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 07 1D 01 00 35 04 06 00 7D 6B A7 57 99 BE 6E 95 07 8C DF 40 74 10 [09:23:42]*** Cut start [09:23:42]*** Partial cut [09:23:42]*** CUTSNS_PIN = 1 [09:23:42]*** CUTSNS_PIN = 0 [09:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F9 0C 47 00 A6 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 07 1D 01 00 F4 03 04 00 52 F7 22 67 B6 04 01 00 00 37 12 0A 20 6E A9 32 FD [09:23:42]CommunicateWithHost err = 0 [09:23:42]CheckOFDResponse [09:23:42]1017 (14) - 77093643461234 [09:23:42]1041 (16) - 0000000000874662 [09:23:42]1040 (4) - 72967 [09:23:42]1012 (4) - 31.10.2024 03:19 [09:23:42]1206 (1) - 0 [09:23:42]OFD Sender: Remove packet 72967 [09:23:42]ProducePacketName [09:23:42]name=ofd_packets/00072967 [09:23:42]NVStorageDeleteData [09:23:42]*** Brake cut motor [09:23:43]Read from MH i2c: 01 [09:23:43]MH_I2C_Read... [09:23:43]*** Stop cut motor [09:23:43]*** Cut end [09:23:43]Read from MH i2c: 01 07 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 FF 0F 8D [09:23:43]process_action close_receipt done [09:23:43]requested_data is exist [09:23:43]produce_requested_data [09:23:43]requested_item fm.sn is exist - process it [09:23:43]wFMCommunicate request_size=4 [09:23:43]MH_SAM_APDU [09:23:43]CAPDU: 80 11 00 00 [09:23:43]Write to MH i2c: E2 08 00 75 04 80 11 00 00 00 00 00 00 F3 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:43]Read from MH i2c: E2 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 17 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 17 00 75 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 47 [09:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:23:43]wFMCommunicate OK [09:23:43]requested_item fd.num is exist - process it [09:23:43]SAM_PROTO_GetFieldsCounters [09:23:43]wFMCommunicate request_size=4 [09:23:43]MH_SAM_APDU [09:23:43]CAPDU: 80 13 00 00 [09:23:43]Write to MH i2c: E2 08 00 76 04 80 13 00 00 00 00 00 00 F6 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]OFD Sender: No OFD packet to send [09:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:43]Read from MH i2c: E2 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 62 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 62 00 76 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 07 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [09:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 07 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:43]wFMCommunicate OK [09:23:43]SAM_PROTO_GetFieldsCounters done [09:23:43]requested_item shift.num is exist - process it [09:23:43]requested_item shift.opened is exist - process it [09:23:43]req_shift_opened [09:23:43]FM_GetShiftState [09:23:43]SAM_PROTO_GetShiftState [09:23:43]wFMCommunicate request_size=4 [09:23:43]MH_SAM_APDU [09:23:43]CAPDU: 80 13 01 00 [09:23:43]Write to MH i2c: E2 08 00 77 04 80 13 01 00 00 00 00 00 F8 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:43]Read from MH i2c: E2 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 0E 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 0E 00 77 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A1 [09:23:43]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:23:43]wFMCommunicate OK [09:23:43]SAM_PROTO_GetShiftState done [09:23:43]FM_GetShiftState done [09:23:43]req_shift_opened done [09:23:43]requested_item shift.open_date is exist - process it [09:23:43]req_shift_open_date [09:23:43]req_shift_open_date done [09:23:43]produce_requested_data done [09:23:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72967,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:23:43]process_action_free close_receipt [09:23:43]json_value_free [09:23:43]json_value_free done [09:23:43]process_json_proto returns [09:23:43]Send response to host [09:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72967,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:23:43]free response buf [09:23:43]execute_script done [09:23:43]execute_script returns [09:23:43]free content buf [09:23:43]Sock 9.Close socket [09:23:43]Sock 9.Thread stoped [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:50]recv_with_timeout no data received [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:27]accept exits with 8 [09:25:27]New connection [09:25:27]New thread 3067485540 created [09:25:27]Thread 3067628900 joined [09:25:27]Waiting for new connection... [09:25:27] Sock 8.Parse request [09:25:27]Sock 8.Check first char [09:25:27]Sock 8.First char is OK [09:25:27]request: POST /json_proto HTTP/1.0 [09:25:27]Method: POST [09:25:27]URL: /json_proto [09:25:27]Method is POST - this is cgi request [09:25:27]url: /json_proto [09:25:27]query_string will be loaded in cgi processing [09:25:27]execute_cgi json_proto POST (null) [09:25:27]execute_cgi path=json_proto method=POST [09:25:27]POST find Content-Length [09:25:27]Host: 172.17.43.195:8080 [09:25:27]Content-Length: 806 [09:25:27]Content-Type: application/json [09:25:27] [09:25:27]POST finish read [09:25:27]Found Content-Length = 806 [09:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:27]execute_script... [09:25:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:27]POST & json_proto [09:25:27]process_json_proto [09:25:27]json parsed OK: [09:25:27]protocol is kg_v1.0 [09:25:27]action value=close_receipt [09:25:27]process_action close_receipt [09:25:27]cmd_close_receipt [09:25:27]MH_GetDate [09:25:27]Write to MH i2c: F0 00 00 78 04 6B [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: F0 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: F0 09 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: F0 09 00 78 04 00 08 4D 23 67 74 2C AD 66 06 [09:25:27]GetLastDocTimeStamp 1730366620 [09:25:27]current date 1730366728 [09:25:27]FM_GetShiftState [09:25:27]SAM_PROTO_GetShiftState [09:25:27]wFMCommunicate request_size=4 [09:25:27]MH_SAM_APDU [09:25:27]CAPDU: 80 13 01 00 [09:25:27]Write to MH i2c: E2 08 00 79 04 80 13 01 00 00 00 00 00 FA [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:27]Read from MH i2c: E2 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 0E 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 0E 00 79 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A3 [09:25:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:25:27]wFMCommunicate OK [09:25:27]SAM_PROTO_GetShiftState done [09:25:27]FM_GetShiftState done [09:25:27]opened in 1730333258 [09:25:27]opened+sec_in_day 1730419658 [09:25:27]quantity*price = 100011 [09:25:27]sum+1 = 100013 [09:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре [09:26:48]line ИТОГО: 1000.12 [09:26:48]line НСП 1% : 8.85 [09:26:48]line НДС 12% : 106.21 [09:26:48]line Наличными: 0.00 [09:26:48]line Безнал.: 1000.12 [09:26:48]line Место: АЗС № 113 "Партнер Нефть" [09:26:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:26:48]line СНО: Общий режим [09:26:48]line Чек 43 31.10.2024 09:25 [09:26:48]line Смена: 557 ФФД: 1.0 [09:26:48]line ЗНМ: 0300000087 [09:26:48]line РНМ: 0000000000091644 [09:26:48]line Версия ККМ: 001 [09:26:48]line Платежная система: O! деньги [09:26:48]line ФМ: 0000000000874662 [09:26:48]line ФД: 72968 [09:26:48]line ФПД: 58310102039027 [09:26:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092528&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72968&fm=58310102039027&tin=02508201610067®Number=0000000000091644&sum=100012 [09:26:48]written 0, free lines is 4095 [09:26:48]Write to MH i2c: 01 00 00 47 00 47 [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: 01 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: 01 07 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 DE 0C 38 [09:26:48]RasterBufferAndPrint [09:26:48]line [09:26:48]line [09:26:48]line [09:26:48]line [09:26:48]line [09:26:48]written 0, free lines is 3310 [09:26:48]MH_Cut [09:26:48]Write to MH i2c: D1 01 00 4E 00 01 20 [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: D1 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: D1 01 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: D1 01 00 4E 00 00 1F [09:26:48]Write to MH i2c: 01 00 00 4F 00 4F [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:49]*** Cut start [09:26:49]*** Partial cut [09:26:49]*** CUTSNS_PIN = 1 [09:26:49]*** CUTSNS_PIN = 0 [09:26:49]*** Brake cut motor [09:26:49]OFD Sender: No OFD packet to send [09:26:49]Read from MH i2c: 01 [09:26:49]MH_I2C_Read... [09:26:49]*** Stop cut motor [09:26:49]*** Cut end [09:26:49]Read from MH i2c: 01 07 00 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [09:26:49]process_action print_doc done [09:26:49]requested_data is exist [09:26:49]produce_requested_data [09:26:49]produce_requested_data return (null) [09:26:49]process_action_free print_doc [09:26:49]json_value_free [09:26:49]json_value_free done [09:26:49]process_json_proto returns [09:26:49]Send response to host [09:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [09:26:49]free response buf [09:26:49]execute_script done [09:26:49]execute_script returns [09:26:49]free content buf [09:26:49]Sock 6.Close socket [09:26:49]Sock 6.Thread stoped [09:26:50]accept exits with 10 [09:26:50]New connection [09:26:50]New thread 3066662244 created [09:26:50]Thread 3066805604 joined [09:26:50]Waiting for new connection... [09:26:50] Sock 10.Parse request [09:26:50]Sock 10.Check first char [09:26:50]Sock 10.First char is OK [09:26:50]request: POST /json_proto HTTP/1.0 [09:26:50]Method: POST [09:26:50]URL: /json_proto [09:26:50]Method is POST - this is cgi request [09:26:50]url: /json_proto [09:26:50]query_string will be loaded in cgi processing [09:26:50]execute_cgi json_proto POST (null) [09:26:50]execute_cgi path=json_proto method=POST [09:26:50]POST find Content-Length [09:26:50]Host: 172.17.43.195:8080 [09:26:50]Content-Length: 792 [09:26:50]Content-Type: application/json [09:26:50] [09:26:50]POST finish read [09:26:50]Found Content-Length = 792 [09:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:50]execute_script... [09:26:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:50]POST & json_proto [09:26:50]process_json_proto [09:26:50]json parsed OK: [09:26:50]protocol is kg_v1.0 [09:26:50]action value=close_receipt [09:26:50]process_action close_receipt [09:26:50]cmd_close_receipt [09:26:50]MH_GetDate [09:26:50]Write to MH i2c: F0 00 00 50 00 3F [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: F0 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: F0 09 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: F0 09 00 50 00 00 5A 4D 23 67 74 2C AD 66 2C [09:26:50]GetLastDocTimeStamp 1730366728 [09:26:50]current date 1730366810 [09:26:50]FM_GetShiftState [09:26:50]SAM_PROTO_GetShiftState [09:26:50]wFMCommunicate request_size=4 [09:26:50]MH_SAM_APDU [09:26:50]CAPDU: 80 13 01 00 [09:26:50]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:50]Read from MH i2c: E2 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 0E 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 77 [09:26:50]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:26:50]wFMCommunicate OK [09:26:50]SAM_PROTO_GetShiftState done [09:26:50]FM_GetShiftState done [09:26:50]opened in 1730333258 [09:26:50]opened+sec_in_day 1730419658 [09:26:50]quantity*price = 0 [09:26:50]sum+1 = 1 [09:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 44 31.10.2024 09:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72969 ФПД: 106036846272066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092650&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72969&fm=106036846272066&tin=02508201610067®Number=0000000000091644&sum=0 [09:26:51]StoreToDocumentArchive [09:26:51]shift 557 fd 72969 [09:26:51]save to /storage/0557/doc_00072969 [09:26:51]save last doc name /storage/0557/doc_00072969 to /storage/kkm_last_doc_name [09:26:51]save OK [09:26:51]Clear old archive folders... [09:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:51]tlvbuf is 01F182F0 [09:26:51]SAM_PROTO_ClearQueue [09:26:51]wFMCommunicate request_size=4 [09:26:51]MH_SAM_APDU [09:26:51]CAPDU: 80 09 00 00 [09:26:51]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:51]Read from MH i2c: E2 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [09:26:51]RAPDU: 90 00 [09:26:51]wFMCommunicate OK [09:26:51]SAM_PROTO_ClearQueue done [09:26:51]KKMCreateOFDPacket [09:26:51]OFDProtocolAddRootSTLVToBuf [09:26:51]FM_MakeSignedData [09:26:51]FM_MakeSignedData [09:26:51]SAM_PROTO_SignData [09:26:51]wFMCommunicate request_size=4 [09:26:51]MH_SAM_APDU [09:26:51]CAPDU: 80 0D 01 02 [09:26:51]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:51]Read from MH i2c: E2 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [09:26:51]RAPDU: 90 00 [09:26:51]wFMCommunicate OK [09:26:51]wFMCommunicate request_size=255 [09:26:51]MH_SAM_APDU [09:26: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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 5A 4D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 09 1D 01 00 35 04 06 00 60 [09:26:51]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 5A 4D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 09 1D 01 00 35 04 06 00 60 00 00 08 [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:52]Read from MH i2c: E2 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 03 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [09:26:52]RAPDU: 90 00 [09:26:52]wFMCommunicate OK [09:26:52]wFMCommunicate request_size=10 [09:26:52]MH_SAM_APDU [09:26:52]CAPDU: 80 0D 02 02 05 70 A0 8E 1E 42 [09:26:52]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 70 A0 8E 1E 42 00 00 E3 [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:52]Read from MH i2c: E2 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 03 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [09:26:52]RAPDU: 90 00 [09:26:52]wFMCommunicate OK [09:26:52]wFMCommunicate request_size=4 [09:26:52]MH_SAM_APDU [09:26:52]CAPDU: 80 0D 03 02 [09:26:52]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:52]Read from MH i2c: E2 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 0B 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 0B 00 62 00 00 95 87 C6 A4 D7 0E 6B E3 90 00 97 [09:26:52]RAPDU: 95 87 C6 A4 D7 0E 6B E3 90 00 [09:26:52]wFMCommunicate OK [09:26:52]SAM_PROTO_SignData done [09:26:52]FM_MakeSignedData done [09:26:52]CreateOFDProtocolMessage [09:26:52]wFMCommunicate request_size=4 [09:26:52]MH_SAM_APDU [09:26:52]CAPDU: 80 11 00 00 [09:26:52]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:52]Read from MH i2c: E2 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 17 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [09:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:26:52]wFMCommunicate OK [09:26:52]CreateOFDProtocolMessage done [09:26:52]OFDSenderStorePacket 72969 [09:26:52]StoreOFDPacket docnum=72969 [09:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 59 4E 07 01 05 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 5A 4D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 09 1D 01 00 35 04 06 00 60 70 A0 8E 1E 42 95 87 C6 A4 D7 0E 6B E3 [09:26:52]CheckFolder [09:26:52]dirname=/storage/ofd_packets [09:26:52]CheckFolder done [09:26:52]ProducePacketName [09:26:52]name=ofd_packets/00072969 [09:26:52]NVStorageSaveData ofd_packets/00072969 [09:26:52]File name is /storage/ofd_packets/00072969 [09:26:52]Write 301 bytes [09:26:52]NVStorageSaveData done [09:26:52]OFDSenderStorePacket done [09:26:52]KKMCreateOFDPacket done [09:26:52]NVStorageSaveData kkm_last_timestamp [09:26:52]File name is /storage/kkm_last_timestamp [09:26:52]Write 4 bytes [09:26:52]NVStorageSaveData done [09:26:52]ExternCall_PrintAddStr [09:26:52]wPrintStart [09:26:52]Write to MH i2c: 01 00 00 64 00 64 [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 07 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [09:26:52]RasterBufferAndPrint [09:26:52]line Счет N : (1)952568 [09:26:52]line ИНН: 02508201610067 [09:26:52]line Контрольно-Кассовый Чек [09:26:52]line ПРОДАЖА [09:26:52]line ТРК (МРК, ГНК) : 63 [09:26:52]line Товар: 2710124130 [09:26:52]line Аи-92-К-5 [09:26:52]line 50.000 * 0.00 [09:26:52]line = 0.00 [09:26:52]line НДС 12% НСП 1% [09:26:52]line > о реализуемом товаре [09:26:52]line ИТОГО: 0.00 [09:26:52]line НСП 1% : 0.00 [09:26:52]line НДС 12% : 0.00 [09:26:52]line Наличными: 0.00 [09:26:52]line Безнал.: 0.00 [09:26:52]line Место: АЗС № 113 "Партнер Нефть" [09:26:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:26:52]line СНО: Общий режим [09:26:52]line Чек 44 31.10.2024 09:26 [09:26:52]line Смена: 557 ФФД: 1.0 [09:26:52]line ЗНМ: 0300000087 [09:26:52]line РНМ: 0000000000091644 [09:26:52]line Версия ККМ: 001 [09:26:52]line Талоны: Топливная Карта [09:26:52]line 03047 [09:26:52]line ФМ: 0000000000874662 [09:26:52]line ФД: 72969 [09:26:52]line ФПД: 106036846272066 [09:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092650&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72969&fm=106036846272066&tin=02508201610067®Number=0000000000091644&sum=0 [09:26:52]written 0, free lines is 4095 [09:26:52]OFD Sender: Processing packet 72969 [packets to send 279, broken 278] [09:26:52]ProducePacketName [09:26:52]name=ofd_packets/00072969 [09:26:52]OFD Sender: To server: pG, [09:26:52]CommunicateWithHost lk.salyk.kg:30040 [09:26:52]ConnectInit lk.salyk.kg [09:26:53]Write to MH i2c: 01 00 00 8E 00 8E [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: 01 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: 01 07 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 E8 0C 89 [09:26:53]RasterBufferAndPrint [09:26:53]line [09:26:53]line [09:26:53]line [09:26:53]line [09:26:53]line [09:26:53]Connected sock=9 [09:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 59 4E 07 01 05 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 5A 4D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 09 1D 01 00 35 04 06 00 60 70 A0 8E 1E 42 95 87 C6 A4 D7 0E 6B E3 [09:26:53]written 0, free lines is 3348 [09:26:53]MH_Cut [09:26:53]Write to MH i2c: D1 01 00 95 00 01 67 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: D1 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: D1 01 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: D1 01 00 95 00 00 66 [09:26:53]Write to MH i2c: 01 00 00 96 00 96 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** Cut start [09:26:53]*** Partial cut [09:26:53]*** CUTSNS_PIN = 1 [09:26:53]*** CUTSNS_PIN = 0 [09:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 05 44 47 00 F5 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 09 1D 01 00 F4 03 04 00 11 F8 22 67 B6 04 01 00 00 14 94 3F F4 FD 2F FE C6 [09:26:53]CommunicateWithHost err = 0 [09:26:53]CheckOFDResponse [09:26:53]1017 (14) - 77093643461234 [09:26:53]1041 (16) - 0000000000874662 [09:26:53]1040 (4) - 72969 [09:26:53]1012 (4) - 31.10.2024 03:22 [09:26:53]1206 (1) - 0 [09:26:53]OFD Sender: Remove packet 72969 [09:26:53]ProducePacketName [09:26:53]name=ofd_packets/00072969 [09:26:53]NVStorageDeleteData [09:26:54]*** Brake cut motor [09:26:54]Read from MH i2c: 01 [09:26:54]MH_I2C_Read... [09:26:54]*** Stop cut motor [09:26:54]*** Cut end [09:26:54]Read from MH i2c: 01 07 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [09:26:54]process_action close_receipt done [09:26:54]requested_data is exist [09:26:54]produce_requested_data [09:26:54]requested_item fm.sn is exist - process it [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 11 00 00 [09:26:54]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [09:26:54]OFD Sender: No OFD packet to send [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 17 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 65 [09:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:26:54]wFMCommunicate OK [09:26:54]requested_item fd.num is exist - process it [09:26:54]SAM_PROTO_GetFieldsCounters [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 13 00 00 [09:26:54]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 62 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 09 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [09:26:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 09 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:54]wFMCommunicate OK [09:26:54]SAM_PROTO_GetFieldsCounters done [09:26:54]requested_item shift.num is exist - process it [09:26:54]requested_item shift.opened is exist - process it [09:26:54]req_shift_opened [09:26:54]FM_GetShiftState [09:26:54]SAM_PROTO_GetShiftState [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 13 01 00 [09:26:54]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 0E 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 BF [09:26:54]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:26:54]wFMCommunicate OK [09:26:54]SAM_PROTO_GetShiftState done [09:26:54]FM_GetShiftState done [09:26:54]req_shift_opened done [09:26:54]requested_item shift.open_date is exist - process it [09:26:54]req_shift_open_date [09:26:54]req_shift_open_date done [09:26:54]produce_requested_data done [09:26:54]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72969,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:26:54]process_action_free close_receipt [09:26:54]json_value_free [09:26:54]json_value_free done [09:26:54]process_json_proto returns [09:26:54]Send response to host [09:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72969,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:26:54]free response buf [09:26:54]execute_script done [09:26:54]execute_script returns [09:26:54]free content buf [09:26:54]Sock 10.Close socket [09:26:54]Sock 10.Thread stoped [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:11]recv_with_timeout no data received [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:28]recv_with_timeout no data received [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]recv_with_timeout no data received [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:05]accept exits with 6 [09:28:05]New connection [09:28:05]New thread 3066805604 created [09:28:05]Thread 3066662244 joined [09:28:05]Waiting for new connection... [09:28:05] Sock 6.Parse request [09:28:05]Sock 6.Check first char [09:28:05]Sock 6.First char is OK [09:28:05]request: POST /json_proto HTTP/1.0 [09:28:05]Method: POST [09:28:05]URL: /json_proto [09:28:05]Method is POST - this is cgi request [09:28:05]url: /json_proto [09:28:05]query_string will be loaded in cgi processing [09:28:05]execute_cgi json_proto POST (null) [09:28:05]execute_cgi path=json_proto method=POST [09:28:05]POST find Content-Length [09:28:05]Host: 172.17.43.195:8080 [09:28:05]Content-Length: 792 [09:28:05]Content-Type: application/json [09:28:05] [09:28:05]POST finish read [09:28:05]Found Content-Length = 792 [09:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:05]execute_script... [09:28: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)952571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:05]POST & json_proto [09:28:05]process_json_proto [09:28:05]json parsed OK: [09:28:05]protocol is kg_v1.0 [09:28:05]action value=close_receipt [09:28:05]process_action close_receipt [09:28:05]cmd_close_receipt [09:28:05]MH_GetDate [09:28:05]Write to MH i2c: F0 00 00 9A 00 89 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: F0 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: F0 09 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: F0 09 00 9A 00 00 A5 4D 23 67 74 2C AD 66 C1 [09:28:05]GetLastDocTimeStamp 1730366810 [09:28:05]current date 1730366885 [09:28:05]FM_GetShiftState [09:28:05]SAM_PROTO_GetShiftState [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 13 01 00 [09:28:05]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0E 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C1 [09:28:05]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:28:05]wFMCommunicate OK [09:28:05]SAM_PROTO_GetShiftState done [09:28:05]FM_GetShiftState done [09:28:05]opened in 1730333258 [09:28:05]opened+sec_in_day 1730419658 [09:28:05]quantity*price = 0 [09:28:05]sum+1 = 1 [09:28:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 45 31.10.2024 09:28 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72970 ФПД: 167485011474513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092805&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72970&fm=167485011474513&tin=02508201610067®Number=0000000000091644&sum=0 [09:28:06]StoreToDocumentArchive [09:28:06]shift 557 fd 72970 [09:28:06]save to /storage/0557/doc_00072970 [09:28:06]save last doc name /storage/0557/doc_00072970 to /storage/kkm_last_doc_name [09:28:06]save OK [09:28:06]Clear old archive folders... [09:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:06]tlvbuf is 01F450C0 [09:28:06]SAM_PROTO_ClearQueue [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 09 00 00 [09:28:06]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [09:28:06]RAPDU: 90 00 [09:28:06]wFMCommunicate OK [09:28:06]SAM_PROTO_ClearQueue done [09:28:06]KKMCreateOFDPacket [09:28:06]OFDProtocolAddRootSTLVToBuf [09:28:06]FM_MakeSignedData [09:28:06]FM_MakeSignedData [09:28:06]SAM_PROTO_SignData [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 0D 01 02 [09:28:06]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [09:28:06]RAPDU: 90 00 [09:28:06]wFMCommunicate OK [09:28:06]wFMCommunicate request_size=255 [09:28:06]MH_SAM_APDU [09:28: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A5 4D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0A 1D 01 00 35 04 06 00 98 [09:28:06]Write to MH i2c: E2 02 01 AA 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A5 4D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0A 1D 01 00 35 04 06 00 98 00 00 69 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 03 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [09:28:07]RAPDU: 90 00 [09:28:07]wFMCommunicate OK [09:28:07]wFMCommunicate request_size=10 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 0D 02 02 05 53 A4 9D 38 51 [09:28:07]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 53 A4 9D 38 51 00 00 4C [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 03 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [09:28:07]RAPDU: 90 00 [09:28:07]wFMCommunicate OK [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 0D 03 02 [09:28:07]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 0B 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 0B 00 AC 00 00 46 30 40 22 BA 7F 95 E5 90 00 B3 [09:28:07]RAPDU: 46 30 40 22 BA 7F 95 E5 90 00 [09:28:07]wFMCommunicate OK [09:28:07]SAM_PROTO_SignData done [09:28:07]FM_MakeSignedData done [09:28:07]CreateOFDProtocolMessage [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 11 00 00 [09:28:07]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 17 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7B [09:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:28:07]wFMCommunicate OK [09:28:07]CreateOFDProtocolMessage done [09:28:07]OFDSenderStorePacket 72970 [09:28:07]StoreOFDPacket docnum=72970 [09:28:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 66 95 07 01 C2 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A5 4D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0A 1D 01 00 35 04 06 00 98 53 A4 9D 38 51 46 30 40 22 BA 7F 95 E5 [09:28:07]CheckFolder [09:28:07]dirname=/storage/ofd_packets [09:28:07]CheckFolder done [09:28:07]ProducePacketName [09:28:07]name=ofd_packets/00072970 [09:28:07]NVStorageSaveData ofd_packets/00072970 [09:28:07]File name is /storage/ofd_packets/00072970 [09:28:07]Write 301 bytes [09:28:07]NVStorageSaveData done [09:28:07]OFDSenderStorePacket done [09:28:07]KKMCreateOFDPacket done [09:28:07]NVStorageSaveData kkm_last_timestamp [09:28:07]File name is /storage/kkm_last_timestamp [09:28:07]Write 4 bytes [09:28:07]NVStorageSaveData done [09:28:07]OFD Sender: Processing packet 72970 [packets to send 279, broken 278] [09:28:07]ProducePacketName [09:28:07]name=ofd_packets/00072970 [09:28:07]OFD Sender: To server: pG, [09:28:07]CommunicateWithHost lk.salyk.kg:30040 [09:28:07]ConnectInit lk.salyk.kg [09:28:07]ExternCall_PrintAddStr [09:28:07]wPrintStart [09:28:07]Write to MH i2c: 01 00 00 AE 00 AE [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: 01 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: 01 07 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [09:28:07]RasterBufferAndPrint [09:28:07]line Счет N : (1)952571 [09:28:07]line ИНН: 02508201610067 [09:28:07]line Контрольно-Кассовый Чек [09:28:07]line ПРОДАЖА [09:28:07]line ТРК (МРК, ГНК) : 53 [09:28:07]line Товар: 2710124130 [09:28:07]line Аи-92-К-5 [09:28:07]line 30.000 * 0.00 [09:28:07]line = 0.00 [09:28:07]line НДС 12% НСП 1% [09:28:07]line > о реализуемом товаре [09:28:07]line ИТОГО: 0.00 [09:28:07]line НСП 1% : 0.00 [09:28:07]line НДС 12% : 0.00 [09:28:07]line Наличными: 0.00 [09:28:07]line Безнал.: 0.00 [09:28:07]line Место: АЗС № 113 "Партнер Нефть" [09:28:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:28:07]line СНО: Общий режим [09:28:07]line Чек 45 31.10.2024 09:28 [09:28:07]line Смена: 557 ФФД: 1.0 [09:28:07]line ЗНМ: 0300000087 [09:28:07]line РНМ: 0000000000091644 [09:28:07]line Версия ККМ: 001 [09:28:07]line Талоны: Топливная Карта [09:28:07]line 03047 [09:28:07]line ФМ: 0000000000874662 [09:28:07]line ФД: 72970 [09:28:07]line ФПД: 167485011474513 [09:28:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092805&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72970&fm=167485011474513&tin=02508201610067®Number=0000000000091644&sum=0 [09:28:07]written 0, free lines is 4095 [09:28:08]Write to MH i2c: 01 00 00 D8 00 D8 [09:28:08]Write i2c OK [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: 01 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: 01 07 00 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 DD 0C C8 [09:28:08]RasterBufferAndPrint [09:28:08]line [09:28:08]line [09:28:08]line [09:28:08]line [09:28:08]line [09:28:08]written 0, free lines is 3299 [09:28:08]MH_Cut [09:28:08]Write to MH i2c: D1 01 00 DF 00 01 B1 [09:28:08]Write i2c OK [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: D1 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: D1 01 00 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: D1 01 00 DF 00 00 B0 [09:28:08]Write to MH i2c: 01 00 00 E0 00 E0 [09:28:08]Write i2c OK [09:28:08]MH_I2C_Read... [09:28:08]*** Cut start [09:28:08]*** Partial cut [09:28:08]*** CUTSNS_PIN = 1 [09:28:08]*** CUTSNS_PIN = 0 [09:28:09]*** Brake cut motor [09:28:09]Read from MH i2c: 01 [09:28:09]MH_I2C_Read... [09:28:09]*** Stop cut motor [09:28:09]*** Cut end [09:28:09]Read from MH i2c: 01 07 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [09:28:09]process_action close_receipt done [09:28:09]requested_data is exist [09:28:09]produce_requested_data [09:28:09]requested_item fm.sn is exist - process it [09:28:09]wFMCommunicate request_size=4 [09:28:09]MH_SAM_APDU [09:28:09]CAPDU: 80 11 00 00 [09:28:09]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:09]Read from MH i2c: E2 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 17 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AF [09:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:28:09]wFMCommunicate OK [09:28:09]requested_item fd.num is exist - process it [09:28:09]SAM_PROTO_GetFieldsCounters [09:28:09]wFMCommunicate request_size=4 [09:28:09]MH_SAM_APDU [09:28:09]CAPDU: 80 13 00 00 [09:28:09]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:09]Read from MH i2c: E2 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 62 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 62 00 E2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [09:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:09]wFMCommunicate OK [09:28:09]SAM_PROTO_GetFieldsCounters done [09:28:09]requested_item shift.num is exist - process it [09:28:09]requested_item shift.opened is exist - process it [09:28:09]req_shift_opened [09:28:09]FM_GetShiftState [09:28:09]SAM_PROTO_GetShiftState [09:28:09]wFMCommunicate request_size=4 [09:28:09]MH_SAM_APDU [09:28:09]CAPDU: 80 13 01 00 [09:28:09]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:09]Read from MH i2c: E2 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 0E 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 09 [09:28:09]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:28:09]wFMCommunicate OK [09:28:09]SAM_PROTO_GetShiftState done [09:28:09]FM_GetShiftState done [09:28:09]req_shift_opened done [09:28:09]requested_item shift.open_date is exist - process it [09:28:09]req_shift_open_date [09:28:09]req_shift_open_date done [09:28:09]produce_requested_data done [09:28:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72970,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:28:09]process_action_free close_receipt [09:28:09]json_value_free [09:28:09]json_value_free done [09:28:09]process_json_proto returns [09:28:09]Send response to host [09:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72970,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:28:09]free response buf [09:28:09]execute_script done [09:28:09]execute_script returns [09:28:09]free content buf [09:28:09]Sock 6.Close socket [09:28:09]Sock 6.Thread stoped [09:28:10]recv_with_timeout no data received [09:28:12]ConnectInit Can't take IP for lk.salyk.kg [09:28:12]CommunicateWithHost connect error [09:28:12]CommunicateWithHost err = -1 [09:28:12]OFD Sender: Server communicate error [09:28:17]OFD Sender: Processing packet 72970 [packets to send 279, broken 278] [09:28:17]ProducePacketName [09:28:17]name=ofd_packets/00072970 [09:28:17]OFD Sender: To server: pG, [09:28:17]CommunicateWithHost lk.salyk.kg:30040 [09:28:17]ConnectInit lk.salyk.kg [09:28:20]recv_with_timeout no data received [09:28:22]ConnectInit Can't take IP for lk.salyk.kg [09:28:22]CommunicateWithHost connect error [09:28:22]CommunicateWithHost err = -1 [09:28:22]OFD Sender: Server communicate error [09:28:27]OFD Sender: Processing packet 72970 [packets to send 279, broken 278] [09:28:27]ProducePacketName [09:28:27]name=ofd_packets/00072970 [09:28:27]OFD Sender: To server: pG, [09:28:27]CommunicateWithHost lk.salyk.kg:30040 [09:28:27]ConnectInit lk.salyk.kg [09:28:35]recv_with_timeout no data received [09:28:44]Connected sock=9 [09:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 66 95 07 01 C2 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A5 4D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0A 1D 01 00 35 04 06 00 98 53 A4 9D 38 51 46 30 40 22 BA 7F 95 E5 [09:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 71 A6 47 00 29 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0A 1D 01 00 F4 03 04 00 82 F8 22 67 B6 04 01 00 00 3F 77 10 80 96 90 D5 70 [09:28:47]CommunicateWithHost err = 0 [09:28:47]CheckOFDResponse [09:28:47]1017 (14) - 77093643461234 [09:28:47]1041 (16) - 0000000000874662 [09:28:47]1040 (4) - 72970 [09:28:47]1012 (4) - 31.10.2024 03:24 [09:28:47]1206 (1) - 0 [09:28:47]OFD Sender: Remove packet 72970 [09:28:47]ProducePacketName [09:28:47]name=ofd_packets/00072970 [09:28:47]NVStorageDeleteData [09:28:47]OFD Sender: No OFD packet to send [09:28:52]recv_with_timeout no data received [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:10]recv_with_timeout no data received [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:34]recv_with_timeout no data received [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:50]accept exits with 10 [09:30:50]New connection [09:30:50]New thread 3066662244 created [09:30:50]Thread 3066805604 joined [09:30:50]Waiting for new connection... [09:30:50] Sock 10.Parse request [09:30:50]Sock 10.Check first char [09:30:50]Sock 10.First char is OK [09:30:50]request: POST /json_proto HTTP/1.0 [09:30:50]Method: POST [09:30:50]URL: /json_proto [09:30:50]Method is POST - this is cgi request [09:30:50]url: /json_proto [09:30:50]query_string will be loaded in cgi processing [09:30:50]execute_cgi json_proto POST (null) [09:30:50]execute_cgi path=json_proto method=POST [09:30:50]POST find Content-Length [09:30:50]Host: 172.17.43.195:8080 [09:30:50]Content-Length: 792 [09:30:50]Content-Type: application/json [09:30:50] [09:30:50]POST finish read [09:30:50]Found Content-Length = 792 [09:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:50]execute_script... [09:30:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:50]POST & json_proto [09:30:50]process_json_proto [09:30:50]json parsed OK: [09:30:50]protocol is kg_v1.0 [09:30:50]action value=close_receipt [09:30:50]process_action close_receipt [09:30:50]cmd_close_receipt [09:30:50]MH_GetDate [09:30:50]Write to MH i2c: F0 00 00 E4 00 D3 [09:30:50]Write i2c OK [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: F0 [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: F0 09 00 [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: F0 09 00 E4 00 00 4A 4E 23 67 74 2C AD 66 B1 [09:30:50]GetLastDocTimeStamp 1730366885 [09:30:50]current date 1730367050 [09:30:50]FM_GetShiftState [09:30:50]SAM_PROTO_GetShiftState [09:30:50]wFMCommunicate request_size=4 [09:30:50]MH_SAM_APDU [09:30:50]CAPDU: 80 13 01 00 [09:30:50]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [09:30:50]Write i2c OK [09:30:50]MH_I2C_Read... [09:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:50]Read from MH i2c: E2 [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: E2 0E 00 [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0B [09:30:50]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:30:50]wFMCommunicate OK [09:30:50]SAM_PROTO_GetShiftState done [09:30:50]FM_GetShiftState done [09:30:50]opened in 1730333258 [09:30:50]opened+sec_in_day 1730419658 [09:30:50]quantity*price = 0 [09:30:50]sum+1 = 1 [09:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 46 31.10.2024 09:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72971 ФПД: 222183086437370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093050&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72971&fm=222183086437370&tin=02508201610067®Number=0000000000091644&sum=0 [09:30:51]StoreToDocumentArchive [09:30:51]shift 557 fd 72971 [09:30:51]save to /storage/0557/doc_00072971 [09:30:51]save last doc name /storage/0557/doc_00072971 to /storage/kkm_last_doc_name [09:30:51]save OK [09:30:51]Clear old archive folders... [09:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:51]tlvbuf is 01EAFEE0 [09:30:51]SAM_PROTO_ClearQueue [09:30:51]wFMCommunicate request_size=4 [09:30:51]MH_SAM_APDU [09:30:51]CAPDU: 80 09 00 00 [09:30:51]Write to MH i2c: E2 08 00 F2 00 80 09 00 00 00 00 00 00 64 [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:51]Read from MH i2c: E2 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [09:30:51]RAPDU: 90 00 [09:30:51]wFMCommunicate OK [09:30:51]SAM_PROTO_ClearQueue done [09:30:51]KKMCreateOFDPacket [09:30:51]OFDProtocolAddRootSTLVToBuf [09:30:51]FM_MakeSignedData [09:30:51]FM_MakeSignedData [09:30:51]SAM_PROTO_SignData [09:30:51]wFMCommunicate request_size=4 [09:30:51]MH_SAM_APDU [09:30:51]CAPDU: 80 0D 01 02 [09:30:51]Write to MH i2c: E2 08 00 F3 00 80 0D 01 02 00 00 00 00 6C [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:51]Read from MH i2c: E2 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [09:30:51]RAPDU: 90 00 [09:30:51]wFMCommunicate OK [09:30:51]wFMCommunicate request_size=255 [09:30:51]MH_SAM_APDU [09:30: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 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4A 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0B 1D 01 00 35 04 06 00 CA [09:30:51]Write to MH i2c: E2 02 01 F4 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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4A 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0B 1D 01 00 35 04 06 00 CA 00 00 28 [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:51]Read from MH i2c: E2 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [09:30:51]RAPDU: 90 00 [09:30:51]wFMCommunicate OK [09:30:51]wFMCommunicate request_size=10 [09:30:51]MH_SAM_APDU [09:30:51]CAPDU: 80 0D 02 02 05 13 07 F1 33 FA [09:30:51]Write to MH i2c: E2 0D 00 F5 00 80 0D 02 02 05 00 13 07 F1 33 FA 00 00 B1 [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:51]Read from MH i2c: E2 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [09:30:51]RAPDU: 90 00 [09:30:51]wFMCommunicate OK [09:30:51]wFMCommunicate request_size=4 [09:30:51]MH_SAM_APDU [09:30:51]CAPDU: 80 0D 03 02 [09:30:51]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:51]Read from MH i2c: E2 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 0B 00 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 0B 00 F6 00 00 DF 89 4A CA F1 04 05 2D 90 00 15 [09:30:51]RAPDU: DF 89 4A CA F1 04 05 2D 90 00 [09:30:51]wFMCommunicate OK [09:30:51]SAM_PROTO_SignData done [09:30:51]FM_MakeSignedData done [09:30:51]CreateOFDProtocolMessage [09:30:51]wFMCommunicate request_size=4 [09:30:51]MH_SAM_APDU [09:30:51]CAPDU: 80 11 00 00 [09:30:51]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:51]Read from MH i2c: E2 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 17 00 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [09:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:30:51]wFMCommunicate OK [09:30:51]CreateOFDProtocolMessage done [09:30:51]OFDSenderStorePacket 72971 [09:30:51]StoreOFDPacket docnum=72971 [09:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A7 15 07 01 7C CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4A 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0B 1D 01 00 35 04 06 00 CA 13 07 F1 33 FA DF 89 4A CA F1 04 05 2D [09:30:51]CheckFolder [09:30:51]dirname=/storage/ofd_packets [09:30:51]CheckFolder done [09:30:51]ProducePacketName [09:30:51]name=ofd_packets/00072971 [09:30:51]NVStorageSaveData ofd_packets/00072971 [09:30:51]File name is /storage/ofd_packets/00072971 [09:30:51]Write 301 bytes [09:30:51]NVStorageSaveData done [09:30:51]OFDSenderStorePacket done [09:30:51]KKMCreateOFDPacket done [09:30:51]NVStorageSaveData kkm_last_timestamp [09:30:51]File name is /storage/kkm_last_timestamp [09:30:51]Write 4 bytes [09:30:51]NVStorageSaveData done [09:30:51]ExternCall_PrintAddStr [09:30:51]wPrintStart [09:30:51]Write to MH i2c: 01 00 00 F8 00 F8 [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: 01 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: 01 07 00 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [09:30:51]RasterBufferAndPrint [09:30:51]line Счет N : (1)952572 [09:30:51]line ИНН: 02508201610067 [09:30:51]line Контрольно-Кассовый Чек [09:30:51]line ПРОДАЖА [09:30:51]line ТРК (МРК, ГНК) : 42 [09:30:51]line Товар: 2710124130 [09:30:51]line Аи-92-К-5 [09:30:51]line 29.900 * 0.00 [09:30:51]line = 0.00 [09:30:51]line НДС 12% НСП 1% [09:30:51]line > о реализуемом товаре [09:30:51]line ИТОГО: 0.00 [09:30:51]line НСП 1% : 0.00 [09:30:51]line НДС 12% : 0.00 [09:30:51]line Наличными: 0.00 [09:30:51]line Безнал.: 0.00 [09:30:51]line Место: АЗС № 113 "Партнер Нефть" [09:30:51]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:30:51]line СНО: Общий режим [09:30:51]line Чек 46 31.10.2024 09:30 [09:30:51]line Смена: 557 ФФД: 1.0 [09:30:51]line ЗНМ: 0300000087 [09:30:51]line РНМ: 0000000000091644 [09:30:51]line Версия ККМ: 001 [09:30:51]line Талоны: Топливная Карта [09:30:51]line 03047 [09:30:51]line ФМ: 0000000000874662 [09:30:51]line ФД: 72971 [09:30:51]line ФПД: 222183086437370 [09:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093050&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72971&fm=222183086437370&tin=02508201610067®Number=0000000000091644&sum=0 [09:30:51]written 0, free lines is 4095 [09:30:51]OFD Sender: Processing packet 72971 [packets to send 279, broken 278] [09:30:51]ProducePacketName [09:30:51]name=ofd_packets/00072971 [09:30:51]OFD Sender: To server: pG, [09:30:51]CommunicateWithHost lk.salyk.kg:30040 [09:30:51]ConnectInit lk.salyk.kg [09:30:52]Write to MH i2c: 01 00 00 22 01 23 [09:30:52]Write i2c OK [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: 01 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: 01 07 00 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: 01 07 00 22 01 00 00 00 00 00 F3 0C 29 [09:30:52]RasterBufferAndPrint [09:30:52]line [09:30:52]line [09:30:52]line [09:30:52]line [09:30:52]line [09:30:52]written 0, free lines is 3320 [09:30:52]MH_Cut [09:30:52]Write to MH i2c: D1 01 00 29 01 01 FC [09:30:52]Write i2c OK [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: D1 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: D1 01 00 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: D1 01 00 29 01 00 FB [09:30:52]Write to MH i2c: 01 00 00 2A 01 2B [09:30:52]Write i2c OK [09:30:52]MH_I2C_Read... [09:30:52]*** Cut start [09:30:52]*** Partial cut [09:30:52]*** CUTSNS_PIN = 1 [09:30:52]*** CUTSNS_PIN = 0 [09:30:53]*** Brake cut motor [09:30:53]Read from MH i2c: 01 [09:30:53]MH_I2C_Read... [09:30:53]*** Stop cut motor [09:30:53]Read from MH i2c: 01 07 00 [09:30:53]MH_I2C_Read... [09:30:53]*** Cut end [09:30:53]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 FF 0F 40 [09:30:53]process_action close_receipt done [09:30:53]requested_data is exist [09:30:53]produce_requested_data [09:30:53]requested_item fm.sn is exist - process it [09:30:53]wFMCommunicate request_size=4 [09:30:53]MH_SAM_APDU [09:30:53]CAPDU: 80 11 00 00 [09:30:53]Write to MH i2c: E2 08 00 2B 01 80 11 00 00 00 00 00 00 A6 [09:30:53]Write i2c OK [09:30:53]MH_I2C_Read... [09:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:53]Read from MH i2c: E2 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: E2 17 00 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: E2 17 00 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FA [09:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:30:53]wFMCommunicate OK [09:30:53]requested_item fd.num is exist - process it [09:30:53]SAM_PROTO_GetFieldsCounters [09:30:53]wFMCommunicate request_size=4 [09:30:53]MH_SAM_APDU [09:30:53]CAPDU: 80 13 00 00 [09:30:53]Write to MH i2c: E2 08 00 2C 01 80 13 00 00 00 00 00 00 A9 [09:30:53]Write i2c OK [09:30:53]MH_I2C_Read... [09:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:53]Read from MH i2c: E2 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: E2 62 00 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: E2 62 00 2C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [09:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:53]wFMCommunicate OK [09:30:53]SAM_PROTO_GetFieldsCounters done [09:30:53]requested_item shift.num is exist - process it [09:30:53]requested_item shift.opened is exist - process it [09:30:53]req_shift_opened [09:30:53]FM_GetShiftState [09:30:53]SAM_PROTO_GetShiftState [09:30:53]wFMCommunicate request_size=4 [09:30:53]MH_SAM_APDU [09:30:53]CAPDU: 80 13 01 00 [09:30:53]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [09:30:53]Write i2c OK [09:30:53]MH_I2C_Read... [09:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:53]Read from MH i2c: E2 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: E2 0E 00 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: E2 0E 00 2D 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 54 [09:30:53]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:30:53]wFMCommunicate OK [09:30:53]SAM_PROTO_GetShiftState done [09:30:53]FM_GetShiftState done [09:30:53]req_shift_opened done [09:30:53]requested_item shift.open_date is exist - process it [09:30:53]req_shift_open_date [09:30:53]req_shift_open_date done [09:30:53]produce_requested_data done [09:30:53]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72971,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:30:53]process_action_free close_receipt [09:30:53]json_value_free [09:30:53]json_value_free done [09:30:53]process_json_proto returns [09:30:53]Send response to host [09:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72971,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:30:53]free response buf [09:30:53]execute_script done [09:30:53]execute_script returns [09:30:53]free content buf [09:30:53]Sock 10.Close socket [09:30:53]Sock 10.Thread stoped [09:30:55]Connected sock=11 [09:30:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A7 15 07 01 7C CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4A 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0B 1D 01 00 35 04 06 00 CA 13 07 F1 33 FA DF 89 4A CA F1 04 05 2D [09:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 26 4C 47 00 EA 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0B 1D 01 00 F4 03 04 00 03 F9 22 67 B6 04 01 00 00 D8 52 41 74 49 66 5F BD [09:30:55]CommunicateWithHost err = 0 [09:30:55]CheckOFDResponse [09:30:55]1017 (14) - 77093643461234 [09:30:55]1041 (16) - 0000000000874662 [09:30:55]1040 (4) - 72971 [09:30:55]1012 (4) - 31.10.2024 03:26 [09:30:55]1206 (1) - 0 [09:30:55]OFD Sender: Remove packet 72971 [09:30:55]ProducePacketName [09:30:55]name=ofd_packets/00072971 [09:30:55]NVStorageDeleteData [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:24]recv_with_timeout no data received [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:14]recv_with_timeout no data received [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:52]recv_with_timeout no data received [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:28]recv_with_timeout no data received [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:18]recv_with_timeout no data received [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]recv_with_timeout no data received [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:47]recv_with_timeout no data received [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:14]accept exits with 7 [09:36:14]New connection [09:36:14]New thread 3066805604 created [09:36:14]Thread 3066662244 joined [09:36:14]Waiting for new connection... [09:36:14] Sock 7.Parse request [09:36:14]Sock 7.Check first char [09:36:14]Sock 7.First char is OK [09:36:14]request: POST /json_proto HTTP/1.0 [09:36:14]Method: POST [09:36:14]URL: /json_proto [09:36:14]Method is POST - this is cgi request [09:36:14]url: /json_proto [09:36:14]query_string will be loaded in cgi processing [09:36:14]execute_cgi json_proto POST (null) [09:36:14]execute_cgi path=json_proto method=POST [09:36:14]POST find Content-Length [09:36:14]Host: 172.17.43.195:8080 [09:36:14]Content-Length: 792 [09:36:14]Content-Type: application/json [09:36:14] [09:36:14]POST finish read [09:36:14]Found Content-Length = 792 [09:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:14]execute_script... [09:36: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)952573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:14]POST & json_proto [09:36:14]process_json_proto [09:36:14]json parsed OK: [09:36:14]protocol is kg_v1.0 [09:36:14]action value=close_receipt [09:36:14]process_action close_receipt [09:36:14]cmd_close_receipt [09:36:14]MH_GetDate [09:36:14]Write to MH i2c: F0 00 00 2E 01 1E [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: F0 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: F0 09 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: F0 09 00 2E 01 00 8E 4F 23 67 74 2C AD 66 41 [09:36:14]GetLastDocTimeStamp 1730367050 [09:36:14]current date 1730367374 [09:36:14]FM_GetShiftState [09:36:14]SAM_PROTO_GetShiftState [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 13 01 00 [09:36:14]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 0E 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 56 [09:36:14]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:36:14]wFMCommunicate OK [09:36:14]SAM_PROTO_GetShiftState done [09:36:14]FM_GetShiftState done [09:36:14]opened in 1730333258 [09:36:14]opened+sec_in_day 1730419658 [09:36:14]quantity*price = 0 [09:36:14]sum+1 = 1 [09:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 47 31.10.2024 09:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72972 ФПД: 265456856402035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093614&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72972&fm=265456856402035&tin=02508201610067®Number=0000000000091644&sum=0 [09:36:15]StoreToDocumentArchive [09:36:15]shift 557 fd 72972 [09:36:15]save to /storage/0557/doc_00072972 [09:36:15]save last doc name /storage/0557/doc_00072972 to /storage/kkm_last_doc_name [09:36:15]save OK [09:36:15]Clear old archive folders... [09:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:15]tlvbuf is B6E9D3D0 [09:36:15]SAM_PROTO_ClearQueue [09:36:15]wFMCommunicate request_size=4 [09:36:15]MH_SAM_APDU [09:36:15]CAPDU: 80 09 00 00 [09:36:15]Write to MH i2c: E2 08 00 3C 01 80 09 00 00 00 00 00 00 AF [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:15]Read from MH i2c: E2 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 03 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [09:36:15]RAPDU: 90 00 [09:36:15]wFMCommunicate OK [09:36:15]SAM_PROTO_ClearQueue done [09:36:15]KKMCreateOFDPacket [09:36:15]OFDProtocolAddRootSTLVToBuf [09:36:15]FM_MakeSignedData [09:36:15]FM_MakeSignedData [09:36:15]SAM_PROTO_SignData [09:36:15]wFMCommunicate request_size=4 [09:36:15]MH_SAM_APDU [09:36:15]CAPDU: 80 0D 01 02 [09:36:15]Write to MH i2c: E2 08 00 3D 01 80 0D 01 02 00 00 00 00 B7 [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:15]Read from MH i2c: E2 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 03 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [09:36:15]RAPDU: 90 00 [09:36:15]wFMCommunicate OK [09:36:15]wFMCommunicate request_size=255 [09:36:15]MH_SAM_APDU [09:36:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 8E 4F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0C 1D 01 00 35 04 06 00 F1 [09:36:15]Write to MH i2c: E2 02 01 3E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 8E 4F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0C 1D 01 00 35 04 06 00 F1 00 00 7D [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:16]Read from MH i2c: E2 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 03 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [09:36:16]RAPDU: 90 00 [09:36:16]wFMCommunicate OK [09:36:16]wFMCommunicate request_size=10 [09:36:16]MH_SAM_APDU [09:36:16]CAPDU: 80 0D 02 02 05 6E 7D A1 08 73 [09:36:16]Write to MH i2c: E2 0D 00 3F 01 80 0D 02 02 05 00 6E 7D A1 08 73 00 00 CB [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:16]Read from MH i2c: E2 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 03 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [09:36:16]RAPDU: 90 00 [09:36:16]wFMCommunicate OK [09:36:16]wFMCommunicate request_size=4 [09:36:16]MH_SAM_APDU [09:36:16]CAPDU: 80 0D 03 02 [09:36:16]Write to MH i2c: E2 08 00 40 01 80 0D 03 02 00 00 00 00 BC [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:16]Read from MH i2c: E2 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 0B 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 0B 00 40 01 00 EF B9 1E CA 4F 1D 56 31 90 00 40 [09:36:16]RAPDU: EF B9 1E CA 4F 1D 56 31 90 00 [09:36:16]wFMCommunicate OK [09:36:16]SAM_PROTO_SignData done [09:36:16]FM_MakeSignedData done [09:36:16]CreateOFDProtocolMessage [09:36:16]wFMCommunicate request_size=4 [09:36:16]MH_SAM_APDU [09:36:16]CAPDU: 80 11 00 00 [09:36:16]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:16]Read from MH i2c: E2 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 17 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 10 [09:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:36:16]wFMCommunicate OK [09:36:16]CreateOFDProtocolMessage done [09:36:16]OFDSenderStorePacket 72972 [09:36:16]StoreOFDPacket docnum=72972 [09:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BC D9 07 01 14 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 8E 4F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0C 1D 01 00 35 04 06 00 F1 6E 7D A1 08 73 EF B9 1E CA 4F 1D 56 31 [09:36:16]CheckFolder [09:36:16]dirname=/storage/ofd_packets [09:36:16]CheckFolder done [09:36:16]ProducePacketName [09:36:16]name=ofd_packets/00072972 [09:36:16]NVStorageSaveData ofd_packets/00072972 [09:36:16]File name is /storage/ofd_packets/00072972 [09:36:16]Write 301 bytes [09:36:16]NVStorageSaveData done [09:36:16]OFDSenderStorePacket done [09:36:16]KKMCreateOFDPacket done [09:36:16]NVStorageSaveData kkm_last_timestamp [09:36:16]File name is /storage/kkm_last_timestamp [09:36:16]Write 4 bytes [09:36:16]NVStorageSaveData done [09:36:16]ExternCall_PrintAddStr [09:36:16]wPrintStart [09:36:16]Write to MH i2c: 01 00 00 42 01 43 [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: 01 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: 01 07 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [09:36:16]RasterBufferAndPrint [09:36:16]line Счет N : (1)952573 [09:36:16]line ИНН: 02508201610067 [09:36:16]line Контрольно-Кассовый Чек [09:36:16]line ПРОДАЖА [09:36:16]line ТРК (МРК, ГНК) : 53 [09:36:16]line Товар: 2710124130 [09:36:16]line Аи-92-К-5 [09:36:16]line 40.000 * 0.00 [09:36:16]line = 0.00 [09:36:16]line НДС 12% НСП 1% [09:36:16]line > о реализуемом товаре [09:36:16]line ИТОГО: 0.00 [09:36:16]line НСП 1% : 0.00 [09:36:16]line НДС 12% : 0.00 [09:36:16]line Наличными: 0.00 [09:36:16]line Безнал.: 0.00 [09:36:16]line Место: АЗС № 113 "Партнер Нефть" [09:36:16]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:36:16]line СНО: Общий режим [09:36:16]line Чек 47 31.10.2024 09:36 [09:36:16]line Смена: 557 ФФД: 1.0 [09:36:16]line ЗНМ: 0300000087 [09:36:16]line РНМ: 0000000000091644 [09:36:16]line Версия ККМ: 001 [09:36:16]line Талоны: Топливная Карта [09:36:16]line 03047 [09:36:16]line ФМ: 0000000000874662 [09:36:16]line ФД: 72972 [09:36:16]line ФПД: 265456856402035 [09:36:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093614&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72972&fm=265456856402035&tin=02508201610067®Number=0000000000091644&sum=0 [09:36:16]written 0, free lines is 4095 [09:36:16]OFD Sender: Processing packet 72972 [packets to send 279, broken 278] [09:36:16]ProducePacketName [09:36:16]name=ofd_packets/00072972 [09:36:16]OFD Sender: To server: pG, [09:36:16]CommunicateWithHost lk.salyk.kg:30040 [09:36:16]ConnectInit lk.salyk.kg [09:36:16]Write to MH i2c: 01 00 00 6C 01 6D [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: 01 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: 01 07 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: 01 07 00 6C 01 00 00 00 00 00 DA 0C 5A [09:36:16]RasterBufferAndPrint [09:36:16]line [09:36:16]line [09:36:16]line [09:36:16]line [09:36:16]line [09:36:16]written 0, free lines is 3296 [09:36:16]MH_Cut [09:36:16]Write to MH i2c: D1 01 00 73 01 01 46 [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: D1 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: D1 01 00 [09:36:16]MH_I2C_Read... [09:36:16]Read from MH i2c: D1 01 00 73 01 00 45 [09:36:16]Write to MH i2c: 01 00 00 74 01 75 [09:36:16]Write i2c OK [09:36:16]MH_I2C_Read... [09:36:17]Connected sock=9 [09:36:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BC D9 07 01 14 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 8E 4F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0C 1D 01 00 35 04 06 00 F1 6E 7D A1 08 73 EF B9 1E CA 4F 1D 56 31 [09:36:17]*** Cut start [09:36:17]*** Partial cut [09:36:17]*** CUTSNS_PIN = 1 [09:36:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CA 39 47 00 49 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 34 36 36 32 10 04 04 00 0C 1D 01 00 F4 03 04 00 45 FA 22 67 B6 04 01 00 00 50 9B D0 A2 FE 2B AB 3A [09:36:17]CommunicateWithHost err = 0 [09:36:17]CheckOFDResponse [09:36:17]1017 (14) - 77093643461234 [09:36:17]1041 (16) - 0000000000874662 [09:36:17]1040 (4) - 72972 [09:36:17]1012 (4) - 31.10.2024 03:32 [09:36:17]1206 (1) - 0 [09:36:17]OFD Sender: Remove packet 72972 [09:36:17]ProducePacketName [09:36:17]name=ofd_packets/00072972 [09:36:17]NVStorageDeleteData [09:36:17]*** CUTSNS_PIN = 0 [09:36:17]*** Brake cut motor [09:36:18]OFD Sender: No OFD packet to send [09:36:18]Read from MH i2c: 01 [09:36:18]MH_I2C_Read... [09:36:18]*** Stop cut motor [09:36:18]*** Cut end [09:36:18]Read from MH i2c: 01 07 00 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [09:36:18]process_action close_receipt done [09:36:18]requested_data is exist [09:36:18]produce_requested_data [09:36:18]requested_item fm.sn is exist - process it [09:36:18]wFMCommunicate request_size=4 [09:36:18]MH_SAM_APDU [09:36:18]CAPDU: 80 11 00 00 [09:36:18]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [09:36:18]Write i2c OK [09:36:18]MH_I2C_Read... [09:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:18]Read from MH i2c: E2 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 17 00 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 17 00 75 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 44 [09:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:36:18]wFMCommunicate OK [09:36:18]requested_item fd.num is exist - process it [09:36:18]SAM_PROTO_GetFieldsCounters [09:36:18]wFMCommunicate request_size=4 [09:36:18]MH_SAM_APDU [09:36:18]CAPDU: 80 13 00 00 [09:36:18]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [09:36:18]Write i2c OK [09:36:18]MH_I2C_Read... [09:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:18]Read from MH i2c: E2 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 62 00 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 62 00 76 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [09:36:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:18]wFMCommunicate OK [09:36:18]SAM_PROTO_GetFieldsCounters done [09:36:18]requested_item shift.num is exist - process it [09:36:18]requested_item shift.opened is exist - process it [09:36:18]req_shift_opened [09:36:18]FM_GetShiftState [09:36:18]SAM_PROTO_GetShiftState [09:36:18]wFMCommunicate request_size=4 [09:36:18]MH_SAM_APDU [09:36:18]CAPDU: 80 13 01 00 [09:36:18]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [09:36:18]Write i2c OK [09:36:18]MH_I2C_Read... [09:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:18]Read from MH i2c: E2 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 0E 00 [09:36:18]MH_I2C_Read... [09:36:18]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 9E [09:36:18]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:36:18]wFMCommunicate OK [09:36:18]SAM_PROTO_GetShiftState done [09:36:18]FM_GetShiftState done [09:36:18]req_shift_opened done [09:36:18]requested_item shift.open_date is exist - process it [09:36:18]req_shift_open_date [09:36:18]req_shift_open_date done [09:36:18]produce_requested_data done [09:36:18]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72972,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:36:18]process_action_free close_receipt [09:36:18]json_value_free [09:36:18]json_value_free done [09:36:18]process_json_proto returns [09:36:18]Send response to host [09:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72972,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:36:18]free response buf [09:36:18]execute_script done [09:36:18]execute_script returns [09:36:18]free content buf [09:36:18]Sock 7.Close socket [09:36:18]Sock 7.Thread stoped [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:52]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:20]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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:36]accept exits with 10 [09:39:36]New connection [09:39:36]New thread 3066662244 created [09:39:36]Thread 3066805604 joined [09:39:36]Waiting for new connection... [09:39:36] Sock 10.Parse request [09:39:36]Sock 10.Check first char [09:39:36]Sock 10.First char is OK [09:39:36]request: POST /json_proto HTTP/1.0 [09:39:36]Method: POST [09:39:36]URL: /json_proto [09:39:36]Method is POST - this is cgi request [09:39:36]url: /json_proto [09:39:36]query_string will be loaded in cgi processing [09:39:36]execute_cgi json_proto POST (null) [09:39:36]execute_cgi path=json_proto method=POST [09:39:36]POST find Content-Length [09:39:36]Host: 172.17.43.195:8080 [09:39:36]Content-Length: 758 [09:39:36]Content-Type: application/json [09:39:36] [09:39:36]POST finish read [09:39:36]Found Content-Length = 758 [09:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 2.630, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30161055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]execute_script... [09:39:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 2.630, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30161055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]POST & json_proto [09:39:36]process_json_proto [09:39:36]json parsed OK: [09:39:36]protocol is kg_v1.0 [09:39:36]action value=close_receipt [09:39:36]process_action close_receipt [09:39:36]cmd_close_receipt [09:39:36]MH_GetDate [09:39:36]Write to MH i2c: F0 00 00 78 01 68 [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 78 01 00 58 50 23 67 74 2C AD 66 56 [09:39:36]GetLastDocTimeStamp 1730367374 [09:39:36]current date 1730367576 [09:39:36]FM_GetShiftState [09:39:36]SAM_PROTO_GetShiftState [09:39:36]wFMCommunicate request_size=4 [09:39:36]MH_SAM_APDU [09:39:36]CAPDU: 80 13 01 00 [09:39:36]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:36]Read from MH i2c: E2 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A0 [09:39:36]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:39:36]wFMCommunicate OK [09:39:36]SAM_PROTO_GetShiftState done [09:39:36]FM_GetShiftState done [09:39:36]opened in 1730333258 [09:39:36]opened+sec_in_day 1730419658 [09:39:36]quantity*price = 0 [09:39:36]sum+1 = 1 [09:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 48 31.10.2024 09:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30161055 ФМ: 0000000000874662 ФД: 72973 ФПД: 40786497795995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093936&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72973&fm=40786497795995&tin=02508201610067®Number=0000000000091644&sum=0 [09:39:37]StoreToDocumentArchive [09:39:37]shift 557 fd 72973 [09:39:37]save to /storage/0557/doc_00072973 [09:39:37]save last doc name /storage/0557/doc_00072973 to /storage/kkm_last_doc_name [09:39:37]save OK [09:39:37]Clear old archive folders... [09:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:39:37]tlvbuf is 01F4AAE0 [09:39:37]SAM_PROTO_ClearQueue [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 09 00 00 [09:39:37]Write to MH i2c: E2 08 00 86 01 80 09 00 00 00 00 00 00 F9 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]SAM_PROTO_ClearQueue done [09:39:37]KKMCreateOFDPacket [09:39:37]OFDProtocolAddRootSTLVToBuf [09:39:37]FM_MakeSignedData [09:39:37]FM_MakeSignedData [09:39:37]SAM_PROTO_SignData [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 01 02 [09:39:37]Write to MH i2c: E2 08 00 87 01 80 0D 01 02 00 00 00 00 01 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=255 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 58 50 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0D 1D 01 00 35 04 06 00 [09:39:37]Write to MH i2c: E2 02 01 88 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 58 50 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0D 1D 01 00 35 04 06 00 00 00 52 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=11 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 02 02 06 25 18 58 B6 77 9B [09:39:38]Write to MH i2c: E2 0E 00 89 01 80 0D 02 02 06 00 25 18 58 B6 77 9B 00 00 6D [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 03 02 [09:39:38]Write to MH i2c: E2 08 00 8A 01 80 0D 03 02 00 00 00 00 06 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 8A 01 00 1C A7 21 E1 AE CC D3 C5 90 00 DE [09:39:38]RAPDU: 1C A7 21 E1 AE CC D3 C5 90 00 [09:39:38]wFMCommunicate OK [09:39:38]SAM_PROTO_SignData done [09:39:38]FM_MakeSignedData done [09:39:38]CreateOFDProtocolMessage [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 11 00 00 [09:39:38]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5A [09:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:39:38]wFMCommunicate OK [09:39:38]CreateOFDProtocolMessage done [09:39:38]OFDSenderStorePacket 72973 [09:39:38]StoreOFDPacket docnum=72973 [09:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 8F F3 08 01 D2 10 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 58 50 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0D 1D 01 00 35 04 06 00 25 18 58 B6 77 9B 1C A7 21 E1 AE CC D3 C5 [09:39:38]CheckFolder [09:39:38]dirname=/storage/ofd_packets [09:39:38]CheckFolder done [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00072973 [09:39:38]NVStorageSaveData ofd_packets/00072973 [09:39:38]File name is /storage/ofd_packets/00072973 [09:39:38]Write 302 bytes [09:39:38]NVStorageSaveData done [09:39:38]OFDSenderStorePacket done [09:39:38]KKMCreateOFDPacket done [09:39:38]NVStorageSaveData kkm_last_timestamp [09:39:38]File name is /storage/kkm_last_timestamp [09:39:38]Write 4 bytes [09:39:38]NVStorageSaveData done [09:39:38]ExternCall_PrintAddStr [09:39:38]wPrintStart [09:39:38]Write to MH i2c: 01 00 00 8C 01 8D [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [09:39:38]RasterBufferAndPrint [09:39:38]line Счет N : (1)952574 [09:39:38]line ИНН: 02508201610067 [09:39:38]line Контрольно-Кассовый Чек [09:39:38]line ПРОДАЖА [09:39:38]line ТРК (МРК, ГНК) : 43 [09:39:38]line Товар: 2710194210 [09:39:38]line ДТ(л)-К-5 [09:39:38]line 2.630 * 0.00 [09:39:38]line = 0.00 [09:39:38]line НДС 12% НСП 1% [09:39:38]line > о реализуемом товаре [09:39:38]line ИТОГО: 0.00 [09:39:38]line НСП 1% : 0.00 [09:39:38]line НДС 12% : 0.00 [09:39:38]line Наличными: 0.00 [09:39:38]line Безнал.: 0.00 [09:39:38]line Место: АЗС № 113 "Партнер Нефть" [09:39:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:39:38]line СНО: Общий режим [09:39:38]line Чек 48 31.10.2024 09:39 [09:39:38]line Смена: 557 ФФД: 1.0 [09:39:38]line ЗНМ: 0300000087 [09:39:38]line РНМ: 0000000000091644 [09:39:38]line Версия ККМ: 001 [09:39:38]line Талоны: ТК ГПНА Online [09:39:38]line 30161055 [09:39:38]line ФМ: 0000000000874662 [09:39:38]line ФД: 72973 [09:39:38]line ФПД: 40786497795995 [09:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093936&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72973&fm=40786497795995&tin=02508201610067®Number=0000000000091644&sum=0 [09:39:38]OFD Sender: Processing packet 72973 [packets to send 279, broken 278] [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00072973 [09:39:38]OFD Sender: To server: pG, [09:39:38]CommunicateWithHost lk.salyk.kg:30040 [09:39:38]ConnectInit lk.salyk.kg [09:39:38]written 0, free lines is 4095 [09:39:39]Write to MH i2c: 01 00 00 B6 01 B7 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 07 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 DA 0C A4 [09:39:39]RasterBufferAndPrint [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]written 0, free lines is 3296 [09:39:39]MH_Cut [09:39:39]Write to MH i2c: D1 01 00 BD 01 01 90 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 01 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 01 00 BD 01 00 8F [09:39:39]Write to MH i2c: 01 00 00 BE 01 BF [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]*** Cut start [09:39:39]*** Partial cut [09:39:39]*** CUTSNS_PIN = 1 [09:39:39]*** CUTSNS_PIN = 0 [09:39:40]*** Brake cut motor [09:39:40]Read from MH i2c: 01 [09:39:40]MH_I2C_Read... [09:39:40]*** Stop cut motor [09:39:40]*** Cut end [09:39:40]Read from MH i2c: 01 07 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 FF 0F D4 [09:39:40]process_action close_receipt done [09:39:40]requested_data is exist [09:39:40]produce_requested_data [09:39:40]requested_item fm.sn is exist - process it [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 11 00 00 [09:39:40]Write to MH i2c: E2 08 00 BF 01 80 11 00 00 00 00 00 00 3A [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 17 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 17 00 BF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8E [09:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:39:40]wFMCommunicate OK [09:39:40]requested_item fd.num is exist - process it [09:39:40]SAM_PROTO_GetFieldsCounters [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 00 00 [09:39:40]Write to MH i2c: E2 08 00 C0 01 80 13 00 00 00 00 00 00 3D [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 C0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [09:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetFieldsCounters done [09:39:40]requested_item shift.num is exist - process it [09:39:40]requested_item shift.opened is exist - process it [09:39:40]req_shift_opened [09:39:40]FM_GetShiftState [09:39:40]SAM_PROTO_GetShiftState [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 01 00 [09:39:40]Write to MH i2c: E2 08 00 C1 01 80 13 01 00 00 00 00 00 3F [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 C1 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E8 [09:39:40]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetShiftState done [09:39:40]FM_GetShiftState done [09:39:40]req_shift_opened done [09:39:40]requested_item shift.open_date is exist - process it [09:39:40]req_shift_open_date [09:39:40]req_shift_open_date done [09:39:40]produce_requested_data done [09:39:40]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72973,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:39:40]process_action_free close_receipt [09:39:40]json_value_free [09:39:40]json_value_free done [09:39:40]process_json_proto returns [09:39:40]Send response to host [09:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72973,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:39:40]free response buf [09:39:40]execute_script done [09:39:40]execute_script returns [09:39:40]free content buf [09:39:40]Sock 10.Close socket [09:39:40]Sock 10.Thread stoped [09:39:41]Connected sock=11 [09:39:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 8F F3 08 01 D2 10 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 58 50 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0D 1D 01 00 35 04 06 00 25 18 58 B6 77 9B 1C A7 21 E1 AE CC D3 C5 [09:39:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FA 44 47 00 80 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0D 1D 01 00 F4 03 04 00 11 FB 22 67 B6 04 01 00 00 73 C6 82 C6 7E 0D 9A 90 [09:39:41]CommunicateWithHost err = 0 [09:39:41]CheckOFDResponse [09:39:41]1017 (14) - 77093643461234 [09:39:41]1041 (16) - 0000000000874662 [09:39:41]1040 (4) - 72973 [09:39:41]1012 (4) - 31.10.2024 03:35 [09:39:41]1206 (1) - 0 [09:39:41]OFD Sender: Remove packet 72973 [09:39:41]ProducePacketName [09:39:41]name=ofd_packets/00072973 [09:39:41]NVStorageDeleteData [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:00]recv_with_timeout no data received [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:41]recv_with_timeout no data received [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:12]accept exits with 7 [09:42:12]New connection [09:42:12]New thread 3066805604 created [09:42:12]Thread 3066662244 joined [09:42:12]Waiting for new connection... [09:42:12] Sock 7.Parse request [09:42:12]Sock 7.Check first char [09:42:12]Sock 7.First char is OK [09:42:12]request: POST /json_proto HTTP/1.0 [09:42:12]Method: POST [09:42:12]URL: /json_proto [09:42:12]Method is POST - this is cgi request [09:42:12]url: /json_proto [09:42:12]query_string will be loaded in cgi processing [09:42:12]execute_cgi json_proto POST (null) [09:42:12]execute_cgi path=json_proto method=POST [09:42:12]POST find Content-Length [09:42:12]Host: 172.17.43.195:8080 [09:42:12]Content-Length: 792 [09:42:12]Content-Type: application/json [09:42:12] [09:42:12]POST finish read [09:42:12]Found Content-Length = 792 [09:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:12]execute_script... [09:42: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)952575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:12]POST & json_proto [09:42:12]process_json_proto [09:42:12]json parsed OK: [09:42:12]protocol is kg_v1.0 [09:42:12]action value=close_receipt [09:42:12]process_action close_receipt [09:42:12]cmd_close_receipt [09:42:12]MH_GetDate [09:42:12]Write to MH i2c: F0 00 00 C2 01 B2 [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: F0 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: F0 09 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: F0 09 00 C2 01 00 F4 50 23 67 74 2C AD 66 3C [09:42:12]GetLastDocTimeStamp 1730367576 [09:42:12]current date 1730367732 [09:42:12]FM_GetShiftState [09:42:12]SAM_PROTO_GetShiftState [09:42:12]wFMCommunicate request_size=4 [09:42:12]MH_SAM_APDU [09:42:12]CAPDU: 80 13 01 00 [09:42:12]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:12]Read from MH i2c: E2 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 0E 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 EA [09:42:12]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:42:12]wFMCommunicate OK [09:42:12]SAM_PROTO_GetShiftState done [09:42:12]FM_GetShiftState done [09:42:12]opened in 1730333258 [09:42:12]opened+sec_in_day 1730419658 [09:42:12]quantity*price = 0 [09:42:12]sum+1 = 1 [09:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 49 31.10.2024 09:42 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72974 ФПД: 117713437391491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T094212&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72974&fm=117713437391491&tin=02508201610067®Number=0000000000091644&sum=0 [09:42:13]StoreToDocumentArchive [09:42:13]shift 557 fd 72974 [09:42:13]save to /storage/0557/doc_00072974 [09:42:13]save last doc name /storage/0557/doc_00072974 to /storage/kkm_last_doc_name [09:42:13]save OK [09:42:13]Clear old archive folders... [09:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:13]tlvbuf is 01ECA100 [09:42:13]SAM_PROTO_ClearQueue [09:42:13]wFMCommunicate request_size=4 [09:42:13]MH_SAM_APDU [09:42:13]CAPDU: 80 09 00 00 [09:42:13]Write to MH i2c: E2 08 00 D0 01 80 09 00 00 00 00 00 00 43 [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:13]Read from MH i2c: E2 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 03 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [09:42:13]RAPDU: 90 00 [09:42:13]wFMCommunicate OK [09:42:13]SAM_PROTO_ClearQueue done [09:42:13]KKMCreateOFDPacket [09:42:13]OFDProtocolAddRootSTLVToBuf [09:42:13]FM_MakeSignedData [09:42:13]FM_MakeSignedData [09:42:13]SAM_PROTO_SignData [09:42:13]wFMCommunicate request_size=4 [09:42:13]MH_SAM_APDU [09:42:13]CAPDU: 80 0D 01 02 [09:42:13]Write to MH i2c: E2 08 00 D1 01 80 0D 01 02 00 00 00 00 4B [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:13]Read from MH i2c: E2 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 03 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [09:42:13]RAPDU: 90 00 [09:42:13]wFMCommunicate OK [09:42:13]wFMCommunicate request_size=255 [09:42:13]MH_SAM_APDU [09:42:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F4 50 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0E 1D 01 00 35 04 06 00 6B [09:42:13]Write to MH i2c: E2 02 01 D2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F4 50 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0E 1D 01 00 35 04 06 00 6B 00 00 51 [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [09:42:14]RAPDU: 90 00 [09:42:14]wFMCommunicate OK [09:42:14]wFMCommunicate request_size=10 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 0D 02 02 05 0F 4B 9E FA 83 [09:42:14]Write to MH i2c: E2 0D 00 D3 01 80 0D 02 02 05 00 0F 4B 9E FA 83 00 00 CD [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [09:42:14]RAPDU: 90 00 [09:42:14]wFMCommunicate OK [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 0D 03 02 [09:42:14]Write to MH i2c: E2 08 00 D4 01 80 0D 03 02 00 00 00 00 50 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 0B 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 0B 00 D4 01 00 37 98 B1 BE 93 51 98 A4 90 00 AF [09:42:14]RAPDU: 37 98 B1 BE 93 51 98 A4 90 00 [09:42:14]wFMCommunicate OK [09:42:14]SAM_PROTO_SignData done [09:42:14]FM_MakeSignedData done [09:42:14]CreateOFDProtocolMessage [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 11 00 00 [09:42:14]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 17 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A4 [09:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:42:14]wFMCommunicate OK [09:42:14]CreateOFDProtocolMessage done [09:42:14]OFDSenderStorePacket 72974 [09:42:14]StoreOFDPacket docnum=72974 [09:42:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2C FB 07 01 9C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F4 50 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0E 1D 01 00 35 04 06 00 6B 0F 4B 9E FA 83 37 98 B1 BE 93 51 98 A4 [09:42:14]CheckFolder [09:42:14]dirname=/storage/ofd_packets [09:42:14]CheckFolder done [09:42:14]ProducePacketName [09:42:14]name=ofd_packets/00072974 [09:42:14]NVStorageSaveData ofd_packets/00072974 [09:42:14]File name is /storage/ofd_packets/00072974 [09:42:14]Write 301 bytes [09:42:14]NVStorageSaveData done [09:42:14]OFDSenderStorePacket done [09:42:14]KKMCreateOFDPacket done [09:42:14]NVStorageSaveData kkm_last_timestamp [09:42:14]File name is /storage/kkm_last_timestamp [09:42:14]Write 4 bytes [09:42:14]NVStorageSaveData done [09:42:14]ExternCall_PrintAddStr [09:42:14]wPrintStart [09:42:14]Write to MH i2c: 01 00 00 D6 01 D7 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: 01 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: 01 07 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [09:42:14]RasterBufferAndPrint [09:42:14]line Счет N : (1)952575 [09:42:14]line ИНН: 02508201610067 [09:42:14]line Контрольно-Кассовый Чек [09:42:14]line ПРОДАЖА [09:42:14]line ТРК (МРК, ГНК) : 63 [09:42:14]line Товар: 2710124130 [09:42:14]line Аи-92-К-5 [09:42:14]line 10.000 * 0.00 [09:42:14]line = 0.00 [09:42:14]line НДС 12% НСП 1% [09:42:14]line > о реализуемом товаре [09:42:14]line ИТОГО: 0.00 [09:42:14]line НСП 1% : 0.00 [09:42:14]line НДС 12% : 0.00 [09:42:14]line Наличными: 0.00 [09:42:14]line Безнал.: 0.00 [09:42:14]line Место: АЗС № 113 "Партнер Нефть" [09:42:14]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:42:14]line СНО: Общий режим [09:42:14]line Чек 49 31.10.2024 09:42 [09:42:14]line Смена: 557 ФФД: 1.0 [09:42:14]line ЗНМ: 0300000087 [09:42:14]line РНМ: 0000000000091644 [09:42:14]line Версия ККМ: 001 [09:42:14]line Талоны: Топливная Карта [09:42:14]line 03047 [09:42:14]line ФМ: 0000000000874662 [09:42:14]line ФД: 72974 [09:42:14]line ФПД: 117713437391491 [09:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T094212&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72974&fm=117713437391491&tin=02508201610067®Number=0000000000091644&sum=0 [09:42:14]written 0, free lines is 4095 [09:42:14]OFD Sender: Processing packet 72974 [packets to send 279, broken 278] [09:42:14]ProducePacketName [09:42:14]name=ofd_packets/00072974 [09:42:14]OFD Sender: To server: pG, [09:42:14]CommunicateWithHost lk.salyk.kg:30040 [09:42:14]ConnectInit lk.salyk.kg [09:42:14]Write to MH i2c: 01 00 00 00 02 02 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: 01 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: 01 07 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 D4 0C E9 [09:42:14]RasterBufferAndPrint [09:42:14]line [09:42:14]line [09:42:14]line [09:42:14]line [09:42:14]line [09:42:14]written 0, free lines is 3290 [09:42:14]MH_Cut [09:42:14]Write to MH i2c: D1 01 00 07 02 01 DB [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: D1 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: D1 01 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: D1 01 00 07 02 00 DA [09:42:14]Write to MH i2c: 01 00 00 08 02 0A [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]Connected sock=10 [09:42:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2C FB 07 01 9C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F4 50 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0E 1D 01 00 35 04 06 00 6B 0F 4B 9E FA 83 37 98 B1 BE 93 51 98 A4 [09:42:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E9 BF 47 00 8C 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 34 36 36 32 10 04 04 00 0E 1D 01 00 F4 03 04 00 AB FB 22 67 B6 04 01 00 00 18 3D 01 11 97 49 F0 DC [09:42:15]CommunicateWithHost err = 0 [09:42:15]CheckOFDResponse [09:42:15]1017 (14) - 77093643461234 [09:42:15]1041 (16) - 0000000000874662 [09:42:15]1040 (4) - 72974 [09:42:15]1012 (4) - 31.10.2024 03:38 [09:42:15]1206 (1) - 0 [09:42:15]OFD Sender: Remove packet 72974 [09:42:15]ProducePacketName [09:42:15]name=ofd_packets/00072974 [09:42:15]NVStorageDeleteData [09:42:15]*** Cut start [09:42:15]*** Partial cut [09:42:15]*** CUTSNS_PIN = 1 [09:42:15]*** CUTSNS_PIN = 0 [09:42:15]*** Brake cut motor [09:42:15]OFD Sender: No OFD packet to send [09:42:16]Read from MH i2c: 01 [09:42:16]MH_I2C_Read... [09:42:16]*** Stop cut motor [09:42:16]*** Cut end [09:42:16]Read from MH i2c: 01 07 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 FF 0F 1F [09:42:16]process_action close_receipt done [09:42:16]requested_data is exist [09:42:16]produce_requested_data [09:42:16]requested_item fm.sn is exist - process it [09:42:16]wFMCommunicate request_size=4 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 11 00 00 [09:42:16]Write to MH i2c: E2 08 00 09 02 80 11 00 00 00 00 00 00 85 [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 17 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 17 00 09 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D9 [09:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:42:16]wFMCommunicate OK [09:42:16]requested_item fd.num is exist - process it [09:42:16]SAM_PROTO_GetFieldsCounters [09:42:16]wFMCommunicate request_size=4 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 13 00 00 [09:42:16]Write to MH i2c: E2 08 00 0A 02 80 13 00 00 00 00 00 00 88 [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 62 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 62 00 0A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [09:42:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:16]wFMCommunicate OK [09:42:16]SAM_PROTO_GetFieldsCounters done [09:42:16]requested_item shift.num is exist - process it [09:42:16]requested_item shift.opened is exist - process it [09:42:16]req_shift_opened [09:42:16]FM_GetShiftState [09:42:16]SAM_PROTO_GetShiftState [09:42:16]wFMCommunicate request_size=4 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 13 01 00 [09:42:16]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 0E 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 33 [09:42:16]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:42:16]wFMCommunicate OK [09:42:16]SAM_PROTO_GetShiftState done [09:42:16]FM_GetShiftState done [09:42:16]req_shift_opened done [09:42:16]requested_item shift.open_date is exist - process it [09:42:16]req_shift_open_date [09:42:16]req_shift_open_date done [09:42:16]produce_requested_data done [09:42:16]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72974,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:42:16]process_action_free close_receipt [09:42:16]json_value_free [09:42:16]json_value_free done [09:42:16]process_json_proto returns [09:42:16]Send response to host [09:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72974,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:42:16]free response buf [09:42:16]execute_script done [09:42:16]execute_script returns [09:42:16]free content buf [09:42:16]Sock 7.Close socket [09:42:16]Sock 7.Thread stoped [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]recv_with_timeout no data received [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:41]recv_with_timeout no data received [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:51]accept exits with 9 [09:42:51]New connection [09:42:51]New thread 3066662244 created [09:42:51]Thread 3066805604 joined [09:42:51]Waiting for new connection... [09:42:51] Sock 9.Parse request [09:42:51]Sock 9.Check first char [09:42:51]Sock 9.First char is OK [09:42:51]request: POST /json_proto HTTP/1.0 [09:42:51]Method: POST [09:42:51]URL: /json_proto [09:42:51]Method is POST - this is cgi request [09:42:51]url: /json_proto [09:42:51]query_string will be loaded in cgi processing [09:42:51]execute_cgi json_proto POST (null) [09:42:51]execute_cgi path=json_proto method=POST [09:42:51]POST find Content-Length [09:42:51]Host: 172.17.43.195:8080 [09:42:51]Content-Length: 792 [09:42:51]Content-Type: application/json [09:42:51] [09:42:51]POST finish read [09:42:51]Found Content-Length = 792 [09:42:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 17.940, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:51]execute_script... [09:42:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 17.940, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:51]POST & json_proto [09:42:51]process_json_proto [09:42:51]json parsed OK: [09:42:51]protocol is kg_v1.0 [09:42:51]action value=close_receipt [09:42:51]process_action close_receipt [09:42:51]cmd_close_receipt [09:42:51]MH_GetDate [09:42:51]Write to MH i2c: F0 00 00 0C 02 FD [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: F0 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: F0 09 00 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: F0 09 00 0C 02 00 1B 51 23 67 74 2C AD 66 AF [09:42:51]GetLastDocTimeStamp 1730367732 [09:42:51]current date 1730367771 [09:42:51]FM_GetShiftState [09:42:51]SAM_PROTO_GetShiftState [09:42:51]wFMCommunicate request_size=4 [09:42:51]MH_SAM_APDU [09:42:51]CAPDU: 80 13 01 00 [09:42:51]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:51]Read from MH i2c: E2 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 0E 00 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 35 [09:42:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:42:51]wFMCommunicate OK [09:42:51]SAM_PROTO_GetShiftState done [09:42:51]FM_GetShiftState done [09:42:51]opened in 1730333258 [09:42:51]opened+sec_in_day 1730419658 [09:42:51]quantity*price = 0 [09:42:51]sum+1 = 1 [09:42:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 50 31.10.2024 09:42 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72975 ФПД: 252630920671230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T094252&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72975&fm=252630920671230&tin=02508201610067®Number=0000000000091644&sum=0 [09:42:52]StoreToDocumentArchive [09:42:52]shift 557 fd 72975 [09:42:52]save to /storage/0557/doc_00072975 [09:42:52]save last doc name /storage/0557/doc_00072975 to /storage/kkm_last_doc_name [09:42:52]save OK [09:42:52]Clear old archive folders... [09:42:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:52]tlvbuf is 01F707F0 [09:42:52]SAM_PROTO_ClearQueue [09:42:52]wFMCommunicate request_size=4 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 09 00 00 [09:42:52]Write to MH i2c: E2 08 00 1A 02 80 09 00 00 00 00 00 00 8E [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [09:42:52]RAPDU: 90 00 [09:42:52]wFMCommunicate OK [09:42:52]SAM_PROTO_ClearQueue done [09:42:52]KKMCreateOFDPacket [09:42:52]OFDProtocolAddRootSTLVToBuf [09:42:52]FM_MakeSignedData [09:42:52]FM_MakeSignedData [09:42:52]SAM_PROTO_SignData [09:42:52]wFMCommunicate request_size=4 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 0D 01 02 [09:42:52]Write to MH i2c: E2 08 00 1B 02 80 0D 01 02 00 00 00 00 96 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [09:42:52]RAPDU: 90 00 [09:42:52]wFMCommunicate OK [09:42:52]wFMCommunicate request_size=255 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 1C 51 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0F 1D 01 00 35 04 06 00 E5 [09:42:52]Write to MH i2c: E2 02 01 1C 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 14 46 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 1C 51 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0F 1D 01 00 35 04 06 00 E5 00 00 64 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:53]Read from MH i2c: E2 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [09:42:53]RAPDU: 90 00 [09:42:53]wFMCommunicate OK [09:42:53]wFMCommunicate request_size=10 [09:42:53]MH_SAM_APDU [09:42:53]CAPDU: 80 0D 02 02 05 C4 38 49 2F FE [09:42:53]Write to MH i2c: E2 0D 00 1D 02 80 0D 02 02 05 00 C4 38 49 2F FE 00 00 15 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:53]Read from MH i2c: E2 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [09:42:53]RAPDU: 90 00 [09:42:53]wFMCommunicate OK [09:42:53]wFMCommunicate request_size=4 [09:42:53]MH_SAM_APDU [09:42:53]CAPDU: 80 0D 03 02 [09:42:53]Write to MH i2c: E2 08 00 1E 02 80 0D 03 02 00 00 00 00 9B [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:53]Read from MH i2c: E2 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 0B 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 0B 00 1E 02 00 85 0A EC 8A 76 68 72 25 90 00 16 [09:42:53]RAPDU: 85 0A EC 8A 76 68 72 25 90 00 [09:42:53]wFMCommunicate OK [09:42:53]SAM_PROTO_SignData done [09:42:53]FM_MakeSignedData done [09:42:53]CreateOFDProtocolMessage [09:42:53]wFMCommunicate request_size=4 [09:42:53]MH_SAM_APDU [09:42:53]CAPDU: 80 11 00 00 [09:42:53]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:53]Read from MH i2c: E2 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 17 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EF [09:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:42:53]wFMCommunicate OK [09:42:53]CreateOFDProtocolMessage done [09:42:53]OFDSenderStorePacket 72975 [09:42:53]StoreOFDPacket docnum=72975 [09:42:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E3 4F 07 01 CA 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 1C 51 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0F 1D 01 00 35 04 06 00 E5 C4 38 49 2F FE 85 0A EC 8A 76 68 72 25 [09:42:53]CheckFolder [09:42:53]dirname=/storage/ofd_packets [09:42:53]CheckFolder done [09:42:53]ProducePacketName [09:42:53]name=ofd_packets/00072975 [09:42:53]NVStorageSaveData ofd_packets/00072975 [09:42:53]File name is /storage/ofd_packets/00072975 [09:42:53]Write 301 bytes [09:42:53]NVStorageSaveData done [09:42:53]OFDSenderStorePacket done [09:42:53]KKMCreateOFDPacket done [09:42:53]NVStorageSaveData kkm_last_timestamp [09:42:53]File name is /storage/kkm_last_timestamp [09:42:53]Write 4 bytes [09:42:53]NVStorageSaveData done [09:42:53]ExternCall_PrintAddStr [09:42:53]wPrintStart [09:42:53]Write to MH i2c: 01 00 00 20 02 22 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: 01 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: 01 07 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [09:42:53]RasterBufferAndPrint [09:42:53]line Счет N : (1)952576 [09:42:53]line ИНН: 02508201610067 [09:42:53]line Контрольно-Кассовый Чек [09:42:53]line ПРОДАЖА [09:42:53]line ТРК (МРК, ГНК) : 53 [09:42:53]line Товар: 2710124130 [09:42:53]line Аи-92-К-5 [09:42:53]line 17.940 * 0.00 [09:42:53]line = 0.00 [09:42:53]line НДС 12% НСП 1% [09:42:53]line > о реализуемом товаре [09:42:53]line ИТОГО: 0.00 [09:42:53]line НСП 1% : 0.00 [09:42:53]line НДС 12% : 0.00 [09:42:53]line Наличными: 0.00 [09:42:53]line Безнал.: 0.00 [09:42:53]line Место: АЗС № 113 "Партнер Нефть" [09:42:53]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:42:53]line СНО: Общий режим [09:42:53]line Чек 50 31.10.2024 09:42 [09:42:53]line Смена: 557 ФФД: 1.0 [09:42:53]line ЗНМ: 0300000087 [09:42:53]line РНМ: 0000000000091644 [09:42:53]line Версия ККМ: 001 [09:42:53]line Талоны: Топливная Карта [09:42:53]line 03047 [09:42:53]line ФМ: 0000000000874662 [09:42:53]line ФД: 72975 [09:42:53]line ФПД: 252630920671230 [09:42:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T094252&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72975&fm=252630920671230&tin=02508201610067®Number=0000000000091644&sum=0 [09:42:53]written 0, free lines is 4095 [09:42:53]OFD Sender: Processing packet 72975 [packets to send 279, broken 278] [09:42:53]ProducePacketName [09:42:53]name=ofd_packets/00072975 [09:42:53]OFD Sender: To server: pG, [09:42:53]CommunicateWithHost lk.salyk.kg:30040 [09:42:53]ConnectInit lk.salyk.kg [09:42:53]Write to MH i2c: 01 00 00 4A 02 4C [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: 01 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: 01 07 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 DD 0C 3C [09:42:53]RasterBufferAndPrint [09:42:53]line [09:42:53]line [09:42:53]line [09:42:53]line [09:42:53]line [09:42:53]written 0, free lines is 3299 [09:42:53]MH_Cut [09:42:53]Write to MH i2c: D1 01 00 51 02 01 25 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: D1 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: D1 01 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: D1 01 00 51 02 00 24 [09:42:53]Write to MH i2c: 01 00 00 52 02 54 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:54]*** Cut start [09:42:54]*** Partial cut [09:42:54]*** CUTSNS_PIN = 1 [09:42:54]*** CUTSNS_PIN = 0 [09:42:54]*** Brake cut motor [09:42:55]Read from MH i2c: 01 [09:42:55]MH_I2C_Read... [09:42:55]*** Stop cut motor [09:42:55]*** Cut end [09:42:55]Read from MH i2c: 01 07 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 FF 0F 69 [09:42:55]process_action close_receipt done [09:42:55]requested_data is exist [09:42:55]produce_requested_data [09:42:55]requested_item fm.sn is exist - process it [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 11 00 00 [09:42:55]Write to MH i2c: E2 08 00 53 02 80 11 00 00 00 00 00 00 CF [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:55]Read from MH i2c: E2 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 17 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 17 00 53 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 23 [09:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:42:55]wFMCommunicate OK [09:42:55]requested_item fd.num is exist - process it [09:42:55]SAM_PROTO_GetFieldsCounters [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 13 00 00 [09:42:55]Write to MH i2c: E2 08 00 54 02 80 13 00 00 00 00 00 00 D2 [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:55]Read from MH i2c: E2 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 62 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 62 00 54 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [09:42:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 0F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:55]wFMCommunicate OK [09:42:55]SAM_PROTO_GetFieldsCounters done [09:42:55]requested_item shift.num is exist - process it [09:42:55]requested_item shift.opened is exist - process it [09:42:55]req_shift_opened [09:42:55]FM_GetShiftState [09:42:55]SAM_PROTO_GetShiftState [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 13 01 00 [09:42:55]Write to MH i2c: E2 08 00 55 02 80 13 01 00 00 00 00 00 D4 [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:55]Read from MH i2c: E2 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 0E 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 0E 00 55 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 7D [09:42:55]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:42:55]wFMCommunicate OK [09:42:55]SAM_PROTO_GetShiftState done [09:42:55]FM_GetShiftState done [09:42:55]req_shift_opened done [09:42:55]requested_item shift.open_date is exist - process it [09:42:55]req_shift_open_date [09:42:55]req_shift_open_date done [09:42:55]produce_requested_data done [09:42:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72975,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:42:55]process_action_free close_receipt [09:42:55]json_value_free [09:42:55]json_value_free done [09:42:55]process_json_proto returns [09:42:55]Send response to host [09:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72975,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:42:55]free response buf [09:42:55]execute_script done [09:42:55]execute_script returns [09:42:55]free content buf [09:42:55]Sock 9.Close socket [09:42:55]Sock 9.Thread stoped [09:42:57]Connected sock=11 [09:42:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E3 4F 07 01 CA 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 1C 51 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0F 1D 01 00 35 04 06 00 E5 C4 38 49 2F FE 85 0A EC 8A 76 68 72 25 [09:42:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0B 10 47 00 7B B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 0F 1D 01 00 F4 03 04 00 D6 FB 22 67 B6 04 01 00 00 5F B9 FC 6D A7 98 B8 02 [09:42:58]CommunicateWithHost err = 0 [09:42:58]CheckOFDResponse [09:42:58]1017 (14) - 77093643461234 [09:42:58]1041 (16) - 0000000000874662 [09:42:58]1040 (4) - 72975 [09:42:58]1012 (4) - 31.10.2024 03:39 [09:42:58]1206 (1) - 0 [09:42:58]OFD Sender: Remove packet 72975 [09:42:58]ProducePacketName [09:42:58]name=ofd_packets/00072975 [09:42:58]NVStorageDeleteData [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:06]recv_with_timeout no data received [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:21]recv_with_timeout no data received [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:33]recv_with_timeout no data received [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:48]recv_with_timeout no data received [09:43:49]OFD Sender: No OFD packet to send [09:43:52]accept exits with 10 [09:43:52]New connection [09:43:52]New thread 3066805604 created [09:43:52]Thread 3066662244 joined [09:43:52]Waiting for new connection... [09:43:52] Sock 10.Parse request [09:43:52]Sock 10.Check first char [09:43:52]Sock 10.First char is OK [09:43:52]request: POST /json_proto HTTP/1.0 [09:43:52]Method: POST [09:43:52]URL: /json_proto [09:43:52]Method is POST - this is cgi request [09:43:52]url: /json_proto [09:43:52]query_string will be loaded in cgi processing [09:43:52]execute_cgi json_proto POST (null) [09:43:52]execute_cgi path=json_proto method=POST [09:43:52]POST find Content-Length [09:43:52]Host: 172.17.43.195:8080 [09:43:52]Content-Length: 792 [09:43:52]Content-Type: application/json [09:43:52] [09:43:52]POST finish read [09:43:52]Found Content-Length = 792 [09:43:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 32.360, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:52]execute_script... [09:43: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)952577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 32.360, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:52]POST & json_proto [09:43:52]process_json_proto [09:43:52]json parsed OK: [09:43:52]protocol is kg_v1.0 [09:43:52]action value=close_receipt [09:43:52]process_action close_receipt [09:43:52]cmd_close_receipt [09:43:52]MH_GetDate [09:43:52]Write to MH i2c: F0 00 00 56 02 47 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: F0 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: F0 09 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: F0 09 00 56 02 00 58 51 23 67 74 2C AD 66 36 [09:43:52]GetLastDocTimeStamp 1730367772 [09:43:52]current date 1730367832 [09:43:52]FM_GetShiftState [09:43:52]SAM_PROTO_GetShiftState [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 13 01 00 [09:43:52]Write to MH i2c: E2 08 00 57 02 80 13 01 00 00 00 00 00 D6 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 0E 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 0E 00 57 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 7F [09:43:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:43:52]wFMCommunicate OK [09:43:52]SAM_PROTO_GetShiftState done [09:43:52]FM_GetShiftState done [09:43:52]opened in 1730333258 [09:43:52]opened+sec_in_day 1730419658 [09:43:52]quantity*price = 0 [09:43:52]sum+1 = 1 [09:43:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 51 31.10.2024 09:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72976 ФПД: 117912747066714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T094352&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72976&fm=117912747066714&tin=02508201610067®Number=0000000000091644&sum=0 [09:43:53]StoreToDocumentArchive [09:43:53]shift 557 fd 72976 [09:43:53]save to /storage/0557/doc_00072976 [09:43:53]save last doc name /storage/0557/doc_00072976 to /storage/kkm_last_doc_name [09:43:53]save OK [09:43:53]Clear old archive folders... [09:43:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:53]tlvbuf is 01F706C0 [09:43:53]SAM_PROTO_ClearQueue [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 09 00 00 [09:43:53]Write to MH i2c: E2 08 00 64 02 80 09 00 00 00 00 00 00 D8 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [09:43:53]RAPDU: 90 00 [09:43:53]wFMCommunicate OK [09:43:53]SAM_PROTO_ClearQueue done [09:43:53]KKMCreateOFDPacket [09:43:53]OFDProtocolAddRootSTLVToBuf [09:43:53]FM_MakeSignedData [09:43:53]FM_MakeSignedData [09:43:53]SAM_PROTO_SignData [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 0D 01 02 [09:43:53]Write to MH i2c: E2 08 00 65 02 80 0D 01 02 00 00 00 00 E0 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [09:43:53]RAPDU: 90 00 [09:43:53]wFMCommunicate OK [09:43:53]wFMCommunicate request_size=255 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 7E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 58 51 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 10 1D 01 00 35 04 06 00 6B [09:43:53]Write to MH i2c: E2 02 01 66 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 68 7E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 58 51 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 10 1D 01 00 35 04 06 00 6B 00 00 FE [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [09:43:54]RAPDU: 90 00 [09:43:54]wFMCommunicate OK [09:43:54]wFMCommunicate request_size=10 [09:43:54]MH_SAM_APDU [09:43:54]CAPDU: 80 0D 02 02 05 3D B3 67 45 5A [09:43:54]Write to MH i2c: E2 0D 00 67 02 80 0D 02 02 05 00 3D B3 67 45 5A 00 00 E3 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [09:43:54]RAPDU: 90 00 [09:43:54]wFMCommunicate OK [09:43:54]wFMCommunicate request_size=4 [09:43:54]MH_SAM_APDU [09:43:54]CAPDU: 80 0D 03 02 [09:43:54]Write to MH i2c: E2 08 00 68 02 80 0D 03 02 00 00 00 00 E5 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 0B 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 0B 00 68 02 00 1F 37 DC B8 30 8A AA BA 90 00 EE [09:43:54]RAPDU: 1F 37 DC B8 30 8A AA BA 90 00 [09:43:54]wFMCommunicate OK [09:43:54]SAM_PROTO_SignData done [09:43:54]FM_MakeSignedData done [09:43:54]CreateOFDProtocolMessage [09:43:54]wFMCommunicate request_size=4 [09:43:54]MH_SAM_APDU [09:43:54]CAPDU: 80 11 00 00 [09:43:54]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 17 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 39 [09:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:43:54]wFMCommunicate OK [09:43:54]CreateOFDProtocolMessage done [09:43:54]OFDSenderStorePacket 72976 [09:43:54]StoreOFDPacket docnum=72976 [09:43:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 52 9D 07 01 CC 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 68 7E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 58 51 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 10 1D 01 00 35 04 06 00 6B 3D B3 67 45 5A 1F 37 DC B8 30 8A AA BA [09:43:54]CheckFolder [09:43:54]dirname=/storage/ofd_packets [09:43:54]CheckFolder done [09:43:54]ProducePacketName [09:43:54]name=ofd_packets/00072976 [09:43:54]NVStorageSaveData ofd_packets/00072976 [09:43:54]File name is /storage/ofd_packets/00072976 [09:43:54]Write 301 bytes [09:43:54]NVStorageSaveData done [09:43:54]OFDSenderStorePacket done [09:43:54]KKMCreateOFDPacket done [09:43:54]NVStorageSaveData kkm_last_timestamp [09:43:54]File name is /storage/kkm_last_timestamp [09:43:54]Write 4 bytes [09:43:54]NVStorageSaveData done [09:43:54]ExternCall_PrintAddStr [09:43:54]wPrintStart [09:43:54]Write to MH i2c: 01 00 00 6A 02 6C [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 07 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [09:43:54]RasterBufferAndPrint [09:43:54]line Счет N : (1)952577 [09:43:54]line ИНН: 02508201610067 [09:43:54]line Контрольно-Кассовый Чек [09:43:54]line ПРОДАЖА [09:43:54]line ТРК (МРК, ГНК) : 42 [09:43:54]line Товар: 2710124130 [09:43:54]line Аи-92-К-5 [09:43:54]line 32.360 * 0.00 [09:43:54]line = 0.00 [09:43:54]line НДС 12% НСП 1% [09:43:54]line > о реализуемом товаре [09:43:54]line ИТОГО: 0.00 [09:43:54]line НСП 1% : 0.00 [09:43:54]line НДС 12% : 0.00 [09:43:54]line Наличными: 0.00 [09:43:54]line Безнал.: 0.00 [09:43:54]line Место: АЗС № 113 "Партнер Нефть" [09:43:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:43:54]line СНО: Общий режим [09:43:54]line Чек 51 31.10.2024 09:43 [09:43:54]line Смена: 557 ФФД: 1.0 [09:43:54]line ЗНМ: 0300000087 [09:43:54]line РНМ: 0000000000091644 [09:43:54]line Версия ККМ: 001 [09:43:54]line Талоны: Топливная Карта [09:43:54]line 03047 [09:43:54]line ФМ: 0000000000874662 [09:43:54]line ФД: 72976 [09:43:54]line ФПД: 117912747066714 [09:43:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T094352&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72976&fm=117912747066714&tin=02508201610067®Number=0000000000091644&sum=0 [09:43:54]OFD Sender: Processing packet 72976 [packets to send 279, broken 278] [09:43:54]ProducePacketName [09:43:54]name=ofd_packets/00072976 [09:43:54]OFD Sender: To server: pG, [09:43:54]CommunicateWithHost lk.salyk.kg:30040 [09:43:54]ConnectInit lk.salyk.kg [09:43:54]written 0, free lines is 4095 [09:43:55]Write to MH i2c: 01 00 00 94 02 96 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 07 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 07 00 94 02 00 00 00 00 00 DA 0C 83 [09:43:55]RasterBufferAndPrint [09:43:55]line [09:43:55]line [09:43:55]line [09:43:55]line [09:43:55]line [09:43:55]written 0, free lines is 3296 [09:43:55]MH_Cut [09:43:55]Write to MH i2c: D1 01 00 9B 02 01 6F [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: D1 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: D1 01 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: D1 01 00 9B 02 00 6E [09:43:55]Write to MH i2c: 01 00 00 9C 02 9E [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** Cut start [09:43:55]*** Partial cut [09:43:55]*** CUTSNS_PIN = 1 [09:43:55]*** CUTSNS_PIN = 0 [09:43:56]*** Brake cut motor [09:43:56]Read from MH i2c: 01 [09:43:56]MH_I2C_Read... [09:43:56]*** Stop cut motor [09:43:56]*** Cut end [09:43:56]Read from MH i2c: 01 07 00 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 FF 0F B3 [09:43:56]process_action close_receipt done [09:43:56]requested_data is exist [09:43:56]produce_requested_data [09:43:56]requested_item fm.sn is exist - process it [09:43:56]wFMCommunicate request_size=4 [09:43:56]MH_SAM_APDU [09:43:56]CAPDU: 80 11 00 00 [09:43:56]Write to MH i2c: E2 08 00 9D 02 80 11 00 00 00 00 00 00 19 [09:43:56]Write i2c OK [09:43:56]MH_I2C_Read... [09:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:56]Read from MH i2c: E2 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 17 00 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 17 00 9D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6D [09:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:43:56]wFMCommunicate OK [09:43:56]requested_item fd.num is exist - process it [09:43:56]SAM_PROTO_GetFieldsCounters [09:43:56]wFMCommunicate request_size=4 [09:43:56]MH_SAM_APDU [09:43:56]CAPDU: 80 13 00 00 [09:43:56]Write to MH i2c: E2 08 00 9E 02 80 13 00 00 00 00 00 00 1C [09:43:56]Write i2c OK [09:43:56]MH_I2C_Read... [09:43:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:56]Read from MH i2c: E2 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 62 00 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 62 00 9E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 10 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [09:43:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 10 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:56]wFMCommunicate OK [09:43:56]SAM_PROTO_GetFieldsCounters done [09:43:56]requested_item shift.num is exist - process it [09:43:56]requested_item shift.opened is exist - process it [09:43:56]req_shift_opened [09:43:56]FM_GetShiftState [09:43:56]SAM_PROTO_GetShiftState [09:43:56]wFMCommunicate request_size=4 [09:43:56]MH_SAM_APDU [09:43:56]CAPDU: 80 13 01 00 [09:43:56]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [09:43:56]Write i2c OK [09:43:56]MH_I2C_Read... [09:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:56]Read from MH i2c: E2 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 0E 00 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C7 [09:43:56]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:43:56]wFMCommunicate OK [09:43:56]SAM_PROTO_GetShiftState done [09:43:56]FM_GetShiftState done [09:43:56]req_shift_opened done [09:43:56]requested_item shift.open_date is exist - process it [09:43:56]req_shift_open_date [09:43:56]req_shift_open_date done [09:43:56]produce_requested_data done [09:43:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72976,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:43:56]process_action_free close_receipt [09:43:56]json_value_free [09:43:56]json_value_free done [09:43:56]process_json_proto returns [09:43:56]Send response to host [09:43:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72976,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:43:56]free response buf [09:43:56]execute_script done [09:43:56]execute_script returns [09:43:56]free content buf [09:43:56]Sock 10.Close socket [09:43:56]Sock 10.Thread stoped [09:43:57]Connected sock=11 [09:43:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 52 9D 07 01 CC 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 68 7E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 58 51 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 10 1D 01 00 35 04 06 00 6B 3D B3 67 45 5A 1F 37 DC B8 30 8A AA BA [09:43:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C9 FC 47 00 24 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 10 1D 01 00 F4 03 04 00 11 FC 22 67 B6 04 01 00 00 93 09 E5 1B BB 13 EA D2 [09:43:57]CommunicateWithHost err = 0 [09:43:57]CheckOFDResponse [09:43:57]1017 (14) - 77093643461234 [09:43:57]1041 (16) - 0000000000874662 [09:43:57]1040 (4) - 72976 [09:43:57]1012 (4) - 31.10.2024 03:40 [09:43:57]1206 (1) - 0 [09:43:57]OFD Sender: Remove packet 72976 [09:43:57]ProducePacketName [09:43:57]name=ofd_packets/00072976 [09:43:57]NVStorageDeleteData [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:00]recv_with_timeout no data received [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:16]recv_with_timeout no data received [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:25]recv_with_timeout no data received [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:39]recv_with_timeout no data received [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:51]recv_with_timeout no data received [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:09]recv_with_timeout no data received [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:21]recv_with_timeout no data received [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:31]recv_with_timeout no data received [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:49]accept exits with 7 [09:50:49]New connection [09:50:49]New thread 3066662244 created [09:50:49]Thread 3066805604 joined [09:50:49]Waiting for new connection... [09:50:49] Sock 7.Parse request [09:50:49]Sock 7.Check first char [09:50:49]Sock 7.First char is OK [09:50:49]request: POST /json_proto HTTP/1.0 [09:50:49]Method: POST [09:50:49]URL: /json_proto [09:50:49]Method is POST - this is cgi request [09:50:49]url: /json_proto [09:50:49]query_string will be loaded in cgi processing [09:50:49]execute_cgi json_proto POST (null) [09:50:49]execute_cgi path=json_proto method=POST [09:50:49]POST find Content-Length [09:50:49]Host: 172.17.43.195:8080 [09:50:49]Content-Length: 791 [09:50:49]Content-Type: application/json [09:50:49] [09:50:49]POST finish read [09:50:49]Found Content-Length = 791 [09:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:49]execute_script... [09:50: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)952578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:49]POST & json_proto [09:50:49]process_json_proto [09:50:49]json parsed OK: [09:50:49]protocol is kg_v1.0 [09:50:49]action value=close_receipt [09:50:49]process_action close_receipt [09:50:49]cmd_close_receipt [09:50:49]MH_GetDate [09:50:49]Write to MH i2c: F0 00 00 A0 02 91 [09:50:49]Write i2c OK [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: F0 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: F0 09 00 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: F0 09 00 A0 02 00 F9 52 23 67 74 2C AD 66 22 [09:50:49]GetLastDocTimeStamp 1730367832 [09:50:49]current date 1730368249 [09:50:49]FM_GetShiftState [09:50:49]SAM_PROTO_GetShiftState [09:50:49]wFMCommunicate request_size=4 [09:50:49]MH_SAM_APDU [09:50:49]CAPDU: 80 13 01 00 [09:50:49]Write to MH i2c: E2 08 00 A1 02 80 13 01 00 00 00 00 00 20 [09:50:49]Write i2c OK [09:50:49]MH_I2C_Read... [09:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:49]Read from MH i2c: E2 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: E2 0E 00 [09:50:49]MH_I2C_Read... [09:50:49]Read from MH i2c: E2 0E 00 A1 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C9 [09:50:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:50:49]wFMCommunicate OK [09:50:49]SAM_PROTO_GetShiftState done [09:50:49]FM_GetShiftState done [09:50:49]opened in 1730333258 [09:50:49]opened+sec_in_day 1730419658 [09:50:49]quantity*price = 0 [09:50:49]sum+1 = 1 [09:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 52 31.10.2024 09:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72977 ФПД: 261733610232422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095049&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72977&fm=261733610232422&tin=02508201610067®Number=0000000000091644&sum=0 [09:50:50]StoreToDocumentArchive [09:50:50]shift 557 fd 72977 [09:50:50]save to /storage/0557/doc_00072977 [09:50:50]save last doc name /storage/0557/doc_00072977 to /storage/kkm_last_doc_name [09:50:50]save OK [09:50:50]Clear old archive folders... [09:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:50]tlvbuf is 01F65CF0 [09:50:50]SAM_PROTO_ClearQueue [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 09 00 00 [09:50:50]Write to MH i2c: E2 08 00 AE 02 80 09 00 00 00 00 00 00 22 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]SAM_PROTO_ClearQueue done [09:50:50]KKMCreateOFDPacket [09:50:50]OFDProtocolAddRootSTLVToBuf [09:50:50]FM_MakeSignedData [09:50:50]FM_MakeSignedData [09:50:50]SAM_PROTO_SignData [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 01 02 [09:50:50]Write to MH i2c: E2 08 00 AF 02 80 0D 01 02 00 00 00 00 2A [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]wFMCommunicate request_size=255 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F9 52 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 11 1D 01 00 35 04 06 00 EE [09:50:50]Write to MH i2c: E2 02 01 B0 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F9 52 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 11 1D 01 00 35 04 06 00 EE 00 00 DE [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]wFMCommunicate request_size=10 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 02 02 05 0B 9A DD 1A 66 [09:50:50]Write to MH i2c: E2 0D 00 B1 02 80 0D 02 02 05 00 0B 9A DD 1A 66 00 00 39 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [09:50:50]RAPDU: 90 00 [09:50:50]wFMCommunicate OK [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 0D 03 02 [09:50:50]Write to MH i2c: E2 08 00 B2 02 80 0D 03 02 00 00 00 00 2F [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 0B 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 0B 00 B2 02 00 DE E5 20 8D C0 D9 32 65 90 00 D0 [09:50:50]RAPDU: DE E5 20 8D C0 D9 32 65 90 00 [09:50:50]wFMCommunicate OK [09:50:50]SAM_PROTO_SignData done [09:50:50]FM_MakeSignedData done [09:50:50]CreateOFDProtocolMessage [09:50:50]wFMCommunicate request_size=4 [09:50:50]MH_SAM_APDU [09:50:50]CAPDU: 80 11 00 00 [09:50:50]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:50]Read from MH i2c: E2 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 17 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 83 [09:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:50:50]wFMCommunicate OK [09:50:50]CreateOFDProtocolMessage done [09:50:50]OFDSenderStorePacket 72977 [09:50:50]StoreOFDPacket docnum=72977 [09:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 14 07 01 72 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F9 52 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 11 1D 01 00 35 04 06 00 EE 0B 9A DD 1A 66 DE E5 20 8D C0 D9 32 65 [09:50:50]CheckFolder [09:50:50]dirname=/storage/ofd_packets [09:50:50]CheckFolder done [09:50:50]ProducePacketName [09:50:50]name=ofd_packets/00072977 [09:50:50]NVStorageSaveData ofd_packets/00072977 [09:50:50]File name is /storage/ofd_packets/00072977 [09:50:50]Write 301 bytes [09:50:50]NVStorageSaveData done [09:50:50]OFDSenderStorePacket done [09:50:50]KKMCreateOFDPacket done [09:50:50]NVStorageSaveData kkm_last_timestamp [09:50:50]File name is /storage/kkm_last_timestamp [09:50:50]Write 4 bytes [09:50:50]NVStorageSaveData done [09:50:50]ExternCall_PrintAddStr [09:50:50]wPrintStart [09:50:50]Write to MH i2c: 01 00 00 B4 02 B6 [09:50:50]Write i2c OK [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: 01 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: 01 07 00 [09:50:50]MH_I2C_Read... [09:50:50]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [09:50:50]RasterBufferAndPrint [09:50:50]line Счет N : (1)952578 [09:50:50]line ИНН: 02508201610067 [09:50:50]line Контрольно-Кассовый Чек [09:50:50]line ПРОДАЖА [09:50:50]line ТРК (МРК, ГНК) : 63 [09:50:50]line Товар: 2710124130 [09:50:50]line Аи-92-К-5 [09:50:50]line 7.480 * 0.00 [09:50:50]line = 0.00 [09:50:50]line НДС 12% НСП 1% [09:50:50]line > о реализуемом товаре [09:50:50]line ИТОГО: 0.00 [09:50:50]line НСП 1% : 0.00 [09:50:50]line НДС 12% : 0.00 [09:50:50]line Наличными: 0.00 [09:50:50]line Безнал.: 0.00 [09:50:50]line Место: АЗС № 113 "Партнер Нефть" [09:50:50]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:50:50]line СНО: Общий режим [09:50:50]line Чек 52 31.10.2024 09:50 [09:50:50]line Смена: 557 ФФД: 1.0 [09:50:50]line ЗНМ: 0300000087 [09:50:50]line РНМ: 0000000000091644 [09:50:50]line Версия ККМ: 001 [09:50:50]line Талоны: Топливная Карта [09:50:50]line 03047 [09:50:50]line ФМ: 0000000000874662 [09:50:50]line ФД: 72977 [09:50:50]line ФПД: 261733610232422 [09:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095049&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72977&fm=261733610232422&tin=02508201610067®Number=0000000000091644&sum=0 [09:50:50]written 0, free lines is 4095 [09:50:51]OFD Sender: Processing packet 72977 [packets to send 279, broken 278] [09:50:51]ProducePacketName [09:50:51]name=ofd_packets/00072977 [09:50:51]OFD Sender: To server: pG, [09:50:51]CommunicateWithHost lk.salyk.kg:30040 [09:50:51]ConnectInit lk.salyk.kg [09:50:51]Write to MH i2c: 01 00 00 DE 02 E0 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: 01 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: 01 07 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 DA 0C CD [09:50:51]RasterBufferAndPrint [09:50:51]line [09:50:51]line [09:50:51]line [09:50:51]line [09:50:51]line [09:50:51]written 0, free lines is 3296 [09:50:51]MH_Cut [09:50:51]Write to MH i2c: D1 01 00 E5 02 01 B9 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: D1 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: D1 01 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: D1 01 00 E5 02 00 B8 [09:50:51]Write to MH i2c: 01 00 00 E6 02 E8 [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:52]*** Cut start [09:50:52]*** Partial cut [09:50:52]*** CUTSNS_PIN = 1 [09:50:52]*** CUTSNS_PIN = 0 [09:50:52]Connected sock=10 [09:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 14 07 01 72 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F9 52 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 11 1D 01 00 35 04 06 00 EE 0B 9A DD 1A 66 DE E5 20 8D C0 D9 32 65 [09:50:52]*** Brake cut motor [09:50:52]Read from MH i2c: 01 [09:50:52]MH_I2C_Read... [09:50:52]*** Stop cut motor [09:50:52]*** Cut end [09:50:52]Read from MH i2c: 01 07 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 FF 0F FD [09:50:52]process_action close_receipt done [09:50:52]requested_data is exist [09:50:52]produce_requested_data [09:50:52]requested_item fm.sn is exist - process it [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 11 00 00 [09:50:52]Write to MH i2c: E2 08 00 E7 02 80 11 00 00 00 00 00 00 63 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 17 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 17 00 E7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B7 [09:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:50:52]wFMCommunicate OK [09:50:52]requested_item fd.num is exist - process it [09:50:52]SAM_PROTO_GetFieldsCounters [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 13 00 00 [09:50:52]Write to MH i2c: E2 08 00 E8 02 80 13 00 00 00 00 00 00 66 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 62 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 62 00 E8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 11 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [09:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 11 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:52]wFMCommunicate OK [09:50:52]SAM_PROTO_GetFieldsCounters done [09:50:52]requested_item shift.num is exist - process it [09:50:52]requested_item shift.opened is exist - process it [09:50:52]req_shift_opened [09:50:52]FM_GetShiftState [09:50:52]SAM_PROTO_GetShiftState [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 13 01 00 [09:50:52]Write to MH i2c: E2 08 00 E9 02 80 13 01 00 00 00 00 00 68 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:53]Read from MH i2c: E2 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 0E 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 0E 00 E9 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 11 [09:50:53]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:50:53]wFMCommunicate OK [09:50:53]SAM_PROTO_GetShiftState done [09:50:53]FM_GetShiftState done [09:50:53]req_shift_opened done [09:50:53]requested_item shift.open_date is exist - process it [09:50:53]req_shift_open_date [09:50:53]req_shift_open_date done [09:50:53]produce_requested_data done [09:50:53]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72977,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:50:53]process_action_free close_receipt [09:50:53]json_value_free [09:50:53]json_value_free done [09:50:53]process_json_proto returns [09:50:53]Send response to host [09:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72977,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:50:53]free response buf [09:50:53]execute_script done [09:50:53]execute_script returns [09:50:53]free content buf [09:50:53]Sock 7.Close socket [09:50:53]Sock 7.Thread stoped [09:50:57]recv_with_timeout no data received [09:50:57]CommunicateWithHost answer receiving error [09:50:57]CommunicateWithHost err = -3 [09:50:57]OFD Sender: Server communicate error [09:50:57]recv_with_timeout no data received [09:51:02]OFD Sender: Processing packet 72977 [packets to send 279, broken 278] [09:51:02]ProducePacketName [09:51:02]name=ofd_packets/00072977 [09:51:02]OFD Sender: To server: pG, [09:51:02]CommunicateWithHost lk.salyk.kg:30040 [09:51:02]ConnectInit lk.salyk.kg [09:51:05]Connected sock=10 [09:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 14 07 01 72 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F9 52 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 11 1D 01 00 35 04 06 00 EE 0B 9A DD 1A 66 DE E5 20 8D C0 D9 32 65 [09:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 25 D6 47 00 FF 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 11 1D 01 00 F4 03 04 00 BD FD 22 67 B6 04 01 00 00 FF 4E 47 BC 62 6D F7 A1 [09:51:05]CommunicateWithHost err = 0 [09:51:05]CheckOFDResponse [09:51:05]1017 (14) - 77093643461234 [09:51:05]1041 (16) - 0000000000874662 [09:51:05]1040 (4) - 72977 [09:51:05]1012 (4) - 31.10.2024 03:47 [09:51:05]1206 (1) - 0 [09:51:05]OFD Sender: Remove packet 72977 [09:51:05]ProducePacketName [09:51:05]name=ofd_packets/00072977 [09:51:05]NVStorageDeleteData [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:32]recv_with_timeout no data received [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]recv_with_timeout no data received [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:55:56]recv_with_timeout no data received [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:15]recv_with_timeout no data received [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:54]accept exits with 9 [09:57:54]New connection [09:57:54]New thread 3066805604 created [09:57:54]Thread 3066662244 joined [09:57:54]Waiting for new connection... [09:57:54] Sock 9.Parse request [09:57:54]Sock 9.Check first char [09:57:54]Sock 9.First char is OK [09:57:54]request: POST /json_proto HTTP/1.0 [09:57:54]Method: POST [09:57:54]URL: /json_proto [09:57:54]Method is POST - this is cgi request [09:57:54]url: /json_proto [09:57:54]query_string will be loaded in cgi processing [09:57:54]execute_cgi json_proto POST (null) [09:57:54]execute_cgi path=json_proto method=POST [09:57:54]POST find Content-Length [09:57:54]Host: 172.17.43.195:8080 [09:57:54]Content-Length: 792 [09:57:54]Content-Type: application/json [09:57:54] [09:57:54]POST finish read [09:57:54]Found Content-Length = 792 [09:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:54]execute_script... [09:57:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:54]POST & json_proto [09:57:54]process_json_proto [09:57:54]json parsed OK: [09:57:54]protocol is kg_v1.0 [09:57:54]action value=close_receipt [09:57:54]process_action close_receipt [09:57:54]cmd_close_receipt [09:57:54]MH_GetDate [09:57:54]Write to MH i2c: F0 00 00 EA 02 DB [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: F0 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: F0 09 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: F0 09 00 EA 02 00 A3 54 23 67 74 2C AD 66 18 [09:57:54]GetLastDocTimeStamp 1730368249 [09:57:54]current date 1730368675 [09:57:54]FM_GetShiftState [09:57:54]SAM_PROTO_GetShiftState [09:57:54]wFMCommunicate request_size=4 [09:57:54]MH_SAM_APDU [09:57:54]CAPDU: 80 13 01 00 [09:57:54]Write to MH i2c: E2 08 00 EB 02 80 13 01 00 00 00 00 00 6A [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:54]Read from MH i2c: E2 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 0E 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 0E 00 EB 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 13 [09:57:54]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:57:54]wFMCommunicate OK [09:57:54]SAM_PROTO_GetShiftState done [09:57:54]FM_GetShiftState done [09:57:54]opened in 1730333258 [09:57:54]opened+sec_in_day 1730419658 [09:57:54]quantity*price = 0 [09:57:54]sum+1 = 1 [09:57:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 53 31.10.2024 09:57 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72978 ФПД: 133753085935481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095755&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72978&fm=133753085935481&tin=02508201610067®Number=0000000000091644&sum=0 [09:57:56]StoreToDocumentArchive [09:57:56]shift 557 fd 72978 [09:57:56]save to /storage/0557/doc_00072978 [09:57:56]save last doc name /storage/0557/doc_00072978 to /storage/kkm_last_doc_name [09:57:56]save OK [09:57:56]Clear old archive folders... [09:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:56]tlvbuf is 01F67600 [09:57:56]SAM_PROTO_ClearQueue [09:57:56]wFMCommunicate request_size=4 [09:57:56]MH_SAM_APDU [09:57:56]CAPDU: 80 09 00 00 [09:57:56]Write to MH i2c: E2 08 00 F8 02 80 09 00 00 00 00 00 00 6C [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:56]Read from MH i2c: E2 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 03 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [09:57:56]RAPDU: 90 00 [09:57:56]wFMCommunicate OK [09:57:56]SAM_PROTO_ClearQueue done [09:57:56]KKMCreateOFDPacket [09:57:56]OFDProtocolAddRootSTLVToBuf [09:57:56]FM_MakeSignedData [09:57:56]FM_MakeSignedData [09:57:56]SAM_PROTO_SignData [09:57:56]wFMCommunicate request_size=4 [09:57:56]MH_SAM_APDU [09:57:56]CAPDU: 80 0D 01 02 [09:57:56]Write to MH i2c: E2 08 00 F9 02 80 0D 01 02 00 00 00 00 74 [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:56]Read from MH i2c: E2 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 03 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [09:57:56]RAPDU: 90 00 [09:57:56]wFMCommunicate OK [09:57:56]wFMCommunicate request_size=255 [09:57:56]MH_SAM_APDU [09:57:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A3 54 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 12 1D 01 00 35 04 06 00 79 [09:57:56]Write to MH i2c: E2 02 01 FA 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A3 54 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 12 1D 01 00 35 04 06 00 79 00 00 AC [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:56]Read from MH i2c: E2 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 03 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [09:57:56]RAPDU: 90 00 [09:57:56]wFMCommunicate OK [09:57:56]wFMCommunicate request_size=10 [09:57:56]MH_SAM_APDU [09:57:56]CAPDU: 80 0D 02 02 05 A5 D1 2C BF 79 [09:57:56]Write to MH i2c: E2 0D 00 FB 02 80 0D 02 02 05 00 A5 D1 2C BF 79 00 00 5B [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:56]Read from MH i2c: E2 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 03 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [09:57:56]RAPDU: 90 00 [09:57:56]wFMCommunicate OK [09:57:56]wFMCommunicate request_size=4 [09:57:56]MH_SAM_APDU [09:57:56]CAPDU: 80 0D 03 02 [09:57:56]Write to MH i2c: E2 08 00 FC 02 80 0D 03 02 00 00 00 00 79 [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:56]Read from MH i2c: E2 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 0B 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 0B 00 FC 02 00 AD 65 D7 A7 CC DC D0 6E 90 00 F0 [09:57:56]RAPDU: AD 65 D7 A7 CC DC D0 6E 90 00 [09:57:56]wFMCommunicate OK [09:57:56]SAM_PROTO_SignData done [09:57:56]FM_MakeSignedData done [09:57:56]CreateOFDProtocolMessage [09:57:56]wFMCommunicate request_size=4 [09:57:56]MH_SAM_APDU [09:57:56]CAPDU: 80 11 00 00 [09:57:56]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:56]Read from MH i2c: E2 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 17 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CD [09:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:57:56]wFMCommunicate OK [09:57:56]CreateOFDProtocolMessage done [09:57:56]OFDSenderStorePacket 72978 [09:57:56]StoreOFDPacket docnum=72978 [09:57:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E7 60 07 01 92 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A3 54 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 12 1D 01 00 35 04 06 00 79 A5 D1 2C BF 79 AD 65 D7 A7 CC DC D0 6E [09:57:56]CheckFolder [09:57:56]dirname=/storage/ofd_packets [09:57:56]CheckFolder done [09:57:56]ProducePacketName [09:57:56]name=ofd_packets/00072978 [09:57:56]NVStorageSaveData ofd_packets/00072978 [09:57:56]File name is /storage/ofd_packets/00072978 [09:57:56]Write 301 bytes [09:57:56]NVStorageSaveData done [09:57:56]OFDSenderStorePacket done [09:57:56]KKMCreateOFDPacket done [09:57:56]NVStorageSaveData kkm_last_timestamp [09:57:56]File name is /storage/kkm_last_timestamp [09:57:56]Write 4 bytes [09:57:56]NVStorageSaveData done [09:57:56]ExternCall_PrintAddStr [09:57:56]wPrintStart [09:57:56]Write to MH i2c: 01 00 00 FE 02 00 [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 07 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [09:57:56]RasterBufferAndPrint [09:57:56]line Счет N : (1)952579 [09:57:56]line ИНН: 02508201610067 [09:57:56]line Контрольно-Кассовый Чек [09:57:56]line ПРОДАЖА [09:57:56]line ТРК (МРК, ГНК) : 53 [09:57:56]line Товар: 2710124130 [09:57:56]line Аи-92-К-5 [09:57:56]line 14.950 * 0.00 [09:57:56]line = 0.00 [09:57:56]line НДС 12% НСП 1% [09:57:56]line > о реализуемом товаре [09:57:56]line ИТОГО: 0.00 [09:57:56]line НСП 1% : 0.00 [09:57:56]line НДС 12% : 0.00 [09:57:56]line Наличными: 0.00 [09:57:56]line Безнал.: 0.00 [09:57:56]line Место: АЗС № 113 "Партнер Нефть" [09:57:56]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:57:56]line СНО: Общий режим [09:57:56]line Чек 53 31.10.2024 09:57 [09:57:56]line Смена: 557 ФФД: 1.0 [09:57:56]line ЗНМ: 0300000087 [09:57:56]line РНМ: 0000000000091644 [09:57:56]line Версия ККМ: 001 [09:57:56]line Талоны: Топливная Карта [09:57:56]line 03047 [09:57:56]line ФМ: 0000000000874662 [09:57:56]line ФД: 72978 [09:57:56]line ФПД: 133753085935481 [09:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095755&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72978&fm=133753085935481&tin=02508201610067®Number=0000000000091644&sum=0 [09:57:56]written 0, free lines is 4095 [09:57:56]OFD Sender: Processing packet 72978 [packets to send 279, broken 278] [09:57:56]ProducePacketName [09:57:56]name=ofd_packets/00072978 [09:57:56]OFD Sender: To server: pG, [09:57:56]CommunicateWithHost lk.salyk.kg:30040 [09:57:56]ConnectInit lk.salyk.kg [09:57:56]Write to MH i2c: 01 00 00 28 03 2B [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 07 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 DB 0C 19 [09:57:56]RasterBufferAndPrint [09:57:56]line [09:57:56]line [09:57:56]line [09:57:56]line [09:57:56]line [09:57:57]written 0, free lines is 3297 [09:57:57]MH_Cut [09:57:57]Write to MH i2c: D1 01 00 2F 03 01 04 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: D1 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: D1 01 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: D1 01 00 2F 03 00 03 [09:57:57]Write to MH i2c: 01 00 00 30 03 33 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]Connected sock=11 [09:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E7 60 07 01 92 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A3 54 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 12 1D 01 00 35 04 06 00 79 A5 D1 2C BF 79 AD 65 D7 A7 CC DC D0 6E [09:57:57]*** Cut start [09:57:57]*** Partial cut [09:57:57]*** CUTSNS_PIN = 1 [09:57:57]*** CUTSNS_PIN = 0 [09:57:58]*** Brake cut motor [09:57:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 89 2F 47 00 35 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 34 36 36 32 10 04 04 00 12 1D 01 00 F4 03 04 00 59 FF 22 67 B6 04 01 00 00 31 DA 6C 71 52 83 4B 07 [09:57:58]CommunicateWithHost err = 0 [09:57:58]CheckOFDResponse [09:57:58]1017 (14) - 77093643461234 [09:57:58]1041 (16) - 0000000000874662 [09:57:58]1040 (4) - 72978 [09:57:58]1012 (4) - 31.10.2024 03:54 [09:57:58]1206 (1) - 0 [09:57:58]OFD Sender: Remove packet 72978 [09:57:58]ProducePacketName [09:57:58]name=ofd_packets/00072978 [09:57:58]NVStorageDeleteData [09:57:58]Read from MH i2c: 01 [09:57:58]MH_I2C_Read... [09:57:58]*** Stop cut motor [09:57:58]*** Cut end [09:57:58]Read from MH i2c: 01 07 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [09:57:58]process_action close_receipt done [09:57:58]requested_data is exist [09:57:58]produce_requested_data [09:57:58]requested_item fm.sn is exist - process it [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 11 00 00 [09:57:58]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 17 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 02 [09:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:57:58]wFMCommunicate OK [09:57:58]requested_item fd.num is exist - process it [09:57:58]SAM_PROTO_GetFieldsCounters [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 13 00 00 [09:57:58]Write to MH i2c: E2 08 00 32 03 80 13 00 00 00 00 00 00 B1 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 62 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 62 00 32 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 12 1D 01 00 0E 04 04 00 2D 02 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 D0 [09:57:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 12 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:58]wFMCommunicate OK [09:57:58]SAM_PROTO_GetFieldsCounters done [09:57:58]requested_item shift.num is exist - process it [09:57:58]requested_item shift.opened is exist - process it [09:57:58]req_shift_opened [09:57:58]FM_GetShiftState [09:57:58]SAM_PROTO_GetShiftState [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 13 01 00 [09:57:58]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]OFD Sender: No OFD packet to send [09:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 0E 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 5C [09:57:58]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [09:57:58]wFMCommunicate OK [09:57:58]SAM_PROTO_GetShiftState done [09:57:58]FM_GetShiftState done [09:57:58]req_shift_opened done [09:57:58]requested_item shift.open_date is exist - process it [09:57:58]req_shift_open_date [09:57:58]req_shift_open_date done [09:57:58]produce_requested_data done [09:57:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72978,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [09:57:58]process_action_free close_receipt [09:57:58]json_value_free [09:57:58]json_value_free done [09:57:58]process_json_proto returns [09:57:58]Send response to host [09:57:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72978,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [09:57:58]free response buf [09:57:58]execute_script done [09:57:58]execute_script returns [09:57:58]free content buf [09:57:58]Sock 9.Close socket [09:57:58]Sock 9.Thread stoped [09:58:03]OFD Sender: No OFD packet to send [09:58:07]recv_with_timeout no data received [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:26]recv_with_timeout no data received [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:42]recv_with_timeout no data received [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:56]recv_with_timeout no data received [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:42]accept exits with 10 [10:00:42]New connection [10:00:42]New thread 3066662244 created [10:00:42]Thread 3066805604 joined [10:00:42]Waiting for new connection... [10:00:42] Sock 10.Parse request [10:00:42]Sock 10.Check first char [10:00:42]Sock 10.First char is OK [10:00:42]request: POST /json_proto HTTP/1.0 [10:00:42]Method: POST [10:00:42]URL: /json_proto [10:00:42]Method is POST - this is cgi request [10:00:42]url: /json_proto [10:00:42]query_string will be loaded in cgi processing [10:00:42]execute_cgi json_proto POST (null) [10:00:42]execute_cgi path=json_proto method=POST [10:00:42]POST find Content-Length [10:00:42]Host: 172.17.43.195:8080 [10:00:42]Content-Length: 806 [10:00:42]Content-Type: application/json [10:00:42] [10:00:42]POST finish read [10:00:42]Found Content-Length = 806 [10:00:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 10.000, "sum" : 762.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" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:42]execute_script... [10:00:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 10.000, "sum" : 762.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" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:42]POST & json_proto [10:00:42]process_json_proto [10:00:42]json parsed OK: [10:00:42]protocol is kg_v1.0 [10:00:42]action value=close_receipt [10:00:42]process_action close_receipt [10:00:42]cmd_close_receipt [10:00:42]MH_GetDate [10:00:42]Write to MH i2c: F0 00 00 34 03 26 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: F0 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: F0 09 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: F0 09 00 34 03 00 4A 55 23 67 74 2C AD 66 0B [10:00:42]GetLastDocTimeStamp 1730368675 [10:00:42]current date 1730368842 [10:00:42]FM_GetShiftState [10:00:42]SAM_PROTO_GetShiftState [10:00:42]wFMCommunicate request_size=4 [10:00:42]MH_SAM_APDU [10:00:42]CAPDU: 80 13 01 00 [10:00:42]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:42]Read from MH i2c: E2 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 0E 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 5E [10:00:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:00:42]wFMCommunicate OK [10:00:42]SAM_PROTO_GetShiftState done [10:00:42]FM_GetShiftState done [10:00:42]opened in 1730333258 [10:00:42]opened+sec_in_day 1730419658 [10:00:42]quantity*price = 76200 [10:00:42]sum+1 = 76201 [10:00:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 762.00 НСП 1% : 6.74 НДС 12% : 80.92 Наличными: 0.00 Безнал.: 762.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 54 31.10.2024 10:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72979 ФПД: 272165128655164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T100042&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72979&fm=272165128655164&tin=02508201610067®Number=0000000000091644&sum=76200 [10:00:43]StoreToDocumentArchive [10:00:43]shift 557 fd 72979 [10:00:43]save to /storage/0557/doc_00072979 [10:00:43]save last doc name /storage/0557/doc_00072979 to /storage/kkm_last_doc_name [10:00:43]save OK [10:00:43]Clear old archive folders... [10:00:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:00:43]tlvbuf is 01ECB260 [10:00:43]SAM_PROTO_ClearQueue [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 09 00 00 [10:00:43]Write to MH i2c: E2 08 00 42 03 80 09 00 00 00 00 00 00 B7 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [10:00:43]RAPDU: 90 00 [10:00:43]wFMCommunicate OK [10:00:43]SAM_PROTO_ClearQueue done [10:00:43]KKMCreateOFDPacket [10:00:43]OFDProtocolAddRootSTLVToBuf [10:00:43]FM_MakeSignedData [10:00:43]FM_MakeSignedData [10:00:43]SAM_PROTO_SignData [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 0D 01 02 [10:00:43]Write to MH i2c: E2 08 00 43 03 80 0D 01 02 00 00 00 00 BF [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [10:00:43]RAPDU: 90 00 [10:00:43]wFMCommunicate OK [10:00:43]wFMCommunicate request_size=255 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 29 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4A 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 13 1D 01 00 35 04 06 00 [10:00:43]Write to MH i2c: E2 02 01 44 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 29 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4A 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 13 1D 01 00 35 04 06 00 00 00 B0 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [10:00:43]RAPDU: 90 00 [10:00:43]wFMCommunicate OK [10:00:43]wFMCommunicate request_size=11 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 0D 02 02 06 F7 88 61 D0 51 3C [10:00:43]Write to MH i2c: E2 0E 00 45 03 80 0D 02 02 06 00 F7 88 61 D0 51 3C 00 00 0B [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [10:00:43]RAPDU: 90 00 [10:00:43]wFMCommunicate OK [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 0D 03 02 [10:00:43]Write to MH i2c: E2 08 00 46 03 80 0D 03 02 00 00 00 00 C4 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 0B 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 0B 00 46 03 00 1C 7F 9A 43 2F 8E 38 44 90 00 76 [10:00:43]RAPDU: 1C 7F 9A 43 2F 8E 38 44 90 00 [10:00:43]wFMCommunicate OK [10:00:43]SAM_PROTO_SignData done [10:00:43]FM_MakeSignedData done [10:00:43]CreateOFDProtocolMessage [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 11 00 00 [10:00:43]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 18 [10:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:00:43]wFMCommunicate OK [10:00:43]CreateOFDProtocolMessage done [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 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7743786+1722625140=1730368926 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 9E 55 23 67 74 2C AD 66 2F [10:02:06]Current date/time: 31.10.2024 10:02 [10:02:06]FM_Init [10:02:06]wFMConnect [10:02:06]MH_SAM_On [10:02:06]Write to MH i2c: E0 00 00 08 00 E7 [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_init finished! [10:02:06]*** atr: [10:02:06]*** 0F 3B D5 18 FF 81 91 FE [10:02:06]*** 1F C3 80 73 C8 21 10 0A [10:02:06]*** 00 00 00 00 00 00 00 00 [10:02:06]*** 00 00 00 00 00 00 00 00 [10:02:06]*** 00 00 00 00 00 00 00 00 [10:02:06]*** 00 00 00 00 00 00 00 00 [10:02:06]*** 00 00 00 00 00 00 00 00 [10:02:06]*** 00 00 00 00 00 00 00 00 [10:02:06]Read from MH i2c: E0 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E0 10 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:02:06]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:02:06]wFMCommunicate request_size=10 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:02:06]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 03 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:02:06]RAPDU: 90 00 [10:02:06]wFMCommunicate OK [10:02:06]wFMCommunicate request_size=4 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 11 00 00 [10:02:06]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 17 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [10:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:02:06]wFMCommunicate OK [10:02:06]Detected FM SN is 0000000000874662 [10:02:06]Stored FM SN is 0000000000874662 [10:02:06]wFMCommunicate request_size=9 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 16 00 00 04 08 EB 00 00 [10:02:06]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 03 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:02:06]RAPDU: 90 00 [10:02:06]wFMCommunicate OK [10:02:06]FM PIN OK [10:02:06]wFMCommunicate request_size=8 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 14 04 00 03 02 00 01 [10:02:06]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 03 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:02:06]RAPDU: 90 00 [10:02:06]wFMCommunicate OK [10:02:06]wFMCommunicate request_size=13 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:02:06]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 03 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:02:06]RAPDU: 90 00 [10:02:06]wFMCommunicate OK [10:02:06]wFMCommunicate request_size=4 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 11 00 00 [10:02:06]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 17 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [10:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:02:06]wFMCommunicate OK [10:02:06]DocumentArchiveInit [10:02:06]Start Httpd... [10:02:06]Httpd thread 3067608420 created [10:02:06]Write to MH i2c: 01 00 00 0F 00 0F [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: 01 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: 01 07 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:02:06]MH Int Process started [10:02:06]Allocated Socket 8 [10:02:06]Bind OK [10:02:06]Listen OK [10:02:06]httpd running on port 8080 [10:02:06]Waiting for new connection... [10:02:06]OFD Sender: Processing packet 72979 [packets to send 279, broken 278] [10:02:06]ProducePacketName [10:02:06]name=ofd_packets/00072979 [10:02:06]OFD Sender: To server: pG, [10:02:06]CommunicateWithHost lk.salyk.kg:30040 [10:02:06]ConnectInit lk.salyk.kg [10:02:07]Connected sock=5 [10:02:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 EF 21 08 01 2B F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 29 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4A 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 13 1D 01 00 35 04 06 00 F7 88 61 D0 51 3C 1C 7F 9A 43 2F 8E 38 44 [10:02:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E3 02 47 00 51 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 34 36 36 32 10 04 04 00 13 1D 01 00 F4 03 04 00 54 00 23 67 B6 04 01 00 00 C2 92 84 EF 72 9E 2A 28 [10:02:07]CommunicateWithHost err = 0 [10:02:07]CheckOFDResponse [10:02:08]1017 (14) - 77093643461234 [10:02:08]1041 (16) - 0000000000874662 [10:02:08]1040 (4) - 72979 [10:02:08]1012 (4) - 31.10.2024 03:58 [10:02:08]1206 (1) - 0 [10:02:08]OFD Sender: Remove packet 72979 [10:02:08]ProducePacketName [10:02:08]name=ofd_packets/00072979 [10:02:08]NVStorageDeleteData [10:02:08]OFD Sender: No OFD packet to send [10:02:09]accept exits with 9 [10:02:09]New connection [10:02:09]New thread 3067321700 created [10:02:09]Waiting for new connection... [10:02:09] Sock 9.Parse request [10:02:09]Sock 9.Check first char [10:02:09]Sock 9.First char is OK [10:02:09]request: POST /json_proto HTTP/1.0 [10:02:09]Method: POST [10:02:09]URL: /json_proto [10:02:09]Method is POST - this is cgi request [10:02:09]url: /json_proto [10:02:09]query_string will be loaded in cgi processing [10:02:09]execute_cgi json_proto POST (null) [10:02:09]execute_cgi path=json_proto method=POST [10:02:09]POST find Content-Length [10:02:09]Host: 172.17.43.195:8080 [10:02:09]Content-Length: 215 [10:02:09]Content-Type: application/json [10:02:09] [10:02:09]POST finish read [10:02:09]Found Content-Length = 215 [10:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:09]execute_script... [10:02:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:09]POST & json_proto [10:02:09]process_json_proto [10:02:09]json parsed OK: [10:02:09]protocol is kg_v1.0 [10:02:09]action value=get_value [10:02:09]process_action get_value [10:02:09]cmd_get_value [10:02:09]process_action get_value done [10:02:09]requested_data is exist [10:02:09]produce_requested_data [10:02:09]requested_item kkm.sn is exist - process it [10:02:09]requested_item kkm.ver is exist - process it [10:02:09]requested_item fm.sn is exist - process it [10:02:09]wFMCommunicate request_size=4 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 11 00 00 [10:02:09]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:09]Read from MH i2c: E2 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 17 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [10:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:02:09]wFMCommunicate OK [10:02:09]requested_item fd.num is exist - process it [10:02:09]SAM_PROTO_GetFieldsCounters [10:02:09]wFMCommunicate request_size=4 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 13 00 00 [10:02:09]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:09]Read from MH i2c: E2 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 62 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 13 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [10:02:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 13 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:09]wFMCommunicate OK [10:02:09]SAM_PROTO_GetFieldsCounters done [10:02:09]requested_item shift.num is exist - process it [10:02:09]requested_item shift.opened is exist - process it [10:02:09]req_shift_opened [10:02:09]FM_GetShiftState [10:02:09]SAM_PROTO_GetShiftState [10:02:09]wFMCommunicate request_size=4 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 13 01 00 [10:02:09]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:09]Read from MH i2c: E2 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 0E 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [10:02:09]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:02:09]wFMCommunicate OK [10:02:09]SAM_PROTO_GetShiftState done [10:02:09]FM_GetShiftState done [10:02:09]req_shift_opened done [10:02:09]requested_item shift.open_date is exist - process it [10:02:09]req_shift_open_date [10:02:09]req_shift_open_date done [10:02:09]produce_requested_data done [10:02:09]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72979,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:02:09]process_action_free get_value [10:02:09]json_value_free [10:02:09]json_value_free done [10:02:09]process_json_proto returns [10:02:09]Send response to host [10:02:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72979,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:02:09]free response buf [10:02:09]execute_script done [10:02:09]execute_script returns [10:02:09]free content buf [10:02:09]Sock 9.Close socket [10:02:09]Sock 9.Thread stoped [10:02:09]accept exits with 5 [10:02:09]New connection [10:02:09]New thread 3067178340 created [10:02:09]Thread 3067321700 joined [10:02:09]Waiting for new connection... [10:02:09] Sock 5.Parse request [10:02:09]Sock 5.Check first char [10:02:09]Sock 5.First char is OK [10:02:09]request: POST /json_proto HTTP/1.0 [10:02:09]Method: POST [10:02:09]URL: /json_proto [10:02:09]Method is POST - this is cgi request [10:02:09]url: /json_proto [10:02:09]query_string will be loaded in cgi processing [10:02:09]execute_cgi json_proto POST (null) [10:02:09]execute_cgi path=json_proto method=POST [10:02:09]POST find Content-Length [10:02:09]Host: 172.17.43.195:8080 [10:02:09]Content-Length: 331 [10:02:09]Content-Type: application/json [10:02:09] [10:02:09]POST finish read [10:02:09]Found Content-Length = 331 [10:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:02:09]execute_script... [10:02:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:02:09]POST & json_proto [10:02:09]process_json_proto [10:02:09]json parsed OK: [10:02:09]protocol is kg_v1.0 [10:02:09]action value=get_value [10:02:09]process_action get_value [10:02:09]cmd_get_value [10:02:09]process_action get_value done [10:02:09]requested_data is exist [10:02:09]produce_requested_data [10:02:09]requested_item fm.sale.total is exist - process it [10:02:09]SAM_PROTO_GetFMData [10:02:09]wFMCommunicate request_size=4 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 13 03 00 [10:02:09]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:02:09]Read from MH i2c: E2 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 FD 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 B9 18 01 00 69 04 A3 00 6F 04 04 00 C9 17 01 00 B1 04 05 00 F0 3C 47 A4 01 70 04 05 00 E4 90 BD 58 01 72 04 04 00 0C AC 89 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 87 6E A4 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9E 4C B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 9F [10:02:09]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 B9 18 01 00 69 04 A3 00 6F 04 04 00 C9 17 01 00 B1 04 05 00 F0 3C 47 A4 01 70 04 05 00 E4 90 BD 58 01 72 04 04 00 0C AC 89 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 87 6E A4 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9E 4C B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [10:02:09]wFMCommunicate OK [10:02:09]wFMCommunicate request_size=4 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 17 00 00 [10:02:09]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 FD 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [10:02:10]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [10:02:10]wFMCommunicate OK [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 17 00 00 [10:02:10]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 FD 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [10:02:10]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:02:10]wFMCommunicate OK [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 17 00 00 [10:02:10]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 FD 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [10:02:10]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:02:10]wFMCommunicate OK [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 17 00 00 [10:02:10]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 E1 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [10:02:10]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:02:11]wFMCommunicate OK [10:02:11]SAM_PROTO_GetFMData done [10:02:11]requested_item fm.sale_refund.total is exist - process it [10:02:11]requested_item fm.buy.total is exist - process it [10:02:11]requested_item shift.sale.total is exist - process it [10:02:11]SAM_PROTO_GetShiftData [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 13 02 00 [10:02:11]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 FD 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 36 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 37 D0 30 70 04 03 00 B0 87 18 72 04 03 00 87 48 18 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 2C 2F 05 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 96 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 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 94 [10:02:11]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 36 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 37 D0 30 70 04 03 00 B0 87 18 72 04 03 00 87 48 18 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 2C 2F 05 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 96 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 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 [10:02:11]wFMCommunicate OK [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 17 00 00 [10:02:11]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 FD 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [10:02:11]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 [10:02:11]wFMCommunicate OK [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 17 00 00 [10:02:11]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 FD 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [10:02:12]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 [10:02:12]wFMCommunicate OK [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 17 00 00 [10:02:12]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 FD 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [10:02:12]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 [10:02:12]wFMCommunicate OK [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 17 00 00 [10:02:12]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 CB 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [10:02:12]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 [10:02:12]wFMCommunicate OK [10:02:12]SAM_PROTO_GetShiftData done [10:02:12]requested_item shift.sale.total_cash is exist - process it [10:02:12]requested_item shift.sale_refund.total is exist - process it [10:02:12]requested_item shift.sale_refund.total_cash is exist - process it [10:02:12]requested_item shift.buy.total is exist - process it [10:02:12]requested_item shift.buy.total_cash is exist - process it [10:02:12]produce_requested_data done [10:02:12]produce_requested_data return {"fm.sale.total":70510993.76,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":31990.31,"shift.sale.total_cash":16076.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:02:12]process_action_free get_value [10:02:12]json_value_free [10:02:12]json_value_free done [10:02:12]process_json_proto returns [10:02:12]Send response to host [10:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70510993.76,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":31990.31,"shift.sale.total_cash":16076.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:02:12]free response buf [10:02:12]execute_script done [10:02:12]execute_script returns [10:02:12]free content buf [10:02:12]Sock 5.Close socket [10:02:12]Sock 5.Thread stoped [10:02:13]accept exits with 9 [10:02:13]New connection [10:02:13]New thread 3067321700 created [10:02:13]Thread 3067178340 joined [10:02:13]Waiting for new connection... [10:02:13] Sock 9.Parse request [10:02:13]Sock 9.Check first char [10:02:13]Sock 9.First char is OK [10:02:13]request: POST /json_proto HTTP/1.0 [10:02:13]Method: POST [10:02:13]URL: /json_proto [10:02:13]Method is POST - this is cgi request [10:02:13]url: /json_proto [10:02:13]query_string will be loaded in cgi processing [10:02:13]execute_cgi json_proto POST (null) [10:02:13]execute_cgi path=json_proto method=POST [10:02:13]POST find Content-Length [10:02:13]Host: 172.17.43.195:8080 [10:02:13]Content-Length: 809 [10:02:13]Content-Type: application/json [10:02:13] [10:02:13]POST finish read [10:02:13]Found Content-Length = 809 [10:02:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 110.000, "sum" : 8382.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" : 8382.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:13]execute_script... [10:02:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 110.000, "sum" : 8382.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" : 8382.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:13]POST & json_proto [10:02:13]process_json_proto [10:02:13]json parsed OK: [10:02:13]protocol is kg_v1.0 [10:02:13]action value=close_receipt [10:02:13]process_action close_receipt [10:02:13]cmd_close_receipt [10:02:13]MH_GetDate [10:02:13]Write to MH i2c: F0 00 00 1D 00 0C [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: F0 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: F0 09 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: F0 09 00 1D 00 00 A5 55 23 67 74 2C AD 66 4C [10:02:13]GetLastDocTimeStamp 1730368842 [10:02:13]current date 1730368933 [10:02:13]FM_GetShiftState [10:02:13]SAM_PROTO_GetShiftState [10:02:13]wFMCommunicate request_size=4 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 13 01 00 [10:02:13]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0E 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 44 [10:02:13]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:02:13]wFMCommunicate OK [10:02:13]SAM_PROTO_GetShiftState done [10:02:13]FM_GetShiftState done [10:02:13]opened in 1730333258 [10:02:13]opened+sec_in_day 1730419658 [10:02:13]quantity*price = 838200 [10:02:13]sum+1 = 838201 [10:02:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8382.00 НСП 1% : 74.18 НДС 12% : 890.12 Наличными: 0.00 Безнал.: 8382.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 55 31.10.2024 10:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72980 ФПД: 6768750972938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T100213&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72980&fm=6768750972938&tin=02508201610067®Number=0000000000091644&sum=838200 [10:02:14]StoreToDocumentArchive [10:02:14]shift 557 fd 72980 [10:02:14]save to /storage/0557/doc_00072980 [10:02:14]save last doc name /storage/0557/doc_00072980 to /storage/kkm_last_doc_name [10:02:14]save OK [10:02:14]Clear old archive folders... [10:02:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:02:14]tlvbuf is 01ACED90 [10:02:14]SAM_PROTO_ClearQueue [10:02:14]wFMCommunicate request_size=4 [10:02:14]MH_SAM_APDU [10:02:14]CAPDU: 80 09 00 00 [10:02:14]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:14]Read from MH i2c: E2 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 03 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:02:14]RAPDU: 90 00 [10:02:14]wFMCommunicate OK [10:02:14]SAM_PROTO_ClearQueue done [10:02:14]KKMCreateOFDPacket [10:02:14]OFDProtocolAddRootSTLVToBuf [10:02:14]FM_MakeSignedData [10:02:14]FM_MakeSignedData [10:02:14]SAM_PROTO_SignData [10:02:14]wFMCommunicate request_size=4 [10:02:14]MH_SAM_APDU [10:02:14]CAPDU: 80 0D 01 02 [10:02:14]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:14]Read from MH i2c: E2 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 03 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:02:14]RAPDU: 90 00 [10:02:14]wFMCommunicate OK [10:02:14]wFMCommunicate request_size=255 [10:02:14]MH_SAM_APDU [10:02:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 CA 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 CA 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 5B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 CA 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A5 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 14 1D 01 00 35 04 06 00 [10:02:14]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 CA 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 CA 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 5B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 CA 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A5 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 14 1D 01 00 35 04 06 00 00 00 95 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]wFMCommunicate request_size=11 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 0D 02 02 06 06 27 F8 FF 50 0A [10:02:15]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 06 27 F8 FF 50 0A 00 00 32 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 0D 03 02 [10:02:15]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0B 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0B 00 2F 00 00 DC 25 7F A3 E8 27 39 02 90 00 18 [10:02:15]RAPDU: DC 25 7F A3 E8 27 39 02 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_SignData done [10:02:15]FM_MakeSignedData done [10:02:15]CreateOFDProtocolMessage [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 11 00 00 [10:02:15]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [10:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:02:15]wFMCommunicate OK [10:02:15]CreateOFDProtocolMessage done [10:02:15]OFDSenderStorePacket 72980 [10:02:15]StoreOFDPacket docnum=72980 [10:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E6 47 08 01 E2 CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 CA 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 CA 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 5B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 CA 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A5 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 14 1D 01 00 35 04 06 00 06 27 F8 FF 50 0A DC 25 7F A3 E8 27 39 02 [10:02:15]CheckFolder [10:02:15]dirname=/storage/ofd_packets [10:02:15]CheckFolder done [10:02:15]ProducePacketName [10:02:15]name=ofd_packets/00072980 [10:02:15]NVStorageSaveData ofd_packets/00072980 [10:02:15]File name is /storage/ofd_packets/00072980 [10:02:15]Write 302 bytes [10:02:15]NVStorageSaveData done [10:02:15]OFDSenderStorePacket done [10:02:15]KKMCreateOFDPacket done [10:02:15]NVStorageSaveData kkm_last_timestamp [10:02:15]File name is /storage/kkm_last_timestamp [10:02:15]Write 4 bytes [10:02:15]NVStorageSaveData done [10:02:15]ExternCall_PrintAddStr [10:02:15]wPrintStart [10:02:15]Write to MH i2c: 01 00 00 31 00 31 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:02:15]RasterBufferAndPrint [10:02:15]line Счет N : (1)952580 [10:02:15]line ИНН: 02508201610067 [10:02:15]line Контрольно-Кассовый Чек [10:02:15]line ПРОДАЖА [10:02:15]line ТРК (МРК, ГНК) : 22 [10:02:15]line Товар: 2710194210 [10:02:15]line ДТ(л)-К-5 [10:02:15]line 110.000 * 76.20 [10:02:15]line = 8382.00 [10:02:15]line НДС 12% НСП 1% [10:02:15]line > о реализуемом товаре [10:02:15]line ИТОГО: 8382.00 [10:02:15]line НСП 1% : 74.18 [10:02:15]line НДС 12% : 890.12 [10:02:15]line Наличными: 0.00 [10:02:15]line Безнал.: 8382.00 [10:02:15]line Место: АЗС № 113 "Партнер Нефть" [10:02:15]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:02:15]line СНО: Общий режим [10:02:15]line Чек 55 31.10.2024 10:02 [10:02:15]line Смена: 557 ФФД: 1.0 [10:02:15]line ЗНМ: 0300000087 [10:02:15]line РНМ: 0000000000091644 [10:02:15]line Версия ККМ: 001 [10:02:15]line Платежная система: O! деньги [10:02:15]line ФМ: 0000000000874662 [10:02:15]line ФД: 72980 [10:02:15]line ФПД: 6768750972938 [10:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T100213&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72980&fm=6768750972938&tin=02508201610067®Number=0000000000091644&sum=838200 [10:02:15]written 0, free lines is 4095 [10:02:15]OFD Sender: Processing packet 72980 [packets to send 279, broken 278] [10:02:15]ProducePacketName [10:02:15]name=ofd_packets/00072980 [10:02:15]OFD Sender: To server: pG, [10:02:15]CommunicateWithHost lk.salyk.kg:30040 [10:02:15]ConnectInit lk.salyk.kg [10:02:15]Write to MH i2c: 01 00 00 5B 00 5B [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 FB 0C 69 [10:02:15]RasterBufferAndPrint [10:02:15]line [10:02:15]line [10:02:15]line [10:02:15]line [10:02:15]line [10:02:15]written 0, free lines is 3347 [10:02:15]MH_Cut [10:02:15]Write to MH i2c: D1 01 00 62 00 01 34 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: D1 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: D1 01 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: D1 01 00 62 00 00 33 [10:02:15]Write to MH i2c: 01 00 00 63 00 63 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:16]Connected sock=10 [10:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E6 47 08 01 E2 CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 CA 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 CA 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 5B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 CA 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A5 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 14 1D 01 00 35 04 06 00 06 27 F8 FF 50 0A DC 25 7F A3 E8 27 39 02 [10:02:16]*** Cut start [10:02:16]*** Partial cut [10:02:16]*** CUTSNS_PIN = 1 [10:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 78 E2 47 00 CD 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 *** CUTSNS_PIN = 0 [10:02:16]00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 14 1D 01 00 F4 03 04 00 5C 00 23 67 B6 04 01 00 00 C2 CA 82 FF 78 A5 C4 08 [10:02:16]CommunicateWithHost err = 0 [10:02:16]CheckOFDResponse [10:02:16]1017 (14) - 77093643461234 [10:02:16]1041 (16) - 0000000000874662 [10:02:16]1040 (4) - 72980 [10:02:16]1012 (4) - 31.10.2024 03:58 [10:02:16]1206 (1) - 0 [10:02:16]OFD Sender: Remove packet 72980 [10:02:16]ProducePacketName [10:02:16]name=ofd_packets/00072980 [10:02:16]NVStorageDeleteData [10:02:16]*** Brake cut motor [10:02:17]Read from MH i2c: 01 [10:02:17]MH_I2C_Read... [10:02:17]*** Stop cut motor [10:02:17]*** Cut end [10:02:17]Read from MH i2c: 01 07 00 [10:02:17]MH_I2C_Read... [10:02:17]OFD Sender: No OFD packet to send [10:02:17]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [10:02:17]process_action close_receipt done [10:02:17]requested_data is exist [10:02:17]produce_requested_data [10:02:17]requested_item fm.sn is exist - process it [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 11 00 00 [10:02:17]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 17 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [10:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:02:17]wFMCommunicate OK [10:02:17]requested_item fd.num is exist - process it [10:02:17]SAM_PROTO_GetFieldsCounters [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 13 00 00 [10:02:17]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 62 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 14 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [10:02:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 14 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:17]wFMCommunicate OK [10:02:17]SAM_PROTO_GetFieldsCounters done [10:02:17]requested_item shift.num is exist - process it [10:02:17]requested_item shift.opened is exist - process it [10:02:17]req_shift_opened [10:02:17]FM_GetShiftState [10:02:17]SAM_PROTO_GetShiftState [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 13 01 00 [10:02:17]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 0E 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8C [10:02:17]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:02:17]wFMCommunicate OK [10:02:17]SAM_PROTO_GetShiftState done [10:02:17]FM_GetShiftState done [10:02:17]req_shift_opened done [10:02:17]requested_item shift.open_date is exist - process it [10:02:17]req_shift_open_date [10:02:17]req_shift_open_date done [10:02:17]produce_requested_data done [10:02:17]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72980,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:02:17]process_action_free close_receipt [10:02:17]json_value_free [10:02:17]json_value_free done [10:02:17]process_json_proto returns [10:02:17]Send response to host [10:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72980,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:02:17]free response buf [10:02:17]execute_script done [10:02:17]execute_script returns [10:02:17]free content buf [10:02:17]Sock 9.Close socket [10:02:17]Sock 9.Thread stoped [10:02:17]accept exits with 5 [10:02:17]New connection [10:02:17]New thread 3067178340 created [10:02:17]Thread 3067321700 joined [10:02:17]Waiting for new connection... [10:02:17] Sock 5.Parse request [10:02:17]Sock 5.Check first char [10:02:17]Sock 5.First char is OK [10:02:17]request: POST /json_proto HTTP/1.0 [10:02:17]Method: POST [10:02:17]URL: /json_proto [10:02:17]Method is POST - this is cgi request [10:02:17]url: /json_proto [10:02:17]query_string will be loaded in cgi processing [10:02:17]execute_cgi json_proto POST (null) [10:02:17]execute_cgi path=json_proto method=POST [10:02:17]POST find Content-Length [10:02:17]Host: 172.17.43.195:8080 [10:02:17]Content-Length: 791 [10:02:17]Content-Type: application/json [10:02:17] [10:02:17]POST finish read [10:02:17]Found Content-Length = 791 [10:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.980, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:17]execute_script... [10:02:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.980, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:17]POST & json_proto [10:02:17]process_json_proto [10:02:17]json parsed OK: [10:02:17]protocol is kg_v1.0 [10:02:17]action value=close_receipt [10:02:17]process_action close_receipt [10:02:17]cmd_close_receipt [10:02:17]MH_GetDate [10:02:17]Write to MH i2c: F0 00 00 67 00 56 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: F0 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: F0 09 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: F0 09 00 67 00 00 AA 55 23 67 74 2C AD 66 9B [10:02:17]GetLastDocTimeStamp 1730368933 [10:02:17]current date 1730368938 [10:02:17]FM_GetShiftState [10:02:17]SAM_PROTO_GetShiftState [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 13 01 00 [10:02:17]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:18]Read from MH i2c: E2 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 0E 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8E [10:02:18]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:02:18]wFMCommunicate OK [10:02:18]SAM_PROTO_GetShiftState done [10:02:18]FM_GetShiftState done [10:02:18]opened in 1730333258 [10:02:18]opened+sec_in_day 1730419658 [10:02:18]quantity*price = 0 [10:02:18]sum+1 = 1 [10:02:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 56 31.10.2024 10:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72981 ФПД: 27570780095064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T100218&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72981&fm=27570780095064&tin=02508201610067®Number=0000000000091644&sum=0 [10:02:19]StoreToDocumentArchive [10:02:19]shift 557 fd 72981 [10:02:19]save to /storage/0557/doc_00072981 [10:02:19]save last doc name /storage/0557/doc_00072981 to /storage/kkm_last_doc_name [10:02:19]save OK [10:02:19]Clear old archive folders... [10:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:19]tlvbuf is 01ACEC50 [10:02:19]SAM_PROTO_ClearQueue [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 09 00 00 [10:02:19]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:19]Read from MH i2c: E2 03 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [10:02:19]RAPDU: 90 00 [10:02:19]wFMCommunicate OK [10:02:19]SAM_PROTO_ClearQueue done [10:02:19]KKMCreateOFDPacket [10:02:19]OFDProtocolAddRootSTLVToBuf [10:02:19]FM_MakeSignedData [10:02:19]FM_MakeSignedData [10:02:19]SAM_PROTO_SignData [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 0D 01 02 [10:02:19]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 03 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [10:02:19]RAPDU: 90 00 [10:02:19]wFMCommunicate OK [10:02:19]wFMCommunicate request_size=255 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 AA 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 15 1D 01 00 35 04 06 00 19 [10:02:19]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 AA 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 15 1D 01 00 35 04 06 00 19 00 00 A8 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [10:02:20]RAPDU: 90 00 [10:02:20]wFMCommunicate OK [10:02:20]wFMCommunicate request_size=10 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 0D 02 02 05 13 52 8D C2 58 [10:02:20]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 13 52 8D C2 58 00 00 08 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [10:02:20]RAPDU: 90 00 [10:02:20]wFMCommunicate OK [10:02:20]wFMCommunicate request_size=4 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 0D 03 02 [10:02:20]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 0B 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 0B 00 79 00 00 B4 E9 36 9A 27 03 D4 25 90 00 85 [10:02:20]RAPDU: B4 E9 36 9A 27 03 D4 25 90 00 [10:02:20]wFMCommunicate OK [10:02:20]SAM_PROTO_SignData done [10:02:20]FM_MakeSignedData done [10:02:20]CreateOFDProtocolMessage [10:02:20]wFMCommunicate request_size=4 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 11 00 00 [10:02:20]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 17 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [10:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:02:20]wFMCommunicate OK [10:02:20]CreateOFDProtocolMessage done [10:02:20]OFDSenderStorePacket 72981 [10:02:20]StoreOFDPacket docnum=72981 [10:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DE DB 07 01 E2 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 AA 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 15 1D 01 00 35 04 06 00 19 13 52 8D C2 58 B4 E9 36 9A 27 03 D4 25 [10:02:20]CheckFolder [10:02:20]dirname=/storage/ofd_packets [10:02:20]CheckFolder done [10:02:20]ProducePacketName [10:02:20]name=ofd_packets/00072981 [10:02:20]NVStorageSaveData ofd_packets/00072981 [10:02:20]File name is /storage/ofd_packets/00072981 [10:02:20]Write 301 bytes [10:02:20]NVStorageSaveData done [10:02:20]OFDSenderStorePacket done [10:02:20]KKMCreateOFDPacket done [10:02:20]NVStorageSaveData kkm_last_timestamp [10:02:20]File name is /storage/kkm_last_timestamp [10:02:20]Write 4 bytes [10:02:20]NVStorageSaveData done [10:02:20]ExternCall_PrintAddStr [10:02:20]wPrintStart [10:02:20]Write to MH i2c: 01 00 00 7B 00 7B [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: 01 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: 01 07 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [10:02:20]RasterBufferAndPrint [10:02:20]line Счет N : (1)952582 [10:02:20]line ИНН: 02508201610067 [10:02:20]line Контрольно-Кассовый Чек [10:02:20]line ПРОДАЖА [10:02:20]line ТРК (МРК, ГНК) : 53 [10:02:20]line Товар: 2710124130 [10:02:20]line Аи-92-К-5 [10:02:20]line 5.980 * 0.00 [10:02:20]line = 0.00 [10:02:20]line НДС 12% НСП 1% [10:02:20]line > о реализуемом товаре [10:02:20]line ИТОГО: 0.00 [10:02:20]line НСП 1% : 0.00 [10:02:20]line НДС 12% : 0.00 [10:02:20]line Наличными: 0.00 [10:02:20]line Безнал.: 0.00 [10:02:20]line Место: АЗС № 113 "Партнер Нефть" [10:02:20]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:02:20]line СНО: Общий режим [10:02:20]line Чек 56 31.10.2024 10:02 [10:02:20]line Смена: 557 ФФД: 1.0 [10:02:20]line ЗНМ: 0300000087 [10:02:20]line РНМ: 0000000000091644 [10:02:20]line Версия ККМ: 001 [10:02:20]line Талоны: Топливная Карта [10:02:20]line 03047 [10:02:20]line ФМ: 0000000000874662 [10:02:20]OFD Sender: Processing packet 72981 [packets to send 279, broken 278] [10:02:20]ProducePacketName [10:02:20]name=ofd_packets/00072981 [10:02:20]OFD Sender: To server: pG, [10:02:20]CommunicateWithHost lk.salyk.kg:30040 [10:02:20]ConnectInit lk.salyk.kg [10:02:20]line ФД: 72981 [10:02:20]line ФПД: 27570780095064 [10:02:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T100218&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72981&fm=27570780095064&tin=02508201610067®Number=0000000000091644&sum=0 [10:02:20]written 0, free lines is 4095 [10:02:21]Write to MH i2c: 01 00 00 A5 00 A5 [10:02:21]Write i2c OK [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: 01 [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: 01 07 00 [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 EE 0C A6 [10:02:21]RasterBufferAndPrint [10:02:21]line [10:02:21]line [10:02:21]line [10:02:21]line [10:02:21]line [10:02:21]written 0, free lines is 3340 [10:02:21]MH_Cut [10:02:21]Write to MH i2c: D1 01 00 AC 00 01 7E [10:02:21]Write i2c OK [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: D1 [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: D1 01 00 [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: D1 01 00 AC 00 00 7D [10:02:21]Write to MH i2c: 01 00 00 AD 00 AD [10:02:21]Write i2c OK [10:02:21]MH_I2C_Read... [10:02:21]*** Cut start [10:02:21]*** Partial cut [10:02:21]*** CUTSNS_PIN = 1 [10:02:21]*** CUTSNS_PIN = 0 [10:02:22]*** Brake cut motor [10:02:22]Connected sock=11 [10:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DE DB 07 01 E2 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 *** Stop cut motor [10:02:22]00 *** Cut end [10:02:22]00 00 00 00 07 04 06 00 00 00 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 AA 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 15 1D 01 00 35 04 06 00 19 13 52 8D C2 58 B4 E9 36 9A 27 03 D4 25 [10:02:22]Read from MH i2c: 01 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: 01 07 00 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [10:02:22]process_action close_receipt done [10:02:22]requested_data is exist [10:02:22]produce_requested_data [10:02:22]requested_item fm.sn is exist - process it [10:02:22]wFMCommunicate request_size=4 [10:02:22]MH_SAM_APDU [10:02:22]CAPDU: 80 11 00 00 [10:02:22]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [10:02:22]Write i2c OK [10:02:22]MH_I2C_Read... [10:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:22]Read from MH i2c: E2 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: E2 17 00 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [10:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:02:22]wFMCommunicate OK [10:02:22]requested_item fd.num is exist - process it [10:02:22]SAM_PROTO_GetFieldsCounters [10:02:22]wFMCommunicate request_size=4 [10:02:22]MH_SAM_APDU [10:02:22]CAPDU: 80 13 00 00 [10:02:22]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [10:02:22]Write i2c OK [10:02:22]MH_I2C_Read... [10:02:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:22]Read from MH i2c: E2 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: E2 62 00 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 15 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [10:02:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 15 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:22]wFMCommunicate OK [10:02:22]SAM_PROTO_GetFieldsCounters done [10:02:22]requested_item shift.num is exist - process it [10:02:22]requested_item shift.opened is exist - process it [10:02:22]req_shift_opened [10:02:22]FM_GetShiftState [10:02:22]SAM_PROTO_GetShiftState [10:02:22]wFMCommunicate request_size=4 [10:02:22]MH_SAM_APDU [10:02:22]CAPDU: 80 13 01 00 [10:02:22]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [10:02:22]Write i2c OK [10:02:22]MH_I2C_Read... [10:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:23]Read from MH i2c: E2 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 0E 00 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D6 [10:02:23]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:02:23]wFMCommunicate OK [10:02:23]SAM_PROTO_GetShiftState done [10:02:23]FM_GetShiftState done [10:02:23]req_shift_opened done [10:02:23]requested_item shift.open_date is exist - process it [10:02:23]req_shift_open_date [10:02:23]req_shift_open_date done [10:02:23]produce_requested_data done [10:02:23]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72981,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:02:23]process_action_free close_receipt [10:02:23]json_value_free [10:02:23]json_value_free done [10:02:23]process_json_proto returns [10:02:23]Send response to host [10:02:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72981,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:02:23]free response buf [10:02:23]execute_script done [10:02:23]execute_script returns [10:02:23]free content buf [10:02:23]Sock 5.Close socket [10:02:23]Sock 5.Thread stoped [10:02:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 21 18 47 00 19 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 15 1D 01 00 F4 03 04 00 63 00 23 67 B6 04 01 00 00 02 9E CB C1 30 E9 94 E3 [10:02:23]CommunicateWithHost err = 0 [10:02:23]CheckOFDResponse [10:02:23]1017 (14) - 77093643461234 [10:02:23]1041 (16) - 0000000000874662 [10:02:23]1040 (4) - 72981 [10:02:23]1012 (4) - 31.10.2024 03:58 [10:02:23]1206 (1) - 0 [10:02:23]OFD Sender: Remove packet 72981 [10:02:23]ProducePacketName [10:02:23]name=ofd_packets/00072981 [10:02:23]NVStorageDeleteData [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:00]recv_with_timeout no data received [10:03:03]OFD Sender: No OFD packet to send [10:03:06]accept exits with 9 [10:03:06]New connection [10:03:06]New thread 3067321700 created [10:03:06]Thread 3067178340 joined [10:03:06]Waiting for new connection... [10:03:06] Sock 9.Parse request [10:03:06]Sock 9.Check first char [10:03:06]Sock 9.First char is OK [10:03:06]request: POST /json_proto HTTP/1.0 [10:03:06]Method: POST [10:03:06]URL: /json_proto [10:03:06]Method is POST - this is cgi request [10:03:06]url: /json_proto [10:03:06]query_string will be loaded in cgi processing [10:03:06]execute_cgi json_proto POST (null) [10:03:06]execute_cgi path=json_proto method=POST [10:03:06]POST find Content-Length [10:03:06]Host: 172.17.43.195:8080 [10:03:06]Content-Length: 687 [10:03:06]Content-Type: application/json [10:03:06] [10:03:06]POST finish read [10:03:06]Found Content-Length = 687 [10:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:06]execute_script... [10:03:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:06]POST & json_proto [10:03:06]process_json_proto [10:03:06]json parsed OK: [10:03:06]protocol is kg_v1.0 [10:03:06]action value=close_receipt [10:03:06]process_action close_receipt [10:03:06]cmd_close_receipt [10:03:06]MH_GetDate [10:03:06]Write to MH i2c: F0 00 00 B1 00 A0 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: F0 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: F0 09 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: F0 09 00 B1 00 00 DB 55 23 67 74 2C AD 66 16 [10:03:06]GetLastDocTimeStamp 1730368938 [10:03:06]current date 1730368987 [10:03:06]FM_GetShiftState [10:03:06]SAM_PROTO_GetShiftState [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 13 01 00 [10:03:06]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0E 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D8 [10:03:06]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:03:06]wFMCommunicate OK [10:03:06]SAM_PROTO_GetShiftState done [10:03:06]FM_GetShiftState done [10:03:06]opened in 1730333258 [10:03:06]opened+sec_in_day 1730419658 [10:03:06]quantity*price = 100050 [10:03:06]sum+1 = 100052 [10:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 57 31.10.2024 10:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72982 ФПД: 51759989370787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T100307&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72982&fm=51759989370787&tin=02508201610067®Number=0000000000091644&sum=100000 [10:03:07]StoreToDocumentArchive [10:03:07]shift 557 fd 72982 [10:03:07]save to /storage/0557/doc_00072982 [10:03:07]save last doc name /storage/0557/doc_00072982 to /storage/kkm_last_doc_name [10:03:07]save OK [10:03:07]Clear old archive folders... [10:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:03:07]tlvbuf is 01AB0530 [10:03:07]SAM_PROTO_ClearQueue [10:03:07]wFMCommunicate request_size=4 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 09 00 00 [10:03:07]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [10:03:07]RAPDU: 90 00 [10:03:07]wFMCommunicate OK [10:03:07]SAM_PROTO_ClearQueue done [10:03:07]KKMCreateOFDPacket [10:03:07]OFDProtocolAddRootSTLVToBuf [10:03:07]FM_MakeSignedData [10:03:07]FM_MakeSignedData [10:03:07]SAM_PROTO_SignData [10:03:07]wFMCommunicate request_size=4 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 0D 01 02 [10:03:07]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [10:03:07]RAPDU: 90 00 [10:03:07]wFMCommunicate OK [10:03:07]wFMCommunicate request_size=255 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 DB 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 16 1D 01 00 35 04 06 00 [10:03:07]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 DB 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 16 1D 01 00 35 04 06 00 00 00 FC [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 03 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [10:03:08]RAPDU: 90 00 [10:03:08]wFMCommunicate OK [10:03:08]wFMCommunicate request_size=11 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 0D 02 02 06 2F 13 4F C7 AF A3 [10:03:08]Write to MH i2c: E2 0E 00 C2 00 80 0D 02 02 06 00 2F 13 4F C7 AF A3 00 00 F2 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 03 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [10:03:08]RAPDU: 90 00 [10:03:08]wFMCommunicate OK [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 0D 03 02 [10:03:08]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 0B 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 0B 00 C3 00 00 C4 A4 44 B4 67 B1 BA D3 90 00 44 [10:03:08]RAPDU: C4 A4 44 B4 67 B1 BA D3 90 00 [10:03:08]wFMCommunicate OK [10:03:08]SAM_PROTO_SignData done [10:03:08]FM_MakeSignedData done [10:03:08]CreateOFDProtocolMessage [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 11 00 00 [10:03:08]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 17 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [10:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:03:08]wFMCommunicate OK [10:03:08]CreateOFDProtocolMessage done [10:03:08]OFDSenderStorePacket 72982 [10:03:08]StoreOFDPacket docnum=72982 [10:03:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E0 7D 08 01 2F F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 DB 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 16 1D 01 00 35 04 06 00 2F 13 4F C7 AF A3 C4 A4 44 B4 67 B1 BA D3 [10:03:08]CheckFolder [10:03:08]dirname=/storage/ofd_packets [10:03:08]CheckFolder done [10:03:08]ProducePacketName [10:03:08]name=ofd_packets/00072982 [10:03:08]NVStorageSaveData ofd_packets/00072982 [10:03:08]File name is /storage/ofd_packets/00072982 [10:03:08]Write 302 bytes [10:03:08]NVStorageSaveData done [10:03:08]OFDSenderStorePacket done [10:03:08]KKMCreateOFDPacket done [10:03:08]NVStorageSaveData kkm_last_timestamp [10:03:08]File name is /storage/kkm_last_timestamp [10:03:08]Write 4 bytes [10:03:08]NVStorageSaveData done [10:03:08]ExternCall_PrintAddStr [10:03:08]wPrintStart [10:03:08]Write to MH i2c: 01 00 00 C5 00 C5 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [10:03:08]RasterBufferAndPrint [10:03:08]line Счет N : (1)952583 [10:03:08]line ИНН: 02508201610067 [10:03:08]line Контрольно-Кассовый Чек [10:03:08]line ПРОДАЖА [10:03:08]line ТРК (МРК, ГНК) : 43 [10:03:08]line Товар: 2710194210 [10:03:08]line ДТ(л)-К-5 [10:03:08]line 13.130 * 76.20 [10:03:08]line = 1000.51 [10:03:08]line НДС 12% НСП 1% [10:03:08]line > о реализуемом товаре [10:03:08]line ОКРУГЛЕНИЕ: -0.51 [10:03:08]line ИТОГО: 1000.00 [10:03:08]line Внесено: 1000.00 [10:03:08]line СДАЧА: 0.00 [10:03:08]line НСП 1% : 8.85 [10:03:08]line НДС 12% : 106.25 [10:03:08]line Наличными: 1000.00 [10:03:08]line Безнал.: 0.00 [10:03:08]line Место: АЗС № 113 "Партнер Нефть" [10:03:08]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:03:08]line СНО: Общий режим [10:03:08]line Чек 57 31.10.2024 10:03 [10:03:08]line Смена: 557 ФФД: 1.0 [10:03:08]line ЗНМ: 0300000087 [10:03:08]line РНМ: 0000000000091644 [10:03:08]line Версия ККМ: 001 [10:03:08]line ФМ: 0000000000874662 [10:03:08]line ФД: 72982 [10:03:08]line ФПД: 51759989370787 [10:03:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T100307&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72982&fm=51759989370787&tin=02508201610067®Number=0000000000091644&sum=100000 [10:03:08]written 0, free lines is 4095 [10:03:08]OFD Sender: Processing packet 72982 [packets to send 279, broken 278] [10:03:08]ProducePacketName [10:03:08]name=ofd_packets/00072982 [10:03:08]OFD Sender: To server: pG, [10:03:08]CommunicateWithHost lk.salyk.kg:30040 [10:03:08]ConnectInit lk.salyk.kg [10:03:08]Write to MH i2c: 01 00 00 F0 00 F0 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 DE 0C E1 [10:03:08]RasterBufferAndPrint [10:03:08]line [10:03:08]line [10:03:08]line [10:03:08]line [10:03:08]line [10:03:08]written 0, free lines is 3312 [10:03:08]MH_Cut [10:03:08]Write to MH i2c: D1 01 00 F7 00 01 C9 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: D1 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: D1 01 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: D1 01 00 F7 00 00 C8 [10:03:08]Write to MH i2c: 01 00 00 F8 00 F8 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:09]*** Cut start [10:03:09]*** Partial cut [10:03:09]*** CUTSNS_PIN = 1 [10:03:09]*** CUTSNS_PIN = 0 [10:03:09]*** Brake cut motor [10:03:10]Read from MH i2c: 01 [10:03:10]MH_I2C_Read... [10:03:10]*** Stop cut motor [10:03:10]*** Cut end [10:03:10]Read from MH i2c: 01 07 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [10:03:10]process_action close_receipt done [10:03:10]requested_data is exist [10:03:10]produce_requested_data [10:03:10]requested_item fm.sn is exist - process it [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 11 00 00 [10:03:10]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 17 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [10:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:03:10]wFMCommunicate OK [10:03:10]requested_item fd.num is exist - process it [10:03:10]SAM_PROTO_GetFieldsCounters [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 13 00 00 [10:03:10]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 62 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 16 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:03:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 16 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:10]wFMCommunicate OK [10:03:10]SAM_PROTO_GetFieldsCounters done [10:03:10]requested_item shift.num is exist - process it [10:03:10]requested_item shift.opened is exist - process it [10:03:10]req_shift_opened [10:03:10]FM_GetShiftState [10:03:10]SAM_PROTO_GetShiftState [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 13 01 00 [10:03:10]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 0E 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 21 [10:03:10]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:03:10]wFMCommunicate OK [10:03:10]SAM_PROTO_GetShiftState done [10:03:10]FM_GetShiftState done [10:03:10]req_shift_opened done [10:03:10]requested_item shift.open_date is exist - process it [10:03:10]req_shift_open_date [10:03:10]req_shift_open_date done [10:03:10]produce_requested_data done [10:03:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72982,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:03:10]process_action_free close_receipt [10:03:10]json_value_free [10:03:10]json_value_free done [10:03:10]process_json_proto returns [10:03:10]Send response to host [10:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72982,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:03:10]free response buf [10:03:10]execute_script done [10:03:10]execute_script returns [10:03:10]free content buf [10:03:10]Sock 9.Close socket [10:03:10]Sock 9.Thread stoped [10:03:11]Connected sock=11 [10:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E0 7D 08 01 2F F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 DB 55 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 16 1D 01 00 35 04 06 00 2F 13 4F C7 AF A3 C4 A4 44 B4 67 B1 BA D3 [10:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B2 6C 47 00 F3 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 16 1D 01 00 F4 03 04 00 94 00 23 67 B6 04 01 00 00 7F 9A 5A 74 72 1C DA 0C [10:03:12]CommunicateWithHost err = 0 [10:03:12]CheckOFDResponse [10:03:12]1017 (14) - 77093643461234 [10:03:12]1041 (16) - 0000000000874662 [10:03:12]1040 (4) - 72982 [10:03:12]1012 (4) - 31.10.2024 03:59 [10:03:12]1206 (1) - 0 [10:03:12]OFD Sender: Remove packet 72982 [10:03:12]ProducePacketName [10:03:12]name=ofd_packets/00072982 [10:03:12]NVStorageDeleteData [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:41]recv_with_timeout no data received [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:53]recv_with_timeout no data received [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:05]recv_with_timeout no data received [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]recv_with_timeout no data received [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:30]recv_with_timeout no data received [10:04:32]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:51]recv_with_timeout no data received [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:47]recv_with_timeout no data received [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:56]recv_with_timeout no data received [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:54]recv_with_timeout no data received [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:49]recv_with_timeout no data received [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:06]recv_with_timeout no data received [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:34]recv_with_timeout no data received [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:55]recv_with_timeout no data received [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:21]accept exits with 10 [10:20:21]New connection [10:20:21]New thread 3067178340 created [10:20:21]Thread 3067321700 joined [10:20:21]Waiting for new connection... [10:20:21] Sock 10.Parse request [10:20:21]Sock 10.Check first char [10:20:21]Sock 10.First char is OK [10:20:21]request: POST /json_proto HTTP/1.0 [10:20:21]Method: POST [10:20:21]URL: /json_proto [10:20:21]Method is POST - this is cgi request [10:20:21]url: /json_proto [10:20:21]query_string will be loaded in cgi processing [10:20:21]execute_cgi json_proto POST (null) [10:20:21]execute_cgi path=json_proto method=POST [10:20:21]POST find Content-Length [10:20:21]Host: 172.17.43.195:8080 [10:20:21]Content-Length: 682 [10:20:21]Content-Type: application/json [10:20:21] [10:20:21]POST finish read [10:20:21]Found Content-Length = 682 [10:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:21]execute_script... [10:20: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)952584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:21]POST & json_proto [10:20:21]process_json_proto [10:20:21]json parsed OK: [10:20:21]protocol is kg_v1.0 [10:20:21]action value=close_receipt [10:20:21]process_action close_receipt [10:20:21]cmd_close_receipt [10:20:21]MH_GetDate [10:20:21]Write to MH i2c: F0 00 00 FC 00 EB [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: F0 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: F0 09 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: F0 09 00 FC 00 00 E6 59 23 67 74 2C AD 66 70 [10:20:21]GetLastDocTimeStamp 1730368987 [10:20:21]current date 1730370022 [10:20:21]FM_GetShiftState [10:20:21]SAM_PROTO_GetShiftState [10:20:21]wFMCommunicate request_size=4 [10:20:21]MH_SAM_APDU [10:20:21]CAPDU: 80 13 01 00 [10:20:21]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:21]Read from MH i2c: E2 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: E2 0E 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 23 [10:20:21]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:20:21]wFMCommunicate OK [10:20:21]SAM_PROTO_GetShiftState done [10:20:21]FM_GetShiftState done [10:20:21]opened in 1730333258 [10:20:21]opened+sec_in_day 1730419658 [10:20:21]quantity*price = 200043 [10:20:21]sum+1 = 200044 [10:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 58 31.10.2024 10:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72983 ФПД: 275200330524078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102022&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72983&fm=275200330524078&tin=02508201610067®Number=0000000000091644&sum=200000 [10:20:23]StoreToDocumentArchive [10:20:23]shift 557 fd 72983 [10:20:23]save to /storage/0557/doc_00072983 [10:20:23]save last doc name /storage/0557/doc_00072983 to /storage/kkm_last_doc_name [10:20:23]save OK [10:20:23]Clear old archive folders... [10:20:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:23]tlvbuf is 01A63BB0 [10:20:23]SAM_PROTO_ClearQueue [10:20:23]wFMCommunicate request_size=4 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 09 00 00 [10:20:23]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [10:20:23]RAPDU: 90 00 [10:20:23]wFMCommunicate OK [10:20:23]SAM_PROTO_ClearQueue done [10:20:23]KKMCreateOFDPacket [10:20:23]OFDProtocolAddRootSTLVToBuf [10:20:23]FM_MakeSignedData [10:20:23]FM_MakeSignedData [10:20:23]SAM_PROTO_SignData [10:20:23]wFMCommunicate request_size=4 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 0D 01 02 [10:20:23]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [10:20:23]RAPDU: 90 00 [10:20:23]wFMCommunicate OK [10:20:23]wFMCommunicate request_size=255 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 E6 59 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 17 1D 01 00 35 04 06 00 FA [10:20:23]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 E6 59 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 17 1D 01 00 35 04 06 00 FA 00 00 1B [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [10:20:23]RAPDU: 90 00 [10:20:23]wFMCommunicate OK [10:20:23]wFMCommunicate request_size=10 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 0D 02 02 05 4B 11 F1 65 AE [10:20:23]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 4B 11 F1 65 AE 00 00 F2 [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [10:20:23]RAPDU: 90 00 [10:20:23]wFMCommunicate OK [10:20:23]wFMCommunicate request_size=4 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 0D 03 02 [10:20:23]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 0B 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 0B 00 0E 01 00 5C 1A 3E 8C 5D E7 6C 13 90 00 8E [10:20:23]RAPDU: 5C 1A 3E 8C 5D E7 6C 13 90 00 [10:20:23]wFMCommunicate OK [10:20:23]SAM_PROTO_SignData done [10:20:23]FM_MakeSignedData done [10:20:23]CreateOFDProtocolMessage [10:20:23]wFMCommunicate request_size=4 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 11 00 00 [10:20:23]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 17 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [10:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:20:23]wFMCommunicate OK [10:20:23]CreateOFDProtocolMessage done [10:20:23]OFDSenderStorePacket 72983 [10:20:23]StoreOFDPacket docnum=72983 [10:20:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9C 24 07 01 73 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 E6 59 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 17 1D 01 00 35 04 06 00 FA 4B 11 F1 65 AE 5C 1A 3E 8C 5D E7 6C 13 [10:20:23]CheckFolder [10:20:23]dirname=/storage/ofd_packets [10:20:23]CheckFolder done [10:20:23]ProducePacketName [10:20:23]name=ofd_packets/00072983 [10:20:23]NVStorageSaveData ofd_packets/00072983 [10:20:23]File name is /storage/ofd_packets/00072983 [10:20:23]Write 301 bytes [10:20:23]NVStorageSaveData done [10:20:23]OFDSenderStorePacket done [10:20:23]KKMCreateOFDPacket done [10:20:23]NVStorageSaveData kkm_last_timestamp [10:20:23]File name is /storage/kkm_last_timestamp [10:20:23]Write 4 bytes [10:20:23]NVStorageSaveData done [10:20:23]ExternCall_PrintAddStr [10:20:23]wPrintStart [10:20:23]Write to MH i2c: 01 00 00 10 01 11 [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: 01 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: 01 07 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [10:20:23]RasterBufferAndPrint [10:20:23]line Счет N : (1)952584 [10:20:23]line ИНН: 02508201610067 [10:20:23]line Контрольно-Кассовый Чек [10:20:23]line ПРОДАЖА [10:20:23]line ТРК (МРК, ГНК) : 41 [10:20:23]line Товар: 2710124500 [10:20:23]line Аи-95-К-3 [10:20:23]line 26.960 * 74.20 [10:20:23]line = 2000.43 [10:20:23]line НДС 12% НСП 1% [10:20:23]line > о реализуемом товаре [10:20:23]line ОКРУГЛЕНИЕ: -0.43 [10:20:23]line ИТОГО: 2000.00 [10:20:23]line Внесено: 2000.00 [10:20:23]line СДАЧА: 0.00 [10:20:23]line НСП 1% : 17.70 [10:20:23]line НДС 12% : 212.43 [10:20:23]line Наличными: 2000.00 [10:20:23]line Безнал.: 0.00 [10:20:23]line Место: АЗС № 113 "Партнер Нефть" [10:20:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:20:23]line СНО: Общий режим [10:20:23]line Чек 58 31.10.2024 10:20 [10:20:23]line Смена: 557 ФФД: 1.0 [10:20:23]line ЗНМ: 0300000087 [10:20:23]line РНМ: 0000000000091644 [10:20:23]line Версия ККМ: 001 [10:20:23]line ФМ: 0000000000874662 [10:20:23]line ФД: 72983 [10:20:23]line ФПД: 275200330524078 [10:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102022&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72983&fm=275200330524078&tin=02508201610067®Number=0000000000091644&sum=200000 [10:20:23]OFD Sender: Processing packet 72983 [packets to send 279, broken 278] [10:20:23]ProducePacketName [10:20:23]name=ofd_packets/00072983 [10:20:23]OFD Sender: To server: pG, [10:20:23]CommunicateWithHost lk.salyk.kg:30040 [10:20:23]ConnectInit lk.salyk.kg [10:20:23]written 0, free lines is 4095 [10:20:24]Write to MH i2c: 01 00 00 3B 01 3C [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 07 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 D6 0C 25 [10:20:24]RasterBufferAndPrint [10:20:24]line [10:20:24]line [10:20:24]line [10:20:24]line [10:20:24]line [10:20:24]written 0, free lines is 3294 [10:20:24]MH_Cut [10:20:24]Write to MH i2c: D1 01 00 42 01 01 15 [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: D1 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: D1 01 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: D1 01 00 42 01 00 14 [10:20:24]Write to MH i2c: 01 00 00 43 01 44 [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]Connected sock=9 [10:20:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9C 24 07 01 73 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 E6 59 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 17 1D 01 00 35 04 06 00 FA 4B 11 F1 65 AE 5C 1A 3E 8C 5D E7 6C 13 [10:20:25]*** Cut start [10:20:25]*** Partial cut [10:20:25]*** CUTSNS_PIN = 1 [10:20:25]*** CUTSNS_PIN = 0 [10:20:25]*** Brake cut motor [10:20:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E2 DD 47 00 0F 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 17 1D 01 00 F4 03 04 00 9D 04 23 67 B6 04 01 00 00 34 4C 0B 49 BC 75 E8 ED [10:20:25]CommunicateWithHost err = 0 [10:20:25]CheckOFDResponse [10:20:25]1017 (14) - 77093643461234 [10:20:25]1041 (16) - 0000000000874662 [10:20:25]1040 (4) - 72983 [10:20:25]1012 (4) - 31.10.2024 04:16 [10:20:25]1206 (1) - 0 [10:20:25]OFD Sender: Remove packet 72983 [10:20:25]ProducePacketName [10:20:25]name=ofd_packets/00072983 [10:20:25]NVStorageDeleteData [10:20:25]Read from MH i2c: 01 [10:20:25]MH_I2C_Read... [10:20:25]*** Stop cut motor [10:20:25]*** Cut end [10:20:25]Read from MH i2c: 01 07 00 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [10:20:25]process_action close_receipt done [10:20:25]requested_data is exist [10:20:25]produce_requested_data [10:20:25]requested_item fm.sn is exist - process it [10:20:25]wFMCommunicate request_size=4 [10:20:25]MH_SAM_APDU [10:20:25]CAPDU: 80 11 00 00 [10:20:25]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [10:20:25]Write i2c OK [10:20:25]MH_I2C_Read... [10:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:25]Read from MH i2c: E2 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 17 00 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 13 [10:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:20:25]wFMCommunicate OK [10:20:25]requested_item fd.num is exist - process it [10:20:25]SAM_PROTO_GetFieldsCounters [10:20:25]wFMCommunicate request_size=4 [10:20:25]MH_SAM_APDU [10:20:25]CAPDU: 80 13 00 00 [10:20:25]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [10:20:25]Write i2c OK [10:20:25]MH_I2C_Read... [10:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:25]Read from MH i2c: E2 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 62 00 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 17 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [10:20:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 17 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:25]wFMCommunicate OK [10:20:25]SAM_PROTO_GetFieldsCounters done [10:20:25]requested_item shift.num is exist - process it [10:20:25]requested_item shift.opened is exist - process it [10:20:25]req_shift_opened [10:20:25]FM_GetShiftState [10:20:25]SAM_PROTO_GetShiftState [10:20:25]wFMCommunicate request_size=4 [10:20:25]MH_SAM_APDU [10:20:25]CAPDU: 80 13 01 00 [10:20:25]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [10:20:25]Write i2c OK [10:20:25]MH_I2C_Read... [10:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:25]Read from MH i2c: E2 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 0E 00 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6D [10:20:25]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:20:25]wFMCommunicate OK [10:20:25]SAM_PROTO_GetShiftState done [10:20:25]FM_GetShiftState done [10:20:25]req_shift_opened done [10:20:25]requested_item shift.open_date is exist - process it [10:20:25]req_shift_open_date [10:20:25]req_shift_open_date done [10:20:25]produce_requested_data done [10:20:25]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72983,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:20:25]process_action_free close_receipt [10:20:25]json_value_free [10:20:25]json_value_free done [10:20:25]process_json_proto returns [10:20:25]Send response to host [10:20:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72983,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:20:25]free response buf [10:20:25]execute_script done [10:20:25]execute_script returns [10:20:25]free content buf [10:20:25]Sock 10.Close socket [10:20:25]Sock 10.Thread stoped [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:40]recv_with_timeout no data received [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:20:58]recv_with_timeout no data received [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:46]recv_with_timeout no data received [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:24]accept exits with 7 [10:24:24]New connection [10:24:24]New thread 3067321700 created [10:24:24]Thread 3067178340 joined [10:24:24]Waiting for new connection... [10:24:24] Sock 7.Parse request [10:24:24]Sock 7.Check first char [10:24:24]Sock 7.First char is OK [10:24:24]request: POST /json_proto HTTP/1.0 [10:24:24]Method: POST [10:24:24]URL: /json_proto [10:24:24]Method is POST - this is cgi request [10:24:24]url: /json_proto [10:24:24]query_string will be loaded in cgi processing [10:24:24]execute_cgi json_proto POST (null) [10:24:24]execute_cgi path=json_proto method=POST [10:24:24]POST find Content-Length [10:24:24]Host: 172.17.43.195:8080 [10:24:24]Content-Length: 792 [10:24:24]Content-Type: application/json [10:24:24] [10:24:24]POST finish read [10:24:24]Found Content-Length = 792 [10:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 22.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:24]execute_script... [10:24:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 22.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:24]POST & json_proto [10:24:24]process_json_proto [10:24:24]json parsed OK: [10:24:24]protocol is kg_v1.0 [10:24:24]action value=close_receipt [10:24:24]process_action close_receipt [10:24:24]cmd_close_receipt [10:24:24]MH_GetDate [10:24:24]Write to MH i2c: F0 00 00 47 01 37 [10:24:24]Write i2c OK [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: F0 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: F0 09 00 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: F0 09 00 47 01 00 D9 5A 23 67 74 2C AD 66 B0 [10:24:24]GetLastDocTimeStamp 1730370022 [10:24:24]current date 1730370265 [10:24:24]FM_GetShiftState [10:24:24]SAM_PROTO_GetShiftState [10:24:24]wFMCommunicate request_size=4 [10:24:24]MH_SAM_APDU [10:24:24]CAPDU: 80 13 01 00 [10:24:24]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [10:24:24]Write i2c OK [10:24:24]MH_I2C_Read... [10:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:24]Read from MH i2c: E2 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 0E 00 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6F [10:24:24]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:24:24]wFMCommunicate OK [10:24:24]SAM_PROTO_GetShiftState done [10:24:24]FM_GetShiftState done [10:24:24]opened in 1730333258 [10:24:24]opened+sec_in_day 1730419658 [10:24:24]quantity*price = 0 [10:24:24]sum+1 = 1 [10:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 59 31.10.2024 10:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72984 ФПД: 42289185438284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102425&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72984&fm=42289185438284&tin=02508201610067®Number=0000000000091644&sum=0 [10:24:25]StoreToDocumentArchive [10:24:25]shift 557 fd 72984 [10:24:25]save to /storage/0557/doc_00072984 [10:24:25]save last doc name /storage/0557/doc_00072984 to /storage/kkm_last_doc_name [10:24:25]save OK [10:24:25]Clear old archive folders... [10:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:25]tlvbuf is 01AD2610 [10:24:25]SAM_PROTO_ClearQueue [10:24:25]wFMCommunicate request_size=4 [10:24:25]MH_SAM_APDU [10:24:25]CAPDU: 80 09 00 00 [10:24:25]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:25]Read from MH i2c: E2 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [10:24:25]RAPDU: 90 00 [10:24:25]wFMCommunicate OK [10:24:25]SAM_PROTO_ClearQueue done [10:24:25]KKMCreateOFDPacket [10:24:25]OFDProtocolAddRootSTLVToBuf [10:24:25]FM_MakeSignedData [10:24:25]FM_MakeSignedData [10:24:25]SAM_PROTO_SignData [10:24:25]wFMCommunicate request_size=4 [10:24:25]MH_SAM_APDU [10:24:25]CAPDU: 80 0D 01 02 [10:24:25]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:25]Read from MH i2c: E2 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [10:24:25]RAPDU: 90 00 [10:24:25]wFMCommunicate OK [10:24:25]wFMCommunicate request_size=255 [10:24:25]MH_SAM_APDU [10:24:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 5A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 18 1D 01 00 35 04 06 00 26 [10:24:25]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 5A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 18 1D 01 00 35 04 06 00 26 00 00 52 [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:25]Read from MH i2c: E2 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [10:24:25]RAPDU: 90 00 [10:24:25]wFMCommunicate OK [10:24:25]wFMCommunicate request_size=10 [10:24:25]MH_SAM_APDU [10:24:25]CAPDU: 80 0D 02 02 05 76 37 E0 3A 4C [10:24:25]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 76 37 E0 3A 4C 00 00 F0 [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:25]Read from MH i2c: E2 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [10:24:25]RAPDU: 90 00 [10:24:25]wFMCommunicate OK [10:24:25]wFMCommunicate request_size=4 [10:24:25]MH_SAM_APDU [10:24:25]CAPDU: 80 0D 03 02 [10:24:25]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:25]Read from MH i2c: E2 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 0B 00 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 0B 00 59 01 00 B6 57 63 20 91 66 55 2E 90 00 E0 [10:24:25]RAPDU: B6 57 63 20 91 66 55 2E 90 00 [10:24:25]wFMCommunicate OK [10:24:25]SAM_PROTO_SignData done [10:24:25]FM_MakeSignedData done [10:24:25]CreateOFDProtocolMessage [10:24:25]wFMCommunicate request_size=4 [10:24:25]MH_SAM_APDU [10:24:25]CAPDU: 80 11 00 00 [10:24:25]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:25]Read from MH i2c: E2 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 17 00 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 29 [10:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:24:25]wFMCommunicate OK [10:24:25]CreateOFDProtocolMessage done [10:24:25]OFDSenderStorePacket 72984 [10:24:25]StoreOFDPacket docnum=72984 [10:24:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B3 86 07 01 66 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 5A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 18 1D 01 00 35 04 06 00 26 76 37 E0 3A 4C B6 57 63 20 91 66 55 2E [10:24:25]CheckFolder [10:24:25]dirname=/storage/ofd_packets [10:24:25]CheckFolder done [10:24:25]ProducePacketName [10:24:25]name=ofd_packets/00072984 [10:24:25]NVStorageSaveData ofd_packets/00072984 [10:24:25]File name is /storage/ofd_packets/00072984 [10:24:25]Write 301 bytes [10:24:25]NVStorageSaveData done [10:24:25]OFDSenderStorePacket done [10:24:25]KKMCreateOFDPacket done [10:24:25]NVStorageSaveData kkm_last_timestamp [10:24:25]File name is /storage/kkm_last_timestamp [10:24:25]Write 4 bytes [10:24:25]NVStorageSaveData done [10:24:25]OFD Sender: Processing packet 72984 [packets to send 279, broken 278] [10:24:25]ProducePacketName [10:24:25]name=ofd_packets/00072984 [10:24:25]OFD Sender: To server: pG, [10:24:25]CommunicateWithHost lk.salyk.kg:30040 [10:24:25]ConnectInit lk.salyk.kg [10:24:25]ExternCall_PrintAddStr [10:24:25]wPrintStart [10:24:25]Write to MH i2c: 01 00 00 5B 01 5C [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: 01 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: 01 07 00 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [10:24:25]RasterBufferAndPrint [10:24:25]line Счет N : (1)952586 [10:24:25]line ИНН: 02508201610067 [10:24:25]line Контрольно-Кассовый Чек [10:24:25]line ПРОДАЖА [10:24:25]line ТРК (МРК, ГНК) : 42 [10:24:25]line Товар: 2710124130 [10:24:25]line Аи-92-К-5 [10:24:25]line 22.430 * 0.00 [10:24:25]line = 0.00 [10:24:25]line НДС 12% НСП 1% [10:24:25]line > о реализуемом товаре [10:24:25]line ИТОГО: 0.00 [10:24:25]line НСП 1% : 0.00 [10:24:25]line НДС 12% : 0.00 [10:24:25]line Наличными: 0.00 [10:24:25]line Безнал.: 0.00 [10:24:25]line Место: АЗС № 113 "Партнер Нефть" [10:24:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:24:25]line СНО: Общий режим [10:24:25]line Чек 59 31.10.2024 10:24 [10:24:25]line Смена: 557 ФФД: 1.0 [10:24:25]line ЗНМ: 0300000087 [10:24:25]line РНМ: 0000000000091644 [10:24:25]line Версия ККМ: 001 [10:24:25]line Талоны: Топливная Карта [10:24:25]line 03047 [10:24:25]line ФМ: 0000000000874662 [10:24:25]line ФД: 72984 [10:24:25]line ФПД: 42289185438284 [10:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102425&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72984&fm=42289185438284&tin=02508201610067®Number=0000000000091644&sum=0 [10:24:26]written 0, free lines is 4095 [10:24:26]Write to MH i2c: 01 00 00 85 01 86 [10:24:26]Write i2c OK [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: 01 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: 01 07 00 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 E5 0C 7E [10:24:26]RasterBufferAndPrint [10:24:26]line [10:24:26]line [10:24:26]line [10:24:26]line [10:24:26]line [10:24:26]written 0, free lines is 3307 [10:24:26]MH_Cut [10:24:26]Write to MH i2c: D1 01 00 8C 01 01 5F [10:24:26]Write i2c OK [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: D1 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: D1 01 00 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: D1 01 00 8C 01 00 5E [10:24:26]Write to MH i2c: 01 00 00 8D 01 8E [10:24:26]Write i2c OK [10:24:26]MH_I2C_Read... [10:24:26]Connected sock=11 [10:24:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B3 86 07 01 66 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 5A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 18 1D 01 00 35 04 06 00 26 76 37 E0 3A 4C B6 57 63 20 91 66 55 2E [10:24:27]*** Cut start [10:24:27]*** Partial cut [10:24:27]*** CUTSNS_PIN = 1 [10:24:27]*** CUTSNS_PIN = 0 [10:24:27]*** Brake cut motor [10:24:28]Read from MH i2c: 01 [10:24:28]*** Stop cut motor [10:24:28]*** Cut end [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: 01 07 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [10:24:28]process_action close_receipt done [10:24:28]requested_data is exist [10:24:28]produce_requested_data [10:24:28]requested_item fm.sn is exist - process it [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 11 00 00 [10:24:28]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 17 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5D [10:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:24:28]wFMCommunicate OK [10:24:28]requested_item fd.num is exist - process it [10:24:28]SAM_PROTO_GetFieldsCounters [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 13 00 00 [10:24:28]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 62 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 18 1D 01 00 0E 04 04 00 2D 02 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 43 [10:24: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 18 1D 01 00 0E 04 04 00 2D 02 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 [10:24:28]wFMCommunicate OK [10:24:28]SAM_PROTO_GetFieldsCounters done [10:24:28]requested_item shift.num is exist - process it [10:24:28]requested_item shift.opened is exist - process it [10:24:28]req_shift_opened [10:24:28]FM_GetShiftState [10:24:28]SAM_PROTO_GetShiftState [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 13 01 00 [10:24:28]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 0E 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B7 [10:24:28]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:24:28]wFMCommunicate OK [10:24:28]SAM_PROTO_GetShiftState done [10:24:28]FM_GetShiftState done [10:24:28]req_shift_opened done [10:24:28]requested_item shift.open_date is exist - process it [10:24:28]req_shift_open_date [10:24:28]req_shift_open_date done [10:24:28]produce_requested_data done [10:24:28]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72984,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:24:28]process_action_free close_receipt [10:24:28]json_value_free [10:24:28]json_value_free done [10:24:28]process_json_proto returns [10:24:28]Send response to host [10:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72984,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:24:28]free response buf [10:24:28]execute_script done [10:24:28]execute_script returns [10:24:28]free content buf [10:24:28]Sock 7.Close socket [10:24:28]Sock 7.Thread stoped [10:24:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FD C1 47 00 D1 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 18 1D 01 00 F4 03 04 00 8F 05 23 67 B6 04 01 00 00 C5 8F 41 74 FB ED F6 4D [10:24:28]CommunicateWithHost err = 0 [10:24:28]CheckOFDResponse [10:24:28]1017 (14) - 77093643461234 [10:24:28]1041 (16) - 0000000000874662 [10:24:28]1040 (4) - 72984 [10:24:28]1012 (4) - 31.10.2024 04:20 [10:24:28]1206 (1) - 0 [10:24:28]OFD Sender: Remove packet 72984 [10:24:28]ProducePacketName [10:24:28]name=ofd_packets/00072984 [10:24:28]NVStorageDeleteData [10:24:28]OFD Sender: No OFD packet to send [10:24:33]recv_with_timeout no data received [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:46]recv_with_timeout no data received [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]accept exits with 9 [10:24:58]New connection [10:24:58]New thread 3067178340 created [10:24:58]Thread 3067321700 joined [10:24:58]Waiting for new connection... [10:24:58] Sock 9.Parse request [10:24:58]Sock 9.Check first char [10:24:58]Sock 9.First char is OK [10:24:58]request: POST /json_proto HTTP/1.0 [10:24:58]Method: POST [10:24:58]URL: /json_proto [10:24:58]Method is POST - this is cgi request [10:24:58]url: /json_proto [10:24:58]query_string will be loaded in cgi processing [10:24:58]execute_cgi json_proto POST (null) [10:24:58]execute_cgi path=json_proto method=POST [10:24:58]POST find Content-Length [10:24:58]Host: 172.17.43.195:8080 [10:24:58]Content-Length: 754 [10:24:58]Content-Type: application/json [10:24:58] [10:24:58]POST finish read [10:24:58]Found Content-Length = 754 [10:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30095881", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:58]execute_script... [10:24:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30095881", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:58]POST & json_proto [10:24:58]process_json_proto [10:24:58]json parsed OK: [10:24:58]protocol is kg_v1.0 [10:24:58]action value=close_receipt [10:24:58]process_action close_receipt [10:24:58]cmd_close_receipt [10:24:58]MH_GetDate [10:24:58]Write to MH i2c: F0 00 00 91 01 81 [10:24:58]Write i2c OK [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: F0 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: F0 09 00 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: F0 09 00 91 01 00 FB 5A 23 67 74 2C AD 66 1C [10:24:58]GetLastDocTimeStamp 1730370265 [10:24:58]current date 1730370299 [10:24:58]FM_GetShiftState [10:24:58]SAM_PROTO_GetShiftState [10:24:58]wFMCommunicate request_size=4 [10:24:58]MH_SAM_APDU [10:24:58]CAPDU: 80 13 01 00 [10:24:58]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [10:24:58]Write i2c OK [10:24:58]MH_I2C_Read... [10:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:58]Read from MH i2c: E2 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 0E 00 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B9 [10:24:58]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:24:58]wFMCommunicate OK [10:24:58]SAM_PROTO_GetShiftState done [10:24:58]FM_GetShiftState done [10:24:58]opened in 1730333258 [10:24:58]opened+sec_in_day 1730419658 [10:24:58]quantity*price = 0 [10:24:58]sum+1 = 1 [10:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 60 31.10.2024 10:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30095881 ФМ: 0000000000874662 ФД: 72985 ФПД: 263011587431874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102459&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72985&fm=263011587431874&tin=02508201610067®Number=0000000000091644&sum=0 [10:24:59]StoreToDocumentArchive [10:24:59]shift 557 fd 72985 [10:24:59]save to /storage/0557/doc_00072985 [10:24:59]save last doc name /storage/0557/doc_00072985 to /storage/kkm_last_doc_name [10:24:59]save OK [10:24:59]Clear old archive folders... [10:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:59]tlvbuf is 01AD52D0 [10:24:59]SAM_PROTO_ClearQueue [10:24:59]wFMCommunicate request_size=4 [10:24:59]MH_SAM_APDU [10:24:59]CAPDU: 80 09 00 00 [10:24:59]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:59]Read from MH i2c: E2 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 03 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [10:24:59]RAPDU: 90 00 [10:24:59]wFMCommunicate OK [10:24:59]SAM_PROTO_ClearQueue done [10:24:59]KKMCreateOFDPacket [10:24:59]OFDProtocolAddRootSTLVToBuf [10:24:59]FM_MakeSignedData [10:24:59]FM_MakeSignedData [10:24:59]SAM_PROTO_SignData [10:24:59]wFMCommunicate request_size=4 [10:24:59]MH_SAM_APDU [10:24:59]CAPDU: 80 0D 01 02 [10:24:59]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:59]Read from MH i2c: E2 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 03 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [10:24:59]RAPDU: 90 00 [10:24:59]wFMCommunicate OK [10:24:59]wFMCommunicate request_size=255 [10:24:59]MH_SAM_APDU [10:24:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB 5A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 19 1D 01 00 35 04 06 00 EF [10:24:59]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB 5A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 19 1D 01 00 35 04 06 00 EF 00 00 70 [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:00]Read from MH i2c: E2 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: E2 03 00 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [10:25:00]RAPDU: 90 00 [10:25:00]wFMCommunicate OK [10:25:00]wFMCommunicate request_size=10 [10:25:00]MH_SAM_APDU [10:25:00]CAPDU: 80 0D 02 02 05 35 28 3D 9D C2 [10:25:00]Write to MH i2c: E2 0D 00 A2 01 80 0D 02 02 05 00 35 28 3D 9D C2 00 00 20 [10:25:00]Write i2c OK [10:25:00]MH_I2C_Read... [10:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:00]Read from MH i2c: E2 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: E2 03 00 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [10:25:00]RAPDU: 90 00 [10:25:00]wFMCommunicate OK [10:25:00]wFMCommunicate request_size=4 [10:25:00]MH_SAM_APDU [10:25:00]CAPDU: 80 0D 03 02 [10:25:00]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [10:25:00]Write i2c OK [10:25:00]MH_I2C_Read... [10:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:00]Read from MH i2c: E2 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: E2 0B 00 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: E2 0B 00 A3 01 00 E4 AF C1 02 AF 73 AF EC 90 00 33 [10:25:00]RAPDU: E4 AF C1 02 AF 73 AF EC 90 00 [10:25:00]wFMCommunicate OK [10:25:00]SAM_PROTO_SignData done [10:25:00]FM_MakeSignedData done [10:25:00]CreateOFDProtocolMessage [10:25:00]wFMCommunicate request_size=4 [10:25:00]MH_SAM_APDU [10:25:00]CAPDU: 80 11 00 00 [10:25:00]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [10:25:00]Write i2c OK [10:25:00]MH_I2C_Read... [10:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:00]Read from MH i2c: E2 [10:25:35]Connected sock=9 [10:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 15 7A 07 01 F6 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB 5A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 19 1D 01 00 35 04 06 00 EF 35 28 3D 9D C2 E4 AF C1 02 AF 73 AF EC [10:25:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CA C0 47 00 B1 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 19 1D 01 00 F4 03 04 00 D8 05 23 67 B6 04 01 00 00 8A D1 69 49 EC 11 4D E5 [10:25:39]CommunicateWithHost err = 0 [10:25:39]CheckOFDResponse [10:25:39]1017 (14) - 77093643461234 [10:25:39]1041 (16) - 0000000000874662 [10:25:39]1040 (4) - 72985 [10:25:39]1012 (4) - 31.10.2024 04:21 [10:25:39]1206 (1) - 0 [10:25:39]OFD Sender: Remove packet 72985 [10:25:39]ProducePacketName [10:25:39]name=ofd_packets/00072985 [10:25:39]NVStorageDeleteData [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:50]accept exits with 10 [10:25:50]New connection [10:25:50]New thread 3067321700 created [10:25:50]Thread 3067178340 joined [10:25:50]Waiting for new connection... [10:25:50] Sock 10.Parse request [10:25:50]Sock 10.Check first char [10:25:50]Sock 10.First char is OK [10:25:50]request: POST /json_proto HTTP/1.0 [10:25:50]Method: POST [10:25:50]URL: /json_proto [10:25:50]Method is POST - this is cgi request [10:25:50]url: /json_proto [10:25:50]query_string will be loaded in cgi processing [10:25:50]execute_cgi json_proto POST (null) [10:25:50]execute_cgi path=json_proto method=POST [10:25:50]POST find Content-Length [10:25:50]Host: 172.17.43.195:8080 [10:25:50]Content-Length: 792 [10:25:50]Content-Type: application/json [10:25:50] [10:25:50]POST finish read [10:25:50]Found Content-Length = 792 [10:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.700, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:50]execute_script... [10:25:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.700, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:50]POST & json_proto [10:25:50]process_json_proto [10:25:50]json parsed OK: [10:25:50]protocol is kg_v1.0 [10:25:50]action value=close_receipt [10:25:50]process_action close_receipt [10:25:50]cmd_close_receipt [10:25:50]MH_GetDate [10:25:50]Write to MH i2c: F0 00 00 DB 01 CB [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: F0 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: F0 09 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: F0 09 00 DB 01 00 2F 5B 23 67 74 2C AD 66 9B [10:25:50]GetLastDocTimeStamp 1730370299 [10:25:50]current date 1730370351 [10:25:50]FM_GetShiftState [10:25:50]SAM_PROTO_GetShiftState [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 13 01 00 [10:25:50]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 03 [10:25:50]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:25:50]wFMCommunicate OK [10:25:50]SAM_PROTO_GetShiftState done [10:25:50]FM_GetShiftState done [10:25:50]opened in 1730333258 [10:25:50]opened+sec_in_day 1730419658 [10:25:50]quantity*price = 0 [10:25:50]sum+1 = 1 [10:25:50]Check (price>sum+1) || (price+1 о реализуемом товаре [10:25:52]line ИТОГО: 0.00 [10:25:52]line НСП 1% : 0.00 [10:25:52]line НДС 12% : 0.00 [10:25:52]line Наличными: 0.00 [10:25:52]line Безнал.: 0.00 [10:25:52]line Место: АЗС № 113 "Партнер Нефть" [10:25:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:25:52]line СНО: Общий режим [10:25:52]line Чек 61 31.10.2024 10:25 [10:25:52]line Смена: 557 ФФД: 1.0 [10:25:52]line ЗНМ: 0300000087 [10:25:52]line РНМ: 0000000000091644 [10:25:52]line Версия ККМ: 001 [10:25:52]line Талоны: Топливная Карта [10:25:52]line 03047 [10:25:52]line ФМ: 0000000000874662 [10:25:52]line ФД: 72986 [10:25:52]line ФПД: 69697422716080 [10:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102551&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72986&fm=69697422716080&tin=02508201610067®Number=0000000000091644&sum=0 [10:25:52]written 0, free lines is 4095 [10:25:52]OFD Sender: Processing packet 72986 [packets to send 279, broken 278] [10:25:52]ProducePacketName [10:25:52]name=ofd_packets/00072986 [10:25:52]OFD Sender: To server: pG, [10:25:52]CommunicateWithHost lk.salyk.kg:30040 [10:25:52]ConnectInit lk.salyk.kg [10:25:52]Write to MH i2c: 01 00 00 19 02 1B [10:25:52]Write i2c OK [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: 01 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: 01 07 00 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 E4 0C 12 [10:25:52]RasterBufferAndPrint [10:25:52]line [10:25:52]line [10:25:52]line [10:25:52]line [10:25:52]line [10:25:52]written 0, free lines is 3306 [10:25:52]MH_Cut [10:25:52]Write to MH i2c: D1 01 00 20 02 01 F4 [10:25:52]Write i2c OK [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: D1 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: D1 01 00 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: D1 01 00 20 02 00 F3 [10:25:52]Write to MH i2c: 01 00 00 21 02 23 [10:25:52]Write i2c OK [10:25:52]MH_I2C_Read... [10:25:53]*** Cut start [10:25:53]*** Partial cut [10:25:53]*** CUTSNS_PIN = 1 [10:25:53]*** CUTSNS_PIN = 0 [10:25:53]*** Brake cut motor [10:25:54]Read from MH i2c: 01 [10:25:54]MH_I2C_Read... [10:25:54]*** Stop cut motor [10:25:54]*** Cut end [10:25:54]Read from MH i2c: 01 07 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [10:25:54]process_action close_receipt done [10:25:54]requested_data is exist [10:25:54]produce_requested_data [10:25:54]requested_item fm.sn is exist - process it [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 11 00 00 [10:25:54]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 17 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [10:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:25:54]wFMCommunicate OK [10:25:54]requested_item fd.num is exist - process it [10:25:54]SAM_PROTO_GetFieldsCounters [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 13 00 00 [10:25:54]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 62 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 62 00 23 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [10:25:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:54]wFMCommunicate OK [10:25:54]SAM_PROTO_GetFieldsCounters done [10:25:54]requested_item shift.num is exist - process it [10:25:54]requested_item shift.opened is exist - process it [10:25:54]req_shift_opened [10:25:54]FM_GetShiftState [10:25:54]SAM_PROTO_GetShiftState [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 13 01 00 [10:25:54]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:54]Read from MH i2c: E2 0E 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4C [10:25:54]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:25:54]wFMCommunicate OK [10:25:54]SAM_PROTO_GetShiftState done [10:25:54]FM_GetShiftState done [10:25:54]req_shift_opened done [10:25:54]requested_item shift.open_date is exist - process it [10:25:54]req_shift_open_date [10:25:54]req_shift_open_date done [10:25:54]produce_requested_data done [10:25:54]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72986,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:25:54]process_action_free close_receipt [10:25:54]json_value_free [10:25:54]json_value_free done [10:25:54]process_json_proto returns [10:25:54]Send response to host [10:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72986,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:25:54]free response buf [10:25:54]execute_script done [10:25:54]execute_script returns [10:25:54]free content buf [10:25:54]Sock 10.Close socket [10:25:54]Sock 10.Thread stoped [10:25:54]Connected sock=11 [10:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A3 C9 07 01 7D D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 2F 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1A 1D 01 00 35 04 06 00 3F 63 B2 1F 6C B0 16 76 A4 12 A4 8A EF 0B [10:25:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BF 4C 47 00 2C E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1A 1D 01 00 F4 03 04 00 E8 05 23 67 B6 04 01 00 00 C6 55 F3 38 5C 5F 09 36 [10:25:56]CommunicateWithHost err = 0 [10:25:56]CheckOFDResponse [10:25:56]1017 (14) - 77093643461234 [10:25:56]1041 (16) - 0000000000874662 [10:25:56]1040 (4) - 72986 [10:25:56]1012 (4) - 31.10.2024 04:22 [10:25:56]1206 (1) - 0 [10:25:56]OFD Sender: Remove packet 72986 [10:25:56]ProducePacketName [10:25:56]name=ofd_packets/00072986 [10:25:56]NVStorageDeleteData [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:14]accept exits with 9 [10:26:14]New connection [10:26:14]New thread 3067178340 created [10:26:14]Thread 3067321700 joined [10:26:14]Waiting for new connection... [10:26:14] Sock 9.Parse request [10:26:14]Sock 9.Check first char [10:26:14]Sock 9.First char is OK [10:26:14]request: POST /json_proto HTTP/1.0 [10:26:14]Method: POST [10:26:14]URL: /json_proto [10:26:14]Method is POST - this is cgi request [10:26:14]url: /json_proto [10:26:14]query_string will be loaded in cgi processing [10:26:14]execute_cgi json_proto POST (null) [10:26:14]execute_cgi path=json_proto method=POST [10:26:14]POST find Content-Length [10:26:14]Host: 172.17.43.195:8080 [10:26:14]Content-Length: 791 [10:26:14]Content-Type: application/json [10:26:14] [10:26:14]POST finish read [10:26:14]Found Content-Length = 791 [10:26:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:14]execute_script... [10:26: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)952588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:14]POST & json_proto [10:26:14]process_json_proto [10:26:14]json parsed OK: [10:26:14]protocol is kg_v1.0 [10:26:14]action value=close_receipt [10:26:14]process_action close_receipt [10:26:14]cmd_close_receipt [10:26:14]MH_GetDate [10:26:14]Write to MH i2c: F0 00 00 25 02 16 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: F0 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: F0 09 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: F0 09 00 25 02 00 47 5B 23 67 74 2C AD 66 FE [10:26:14]GetLastDocTimeStamp 1730370351 [10:26:14]current date 1730370375 [10:26:14]FM_GetShiftState [10:26:14]SAM_PROTO_GetShiftState [10:26:14]wFMCommunicate request_size=4 [10:26:14]MH_SAM_APDU [10:26:14]CAPDU: 80 13 01 00 [10:26:14]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:14]Read from MH i2c: E2 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 0E 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4E [10:26:14]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:26:14]wFMCommunicate OK [10:26:14]SAM_PROTO_GetShiftState done [10:26:14]FM_GetShiftState done [10:26:14]opened in 1730333258 [10:26:14]opened+sec_in_day 1730419658 [10:26:14]quantity*price = 0 [10:26:14]sum+1 = 1 [10:26:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 62 31.10.2024 10:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72987 ФПД: 211151835819889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102615&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72987&fm=211151835819889&tin=02508201610067®Number=0000000000091644&sum=0 [10:26:15]StoreToDocumentArchive [10:26:15]shift 557 fd 72987 [10:26:15]save to /storage/0557/doc_00072987 [10:26:15]save last doc name /storage/0557/doc_00072987 to /storage/kkm_last_doc_name [10:26:15]save OK [10:26:15]Clear old archive folders... [10:26:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:15]tlvbuf is 01AD5F10 [10:26:15]SAM_PROTO_ClearQueue [10:26:15]wFMCommunicate request_size=4 [10:26:15]MH_SAM_APDU [10:26:15]CAPDU: 80 09 00 00 [10:26:15]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [10:26:15]Write i2c OK [10:26:15]MH_I2C_Read... [10:26:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:15]Read from MH i2c: E2 [10:26:15]MH_I2C_Read... [10:26:15]Read from MH i2c: E2 03 00 [10:26:15]MH_I2C_Read... [10:26:15]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [10:26:15]RAPDU: 90 00 [10:26:15]wFMCommunicate OK [10:26:15]SAM_PROTO_ClearQueue done [10:26:15]KKMCreateOFDPacket [10:26:15]OFDProtocolAddRootSTLVToBuf [10:26:15]FM_MakeSignedData [10:26:15]FM_MakeSignedData [10:26:15]SAM_PROTO_SignData [10:26:15]wFMCommunicate request_size=4 [10:26:15]MH_SAM_APDU [10:26:15]CAPDU: 80 0D 01 02 [10:26:15]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [10:26:15]Write i2c OK [10:26:15]MH_I2C_Read... [10:26:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:15]Read from MH i2c: E2 [10:26:15]MH_I2C_Read... [10:26:15]Read from MH i2c: E2 03 00 [10:26:15]MH_I2C_Read... [10:26:15]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [10:26:15]RAPDU: 90 00 [10:26:15]wFMCommunicate OK [10:26:15]wFMCommunicate request_size=255 [10:26:15]MH_SAM_APDU [10:26:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 47 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1B 1D 01 00 35 04 06 00 C0 [10:26:15]Write to MH i2c: E2 02 01 35 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 47 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1B 1D 01 00 35 04 06 00 C0 00 00 E6 [10:26:15]Write i2c OK [10:26:15]MH_I2C_Read... [10:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:15]Read from MH i2c: E2 [10:26:15]MH_I2C_Read... [10:26:15]Read from MH i2c: E2 03 00 [10:26:15]MH_I2C_Read... [10:26:15]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [10:26:15]RAPDU: 90 00 [10:26:15]wFMCommunicate OK [10:26:15]wFMCommunicate request_size=10 [10:26:15]MH_SAM_APDU [10:26:15]CAPDU: 80 0D 02 02 05 0A 9E 2A EF 71 [10:26:15]Write to MH i2c: E2 0D 00 36 02 80 0D 02 02 05 00 0A 9E 2A EF 71 00 00 EE [10:26:15]Write i2c OK [10:26:15]MH_I2C_Read... [10:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:15]Read from MH i2c: E2 [10:26:15]MH_I2C_Read... [10:26:15]Read from MH i2c: E2 03 00 [10:26:15]MH_I2C_Read... [10:26:15]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [10:26:15]RAPDU: 90 00 [10:26:15]wFMCommunicate OK [10:26:15]wFMCommunicate request_size=4 [10:26:15]MH_SAM_APDU [10:26:15]CAPDU: 80 0D 03 02 [10:26:15]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [10:26:15]Write i2c OK [10:26:15]MH_I2C_Read... [10:26:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:16]Read from MH i2c: E2 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 0B 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 0B 00 37 02 00 0B 5B BF 6A 31 E9 C1 23 90 00 42 [10:26:16]RAPDU: 0B 5B BF 6A 31 E9 C1 23 90 00 [10:26:16]wFMCommunicate OK [10:26:16]SAM_PROTO_SignData done [10:26:16]FM_MakeSignedData done [10:26:16]CreateOFDProtocolMessage [10:26:16]wFMCommunicate request_size=4 [10:26:16]MH_SAM_APDU [10:26:16]CAPDU: 80 11 00 00 [10:26:16]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:16]Read from MH i2c: E2 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 17 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 08 [10:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:26:16]wFMCommunicate OK [10:26:16]CreateOFDProtocolMessage done [10:26:16]OFDSenderStorePacket 72987 [10:26:16]StoreOFDPacket docnum=72987 [10:26:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CF BE 07 01 07 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 47 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1B 1D 01 00 35 04 06 00 C0 0A 9E 2A EF 71 0B 5B BF 6A 31 E9 C1 23 [10:26:16]CheckFolder [10:26:16]dirname=/storage/ofd_packets [10:26:16]CheckFolder done [10:26:16]ProducePacketName [10:26:16]name=ofd_packets/00072987 [10:26:16]NVStorageSaveData ofd_packets/00072987 [10:26:16]File name is /storage/ofd_packets/00072987 [10:26:16]Write 301 bytes [10:26:16]NVStorageSaveData done [10:26:16]OFDSenderStorePacket done [10:26:16]KKMCreateOFDPacket done [10:26:16]NVStorageSaveData kkm_last_timestamp [10:26:16]File name is /storage/kkm_last_timestamp [10:26:16]Write 4 bytes [10:26:16]NVStorageSaveData done [10:26:16]ExternCall_PrintAddStr [10:26:16]wPrintStart [10:26:16]Write to MH i2c: 01 00 00 39 02 3B [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: 01 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: 01 07 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [10:26:16]RasterBufferAndPrint [10:26:16]line Счет N : (1)952588 [10:26:16]line ИНН: 02508201610067 [10:26:16]line Контрольно-Кассовый Чек [10:26:16]line ПРОДАЖА [10:26:16]line ТРК (МРК, ГНК) : 42 [10:26:16]line Товар: 2710124130 [10:26:16]line Аи-92-К-5 [10:26:16]line 5.000 * 0.00 [10:26:16]line = 0.00 [10:26:16]line НДС 12% НСП 1% [10:26:16]line > о реализуемом товаре [10:26:16]line ИТОГО: 0.00 [10:26:16]line НСП 1% : 0.00 [10:26:16]line НДС 12% : 0.00 [10:26:16]line Наличными: 0.00 [10:26:16]line Безнал.: 0.00 [10:26:16]line Место: АЗС № 113 "Партнер Нефть" [10:26:16]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:26:16]line СНО: Общий режим [10:26:16]line Чек 62 31.10.2024 10:26 [10:26:16]line Смена: 557 ФФД: 1.0 [10:26:16]line ЗНМ: 0300000087 [10:26:16]line РНМ: 0000000000091644 [10:26:16]line Версия ККМ: 001 [10:26:16]line Талоны: Топливная Карта [10:26:16]line 03047 [10:26:16]line ФМ: 0000000000874662 [10:26:16]line ФД: 72987 [10:26:16]line ФПД: 211151835819889 [10:26:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102615&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72987&fm=211151835819889&tin=02508201610067®Number=0000000000091644&sum=0 [10:26:16]written 0, free lines is 4095 [10:26:16]OFD Sender: Processing packet 72987 [packets to send 279, broken 278] [10:26:16]ProducePacketName [10:26:16]name=ofd_packets/00072987 [10:26:16]OFD Sender: To server: pG, [10:26:16]CommunicateWithHost lk.salyk.kg:30040 [10:26:16]ConnectInit lk.salyk.kg [10:26:16]Write to MH i2c: 01 00 00 63 02 65 [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: 01 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: 01 07 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 E7 0C 5F [10:26:16]RasterBufferAndPrint [10:26:16]line [10:26:16]line [10:26:16]line [10:26:16]line [10:26:16]line [10:26:16]written 0, free lines is 3318 [10:26:16]MH_Cut [10:26:16]Write to MH i2c: D1 01 00 6A 02 01 3E [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: D1 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: D1 01 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: D1 01 00 6A 02 00 3D [10:26:16]Write to MH i2c: 01 00 00 6B 02 6D [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]Connected sock=11 [10:26:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CF BE 07 01 07 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 47 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1B 1D 01 00 35 04 06 00 C0 0A 9E 2A EF 71 0B 5B BF 6A 31 E9 C1 23 [10:26:17]*** Cut start [10:26:17]*** Partial cut [10:26:17]*** CUTSNS_PIN = 1 [10:26:17]*** CUTSNS_PIN = 0 [10:26:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 80 07 47 00 77 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1B 1D 01 00 F4 03 04 00 FD 05 23 67 B6 04 01 00 00 AF F6 9E 25 C8 09 9E 6C [10:26:17]CommunicateWithHost err = 0 [10:26:17]*** Brake cut motor [10:26:17]CheckOFDResponse [10:26:17]1017 (14) - 77093643461234 [10:26:17]1041 (16) - 0000000000874662 [10:26:17]1040 (4) - 72987 [10:26:17]1012 (4) - 31.10.2024 04:22 [10:26:17]1206 (1) - 0 [10:26:17]OFD Sender: Remove packet 72987 [10:26:17]ProducePacketName [10:26:17]name=ofd_packets/00072987 [10:26:17]NVStorageDeleteData [10:26:17]Read from MH i2c: 01 [10:26:17]MH_I2C_Read... [10:26:17]*** Stop cut motor [10:26:17]*** Cut end [10:26:17]Read from MH i2c: 01 07 00 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [10:26:17]process_action close_receipt done [10:26:17]requested_data is exist [10:26:17]produce_requested_data [10:26:17]requested_item fm.sn is exist - process it [10:26:17]wFMCommunicate request_size=4 [10:26:17]MH_SAM_APDU [10:26:17]CAPDU: 80 11 00 00 [10:26:17]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 17 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [10:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:26:18]wFMCommunicate OK [10:26:18]requested_item fd.num is exist - process it [10:26:18]SAM_PROTO_GetFieldsCounters [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 13 00 00 [10:26:18]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]OFD Sender: No OFD packet to send [10:26:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 62 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [10:26:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_GetFieldsCounters done [10:26:18]requested_item shift.num is exist - process it [10:26:18]requested_item shift.opened is exist - process it [10:26:18]req_shift_opened [10:26:18]FM_GetShiftState [10:26:18]SAM_PROTO_GetShiftState [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 13 01 00 [10:26:18]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 96 [10:26:18]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_GetShiftState done [10:26:18]FM_GetShiftState done [10:26:18]req_shift_opened done [10:26:18]requested_item shift.open_date is exist - process it [10:26:18]req_shift_open_date [10:26:18]req_shift_open_date done [10:26:18]produce_requested_data done [10:26:18]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72987,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:26:18]process_action_free close_receipt [10:26:18]json_value_free [10:26:18]json_value_free done [10:26:18]process_json_proto returns [10:26:18]Send response to host [10:26:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72987,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:26:18]free response buf [10:26:18]execute_script done [10:26:18]execute_script returns [10:26:18]free content buf [10:26:18]Sock 9.Close socket [10:26:18]Sock 9.Thread stoped [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:46]ConnectInit Can't connect to host [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:01]recv_with_timeout no data received [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:46]accept exits with 10 [10:29:46]New connection [10:29:46]New thread 3067321700 created [10:29:46]Thread 3067178340 joined [10:29:46]Waiting for new connection... [10:29:46] Sock 10.Parse request [10:29:46]Sock 10.Check first char [10:29:46]Sock 10.First char is OK [10:29:46]request: POST /json_proto HTTP/1.0 [10:29:46]Method: POST [10:29:46]URL: /json_proto [10:29:46]Method is POST - this is cgi request [10:29:46]url: /json_proto [10:29:46]query_string will be loaded in cgi processing [10:29:46]execute_cgi json_proto POST (null) [10:29:46]execute_cgi path=json_proto method=POST [10:29:46]POST find Content-Length [10:29:46]Host: 172.17.43.195:8080 [10:29:46]Content-Length: 792 [10:29:46]Content-Type: application/json [10:29:46] [10:29:46]POST finish read [10:29:46]Found Content-Length = 792 [10:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:46]execute_script... [10:29:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:46]POST & json_proto [10:29:46]process_json_proto [10:29:46]json parsed OK: [10:29:46]protocol is kg_v1.0 [10:29:46]action value=close_receipt [10:29:46]process_action close_receipt [10:29:46]cmd_close_receipt [10:29:46]MH_GetDate [10:29:46]Write to MH i2c: F0 00 00 6F 02 60 [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: F0 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: F0 09 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: F0 09 00 6F 02 00 1B 5C 23 67 74 2C AD 66 1D [10:29:46]GetLastDocTimeStamp 1730370375 [10:29:46]current date 1730370587 [10:29:46]FM_GetShiftState [10:29:46]SAM_PROTO_GetShiftState [10:29:46]wFMCommunicate request_size=4 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 13 01 00 [10:29:46]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 0E 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 98 [10:29:46]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:29:46]wFMCommunicate OK [10:29:46]SAM_PROTO_GetShiftState done [10:29:46]FM_GetShiftState done [10:29:46]opened in 1730333258 [10:29:46]opened+sec_in_day 1730419658 [10:29:46]quantity*price = 0 [10:29:46]sum+1 = 1 [10:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 63 31.10.2024 10:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72988 ФПД: 155209538659558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102947&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72988&fm=155209538659558&tin=02508201610067®Number=0000000000091644&sum=0 [10:29:47]StoreToDocumentArchive [10:29:47]shift 557 fd 72988 [10:29:47]save to /storage/0557/doc_00072988 [10:29:47]save last doc name /storage/0557/doc_00072988 to /storage/kkm_last_doc_name [10:29:47]save OK [10:29:47]Clear old archive folders... [10:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:47]tlvbuf is 01AF15D0 [10:29:47]SAM_PROTO_ClearQueue [10:29:47]wFMCommunicate request_size=4 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 09 00 00 [10:29:47]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:47]Read from MH i2c: E2 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 03 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [10:29:47]RAPDU: 90 00 [10:29:47]wFMCommunicate OK [10:29:47]SAM_PROTO_ClearQueue done [10:29:47]KKMCreateOFDPacket [10:29:47]OFDProtocolAddRootSTLVToBuf [10:29:47]FM_MakeSignedData [10:29:47]FM_MakeSignedData [10:29:47]SAM_PROTO_SignData [10:29:47]wFMCommunicate request_size=4 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 0D 01 02 [10:29:47]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:47]Read from MH i2c: E2 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 03 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [10:29:47]RAPDU: 90 00 [10:29:47]wFMCommunicate OK [10:29:47]wFMCommunicate request_size=255 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1B 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1C 1D 01 00 35 04 06 00 8D [10:29:47]Write to MH i2c: E2 02 01 7F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1B 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1C 1D 01 00 35 04 06 00 8D 00 00 42 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [10:29:48]RAPDU: 90 00 [10:29:48]wFMCommunicate OK [10:29:48]wFMCommunicate request_size=10 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 0D 02 02 05 29 89 6A E4 E6 [10:29:48]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 29 89 6A E4 E6 00 00 EC [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [10:29:48]RAPDU: 90 00 [10:29:48]wFMCommunicate OK [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 0D 03 02 [10:29:48]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0B 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0B 00 81 02 00 83 84 BB 24 EB FE C3 05 90 00 96 [10:29:48]RAPDU: 83 84 BB 24 EB FE C3 05 90 00 [10:29:48]wFMCommunicate OK [10:29:48]SAM_PROTO_SignData done [10:29:48]FM_MakeSignedData done [10:29:48]CreateOFDProtocolMessage [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 11 00 00 [10:29:48]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [10:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:29:48]wFMCommunicate OK [10:29:48]CreateOFDProtocolMessage done [10:29:48]OFDSenderStorePacket 72988 [10:29:48]StoreOFDPacket docnum=72988 [10:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C1 20 07 01 7A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1B 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1C 1D 01 00 35 04 06 00 8D 29 89 6A E4 E6 83 84 BB 24 EB FE C3 05 [10:29:48]CheckFolder [10:29:48]dirname=/storage/ofd_packets [10:29:48]CheckFolder done [10:29:48]ProducePacketName [10:29:48]name=ofd_packets/00072988 [10:29:48]NVStorageSaveData ofd_packets/00072988 [10:29:48]File name is /storage/ofd_packets/00072988 [10:29:48]Write 301 bytes [10:29:48]NVStorageSaveData done [10:29:48]OFDSenderStorePacket done [10:29:48]KKMCreateOFDPacket done [10:29:48]NVStorageSaveData kkm_last_timestamp [10:29:48]File name is /storage/kkm_last_timestamp [10:29:48]Write 4 bytes [10:29:48]NVStorageSaveData done [10:29:48]ExternCall_PrintAddStr [10:29:48]wPrintStart [10:29:48]Write to MH i2c: 01 00 00 83 02 85 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [10:29:48]RasterBufferAndPrint [10:29:48]line Счет N : (1)952589 [10:29:48]line ИНН: 02508201610067 [10:29:48]line Контрольно-Кассовый Чек [10:29:48]line ПРОДАЖА [10:29:48]line ТРК (МРК, ГНК) : 63 [10:29:48]line Товар: 2710124130 [10:29:48]line Аи-92-К-5 [10:29:48]line 25.000 * 0.00 [10:29:48]line = 0.00 [10:29:48]line НДС 12% НСП 1% [10:29:48]line > о реализуемом товаре [10:29:48]line ИТОГО: 0.00 [10:29:48]line НСП 1% : 0.00 [10:29:48]line НДС 12% : 0.00 [10:29:48]line Наличными: 0.00 [10:29:48]line Безнал.: 0.00 [10:29:48]line Место: АЗС № 113 "Партнер Нефть" [10:29:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:29:48]line СНО: Общий режим [10:29:48]line Чек 63 31.10.2024 10:29 [10:29:48]line Смена: 557 ФФД: 1.0 [10:29:48]OFD Sender: Processing packet 72988 [packets to send 279, broken 278] [10:29:48]ProducePacketName [10:29:48]name=ofd_packets/00072988 [10:29:48]OFD Sender: To server: pG, [10:29:48]CommunicateWithHost lk.salyk.kg:30040 [10:29:48]ConnectInit lk.salyk.kg [10:29:48]line ЗНМ: 0300000087 [10:29:48]line РНМ: 0000000000091644 [10:29:48]line Версия ККМ: 001 [10:29:48]line Талоны: Топливная Карта [10:29:48]line 03047 [10:29:48]line ФМ: 0000000000874662 [10:29:48]line ФД: 72988 [10:29:48]line ФПД: 155209538659558 [10:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102947&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72988&fm=155209538659558&tin=02508201610067®Number=0000000000091644&sum=0 [10:29:48]written 0, free lines is 4095 [10:29:48]Write to MH i2c: 01 00 00 AD 02 AF [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 EA 0C AC [10:29:48]RasterBufferAndPrint [10:29:48]line [10:29:48]line [10:29:48]line [10:29:48]line [10:29:48]line [10:29:48]written 0, free lines is 3327 [10:29:48]MH_Cut [10:29:48]Write to MH i2c: D1 01 00 B4 02 01 88 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: D1 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: D1 01 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: D1 01 00 B4 02 00 87 [10:29:48]Write to MH i2c: 01 00 00 B5 02 B7 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:49]Connected sock=11 [10:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C1 20 07 01 7A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1B 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1C 1D 01 00 35 04 06 00 8D 29 89 6A E4 E6 83 84 BB 24 EB FE C3 05 [10:29:49]*** Cut start [10:29:49]*** Partial cut [10:29:49]*** CUTSNS_PIN = 1 [10:29:49]*** CUTSNS_PIN = 0 [10:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4E 28 47 00 FD 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1C 1D 01 00 F4 03 04 00 D2 06 23 67 B6 04 01 00 00 F3 AD B6 D4 12 FC 0F C6 [10:29:49]CommunicateWithHost err = 0 [10:29:49]CheckOFDResponse [10:29:49]1017 (14) - 77093643461234 [10:29:49]1041 (16) - 0000000000874662 [10:29:49]1040 (4) - 72988 [10:29:49]1012 (4) - 31.10.2024 04:25 [10:29:49]1206 (1) - 0 [10:29:49]OFD Sender: Remove packet 72988 [10:29:49]ProducePacketName [10:29:49]name=ofd_packets/00072988 [10:29:49]NVStorageDeleteData [10:29:49]*** Brake cut motor [10:29:50]Read from MH i2c: 01 [10:29:50]MH_I2C_Read... [10:29:50]*** Stop cut motor [10:29:50]*** Cut end [10:29:50]Read from MH i2c: 01 07 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: 01 07 00 B5 02 00 00 00 00 00 FF 0F CC [10:29:50]process_action close_receipt done [10:29:50]requested_data is exist [10:29:50]produce_requested_data [10:29:50]requested_item fm.sn is exist - process it [10:29:50]wFMCommunicate request_size=4 [10:29:50]MH_SAM_APDU [10:29:50]CAPDU: 80 11 00 00 [10:29:50]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:50]Read from MH i2c: E2 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 17 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 86 [10:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:29:50]wFMCommunicate OK [10:29:50]requested_item fd.num is exist - process it [10:29:50]SAM_PROTO_GetFieldsCounters [10:29:50]wFMCommunicate request_size=4 [10:29:50]MH_SAM_APDU [10:29:50]CAPDU: 80 13 00 00 [10:29:50]Write to MH i2c: E2 08 00 B7 02 80 13 00 00 00 00 00 00 35 [10:29:50]OFD Sender: No OFD packet to send [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:50]Read from MH i2c: E2 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 62 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 62 00 B7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:29:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:50]wFMCommunicate OK [10:29:50]SAM_PROTO_GetFieldsCounters done [10:29:50]requested_item shift.num is exist - process it [10:29:50]requested_item shift.opened is exist - process it [10:29:50]req_shift_opened [10:29:50]FM_GetShiftState [10:29:50]SAM_PROTO_GetShiftState [10:29:50]wFMCommunicate request_size=4 [10:29:50]MH_SAM_APDU [10:29:50]CAPDU: 80 13 01 00 [10:29:50]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:50]Read from MH i2c: E2 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 0E 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E0 [10:29:50]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:29:50]wFMCommunicate OK [10:29:50]SAM_PROTO_GetShiftState done [10:29:50]FM_GetShiftState done [10:29:50]req_shift_opened done [10:29:50]requested_item shift.open_date is exist - process it [10:29:50]req_shift_open_date [10:29:50]req_shift_open_date done [10:29:50]produce_requested_data done [10:29:50]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72988,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:29:50]process_action_free close_receipt [10:29:50]json_value_free [10:29:50]json_value_free done [10:29:50]process_json_proto returns [10:29:50]Send response to host [10:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72988,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:29:50]free response buf [10:29:50]execute_script done [10:29:50]execute_script returns [10:29:50]free content buf [10:29:50]Sock 10.Close socket [10:29:50]Sock 10.Thread stoped [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:22]accept exits with 9 [10:30:22]New connection [10:30:22]New thread 3067178340 created [10:30:22]Thread 3067321700 joined [10:30:22]Waiting for new connection... [10:30:22] Sock 9.Parse request [10:30:22]Sock 9.Check first char [10:30:22]Sock 9.First char is OK [10:30:22]request: POST /json_proto HTTP/1.0 [10:30:22]Method: POST [10:30:22]URL: /json_proto [10:30:22]Method is POST - this is cgi request [10:30:22]url: /json_proto [10:30:22]query_string will be loaded in cgi processing [10:30:22]execute_cgi json_proto POST (null) [10:30:22]execute_cgi path=json_proto method=POST [10:30:22]POST find Content-Length [10:30:22]Host: 172.17.43.195:8080 [10:30:22]Content-Length: 792 [10:30:22]Content-Type: application/json [10:30:22] [10:30:22]POST finish read [10:30:22]Found Content-Length = 792 [10:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:22]execute_script... [10:30: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)952590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:22]POST & json_proto [10:30:22]process_json_proto [10:30:22]json parsed OK: [10:30:22]protocol is kg_v1.0 [10:30:22]action value=close_receipt [10:30:22]process_action close_receipt [10:30:22]cmd_close_receipt [10:30:22]MH_GetDate [10:30:22]Write to MH i2c: F0 00 00 B9 02 AA [10:30:22]Write i2c OK [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: F0 [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: F0 09 00 [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: F0 09 00 B9 02 00 3E 5C 23 67 74 2C AD 66 8A [10:30:22]GetLastDocTimeStamp 1730370587 [10:30:22]current date 1730370622 [10:30:22]FM_GetShiftState [10:30:22]SAM_PROTO_GetShiftState [10:30:22]wFMCommunicate request_size=4 [10:30:22]MH_SAM_APDU [10:30:22]CAPDU: 80 13 01 00 [10:30:22]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [10:30:22]Write i2c OK [10:30:22]MH_I2C_Read... [10:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:22]Read from MH i2c: E2 [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: E2 0E 00 [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E2 [10:30:22]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:30:22]wFMCommunicate OK [10:30:22]SAM_PROTO_GetShiftState done [10:30:22]FM_GetShiftState done [10:30:22]opened in 1730333258 [10:30:22]opened+sec_in_day 1730419658 [10:30:22]quantity*price = 0 [10:30:22]sum+1 = 1 [10:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 64 31.10.2024 10:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72989 ФПД: 277653946387432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T103023&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72989&fm=277653946387432&tin=02508201610067®Number=0000000000091644&sum=0 [10:30:23]StoreToDocumentArchive [10:30:23]shift 557 fd 72989 [10:30:23]save to /storage/0557/doc_00072989 [10:30:23]save last doc name /storage/0557/doc_00072989 to /storage/kkm_last_doc_name [10:30:23]save OK [10:30:23]Clear old archive folders... [10:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:23]tlvbuf is 01AF6630 [10:30:23]SAM_PROTO_ClearQueue [10:30:23]wFMCommunicate request_size=4 [10:30:23]MH_SAM_APDU [10:30:23]CAPDU: 80 09 00 00 [10:30:23]Write to MH i2c: E2 08 00 C7 02 80 09 00 00 00 00 00 00 3B [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:23]Read from MH i2c: E2 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 03 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [10:30:23]RAPDU: 90 00 [10:30:23]wFMCommunicate OK [10:30:23]SAM_PROTO_ClearQueue done [10:30:23]KKMCreateOFDPacket [10:30:23]OFDProtocolAddRootSTLVToBuf [10:30:23]FM_MakeSignedData [10:30:23]FM_MakeSignedData [10:30:23]SAM_PROTO_SignData [10:30:23]wFMCommunicate request_size=4 [10:30:23]MH_SAM_APDU [10:30:23]CAPDU: 80 0D 01 02 [10:30:23]Write to MH i2c: E2 08 00 C8 02 80 0D 01 02 00 00 00 00 43 [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:23]Read from MH i2c: E2 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 03 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [10:30:23]RAPDU: 90 00 [10:30:23]wFMCommunicate OK [10:30:23]wFMCommunicate request_size=255 [10:30:23]MH_SAM_APDU [10:30:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3F 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1D 1D 01 00 35 04 06 00 FC [10:30:23]Write to MH i2c: E2 02 01 C9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3F 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1D 1D 01 00 35 04 06 00 FC 00 00 BD [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:23]Read from MH i2c: E2 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 03 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [10:30:23]RAPDU: 90 00 [10:30:23]wFMCommunicate OK [10:30:23]wFMCommunicate request_size=10 [10:30:23]MH_SAM_APDU [10:30:23]CAPDU: 80 0D 02 02 05 86 58 D8 4B E8 [10:30:23]Write to MH i2c: E2 0D 00 CA 02 80 0D 02 02 05 00 86 58 D8 4B E8 00 00 39 [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [10:30:24]RAPDU: 90 00 [10:30:24]wFMCommunicate OK [10:30:24]wFMCommunicate request_size=4 [10:30:24]MH_SAM_APDU [10:30:24]CAPDU: 80 0D 03 02 [10:30:24]Write to MH i2c: E2 08 00 CB 02 80 0D 03 02 00 00 00 00 48 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 0B 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 0B 00 CB 02 00 B7 AB 05 76 5F 5F 05 FC 90 00 E5 [10:30:24]RAPDU: B7 AB 05 76 5F 5F 05 FC 90 00 [10:30:24]wFMCommunicate OK [10:30:24]SAM_PROTO_SignData done [10:30:24]FM_MakeSignedData done [10:30:24]CreateOFDProtocolMessage [10:30:24]wFMCommunicate request_size=4 [10:30:24]MH_SAM_APDU [10:30:24]CAPDU: 80 11 00 00 [10:30:24]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 17 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9C [10:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:30:24]wFMCommunicate OK [10:30:24]CreateOFDProtocolMessage done [10:30:24]OFDSenderStorePacket 72989 [10:30:24]StoreOFDPacket docnum=72989 [10:30:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E8 DB 07 01 DC 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3F 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1D 1D 01 00 35 04 06 00 FC 86 58 D8 4B E8 B7 AB 05 76 5F 5F 05 FC [10:30:24]CheckFolder [10:30:24]dirname=/storage/ofd_packets [10:30:24]CheckFolder done [10:30:24]ProducePacketName [10:30:24]name=ofd_packets/00072989 [10:30:24]NVStorageSaveData ofd_packets/00072989 [10:30:24]File name is /storage/ofd_packets/00072989 [10:30:24]Write 301 bytes [10:30:24]NVStorageSaveData done [10:30:24]OFDSenderStorePacket done [10:30:24]KKMCreateOFDPacket done [10:30:24]NVStorageSaveData kkm_last_timestamp [10:30:24]File name is /storage/kkm_last_timestamp [10:30:24]Write 4 bytes [10:30:24]NVStorageSaveData done [10:30:24]ExternCall_PrintAddStr [10:30:24]wPrintStart [10:30:24]Write to MH i2c: 01 00 00 CD 02 CF [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: 01 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: 01 07 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [10:30:24]RasterBufferAndPrint [10:30:24]line Счет N : (1)952590 [10:30:24]line ИНН: 02508201610067 [10:30:24]line Контрольно-Кассовый Чек [10:30:24]line ПРОДАЖА [10:30:24]line ТРК (МРК, ГНК) : 53 [10:30:24]line Товар: 2710124130 [10:30:24]line Аи-92-К-5 [10:30:24]line 30.000 * 0.00 [10:30:24]line = 0.00 [10:30:24]line НДС 12% НСП 1% [10:30:24]line > о реализуемом товаре [10:30:24]line ИТОГО: 0.00 [10:30:24]line НСП 1% : 0.00 [10:30:24]line НДС 12% : 0.00 [10:30:24]line Наличными: 0.00 [10:30:24]line Безнал.: 0.00 [10:30:24]line Место: АЗС № 113 "Партнер Нефть" [10:30:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:30:24]line СНО: Общий режим [10:30:24]line Чек 64 31.10.2024 10:30 [10:30:24]line Смена: 557 ФФД: 1.0 [10:30:24]line ЗНМ: 0300000087 [10:30:24]line РНМ: 0000000000091644 [10:30:24]line Версия ККМ: 001 [10:30:24]line Талоны: Топливная Карта [10:30:24]line 03047 [10:30:24]line ФМ: 0000000000874662 [10:30:24]line ФД: 72989 [10:30:24]line ФПД: 277653946387432 [10:30:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T103023&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72989&fm=277653946387432&tin=02508201610067®Number=0000000000091644&sum=0 [10:30:24]OFD Sender: Processing packet 72989 [packets to send 279, broken 278] [10:30:24]ProducePacketName [10:30:24]name=ofd_packets/00072989 [10:30:24]OFD Sender: To server: pG, [10:30:24]CommunicateWithHost lk.salyk.kg:30040 [10:30:24]ConnectInit lk.salyk.kg [10:30:24]written 0, free lines is 4095 [10:30:24]Connected sock=11 [10:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E8 DB 07 01 DC 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3F 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1D 1D 01 00 35 04 06 00 FC 86 58 D8 4B E8 B7 AB 05 76 5F 5F 05 FC [10:30:24]Write to MH i2c: 01 00 00 F7 02 F9 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: 01 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: 01 07 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 36 0E 44 [10:30:24]RasterBufferAndPrint [10:30:24]line [10:30:24]line [10:30:24]line [10:30:24]line [10:30:24]line [10:30:24]written 0, free lines is 3665 [10:30:24]MH_Cut [10:30:24]Write to MH i2c: D1 01 00 FE 02 01 D2 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: D1 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: D1 01 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: D1 01 00 FE 02 00 D1 [10:30:24]Write to MH i2c: 01 00 00 FF 02 01 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E2 44 47 00 69 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 34 36 36 32 10 04 04 00 1D 1D 01 00 F4 03 04 00 F5 06 23 67 B6 04 01 00 00 6D B2 F5 3A E2 55 88 C7 [10:30:25]CommunicateWithHost err = 0 [10:30:25]CheckOFDResponse [10:30:25]1017 (14) - 77093643461234 [10:30:25]1041 (16) - 0000000000874662 [10:30:25]1040 (4) - 72989 [10:30:25]1012 (4) - 31.10.2024 04:26 [10:30:25]1206 (1) - 0 [10:30:25]OFD Sender: Remove packet 72989 [10:30:25]ProducePacketName [10:30:25]name=ofd_packets/00072989 [10:30:25]NVStorageDeleteData [10:30:25]*** Cut start [10:30:25]*** Partial cut [10:30:25]*** CUTSNS_PIN = 1 [10:30:25]*** CUTSNS_PIN = 0 [10:30:25]*** Brake cut motor [10:30:25]OFD Sender: No OFD packet to send [10:30:26]Read from MH i2c: 01 [10:30:26]MH_I2C_Read... [10:30:26]*** Stop cut motor [10:30:26]*** Cut end [10:30:26]Read from MH i2c: 01 07 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [10:30:26]process_action close_receipt done [10:30:26]requested_data is exist [10:30:26]produce_requested_data [10:30:26]requested_item fm.sn is exist - process it [10:30:26]wFMCommunicate request_size=4 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 11 00 00 [10:30:26]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 17 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D1 [10:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:30:26]wFMCommunicate OK [10:30:26]requested_item fd.num is exist - process it [10:30:26]SAM_PROTO_GetFieldsCounters [10:30:26]wFMCommunicate request_size=4 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 13 00 00 [10:30:26]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 62 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 62 00 01 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [10:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:26]wFMCommunicate OK [10:30:26]SAM_PROTO_GetFieldsCounters done [10:30:26]requested_item shift.num is exist - process it [10:30:26]requested_item shift.opened is exist - process it [10:30:26]req_shift_opened [10:30:26]FM_GetShiftState [10:30:26]SAM_PROTO_GetShiftState [10:30:26]wFMCommunicate request_size=4 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 13 01 00 [10:30:26]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0E 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2B [10:30:26]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:30:26]wFMCommunicate OK [10:30:26]SAM_PROTO_GetShiftState done [10:30:26]FM_GetShiftState done [10:30:26]req_shift_opened done [10:30:26]requested_item shift.open_date is exist - process it [10:30:26]req_shift_open_date [10:30:26]req_shift_open_date done [10:30:26]produce_requested_data done [10:30:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72989,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:30:26]process_action_free close_receipt [10:30:26]json_value_free [10:30:26]json_value_free done [10:30:26]process_json_proto returns [10:30:26]Send response to host [10:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72989,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:30:26]free response buf [10:30:26]execute_script done [10:30:26]execute_script returns [10:30:26]free content buf [10:30:26]Sock 9.Close socket [10:30:26]Sock 9.Thread stoped [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31: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:16]ConnectInit Can't connect to host [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:27]recv_with_timeout no data received [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:44]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:04]recv_with_timeout no data received [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:15]recv_with_timeout no data received [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:49]recv_with_timeout no data received [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:18]recv_with_timeout no data received [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40: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:40:57]recv_with_timeout no data received [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:38]recv_with_timeout no data received [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:56]recv_with_timeout no data received [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:20]recv_with_timeout no data received [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:28]recv_with_timeout no data received [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:44:58]recv_with_timeout no data received [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:10]recv_with_timeout no data received [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:30]recv_with_timeout no data received [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:10]recv_with_timeout no data received [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:28]recv_with_timeout no data received [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:19]recv_with_timeout no data received [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:14]recv_with_timeout no data received [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:38]recv_with_timeout no data received [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:15]accept exits with 10 [10:50:15]New connection [10:50:15]New thread 3067321700 created [10:50:15]Thread 3067178340 joined [10:50:15]Waiting for new connection... [10:50:15] Sock 10.Parse request [10:50:15]Sock 10.Check first char [10:50:15]Sock 10.First char is OK [10:50:15]request: POST /json_proto HTTP/1.0 [10:50:15]Method: POST [10:50:15]URL: /json_proto [10:50:15]Method is POST - this is cgi request [10:50:15]url: /json_proto [10:50:15]query_string will be loaded in cgi processing [10:50:15]execute_cgi json_proto POST (null) [10:50:15]execute_cgi path=json_proto method=POST [10:50:15]POST find Content-Length [10:50:15]Host: 172.17.43.195:8080 [10:50:15]Content-Length: 659 [10:50:15]Content-Type: application/json [10:50:15] [10:50:15]POST finish read [10:50:15]Found Content-Length = 659 [10:50:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:15]execute_script... [10:50: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)952591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:15]POST & json_proto [10:50:15]process_json_proto [10:50:15]json parsed OK: [10:50:15]protocol is kg_v1.0 [10:50:15]action value=close_receipt [10:50:15]process_action close_receipt [10:50:15]cmd_close_receipt [10:50:15]MH_GetDate [10:50:15]Write to MH i2c: F0 00 00 03 03 F5 [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: F0 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: F0 09 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: F0 09 00 03 03 00 E8 60 23 67 74 2C AD 66 83 [10:50:15]GetLastDocTimeStamp 1730370623 [10:50:15]current date 1730371816 [10:50:15]FM_GetShiftState [10:50:15]SAM_PROTO_GetShiftState [10:50:15]wFMCommunicate request_size=4 [10:50:15]MH_SAM_APDU [10:50:15]CAPDU: 80 13 01 00 [10:50:15]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:15]Read from MH i2c: E2 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 0E 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2D [10:50:15]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:50:15]wFMCommunicate OK [10:50:15]SAM_PROTO_GetShiftState done [10:50:15]FM_GetShiftState done [10:50:15]opened in 1730333258 [10:50:15]opened+sec_in_day 1730419658 [10:50:15]quantity*price = 70041 [10:50:15]sum+1 = 70043 [10:50:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 65 31.10.2024 10:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72990 ФПД: 178755190097618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105016&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72990&fm=178755190097618&tin=02508201610067®Number=0000000000091644&sum=70000 [10:50:16]StoreToDocumentArchive [10:50:16]shift 557 fd 72990 [10:50:16]save to /storage/0557/doc_00072990 [10:50:16]save last doc name /storage/0557/doc_00072990 to /storage/kkm_last_doc_name [10:50:16]save OK [10:50:16]Clear old archive folders... [10:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:50:16]tlvbuf is 01A6DE80 [10:50:16]SAM_PROTO_ClearQueue [10:50:16]wFMCommunicate request_size=4 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 09 00 00 [10:50:16]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [10:50:16]RAPDU: 90 00 [10:50:16]wFMCommunicate OK [10:50:16]SAM_PROTO_ClearQueue done [10:50:16]KKMCreateOFDPacket [10:50:16]OFDProtocolAddRootSTLVToBuf [10:50:16]FM_MakeSignedData [10:50:16]FM_MakeSignedData [10:50:16]SAM_PROTO_SignData [10:50:16]wFMCommunicate request_size=4 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 0D 01 02 [10:50:16]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [10:50:16]RAPDU: 90 00 [10:50:16]wFMCommunicate OK [10:50:16]wFMCommunicate request_size=253 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E8 60 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1E 1D 01 00 35 04 06 00 A2 93 AF 9B 86 D2 [10:50:16]Write to MH i2c: E2 00 01 13 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E8 60 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1E 1D 01 00 35 04 06 00 A2 93 AF 9B 86 D2 00 00 99 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [10:50:16]RAPDU: 90 00 [10:50:16]wFMCommunicate OK [10:50:16]wFMCommunicate request_size=4 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 0D 03 02 [10:50:16]Write to MH i2c: E2 08 00 14 03 80 0D 03 02 00 00 00 00 92 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 0B 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 0B 00 14 03 00 4B F9 77 38 12 56 4C C2 90 00 FC [10:50:16]RAPDU: 4B F9 77 38 12 56 4C C2 90 00 [10:50:16]wFMCommunicate OK [10:50:16]SAM_PROTO_SignData done [10:50:16]FM_MakeSignedData done [10:50:16]CreateOFDProtocolMessage [10:50:16]wFMCommunicate request_size=4 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 11 00 00 [10:50:16]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 17 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E6 [10:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:50:16]wFMCommunicate OK [10:50:16]CreateOFDProtocolMessage done [10:50:16]OFDSenderStorePacket 72990 [10:50:16]StoreOFDPacket docnum=72990 [10:50:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 90 FD 00 01 B8 E1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E8 60 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1E 1D 01 00 35 04 06 00 A2 93 AF 9B 86 D2 4B F9 77 38 12 56 4C C2 [10:50:16]CheckFolder [10:50:16]dirname=/storage/ofd_packets [10:50:16]CheckFolder done [10:50:16]ProducePacketName [10:50:16]name=ofd_packets/00072990 [10:50:16]NVStorageSaveData ofd_packets/00072990 [10:50:16]File name is /storage/ofd_packets/00072990 [10:50:16]Write 294 bytes [10:50:16]NVStorageSaveData done [10:50:16]OFDSenderStorePacket done [10:50:16]KKMCreateOFDPacket done [10:50:16]NVStorageSaveData kkm_last_timestamp [10:50:16]File name is /storage/kkm_last_timestamp [10:50:16]Write 4 bytes [10:50:16]NVStorageSaveData done [10:50:16]ExternCall_PrintAddStr [10:50:16]wPrintStart [10:50:16]Write to MH i2c: 01 00 00 16 03 19 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: 01 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: 01 07 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [10:50:16]RasterBufferAndPrint [10:50:16]line Счет N : (1)952591 [10:50:16]line ИНН: 02508201610067 [10:50:16]line Контрольно-Кассовый Чек [10:50:16]line ПРОДАЖА [10:50:16]line ТРК (МРК, ГНК) : 61 [10:50:16]line Товар: 50.50.0 [10:50:16]line Super 92 [10:50:16]line 10.240 * 68.40 [10:50:16]line = 700.42 [10:50:16]line НДС 12% НСП 1% [10:50:16]line > о реализуемом товаре [10:50:16]line ОКРУГЛЕНИЕ: -0.42 [10:50:16]line ИТОГО: 700.00 [10:50:16]line Внесено: 700.00 [10:50:16]line СДАЧА: 0.00 [10:50:16]line НСП 1% : 6.20 [10:50:16]line НДС 12% : 74.38 [10:50:16]line Наличными: 700.00 [10:50:16]line Безнал.: 0.00 [10:50:16]line Место: АЗС № 113 "Партнер Нефть" [10:50:16]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:50:16]line СНО: Общий режим [10:50:16]line Чек 65 31.10.2024 10:50 [10:50:16]line Смена: 557 ФФД: 1.0 [10:50:16]line ЗНМ: 0300000087 [10:50:16]line РНМ: 0000000000091644 [10:50:16]line Версия ККМ: 001 [10:50:16]line ФМ: 0000000000874662 [10:50:16]line ФД: 72990 [10:50:16]line ФПД: 178755190097618 [10:50:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105016&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72990&fm=178755190097618&tin=02508201610067®Number=0000000000091644&sum=70000 [10:50:17]OFD Sender: Processing packet 72990 [packets to send 279, broken 278] [10:50:17]ProducePacketName [10:50:17]name=ofd_packets/00072990 [10:50:17]OFD Sender: To server: pG, [10:50:17]CommunicateWithHost lk.salyk.kg:30040 [10:50:17]ConnectInit lk.salyk.kg [10:50:17]written 0, free lines is 4095 [10:50:17]Write to MH i2c: 01 00 00 41 03 44 [10:50:17]Write i2c OK [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: 01 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: 01 07 00 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 DE 0C 35 [10:50:17]RasterBufferAndPrint [10:50:17]line [10:50:17]line [10:50:17]line [10:50:17]line [10:50:17]line [10:50:17]written 0, free lines is 3300 [10:50:17]MH_Cut [10:50:17]Write to MH i2c: D1 01 00 48 03 01 1D [10:50:17]Write i2c OK [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: D1 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: D1 01 00 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: D1 01 00 48 03 00 1C [10:50:17]Write to MH i2c: 01 00 00 49 03 4C [10:50:17]Write i2c OK [10:50:17]MH_I2C_Read... [10:50:18]*** Cut start [10:50:18]*** Partial cut [10:50:18]*** CUTSNS_PIN = 1 [10:50:18]*** CUTSNS_PIN = 0 [10:50:18]*** Brake cut motor [10:50:19]Connected sock=11 [10:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 90 FD 00 01 B8 E1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E8 60 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1E 1D 01 00 35 04 06 00 A2 93 AF 9B 86 D2 4B F9 77 38 12 56 4C C2 [10:50:19]Read from MH i2c: 01 [10:50:19]MH_I2C_Read... [10:50:19]*** Stop cut motor [10:50:19]*** Cut end [10:50:19]Read from MH i2c: 01 07 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [10:50:19]process_action close_receipt done [10:50:19]requested_data is exist [10:50:19]produce_requested_data [10:50:19]requested_item fm.sn is exist - process it [10:50:19]wFMCommunicate request_size=4 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 11 00 00 [10:50:19]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 17 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1B [10:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:50:19]wFMCommunicate OK [10:50:19]requested_item fd.num is exist - process it [10:50:19]SAM_PROTO_GetFieldsCounters [10:50:19]wFMCommunicate request_size=4 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 13 00 00 [10:50:19]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 62 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [10:50:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:19]wFMCommunicate OK [10:50:19]SAM_PROTO_GetFieldsCounters done [10:50:19]requested_item shift.num is exist - process it [10:50:19]requested_item shift.opened is exist - process it [10:50:19]req_shift_opened [10:50:19]FM_GetShiftState [10:50:19]SAM_PROTO_GetShiftState [10:50:19]wFMCommunicate request_size=4 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 13 01 00 [10:50:19]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 0E 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 75 [10:50:19]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:50:19]wFMCommunicate OK [10:50:19]SAM_PROTO_GetShiftState done [10:50:19]FM_GetShiftState done [10:50:19]req_shift_opened done [10:50:19]requested_item shift.open_date is exist - process it [10:50:19]req_shift_open_date [10:50:19]req_shift_open_date done [10:50:19]produce_requested_data done [10:50:19]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72990,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:50:19]process_action_free close_receipt [10:50:19]json_value_free [10:50:19]json_value_free done [10:50:19]process_json_proto returns [10:50:19]Send response to host [10:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72990,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:50:19]free response buf [10:50:19]execute_script done [10:50:19]execute_script returns [10:50:19]free content buf [10:50:19]Sock 10.Close socket [10:50:19]Sock 10.Thread stoped [10:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 92 1F 47 00 71 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1E 1D 01 00 F4 03 04 00 9F 0B 23 67 B6 04 01 00 00 82 84 00 0F FC 44 18 59 [10:50:19]CommunicateWithHost err = 0 [10:50:19]CheckOFDResponse [10:50:19]1017 (14) - 77093643461234 [10:50:19]1041 (16) - 0000000000874662 [10:50:19]1040 (4) - 72990 [10:50:19]1012 (4) - 31.10.2024 04:46 [10:50:19]1206 (1) - 0 [10:50:19]OFD Sender: Remove packet 72990 [10:50:19]ProducePacketName [10:50:19]name=ofd_packets/00072990 [10:50:19]NVStorageDeleteData [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:06]recv_with_timeout no data received [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]accept exits with 7 [10:52:05]New connection [10:52:05]New thread 3067178340 created [10:52:05]Thread 3067321700 joined [10:52:05]Waiting for new connection... [10:52:05] Sock 7.Parse request [10:52:05]Sock 7.Check first char [10:52:05]Sock 7.First char is OK [10:52:05]request: POST /json_proto HTTP/1.0 [10:52:05]Method: POST [10:52:05]URL: /json_proto [10:52:05]Method is POST - this is cgi request [10:52:05]url: /json_proto [10:52:05]query_string will be loaded in cgi processing [10:52:05]execute_cgi json_proto POST (null) [10:52:05]execute_cgi path=json_proto method=POST [10:52:05]POST find Content-Length [10:52:05]Host: 172.17.43.195:8080 [10:52:05]Content-Length: 792 [10:52:05]Content-Type: application/json [10:52:05] [10:52:05]POST finish read [10:52:05]Found Content-Length = 792 [10:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:05]execute_script... [10:52:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:05]POST & json_proto [10:52:05]process_json_proto [10:52:05]json parsed OK: [10:52:05]protocol is kg_v1.0 [10:52:05]action value=close_receipt [10:52:05]process_action close_receipt [10:52:05]cmd_close_receipt [10:52:05]MH_GetDate [10:52:05]Write to MH i2c: F0 00 00 4D 03 3F [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: F0 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: F0 09 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: F0 09 00 4D 03 00 56 61 23 67 74 2C AD 66 3C [10:52:05]GetLastDocTimeStamp 1730371816 [10:52:05]current date 1730371926 [10:52:05]FM_GetShiftState [10:52:05]SAM_PROTO_GetShiftState [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 13 01 00 [10:52:05]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]OFD Sender: No OFD packet to send [10:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 0E 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 77 [10:52:05]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:52:05]wFMCommunicate OK [10:52:05]SAM_PROTO_GetShiftState done [10:52:05]FM_GetShiftState done [10:52:05]opened in 1730333258 [10:52:05]opened+sec_in_day 1730419658 [10:52:05]quantity*price = 0 [10:52:05]sum+1 = 1 [10:52:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 66 31.10.2024 10:52 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72991 ФПД: 174049452188159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105206&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72991&fm=174049452188159&tin=02508201610067®Number=0000000000091644&sum=0 [10:52:06]StoreToDocumentArchive [10:52:06]shift 557 fd 72991 [10:52:06]save to /storage/0557/doc_00072991 [10:52:06]save last doc name /storage/0557/doc_00072991 to /storage/kkm_last_doc_name [10:52:06]save OK [10:52:06]Clear old archive folders... [10:52:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:06]tlvbuf is 01A6DD40 [10:52:06]SAM_PROTO_ClearQueue [10:52:06]wFMCommunicate request_size=4 [10:52:06]MH_SAM_APDU [10:52:06]CAPDU: 80 09 00 00 [10:52:06]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 03 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [10:52:06]RAPDU: 90 00 [10:52:06]wFMCommunicate OK [10:52:06]SAM_PROTO_ClearQueue done [10:52:06]KKMCreateOFDPacket [10:52:06]OFDProtocolAddRootSTLVToBuf [10:52:06]FM_MakeSignedData [10:52:06]FM_MakeSignedData [10:52:06]SAM_PROTO_SignData [10:52:06]wFMCommunicate request_size=4 [10:52:06]MH_SAM_APDU [10:52:06]CAPDU: 80 0D 01 02 [10:52:06]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 03 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [10:52:06]RAPDU: 90 00 [10:52:06]wFMCommunicate OK [10:52:06]wFMCommunicate request_size=255 [10:52:06]MH_SAM_APDU [10:52:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 61 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1D 01 00 35 04 06 00 9E [10:52:06]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 61 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1D 01 00 35 04 06 00 9E 00 00 0F [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 03 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [10:52:06]RAPDU: 90 00 [10:52:06]wFMCommunicate OK [10:52:06]wFMCommunicate request_size=10 [10:52:06]MH_SAM_APDU [10:52:06]CAPDU: 80 0D 02 02 05 4C 0B C5 61 FF [10:52:06]Write to MH i2c: E2 0D 00 5E 03 80 0D 02 02 05 00 4C 0B C5 61 FF 00 00 61 [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 03 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [10:52:06]RAPDU: 90 00 [10:52:06]wFMCommunicate OK [10:52:06]wFMCommunicate request_size=4 [10:52:06]MH_SAM_APDU [10:52:06]CAPDU: 80 0D 03 02 [10:52:06]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 0B 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 0B 00 5F 03 00 B6 E0 24 0C 92 43 1C 82 90 00 17 [10:52:06]RAPDU: B6 E0 24 0C 92 43 1C 82 90 00 [10:52:06]wFMCommunicate OK [10:52:06]SAM_PROTO_SignData done [10:52:06]FM_MakeSignedData done [10:52:06]CreateOFDProtocolMessage [10:52:06]wFMCommunicate request_size=4 [10:52:06]MH_SAM_APDU [10:52:06]CAPDU: 80 11 00 00 [10:52:06]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 17 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [10:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:52:06]wFMCommunicate OK [10:52:06]CreateOFDProtocolMessage done [10:52:06]OFDSenderStorePacket 72991 [10:52:06]StoreOFDPacket docnum=72991 [10:52:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8D 93 07 01 63 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 61 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1D 01 00 35 04 06 00 9E 4C 0B C5 61 FF B6 E0 24 0C 92 43 1C 82 [10:52:06]CheckFolder [10:52:06]dirname=/storage/ofd_packets [10:52:06]CheckFolder done [10:52:06]ProducePacketName [10:52:06]name=ofd_packets/00072991 [10:52:06]NVStorageSaveData ofd_packets/00072991 [10:52:06]File name is /storage/ofd_packets/00072991 [10:52:06]Write 301 bytes [10:52:06]NVStorageSaveData done [10:52:06]OFDSenderStorePacket done [10:52:06]KKMCreateOFDPacket done [10:52:06]NVStorageSaveData kkm_last_timestamp [10:52:06]File name is /storage/kkm_last_timestamp [10:52:06]Write 4 bytes [10:52:06]NVStorageSaveData done [10:52:06]ExternCall_PrintAddStr [10:52:06]wPrintStart [10:52:06]Write to MH i2c: 01 00 00 61 03 64 [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: 01 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: 01 07 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [10:52:06]RasterBufferAndPrint [10:52:06]line Счет N : (1)952592 [10:52:06]line ИНН: 02508201610067 [10:52:06]line Контрольно-Кассовый Чек [10:52:06]line ПРОДАЖА [10:52:06]line ТРК (МРК, ГНК) : 53 [10:52:06]line Товар: 2710124130 [10:52:06]line Аи-92-К-5 [10:52:06]line 14.950 * 0.00 [10:52:06]line = 0.00 [10:52:06]line НДС 12% НСП 1% [10:52:06]line > о реализуемом товаре [10:52:06]line ИТОГО: 0.00 [10:52:06]line НСП 1% : 0.00 [10:52:06]line НДС 12% : 0.00 [10:52:06]line Наличными: 0.00 [10:52:06]line Безнал.: 0.00 [10:52:06]line Место: АЗС № 113 "Партнер Нефть" [10:52:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:52:06]line СНО: Общий режим [10:52:06]line Чек 66 31.10.2024 10:52 [10:52:06]line Смена: 557 ФФД: 1.0 [10:52:06]line ЗНМ: 0300000087 [10:52:06]line РНМ: 0000000000091644 [10:52:06]line Версия ККМ: 001 [10:52:06]line Талоны: Топливная Карта [10:52:06]line 03047 [10:52:06]line ФМ: 0000000000874662 [10:52:06]line ФД: 72991 [10:52:06]line ФПД: 174049452188159 [10:52:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105206&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72991&fm=174049452188159&tin=02508201610067®Number=0000000000091644&sum=0 [10:52:06]written 0, free lines is 4095 [10:52:06]OFD Sender: Processing packet 72991 [packets to send 279, broken 278] [10:52:06]ProducePacketName [10:52:06]name=ofd_packets/00072991 [10:52:06]OFD Sender: To server: pG, [10:52:06]CommunicateWithHost lk.salyk.kg:30040 [10:52:06]ConnectInit lk.salyk.kg [10:52:07]Write to MH i2c: 01 00 00 8B 03 8E [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: 01 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: 01 07 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 E3 0C 84 [10:52:07]RasterBufferAndPrint [10:52:07]line [10:52:07]line [10:52:07]line [10:52:07]line [10:52:07]line [10:52:07]written 0, free lines is 3305 [10:52:07]MH_Cut [10:52:07]Write to MH i2c: D1 01 00 92 03 01 67 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: D1 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: D1 01 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: D1 01 00 92 03 00 66 [10:52:07]Write to MH i2c: 01 00 00 93 03 96 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:08]*** Cut start [10:52:08]*** Partial cut [10:52:08]*** CUTSNS_PIN = 1 [10:52:08]*** CUTSNS_PIN = 0 [10:52:08]*** Brake cut motor [10:52:08]Read from MH i2c: 01 [10:52:08]MH_I2C_Read... [10:52:08]*** Stop cut motor [10:52:08]*** Cut end [10:52:08]Read from MH i2c: 01 07 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [10:52:08]process_action close_receipt done [10:52:08]requested_data is exist [10:52:08]produce_requested_data [10:52:08]requested_item fm.sn is exist - process it [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 11 00 00 [10:52:08]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 17 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 65 [10:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:52:08]wFMCommunicate OK [10:52:08]requested_item fd.num is exist - process it [10:52:08]SAM_PROTO_GetFieldsCounters [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 13 00 00 [10:52:08]Write to MH i2c: E2 08 00 95 03 80 13 00 00 00 00 00 00 14 [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 62 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 62 00 95 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:08]wFMCommunicate OK [10:52:08]SAM_PROTO_GetFieldsCounters done [10:52:08]requested_item shift.num is exist - process it [10:52:08]requested_item shift.opened is exist - process it [10:52:08]req_shift_opened [10:52:08]FM_GetShiftState [10:52:08]SAM_PROTO_GetShiftState [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 13 01 00 [10:52:08]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 0E 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 BF [10:52:08]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:52:08]wFMCommunicate OK [10:52:08]SAM_PROTO_GetShiftState done [10:52:08]FM_GetShiftState done [10:52:08]req_shift_opened done [10:52:08]requested_item shift.open_date is exist - process it [10:52:08]req_shift_open_date [10:52:08]req_shift_open_date done [10:52:08]produce_requested_data done [10:52:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72991,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:52:08]process_action_free close_receipt [10:52:08]json_value_free [10:52:08]json_value_free done [10:52:08]process_json_proto returns [10:52:08]Send response to host [10:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72991,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:52:08]free response buf [10:52:08]execute_script done [10:52:08]execute_script returns [10:52:08]free content buf [10:52:08]Sock 7.Close socket [10:52:08]Sock 7.Thread stoped [10:52:11]Connected sock=11 [10:52:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8D 93 07 01 63 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 61 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1D 01 00 35 04 06 00 9E 4C 0B C5 61 FF B6 E0 24 0C 92 43 1C 82 [10:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 35 09 47 00 16 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1D 01 00 F4 03 04 00 10 0C 23 67 B6 04 01 00 00 88 A8 68 56 8F 4D 41 48 [10:52:13]CommunicateWithHost err = 0 [10:52:13]CheckOFDResponse [10:52:13]1017 (14) - 77093643461234 [10:52:13]1041 (16) - 0000000000874662 [10:52:13]1040 (4) - 72991 [10:52:13]1012 (4) - 31.10.2024 04:48 [10:52:13]1206 (1) - 0 [10:52:13]OFD Sender: Remove packet 72991 [10:52:13]ProducePacketName [10:52:13]name=ofd_packets/00072991 [10:52:13]NVStorageDeleteData [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:29]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:19]recv_with_timeout no data received [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:36]recv_with_timeout no data received [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:36]recv_with_timeout no data received [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:46]accept exits with 9 [10:54:46]New connection [10:54:46]New thread 3067321700 created [10:54:46]Thread 3067178340 joined [10:54:46]Waiting for new connection... [10:54:46] Sock 9.Parse request [10:54:46]Sock 9.Check first char [10:54:46]Sock 9.First char is OK [10:54:46]request: POST /json_proto HTTP/1.0 [10:54:46]Method: POST [10:54:46]URL: /json_proto [10:54:46]Method is POST - this is cgi request [10:54:46]url: /json_proto [10:54:46]query_string will be loaded in cgi processing [10:54:46]execute_cgi json_proto POST (null) [10:54:46]execute_cgi path=json_proto method=POST [10:54:46]POST find Content-Length [10:54:46]Host: 172.17.43.195:8080 [10:54:46]Content-Length: 682 [10:54:46]Content-Type: application/json [10:54:46] [10:54:46]POST finish read [10:54:46]Found Content-Length = 682 [10:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:46]execute_script... [10:54:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:46]POST & json_proto [10:54:46]process_json_proto [10:54:46]json parsed OK: [10:54:46]protocol is kg_v1.0 [10:54:46]action value=close_receipt [10:54:46]process_action close_receipt [10:54:46]cmd_close_receipt [10:54:46]MH_GetDate [10:54:46]Write to MH i2c: F0 00 00 97 03 89 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: F0 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: F0 09 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: F0 09 00 97 03 00 F7 61 23 67 74 2C AD 66 27 [10:54:46]GetLastDocTimeStamp 1730371926 [10:54:46]current date 1730372087 [10:54:46]FM_GetShiftState [10:54:46]SAM_PROTO_GetShiftState [10:54:46]wFMCommunicate request_size=4 [10:54:46]MH_SAM_APDU [10:54:46]CAPDU: 80 13 01 00 [10:54:46]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:46]Read from MH i2c: E2 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 0E 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C1 [10:54:46]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:54:46]wFMCommunicate OK [10:54:46]SAM_PROTO_GetShiftState done [10:54:46]FM_GetShiftState done [10:54:46]opened in 1730333258 [10:54:46]opened+sec_in_day 1730419658 [10:54:46]quantity*price = 100021 [10:54:46]sum+1 = 100023 [10:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 67 31.10.2024 10:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72992 ФПД: 77278842049241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105447&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72992&fm=77278842049241&tin=02508201610067®Number=0000000000091644&sum=100000 [10:54:48]StoreToDocumentArchive [10:54:48]shift 557 fd 72992 [10:54:48]save to /storage/0557/doc_00072992 [10:54:48]save last doc name /storage/0557/doc_00072992 to /storage/kkm_last_doc_name [10:54:48]save OK [10:54:48]Clear old archive folders... [10:54:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:48]tlvbuf is 01A724D0 [10:54:48]SAM_PROTO_ClearQueue [10:54:48]wFMCommunicate request_size=4 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 09 00 00 [10:54:48]Write to MH i2c: E2 08 00 A5 03 80 09 00 00 00 00 00 00 1A [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]SAM_PROTO_ClearQueue done [10:54:48]KKMCreateOFDPacket [10:54:48]OFDProtocolAddRootSTLVToBuf [10:54:48]FM_MakeSignedData [10:54:48]FM_MakeSignedData [10:54:48]SAM_PROTO_SignData [10:54:48]wFMCommunicate request_size=4 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 0D 01 02 [10:54:48]Write to MH i2c: E2 08 00 A6 03 80 0D 01 02 00 00 00 00 22 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]wFMCommunicate request_size=255 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F7 61 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1D 01 00 35 04 06 00 46 [10:54:48]Write to MH i2c: E2 02 01 A7 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F7 61 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1D 01 00 35 04 06 00 46 00 00 A4 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]wFMCommunicate request_size=10 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 0D 02 02 05 48 E1 ED D2 D9 [10:54:48]Write to MH i2c: E2 0D 00 A8 03 80 0D 02 02 05 00 48 E1 ED D2 D9 00 00 F0 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]wFMCommunicate request_size=4 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 0D 03 02 [10:54:48]Write to MH i2c: E2 08 00 A9 03 80 0D 03 02 00 00 00 00 27 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 0B 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 0B 00 A9 03 00 72 BB D4 C6 FF 76 DB EC 90 00 2B [10:54:48]RAPDU: 72 BB D4 C6 FF 76 DB EC 90 00 [10:54:48]wFMCommunicate OK [10:54:48]SAM_PROTO_SignData done [10:54:48]FM_MakeSignedData done [10:54:48]CreateOFDProtocolMessage [10:54:48]wFMCommunicate request_size=4 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 11 00 00 [10:54:48]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 17 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7B [10:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:54:48]wFMCommunicate OK [10:54:48]CreateOFDProtocolMessage done [10:54:48]OFDSenderStorePacket 72992 [10:54:48]StoreOFDPacket docnum=72992 [10:54:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C1 67 07 01 A5 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F7 61 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1D 01 00 35 04 06 00 46 48 E1 ED D2 D9 72 BB D4 C6 FF 76 DB EC [10:54:48]CheckFolder [10:54:48]dirname=/storage/ofd_packets [10:54:48]CheckFolder done [10:54:48]ProducePacketName [10:54:48]name=ofd_packets/00072992 [10:54:48]NVStorageSaveData ofd_packets/00072992 [10:54:48]File name is /storage/ofd_packets/00072992 [10:54:48]Write 301 bytes [10:54:48]NVStorageSaveData done [10:54:48]OFDSenderStorePacket done [10:54:48]KKMCreateOFDPacket done [10:54:48]NVStorageSaveData kkm_last_timestamp [10:54:48]File name is /storage/kkm_last_timestamp [10:54:48]Write 4 bytes [10:54:48]NVStorageSaveData done [10:54:48]ExternCall_PrintAddStr [10:54:48]wPrintStart [10:54:48]Write to MH i2c: 01 00 00 AB 03 AE [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: 01 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: 01 07 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [10:54:48]RasterBufferAndPrint [10:54:48]line Счет N : (1)952593 [10:54:48]line ИНН: 02508201610067 [10:54:48]line Контрольно-Кассовый Чек [10:54:48]line ПРОДАЖА [10:54:48]line ТРК (МРК, ГНК) : 41 [10:54:48]line Товар: 2710124500 [10:54:48]line Аи-95-К-3 [10:54:48]line 13.480 * 74.20 [10:54:48]line = 1000.22 [10:54:48]line НДС 12% НСП 1% [10:54:48]line > о реализуемом товаре [10:54:48]line ОКРУГЛЕНИЕ: -0.22 [10:54:48]line ИТОГО: 1000.00 [10:54:48]line Внесено: 1000.00 [10:54:48]line СДАЧА: 0.00 [10:54:48]line НСП 1% : 8.85 [10:54:48]line НДС 12% : 106.22 [10:54:48]line Наличными: 1000.00 [10:54:48]line Безнал.: 0.00 [10:54:48]line Место: АЗС № 113 "Партнер Нефть" [10:54:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:54:48]line СНО: Общий режим [10:54:48]line Чек 67 31.10.2024 10:54 [10:54:48]line Смена: 557 ФФД: 1.0 [10:54:48]line ЗНМ: 0300000087 [10:54:48]line РНМ: 0000000000091644 [10:54:48]line Версия ККМ: 001 [10:54:48]line ФМ: 0000000000874662 [10:54:48]line ФД: 72992 [10:54:48]line ФПД: 77278842049241 [10:54:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105447&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72992&fm=77278842049241&tin=02508201610067®Number=0000000000091644&sum=100000 [10:54:48]OFD Sender: Processing packet 72992 [packets to send 279, broken 278] [10:54:48]ProducePacketName [10:54:48]name=ofd_packets/00072992 [10:54:48]OFD Sender: To server: pG, [10:54:48]CommunicateWithHost lk.salyk.kg:30040 [10:54:48]ConnectInit lk.salyk.kg [10:54:48]written 0, free lines is 4095 [10:54:49]Write to MH i2c: 01 00 00 D6 03 D9 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 07 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 D5 0C C1 [10:54:49]RasterBufferAndPrint [10:54:49]line [10:54:49]line [10:54:49]line [10:54:49]line [10:54:49]line [10:54:49]written 0, free lines is 3292 [10:54:49]MH_Cut [10:54:49]Write to MH i2c: D1 01 00 DD 03 01 B2 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: D1 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: D1 01 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: D1 01 00 DD 03 00 B1 [10:54:49]Write to MH i2c: 01 00 00 DE 03 E1 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:50]*** Cut start [10:54:50]*** Partial cut [10:54:50]*** CUTSNS_PIN = 1 [10:54:50]*** CUTSNS_PIN = 0 [10:54:50]*** Brake cut motor [10:54:50]Read from MH i2c: 01 [10:54:50]MH_I2C_Read... [10:54:50]*** Stop cut motor [10:54:50]*** Cut end [10:54:50]Read from MH i2c: 01 07 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [10:54:50]process_action close_receipt done [10:54:50]requested_data is exist [10:54:50]produce_requested_data [10:54:50]requested_item fm.sn is exist - process it [10:54:50]wFMCommunicate request_size=4 [10:54:50]MH_SAM_APDU [10:54:50]CAPDU: 80 11 00 00 [10:54:50]Write to MH i2c: E2 08 00 DF 03 80 11 00 00 00 00 00 00 5C [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:50]Read from MH i2c: E2 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 17 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 17 00 DF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B0 [10:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:54:50]wFMCommunicate OK [10:54:50]requested_item fd.num is exist - process it [10:54:50]SAM_PROTO_GetFieldsCounters [10:54:50]wFMCommunicate request_size=4 [10:54:50]MH_SAM_APDU [10:54:50]CAPDU: 80 13 00 00 [10:54:50]Write to MH i2c: E2 08 00 E0 03 80 13 00 00 00 00 00 00 5F [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:50]Read from MH i2c: E2 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 62 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 62 00 E0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 20 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [10:54:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 20 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:50]wFMCommunicate OK [10:54:50]SAM_PROTO_GetFieldsCounters done [10:54:50]requested_item shift.num is exist - process it [10:54:50]requested_item shift.opened is exist - process it [10:54:50]req_shift_opened [10:54:50]FM_GetShiftState [10:54:50]SAM_PROTO_GetShiftState [10:54:50]wFMCommunicate request_size=4 [10:54:50]MH_SAM_APDU [10:54:50]CAPDU: 80 13 01 00 [10:54:50]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0E 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0A [10:54:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_GetShiftState done [10:54:51]FM_GetShiftState done [10:54:51]req_shift_opened done [10:54:51]requested_item shift.open_date is exist - process it [10:54:51]req_shift_open_date [10:54:51]req_shift_open_date done [10:54:51]produce_requested_data done [10:54:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72992,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:54:51]process_action_free close_receipt [10:54:51]json_value_free [10:54:51]json_value_free done [10:54:51]process_json_proto returns [10:54:51]Send response to host [10:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72992,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:54:51]free response buf [10:54:51]execute_script done [10:54:51]execute_script returns [10:54:51]free content buf [10:54:51]Sock 9.Close socket [10:54:51]Sock 9.Thread stoped [10:54:52]Connected sock=11 [10:54:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C1 67 07 01 A5 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F7 61 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1D 01 00 35 04 06 00 46 48 E1 ED D2 D9 72 BB D4 C6 FF 76 DB EC [10:54:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BB AA 47 00 D6 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1D 01 00 F4 03 04 00 B1 0C 23 67 B6 04 01 00 00 97 49 5D A4 8B 1D F2 E4 [10:54:53]CommunicateWithHost err = 0 [10:54:53]CheckOFDResponse [10:54:53]1017 (14) - 77093643461234 [10:54:53]1041 (16) - 0000000000874662 [10:54:53]1040 (4) - 72992 [10:54:53]1012 (4) - 31.10.2024 04:50 [10:54:53]1206 (1) - 0 [10:54:53]OFD Sender: Remove packet 72992 [10:54:53]ProducePacketName [10:54:53]name=ofd_packets/00072992 [10:54:53]NVStorageDeleteData [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:10]recv_with_timeout no data received [10:55:11]accept exits with 7 [10:55:11]New connection [10:55:11]New thread 3067178340 created [10:55:11]Thread 3067321700 joined [10:55:11]Waiting for new connection... [10:55:11] Sock 7.Parse request [10:55:11]Sock 7.Check first char [10:55:11]Sock 7.First char is OK [10:55:11]request: POST /json_proto HTTP/1.0 [10:55:11]Method: POST [10:55:11]URL: /json_proto [10:55:11]Method is POST - this is cgi request [10:55:11]url: /json_proto [10:55:11]query_string will be loaded in cgi processing [10:55:11]execute_cgi json_proto POST (null) [10:55:11]execute_cgi path=json_proto method=POST [10:55:11]POST find Content-Length [10:55:11]Host: 172.17.43.195:8080 [10:55:11]Content-Length: 819 [10:55:11]Content-Type: application/json [10:55:11] [10:55:11]POST finish read [10:55:11]Found Content-Length = 819 [10:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:11]execute_script... [10:55:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:11]POST & json_proto [10:55:11]process_json_proto [10:55:11]json parsed OK: [10:55:11]protocol is kg_v1.0 [10:55:11]action value=close_receipt [10:55:11]process_action close_receipt [10:55:11]cmd_close_receipt [10:55:11]MH_GetDate [10:55:11]Write to MH i2c: F0 00 00 E2 03 D4 [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: F0 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: F0 09 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: F0 09 00 E2 03 00 10 62 23 67 74 2C AD 66 8C [10:55:11]GetLastDocTimeStamp 1730372087 [10:55:11]current date 1730372112 [10:55:11]FM_GetShiftState [10:55:11]SAM_PROTO_GetShiftState [10:55:11]wFMCommunicate request_size=4 [10:55:11]MH_SAM_APDU [10:55:11]CAPDU: 80 13 01 00 [10:55:11]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:11]Read from MH i2c: E2 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 0E 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0C [10:55:11]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:55:11]wFMCommunicate OK [10:55:11]SAM_PROTO_GetShiftState done [10:55:11]FM_GetShiftState done [10:55:11]opened in 1730333258 [10:55:11]opened+sec_in_day 1730419658 [10:55:11]quantity*price = 100021 [10:55:11]sum+1 = 100023 [10:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 68 31.10.2024 10:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72993 ФПД: 27860124963691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105512&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72993&fm=27860124963691&tin=02508201610067®Number=0000000000091644&sum=100022 [10:55:12]StoreToDocumentArchive [10:55:12]shift 557 fd 72993 [10:55:12]save to /storage/0557/doc_00072993 [10:55:12]save last doc name /storage/0557/doc_00072993 to /storage/kkm_last_doc_name [10:55:12]save OK [10:55:12]Clear old archive folders... [10:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:12]tlvbuf is 01AC5320 [10:55:12]SAM_PROTO_ClearQueue [10:55:12]wFMCommunicate request_size=4 [10:55:12]MH_SAM_APDU [10:55:12]CAPDU: 80 09 00 00 [10:55:12]Write to MH i2c: E2 08 00 F0 03 80 09 00 00 00 00 00 00 65 [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:12]Read from MH i2c: E2 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [10:55:12]RAPDU: 90 00 [10:55:12]wFMCommunicate OK [10:55:12]SAM_PROTO_ClearQueue done [10:55:12]KKMCreateOFDPacket [10:55:12]OFDProtocolAddRootSTLVToBuf [10:55:12]FM_MakeSignedData [10:55:12]FM_MakeSignedData [10:55:12]SAM_PROTO_SignData [10:55:12]wFMCommunicate request_size=4 [10:55:12]MH_SAM_APDU [10:55:12]CAPDU: 80 0D 01 02 [10:55:12]Write to MH i2c: E2 08 00 F1 03 80 0D 01 02 00 00 00 00 6D [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:12]Read from MH i2c: E2 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [10:55:12]RAPDU: 90 00 [10:55:12]wFMCommunicate OK [10:55:12]wFMCommunicate request_size=255 [10:55:12]MH_SAM_APDU [10:55:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 10 62 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 21 1D 01 00 35 04 06 00 19 [10:55:12]Write to MH i2c: E2 02 01 F2 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 10 62 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 21 1D 01 00 35 04 06 00 19 00 00 0A [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:12]Read from MH i2c: E2 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [10:55:12]RAPDU: 90 00 [10:55:12]wFMCommunicate OK [10:55:12]wFMCommunicate request_size=10 [10:55:12]MH_SAM_APDU [10:55:12]CAPDU: 80 0D 02 02 05 56 B0 DA 13 6B [10:55:12]Write to MH i2c: E2 0D 00 F3 03 80 0D 02 02 05 00 56 B0 DA 13 6B 00 00 D8 [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [10:55:13]RAPDU: 90 00 [10:55:13]wFMCommunicate OK [10:55:13]wFMCommunicate request_size=4 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 0D 03 02 [10:55:13]Write to MH i2c: E2 08 00 F4 03 80 0D 03 02 00 00 00 00 72 [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 0B 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 0B 00 F4 03 00 2D 88 F8 F2 9D 81 1D 80 90 00 CD [10:55:13]RAPDU: 2D 88 F8 F2 9D 81 1D 80 90 00 [10:55:13]wFMCommunicate OK [10:55:13]SAM_PROTO_SignData done [10:55:13]FM_MakeSignedData done [10:55:13]CreateOFDProtocolMessage [10:55:13]wFMCommunicate request_size=4 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 11 00 00 [10:55:13]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 17 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C6 [10:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:55:13]wFMCommunicate OK [10:55:13]CreateOFDProtocolMessage done [10:55:13]OFDSenderStorePacket 72993 [10:55:13]StoreOFDPacket docnum=72993 [10:55:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C7 B3 07 01 94 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 10 62 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 21 1D 01 00 35 04 06 00 19 56 B0 DA 13 6B 2D 88 F8 F2 9D 81 1D 80 [10:55:13]CheckFolder [10:55:13]dirname=/storage/ofd_packets [10:55:13]CheckFolder done [10:55:13]ProducePacketName [10:55:13]name=ofd_packets/00072993 [10:55:13]NVStorageSaveData ofd_packets/00072993 [10:55:13]File name is /storage/ofd_packets/00072993 [10:55:13]Write 301 bytes [10:55:13]NVStorageSaveData done [10:55:13]OFDSenderStorePacket done [10:55:13]KKMCreateOFDPacket done [10:55:13]NVStorageSaveData kkm_last_timestamp [10:55:13]File name is /storage/kkm_last_timestamp [10:55:13]Write 4 bytes [10:55:13]NVStorageSaveData done [10:55:13]ExternCall_PrintAddStr [10:55:13]wPrintStart [10:55:13]Write to MH i2c: 01 00 00 F6 03 F9 [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 07 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 FF 0F 0E [10:55:13]RasterBufferAndPrint [10:55:13]line Счет N : (1)952594 [10:55:13]line ИНН: 02508201610067 [10:55:13]line Контрольно-Кассовый Чек [10:55:13]line ПРОДАЖА [10:55:13]line ТРК (МРК, ГНК) : 62 [10:55:13]line Товар: 2710124500 [10:55:13]line Аи-95-К-3 [10:55:13]line 13.480 * 74.20 [10:55:13]line = 1000.22 [10:55:13]line НДС 12% НСП 1% [10:55:13]line > о реализуемом товаре [10:55:13]line ИТОГО: 1000.22 [10:55:13]line НСП 1% : 8.85 [10:55:13]line НДС 12% : 106.22 [10:55:13]line Наличными: 0.00 [10:55:13]line Безнал.: 1000.22 [10:55:13]line Место: АЗС № 113 "Партнер Нефть" [10:55:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:55:13]line СНО: Общий режим [10:55:13]line Чек 68 31.10.2024 10:55 [10:55:13]line Смена: 557 ФФД: 1.0 [10:55:13]line ЗНМ: 0300000087 [10:55:13]line РНМ: 0000000000091644 [10:55:13]line Версия ККМ: 001 [10:55:13]line Платежная система: Бакай банк [10:55:13]line ФМ: 0000000000874662 [10:55:13]line ФД: 72993 [10:55:13]line ФПД: 27860124963691 [10:55:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105512&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72993&fm=27860124963691&tin=02508201610067®Number=0000000000091644&sum=100022 [10:55:13]written 0, free lines is 4095 [10:55:13]OFD Sender: Processing packet 72993 [packets to send 279, broken 278] [10:55:13]ProducePacketName [10:55:13]name=ofd_packets/00072993 [10:55:13]OFD Sender: To server: pG, [10:55:13]CommunicateWithHost lk.salyk.kg:30040 [10:55:13]ConnectInit lk.salyk.kg [10:55:13]Write to MH i2c: 01 00 00 20 04 24 [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 07 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 07 00 20 04 00 00 00 00 00 E7 0C 1E [10:55:13]RasterBufferAndPrint [10:55:13]line [10:55:13]line [10:55:13]line [10:55:13]line [10:55:13]line [10:55:13]written 0, free lines is 3310 [10:55:13]MH_Cut [10:55:13]Write to MH i2c: D1 01 00 27 04 01 FD [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: D1 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: D1 01 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: D1 01 00 27 04 00 FC [10:55:13]Write to MH i2c: 01 00 00 28 04 2C [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:14]*** Cut start [10:55:14]*** Partial cut [10:55:14]*** CUTSNS_PIN = 1 [10:55:14]*** CUTSNS_PIN = 0 [10:55:14]*** Brake cut motor [10:55:14]Read from MH i2c: 01 [10:55:14]MH_I2C_Read... [10:55:14]*** Stop cut motor [10:55:14]*** Cut end [10:55:14]Connected sock=10 [10:55:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C7 B3 07 01 94 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 10 62 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 21 1D 01 00 35 04 06 00 19 56 B0 DA 13 6B 2D 88 F8 F2 9D 81 1D 80 [10:55:15]Read from MH i2c: 01 07 00 [10:55:15]MH_I2C_Read... [10:55:15]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 FF 0F 41 [10:55:15]process_action close_receipt done [10:55:15]requested_data is exist [10:55:15]produce_requested_data [10:55:15]requested_item fm.sn is exist - process it [10:55:15]wFMCommunicate request_size=4 [10:55:15]MH_SAM_APDU [10:55:15]CAPDU: 80 11 00 00 [10:55:15]Write to MH i2c: E2 08 00 29 04 80 11 00 00 00 00 00 00 A7 [10:55:15]Write i2c OK [10:55:15]MH_I2C_Read... [10:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:15]Read from MH i2c: E2 [10:55:15]MH_I2C_Read... [10:55:15]Read from MH i2c: E2 17 00 [10:55:15]MH_I2C_Read... [10:55:15]Read from MH i2c: E2 17 00 29 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FB [10:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:55:15]wFMCommunicate OK [10:55:15]requested_item fd.num is exist - process it [10:55:15]SAM_PROTO_GetFieldsCounters [10:55:15]wFMCommunicate request_size=4 [10:55:15]MH_SAM_APDU [10:55:15]CAPDU: 80 13 00 00 [10:55:15]Write to MH i2c: E2 08 00 2A 04 80 13 00 00 00 00 00 00 AA [10:55:15]Write i2c OK [10:55:15]MH_I2C_Read... [10:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:15]Read from MH i2c: E2 [10:55:15]MH_I2C_Read... [10:55:15]Read from MH i2c: E2 62 00 [10:55:15]MH_I2C_Read... [10:55:15]Read from MH i2c: E2 62 00 2A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 21 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 21 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:15]wFMCommunicate OK [10:55:15]SAM_PROTO_GetFieldsCounters done [10:55:15]requested_item shift.num is exist - process it [10:55:15]requested_item shift.opened is exist - process it [10:55:15]req_shift_opened [10:55:15]FM_GetShiftState [10:55:15]SAM_PROTO_GetShiftState [10:55:15]wFMCommunicate request_size=4 [10:55:15]MH_SAM_APDU [10:55:15]CAPDU: 80 13 01 00 [10:55:15]Write to MH i2c: E2 08 00 2B 04 80 13 01 00 00 00 00 00 AC [10:55:15]Write i2c OK [10:55:15]MH_I2C_Read... [10:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:15]Read from MH i2c: E2 [10:55:15]MH_I2C_Read... [10:55:15]Read from MH i2c: E2 0E 00 [10:55:15]MH_I2C_Read... [10:55:15]Read from MH i2c: E2 0E 00 2B 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 55 [10:55:15]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [10:55:15]wFMCommunicate OK [10:55:15]SAM_PROTO_GetShiftState done [10:55:15]FM_GetShiftState done [10:55:15]req_shift_opened done [10:55:15]requested_item shift.open_date is exist - process it [10:55:15]req_shift_open_date [10:55:15]req_shift_open_date done [10:55:15]produce_requested_data done [10:55:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72993,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [10:55:15]process_action_free close_receipt [10:55:15]json_value_free [10:55:15]json_value_free done [10:55:15]process_json_proto returns [10:55:15]Send response to host [10:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72993,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [10:55:15]free response buf [10:55:15]execute_script done [10:55:15]execute_script returns [10:55:15]free content buf [10:55:15]Sock 7.Close socket [10:55:15]Sock 7.Thread stoped [10:55:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 76 57 47 00 AE F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 21 1D 01 00 F4 03 04 00 C7 0C 23 67 B6 04 01 00 00 29 38 38 C3 7D 77 27 59 [10:55:15]CommunicateWithHost err = 0 [10:55:15]CheckOFDResponse [10:55:15]1017 (14) - 77093643461234 [10:55:15]1041 (16) - 0000000000874662 [10:55:15]1040 (4) - 72993 [10:55:15]1012 (4) - 31.10.2024 04:51 [10:55:15]1206 (1) - 0 [10:55:15]OFD Sender: Remove packet 72993 [10:55:15]ProducePacketName [10:55:15]name=ofd_packets/00072993 [10:55:15]NVStorageDeleteData [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:39]recv_with_timeout no data received [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:17]recv_with_timeout no data received [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:35]recv_with_timeout no data received [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:14]recv_with_timeout no data received [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:25]recv_with_timeout no data received [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]recv_with_timeout no data received [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:07]recv_with_timeout no data received [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:52]recv_with_timeout no data received [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]recv_with_timeout no data received [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:05:59]recv_with_timeout no data received [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:01]recv_with_timeout no data received [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]recv_with_timeout no data received [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:08:57]recv_with_timeout no data received [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]recv_with_timeout no data received [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:05]recv_with_timeout no data received [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:57]recv_with_timeout no data received [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:01]accept exits with 9 [11:15:01]New connection [11:15:01]New thread 3067321700 created [11:15:01]Thread 3067178340 joined [11:15:01]Waiting for new connection... [11:15:01] Sock 9.Parse request [11:15:01]Sock 9.Check first char [11:15:01]Sock 9.First char is OK [11:15:01]request: POST /json_proto HTTP/1.0 [11:15:01]Method: POST [11:15:01]URL: /json_proto [11:15:01]Method is POST - this is cgi request [11:15:01]url: /json_proto [11:15:01]query_string will be loaded in cgi processing [11:15:01]execute_cgi json_proto POST (null) [11:15:01]execute_cgi path=json_proto method=POST [11:15:01]POST find Content-Length [11:15:01]Host: 172.17.43.195:8080 [11:15:01]Content-Length: 792 [11:15:01]Content-Type: application/json [11:15:01] [11:15:01]POST finish read [11:15:01]Found Content-Length = 792 [11:15:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:01]execute_script... [11:15:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:01]POST & json_proto [11:15:01]process_json_proto [11:15:01]json parsed OK: [11:15:01]protocol is kg_v1.0 [11:15:01]action value=close_receipt [11:15:01]process_action close_receipt [11:15:01]cmd_close_receipt [11:15:01]MH_GetDate [11:15:01]Write to MH i2c: F0 00 00 2C 04 1F [11:15:01]Write i2c OK [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: F0 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: F0 09 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: F0 09 00 2C 04 00 B6 66 23 67 74 2C AD 66 81 [11:15:01]GetLastDocTimeStamp 1730372112 [11:15:01]current date 1730373302 [11:15:01]FM_GetShiftState [11:15:01]SAM_PROTO_GetShiftState [11:15:01]wFMCommunicate request_size=4 [11:15:01]MH_SAM_APDU [11:15:01]CAPDU: 80 13 01 00 [11:15:01]Write to MH i2c: E2 08 00 2D 04 80 13 01 00 00 00 00 00 AE [11:15:01]Write i2c OK [11:15:01]MH_I2C_Read... [11:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:01]Read from MH i2c: E2 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 0E 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 0E 00 2D 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 57 [11:15:01]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:15:01]wFMCommunicate OK [11:15:01]SAM_PROTO_GetShiftState done [11:15:01]FM_GetShiftState done [11:15:01]opened in 1730333258 [11:15:01]opened+sec_in_day 1730419658 [11:15:01]quantity*price = 0 [11:15:01]sum+1 = 1 [11:15:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 70 31.10.2024 11:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 72995 ФПД: 175330381842834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T111738&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72995&fm=175330381842834&tin=02508201610067®Number=0000000000091644&sum=0 [11:17:39]StoreToDocumentArchive [11:17:39]shift 557 fd 72995 [11:17:39]save to /storage/0557/doc_00072995 [11:17:39]save last doc name /storage/0557/doc_00072995 to /storage/kkm_last_doc_name [11:17:39]save OK [11:17:39]Clear old archive folders... [11:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:39]tlvbuf is 00163C70 [11:17:39]SAM_PROTO_ClearQueue [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 09 00 00 [11:17:39]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:17:39]RAPDU: 90 00 [11:17:39]wFMCommunicate OK [11:17:39]SAM_PROTO_ClearQueue done [11:17:39]KKMCreateOFDPacket [11:17:39]OFDProtocolAddRootSTLVToBuf [11:17:39]FM_MakeSignedData [11:17:39]FM_MakeSignedData [11:17:39]SAM_PROTO_SignData [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 0D 01 02 [11:17:39]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:17:40]RAPDU: 90 00 [11:17:40]wFMCommunicate OK [11:17:40]wFMCommunicate request_size=255 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 52 67 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1D 01 00 35 04 06 00 9F [11:17:40]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 52 67 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1D 01 00 35 04 06 00 9F 00 00 87 [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:17:40]RAPDU: 90 00 [11:17:40]wFMCommunicate OK [11:17:40]wFMCommunicate request_size=10 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 0D 02 02 05 76 49 20 C9 92 [11:17:40]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 76 49 20 C9 92 00 00 EC [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:17:40]RAPDU: 90 00 [11:17:40]wFMCommunicate OK [11:17:40]wFMCommunicate request_size=4 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 0D 03 02 [11:17:40]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 0B 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 0B 00 2F 00 00 27 AC 8B 7F 91 9B 68 CE 90 00 EA [11:17:40]RAPDU: 27 AC 8B 7F 91 9B 68 CE 90 00 [11:17:40]wFMCommunicate OK [11:17:40]SAM_PROTO_SignData done [11:17:40]FM_MakeSignedData done [11:17:40]CreateOFDProtocolMessage [11:17:40]wFMCommunicate request_size=4 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 11 00 00 [11:17:40]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 17 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [11:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:17:40]wFMCommunicate OK [11:17:40]CreateOFDProtocolMessage done [11:17:40]OFDSenderStorePacket 72995 [11:17:40]StoreOFDPacket docnum=72995 [11:17:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EF 2C 07 01 E2 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 52 67 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1D 01 00 35 04 06 00 9F 76 49 20 C9 92 27 AC 8B 7F 91 9B 68 CE [11:17:40]CheckFolder [11:17:40]dirname=/storage/ofd_packets [11:17:40]CheckFolder done [11:17:40]ProducePacketName [11:17:40]name=ofd_packets/00072995 [11:17:40]NVStorageSaveData ofd_packets/00072995 [11:17:40]File name is /storage/ofd_packets/00072995 [11:17:40]Write 301 bytes [11:17:40]NVStorageSaveData done [11:17:40]OFDSenderStorePacket done [11:17:40]KKMCreateOFDPacket done [11:17:40]NVStorageSaveData kkm_last_timestamp [11:17:40]File name is /storage/kkm_last_timestamp [11:17:40]Write 4 bytes [11:17:40]NVStorageSaveData done [11:17:40]ExternCall_PrintAddStr [11:17:40]wPrintStart [11:17:40]Write to MH i2c: 01 00 00 31 00 31 [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:17:41]RasterBufferAndPrint [11:17:41]line Счет N : (1)952595 [11:17:41]line ИНН: 02508201610067 [11:17:41]line Контрольно-Кассовый Чек [11:17:41]line ПРОДАЖА [11:17:41]line ТРК (МРК, ГНК) : 53 [11:17:41]line Товар: 2710124130 [11:17:41]line Аи-92-К-5 [11:17:41]line 35.000 * 0.00 [11:17:41]line = 0.00 [11:17:41]line НДС 12% НСП 1% [11:17:41]line > о реализуемом товаре [11:17:41]line ИТОГО: 0.00 [11:17:41]line НСП 1% : 0.00 [11:17:41]line НДС 12% : 0.00 [11:17:41]line Наличными: 0.00 [11:17:41]line Безнал.: 0.00 [11:17:41]line Место: АЗС № 113 "Партнер Нефть" [11:17:41]OFD Sender: Processing packet 72995 [packets to send 279, broken 278] [11:17:41]ProducePacketName [11:17:41]name=ofd_packets/00072995 [11:17:41]OFD Sender: To server: pG, [11:17:41]CommunicateWithHost lk.salyk.kg:30040 [11:17:41]ConnectInit lk.salyk.kg [11:17:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:17:41]line СНО: Общий режим [11:17:41]line Чек 70 31.10.2024 11:17 [11:17:41]line Смена: 557 ФФД: 1.0 [11:17:41]line ЗНМ: 0300000087 [11:17:41]line РНМ: 0000000000091644 [11:17:41]line Версия ККМ: 001 [11:17:41]line Талоны: Топливная Карта [11:17:41]line 02645 [11:17:41]line ФМ: 0000000000874662 [11:17:41]line ФД: 72995 [11:17:41]line ФПД: 175330381842834 [11:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T111738&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72995&fm=175330381842834&tin=02508201610067®Number=0000000000091644&sum=0 [11:17:41]written 0, free lines is 4095 [11:17:41]Write to MH i2c: 01 00 00 5B 00 5B [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 07 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F2 0C 60 [11:17:41]RasterBufferAndPrint [11:17:41]line [11:17:41]line [11:17:41]line [11:17:41]line [11:17:41]line [11:17:41]written 0, free lines is 3339 [11:17:41]MH_Cut [11:17:41]Write to MH i2c: D1 01 00 62 00 01 34 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: D1 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: D1 01 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: D1 01 00 62 00 00 33 [11:17:41]Write to MH i2c: 01 00 00 63 00 63 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]Connected sock=11 [11:17:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EF 2C 07 01 E2 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 52 67 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1D 01 00 35 04 06 00 9F 76 49 20 C9 92 27 AC 8B 7F 91 9B 68 CE [11:17:42]*** Cut start [11:17:42]*** Partial cut [11:17:42]*** CUTSNS_PIN = 1 [11:17:42]*** CUTSNS_PIN = 0 [11:17:42]*** Brake cut motor [11:17:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 51 23 47 00 9F 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1D 01 00 F4 03 04 00 0A 12 23 67 B6 04 01 00 00 7D 52 8F C7 0B 82 3B 01 [11:17:42]CommunicateWithHost err = 0 [11:17:42]CheckOFDResponse [11:17:42]1017 (14) - 77093643461234 [11:17:42]1041 (16) - 0000000000874662 [11:17:42]1040 (4) - 72995 [11:17:42]1012 (4) - 31.10.2024 05:13 [11:17:42]1206 (1) - 0 [11:17:42]OFD Sender: Remove packet 72995 [11:17:42]ProducePacketName [11:17:42]name=ofd_packets/00072995 [11:17:42]NVStorageDeleteData [11:17:42]Read from MH i2c: 01 [11:17:42]MH_I2C_Read... [11:17:42]*** Stop cut motor [11:17:42]*** Cut end [11:17:42]Read from MH i2c: 01 07 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [11:17:42]process_action close_receipt done [11:17:42]requested_data is exist [11:17:42]produce_requested_data [11:17:42]requested_item fm.sn is exist - process it [11:17:42]wFMCommunicate request_size=4 [11:17:42]MH_SAM_APDU [11:17:42]CAPDU: 80 11 00 00 [11:17:42]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:42]Read from MH i2c: E2 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 17 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [11:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:17:42]wFMCommunicate OK [11:17:42]requested_item fd.num is exist - process it [11:17:42]SAM_PROTO_GetFieldsCounters [11:17:42]wFMCommunicate request_size=4 [11:17:42]MH_SAM_APDU [11:17:42]CAPDU: 80 13 00 00 [11:17:42]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 62 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 23 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [11:17:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 23 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:43]wFMCommunicate OK [11:17:43]SAM_PROTO_GetFieldsCounters done [11:17:43]requested_item shift.num is exist - process it [11:17:43]requested_item shift.opened is exist - process it [11:17:43]req_shift_opened [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 66 00 80 13 01 00 00 00 00 00 E3 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]OFD Sender: No OFD packet to send [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 66 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8C [11:17:43]RAPDU: 09 00 01 4A CA 22 67 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]req_shift_opened done [11:17:43]requested_item shift.open_date is exist - process it [11:17:43]req_shift_open_date [11:17:43]req_shift_open_date done [11:17:43]produce_requested_data done [11:17:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72995,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [11:17:43]process_action_free close_receipt [11:17:43]json_value_free [11:17:43]json_value_free done [11:17:43]process_json_proto returns [11:17:43]Send response to host [11:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72995,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [11:17:43]free response buf [11:17:43]execute_script done [11:17:43]execute_script returns [11:17:43]free content buf [11:17:43]Sock 9.Close socket [11:17:43]Sock 9.Thread stoped [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:17:59]recv_with_timeout no data received [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:20]recv_with_timeout no data received [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:32]accept exits with 10 [11:18:32]New connection [11:18:32]New thread 3066559844 created [11:18:32]Thread 3066703204 joined [11:18:32]Waiting for new connection... [11:18:32] Sock 10.Parse request [11:18:32]Sock 10.Check first char [11:18:32]Sock 10.First char is OK [11:18:32]request: POST /json_proto HTTP/1.0 [11:18:32]Method: POST [11:18:32]URL: /json_proto [11:18:32]Method is POST - this is cgi request [11:18:32]url: /json_proto [11:18:32]query_string will be loaded in cgi processing [11:18:32]execute_cgi json_proto POST (null) [11:18:32]execute_cgi path=json_proto method=POST [11:18:32]POST find Content-Length [11:18:32]Host: 172.17.43.195:8080 [11:18:32]Content-Length: 792 [11:18:32]Content-Type: application/json [11:18:32] [11:18:32]POST finish read [11:18:32]Found Content-Length = 792 [11:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:32]execute_script... [11:18:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:32]POST & json_proto [11:18:32]process_json_proto [11:18:32]json parsed OK: [11:18:32]protocol is kg_v1.0 [11:18:32]action value=close_receipt [11:18:32]process_action close_receipt [11:18:32]cmd_close_receipt [11:18:32]MH_GetDate [11:18:32]Write to MH i2c: F0 00 00 67 00 56 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: F0 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: F0 09 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: F0 09 00 67 00 00 88 67 23 67 74 2C AD 66 8B [11:18:32]GetLastDocTimeStamp 1730373458 [11:18:32]current date 1730373512 [11:18:32]FM_GetShiftState [11:18:32]SAM_PROTO_GetShiftState [11:18:32]wFMCommunicate request_size=4 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 13 01 00 [11:18:32]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0E 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8E [11:18:32]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:18:32]wFMCommunicate OK [11:18:32]SAM_PROTO_GetShiftState done [11:18:32]FM_GetShiftState done [11:18:32]opened in 1730333258 [11:18:32]opened+sec_in_day 1730419658 [11:18:32]quantity*price = 0 [11:18:32]sum+1 = 1 [11:18:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 71 31.10.2024 11:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72996 ФПД: 27428199123573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T111832&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72996&fm=27428199123573&tin=02508201610067®Number=0000000000091644&sum=0 [11:18:33]StoreToDocumentArchive [11:18:33]shift 557 fd 72996 [11:18:33]save to /storage/0557/doc_00072996 [11:18:33]save last doc name /storage/0557/doc_00072996 to /storage/kkm_last_doc_name [11:18:33]save OK [11:18:33]Clear old archive folders... [11:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:33]tlvbuf is 00163B40 [11:18:33]SAM_PROTO_ClearQueue [11:18:33]wFMCommunicate request_size=4 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 09 00 00 [11:18:33]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:33]Read from MH i2c: E2 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [11:18:33]RAPDU: 90 00 [11:18:33]wFMCommunicate OK [11:18:33]SAM_PROTO_ClearQueue done [11:18:33]KKMCreateOFDPacket [11:18:33]OFDProtocolAddRootSTLVToBuf [11:18:33]FM_MakeSignedData [11:18:33]FM_MakeSignedData [11:18:33]SAM_PROTO_SignData [11:18:33]wFMCommunicate request_size=4 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 0D 01 02 [11:18:33]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:33]Read from MH i2c: E2 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:18:33]RAPDU: 90 00 [11:18:33]wFMCommunicate OK [11:18:33]wFMCommunicate request_size=255 [11:18:33]MH_SAM_APDU [11:18:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 88 67 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 24 1D 01 00 35 04 06 00 18 [11:18:33]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 88 67 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 24 1D 01 00 35 04 06 00 18 00 00 E2 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 03 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:18:34]RAPDU: 90 00 [11:18:34]wFMCommunicate OK [11:18:34]wFMCommunicate request_size=10 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 0D 02 02 05 F2 20 10 CA 75 [11:18:34]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 F2 20 10 CA 75 00 00 5D [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 03 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:18:34]RAPDU: 90 00 [11:18:34]wFMCommunicate OK [11:18:34]wFMCommunicate request_size=4 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 0D 03 02 [11:18:34]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 0B 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 0B 00 79 00 00 A7 CD D3 69 0E 8D 15 9B 90 00 F0 [11:18:34]RAPDU: A7 CD D3 69 0E 8D 15 9B 90 00 [11:18:34]wFMCommunicate OK [11:18:34]SAM_PROTO_SignData done [11:18:34]FM_MakeSignedData done [11:18:34]CreateOFDProtocolMessage [11:18:34]wFMCommunicate request_size=4 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 11 00 00 [11:18:34]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 17 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [11:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:18:34]wFMCommunicate OK [11:18:34]CreateOFDProtocolMessage done [11:18:34]OFDSenderStorePacket 72996 [11:18:34]StoreOFDPacket docnum=72996 [11:18:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7B D1 07 01 75 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 88 67 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 24 1D 01 00 35 04 06 00 18 F2 20 10 CA 75 A7 CD D3 69 0E 8D 15 9B [11:18:34]CheckFolder [11:18:34]dirname=/storage/ofd_packets [11:18:34]CheckFolder done [11:18:34]ProducePacketName [11:18:34]name=ofd_packets/00072996 [11:18:34]NVStorageSaveData ofd_packets/00072996 [11:18:34]File name is /storage/ofd_packets/00072996 [11:18:34]Write 301 bytes [11:18:34]NVStorageSaveData done [11:18:34]OFDSenderStorePacket done [11:18:34]KKMCreateOFDPacket done [11:18:34]NVStorageSaveData kkm_last_timestamp [11:18:34]File name is /storage/kkm_last_timestamp [11:18:34]Write 4 bytes [11:18:34]NVStorageSaveData done [11:18:34]ExternCall_PrintAddStr [11:18:34]wPrintStart [11:18:34]Write to MH i2c: 01 00 00 7B 00 7B [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 07 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [11:18:34]RasterBufferAndPrint [11:18:34]line Счет N : (1)952596 [11:18:34]line ИНН: 02508201610067 [11:18:34]line Контрольно-Кассовый Чек [11:18:34]line ПРОДАЖА [11:18:34]line ТРК (МРК, ГНК) : 53 [11:18:34]line Товар: 2710124130 [11:18:34]line Аи-92-К-5 [11:18:34]line 14.950 * 0.00 [11:18:34]line = 0.00 [11:18:34]line НДС 12% НСП 1% [11:18:34]line > о реализуемом товаре [11:18:34]line ИТОГО: 0.00 [11:18:34]line НСП 1% : 0.00 [11:18:34]line НДС 12% : 0.00 [11:18:34]line Наличными: 0.00 [11:18:34]line Безнал.: 0.00 [11:18:34]line Место: АЗС № 113 "Партнер Нефть" [11:18:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:18:34]line СНО: Общий режим [11:18:34]line Чек 71 31.10.2024 11:18 [11:18:34]line Смена: 557 ФФД: 1.0 [11:18:34]line ЗНМ: 0300000087 [11:18:34]line РНМ: 0000000000091644 [11:18:34]line Версия ККМ: 001 [11:18:34]line Талоны: Топливная Карта [11:18:34]line 03047 [11:18:34]line ФМ: 0000000000874662 [11:18:34]line ФД: 72996 [11:18:34]line ФПД: 27428199123573 [11:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T111832&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72996&fm=27428199123573&tin=02508201610067®Number=0000000000091644&sum=0 [11:18:34]written 0, free lines is 4095 [11:18:34]OFD Sender: Processing packet 72996 [packets to send 279, broken 278] [11:18:34]ProducePacketName [11:18:34]name=ofd_packets/00072996 [11:18:34]OFD Sender: To server: pG, [11:18:34]CommunicateWithHost lk.salyk.kg:30040 [11:18:34]ConnectInit lk.salyk.kg [11:18:34]Write to MH i2c: 01 00 00 A5 00 A5 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 07 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 DD 0C 95 [11:18:34]RasterBufferAndPrint [11:18:34]line [11:18:34]line [11:18:34]line [11:18:34]line [11:18:34]line [11:18:34]written 0, free lines is 3302 [11:18:34]MH_Cut [11:18:34]Write to MH i2c: D1 01 00 AC 00 01 7E [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: D1 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: D1 01 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: D1 01 00 AC 00 00 7D [11:18:34]Write to MH i2c: 01 00 00 AD 00 AD [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:35]Connected sock=9 [11:18:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7B D1 07 01 75 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 88 67 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 24 1D 01 00 35 04 06 00 18 F2 20 10 CA 75 A7 CD D3 69 0E 8D 15 9B [11:18:35]*** Cut start [11:18:35]*** Partial cut [11:18:35]*** CUTSNS_PIN = 1 [11:18:35]*** CUTSNS_PIN = 0 [11:18:35]*** Brake cut motor [11:18:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 16 45 47 00 F5 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 24 1D 01 00 F4 03 04 00 3F 12 23 67 B6 04 01 00 00 51 30 B7 F2 05 54 DB CE [11:18:35]CommunicateWithHost err = 0 [11:18:35]CheckOFDResponse [11:18:35]1017 (14) - 77093643461234 [11:18:35]1041 (16) - 0000000000874662 [11:18:35]1040 (4) - 72996 [11:18:35]1012 (4) - 31.10.2024 05:14 [11:18:35]1206 (1) - 0 [11:18:35]OFD Sender: Remove packet 72996 [11:18:35]ProducePacketName [11:18:35]name=ofd_packets/00072996 [11:18:35]NVStorageDeleteData [11:18:36]Read from MH i2c: 01 [11:18:36]MH_I2C_Read... [11:18:36]*** Stop cut motor [11:18:36]*** Cut end [11:18:36]Read from MH i2c: 01 07 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [11:18:36]process_action close_receipt done [11:18:36]requested_data is exist [11:18:36]produce_requested_data [11:18:36]requested_item fm.sn is exist - process it [11:18:36]wFMCommunicate request_size=4 [11:18:36]MH_SAM_APDU [11:18:36]CAPDU: 80 11 00 00 [11:18:36]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:36]Read from MH i2c: E2 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 17 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [11:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:18:36]wFMCommunicate OK [11:18:36]requested_item fd.num is exist - process it [11:18:36]SAM_PROTO_GetFieldsCounters [11:18:36]wFMCommunicate request_size=4 [11:18:36]MH_SAM_APDU [11:18:36]CAPDU: 80 13 00 00 [11:18:36]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:36]Read from MH i2c: E2 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 62 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 24 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [11:18:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 24 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:36]wFMCommunicate OK [11:18:36]SAM_PROTO_GetFieldsCounters done [11:18:36]requested_item shift.num is exist - process it [11:18:36]requested_item shift.opened is exist - process it [11:18:36]req_shift_opened [11:18:36]FM_GetShiftState [11:18:36]SAM_PROTO_GetShiftState [11:18:36]wFMCommunicate request_size=4 [11:18:36]MH_SAM_APDU [11:18:36]CAPDU: 80 13 01 00 [11:18:36]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:36]Read from MH i2c: E2 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 0E 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D6 [11:18:36]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:18:36]wFMCommunicate OK [11:18:36]SAM_PROTO_GetShiftState done [11:18:36]FM_GetShiftState done [11:18:36]req_shift_opened done [11:18:36]requested_item shift.open_date is exist - process it [11:18:36]req_shift_open_date [11:18:36]req_shift_open_date done [11:18:36]produce_requested_data done [11:18:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72996,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [11:18:36]process_action_free close_receipt [11:18:36]json_value_free [11:18:36]json_value_free done [11:18:36]process_json_proto returns [11:18:36]Send response to host [11:18:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72996,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [11:18:36]free response buf [11:18:36]execute_script done [11:18:36]execute_script returns [11:18:36]free content buf [11:18:36]Sock 10.Close socket [11:18:36]Sock 10.Thread stoped [11:18:36]OFD Sender: No OFD packet to send [11:18:41]recv_with_timeout no data received [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]recv_with_timeout no data received [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]recv_with_timeout no data received [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:23]recv_with_timeout no data received [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]recv_with_timeout no data received [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:47]recv_with_timeout no data received [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]recv_with_timeout no data received [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:21:58]accept exits with 7 [11:21:58]New connection [11:21:58]New thread 3066703204 created [11:21:58]Thread 3066559844 joined [11:21:58]Waiting for new connection... [11:21:58] Sock 7.Parse request [11:21:58]Sock 7.Check first char [11:21:58]Sock 7.First char is OK [11:21:58]request: POST /json_proto HTTP/1.0 [11:21:58]Method: POST [11:21:58]URL: /json_proto [11:21:58]Method is POST - this is cgi request [11:21:58]url: /json_proto [11:21:58]query_string will be loaded in cgi processing [11:21:58]execute_cgi json_proto POST (null) [11:21:58]execute_cgi path=json_proto method=POST [11:21:58]POST find Content-Length [11:21:58]Host: 172.17.43.195:8080 [11:21:58]Content-Length: 784 [11:21:58]Content-Type: application/json [11:21:58] [11:21:58]POST finish read [11:21:58]Found Content-Length = 784 [11:21:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:58]execute_script... [11:21:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:58]POST & json_proto [11:21:58]process_json_proto [11:21:58]json parsed OK: [11:21:58]protocol is kg_v1.0 [11:21:58]action value=close_receipt [11:21:58]process_action close_receipt [11:21:58]cmd_close_receipt [11:21:58]MH_GetDate [11:21:58]Write to MH i2c: F0 00 00 B1 00 A0 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: F0 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: F0 09 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: F0 09 00 B1 00 00 56 68 23 67 74 2C AD 66 A4 [11:21:58]GetLastDocTimeStamp 1730373512 [11:21:58]current date 1730373718 [11:21:58]FM_GetShiftState [11:21:58]SAM_PROTO_GetShiftState [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 13 01 00 [11:21:58]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0E 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D8 [11:21:58]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:21:58]wFMCommunicate OK [11:21:58]SAM_PROTO_GetShiftState done [11:21:58]FM_GetShiftState done [11:21:58]opened in 1730333258 [11:21:58]opened+sec_in_day 1730419658 [11:21:58]quantity*price = 100000 [11:21:58]sum+1 = 100002 [11:21:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 72 31.10.2024 11:21 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72997 ФПД: 209887803824664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T112158&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72997&fm=209887803824664&tin=02508201610067®Number=0000000000091644&sum=100001 [11:21:59]StoreToDocumentArchive [11:21:59]shift 557 fd 72997 [11:21:59]save to /storage/0557/doc_00072997 [11:21:59]save last doc name /storage/0557/doc_00072997 to /storage/kkm_last_doc_name [11:21:59]save OK [11:21:59]Clear old archive folders... [11:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:21:59]tlvbuf is 000FE740 [11:21:59]SAM_PROTO_ClearQueue [11:21:59]wFMCommunicate request_size=4 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 09 00 00 [11:21:59]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 03 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [11:21:59]RAPDU: 90 00 [11:21:59]wFMCommunicate OK [11:21:59]SAM_PROTO_ClearQueue done [11:21:59]KKMCreateOFDPacket [11:21:59]OFDProtocolAddRootSTLVToBuf [11:21:59]FM_MakeSignedData [11:21:59]FM_MakeSignedData [11:21:59]SAM_PROTO_SignData [11:21:59]wFMCommunicate request_size=4 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 0D 01 02 [11:21:59]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 03 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [11:21:59]RAPDU: 90 00 [11:21:59]wFMCommunicate OK [11:21:59]wFMCommunicate request_size=253 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 56 68 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 25 1D 01 00 35 04 06 00 BE E4 4F FD 5A 18 [11:21:59]Write to MH i2c: E2 00 01 C1 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 56 68 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 25 1D 01 00 35 04 06 00 BE E4 4F FD 5A 18 00 00 CA [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 03 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:21:59]RAPDU: 90 00 [11:21:59]wFMCommunicate OK [11:21:59]wFMCommunicate request_size=4 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 0D 03 02 [11:21:59]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 0B 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 0B 00 C2 00 00 1B 26 4A 0B BD AA 4A 75 90 00 FA [11:21:59]RAPDU: 1B 26 4A 0B BD AA 4A 75 90 00 [11:21:59]wFMCommunicate OK [11:21:59]SAM_PROTO_SignData done [11:21:59]FM_MakeSignedData done [11:21:59]CreateOFDProtocolMessage [11:21:59]wFMCommunicate request_size=4 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 11 00 00 [11:21:59]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 17 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 91 [11:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:21:59]wFMCommunicate OK [11:21:59]CreateOFDProtocolMessage done [11:21:59]OFDSenderStorePacket 72997 [11:21:59]StoreOFDPacket docnum=72997 [11:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 56 68 00 01 3A 98 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 56 68 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 25 1D 01 00 35 04 06 00 BE E4 4F FD 5A 18 1B 26 4A 0B BD AA 4A 75 [11:21:59]CheckFolder [11:21:59]dirname=/storage/ofd_packets [11:21:59]CheckFolder done [11:21:59]ProducePacketName [11:21:59]name=ofd_packets/00072997 [11:21:59]NVStorageSaveData ofd_packets/00072997 [11:21:59]File name is /storage/ofd_packets/00072997 [11:21:59]Write 294 bytes [11:21:59]NVStorageSaveData done [11:21:59]OFDSenderStorePacket done [11:21:59]KKMCreateOFDPacket done [11:21:59]NVStorageSaveData kkm_last_timestamp [11:21:59]File name is /storage/kkm_last_timestamp [11:21:59]Write 4 bytes [11:21:59]NVStorageSaveData done [11:21:59]ExternCall_PrintAddStr [11:21:59]wPrintStart [11:21:59]Write to MH i2c: 01 00 00 C4 00 C4 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 07 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [11:21:59]RasterBufferAndPrint [11:21:59]line Счет N : (1)952597 [11:21:59]line ИНН: 02508201610067 [11:21:59]line Контрольно-Кассовый Чек [11:21:59]line ПРОДАЖА [11:21:59]line ТРК (МРК, ГНК) : 51 [11:21:59]line Товар: 50.50.0 [11:21:59]line Super 92 [11:21:59]line 14.620 * 68.40 [11:21:59]line = 1000.01 [11:21:59]line НДС 12% НСП 1% [11:21:59]line > о реализуемом товаре [11:21:59]line ИТОГО: 1000.01 [11:21:59]line НСП 1% : 8.85 [11:21:59]line НДС 12% : 106.20 [11:21:59]line Наличными: 0.00 [11:21:59]line Безнал.: 1000.01 [11:21:59]line Место: АЗС № 113 "Партнер Нефть" [11:21:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:21:59]line СНО: Общий режим [11:21:59]line Чек 72 31.10.2024 11:21 [11:21:59]line Смена: 557 ФФД: 1.0 [11:21:59]line ЗНМ: 0300000087 [11:21:59]line РНМ: 0000000000091644 [11:21:59]line Версия ККМ: 001 [11:21:59]line Платежная система: O! деньги [11:21:59]line ФМ: 0000000000874662 [11:21:59]line ФД: 72997 [11:21:59]line ФПД: 209887803824664 [11:21:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T112158&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72997&fm=209887803824664&tin=02508201610067®Number=0000000000091644&sum=100001 [11:22:00]OFD Sender: Processing packet 72997 [packets to send 279, broken 278] [11:22:00]ProducePacketName [11:22:00]name=ofd_packets/00072997 [11:22:00]OFD Sender: To server: pG, [11:22:00]CommunicateWithHost lk.salyk.kg:30040 [11:22:00]ConnectInit lk.salyk.kg [11:22:00]written 0, free lines is 4095 [11:22:00]Write to MH i2c: 01 00 00 EE 00 EE [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: 01 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: 01 07 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 E0 0C E1 [11:22:00]RasterBufferAndPrint [11:22:00]line [11:22:00]line [11:22:00]line [11:22:00]line [11:22:00]line [11:22:00]written 0, free lines is 3302 [11:22:00]MH_Cut [11:22:00]Write to MH i2c: D1 01 00 F5 00 01 C7 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: D1 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: D1 01 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: D1 01 00 F5 00 00 C6 [11:22:00]Write to MH i2c: 01 00 00 F6 00 F6 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]Connected sock=10 [11:22:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 56 68 00 01 3A 98 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 56 68 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 25 1D 01 00 35 04 06 00 BE E4 4F FD 5A 18 1B 26 4A 0B BD AA 4A 75 [11:22:01]*** Cut start [11:22:01]*** Partial cut [11:22:01]*** CUTSNS_PIN = 1 [11:22:01]*** CUTSNS_PIN = 0 [11:22:01]*** Brake cut motor [11:22:01]Read from MH i2c: 01 [11:22:01]MH_I2C_Read... [11:22:01]*** Stop cut motor [11:22:01]*** Cut end [11:22:01]Read from MH i2c: 01 07 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [11:22:01]process_action close_receipt done [11:22:01]requested_data is exist [11:22:01]produce_requested_data [11:22:01]requested_item fm.sn is exist - process it [11:22:01]wFMCommunicate request_size=4 [11:22:01]MH_SAM_APDU [11:22:01]CAPDU: 80 11 00 00 [11:22:01]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [11:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:22:02]wFMCommunicate OK [11:22:02]requested_item fd.num is exist - process it [11:22:02]SAM_PROTO_GetFieldsCounters [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 13 00 00 [11:22:02]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 62 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 62 00 F8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 25 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:22:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 25 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_GetFieldsCounters done [11:22:02]requested_item shift.num is exist - process it [11:22:02]requested_item shift.opened is exist - process it [11:22:02]req_shift_opened [11:22:02]FM_GetShiftState [11:22:02]SAM_PROTO_GetShiftState [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 13 01 00 [11:22:02]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0E 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 1F [11:22:02]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_GetShiftState done [11:22:02]FM_GetShiftState done [11:22:02]req_shift_opened done [11:22:02]requested_item shift.open_date is exist - process it [11:22:02]req_shift_open_date [11:22:02]req_shift_open_date done [11:22:02]produce_requested_data done [11:22:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72997,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [11:22:02]process_action_free close_receipt [11:22:02]json_value_free [11:22:02]json_value_free done [11:22:02]process_json_proto returns [11:22:02]Send response to host [11:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72997,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [11:22:02]free response buf [11:22:02]execute_script done [11:22:02]execute_script returns [11:22:02]free content buf [11:22:02]Sock 7.Close socket [11:22:02]Sock 7.Thread stoped [11:22:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BC E6 47 00 76 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 25 1D 01 00 F4 03 04 00 0C 13 23 67 B6 04 01 00 00 74 CA BA EC F5 1A D2 F3 [11:22:02]CommunicateWithHost err = 0 [11:22:02]CheckOFDResponse [11:22:02]1017 (14) - 77093643461234 [11:22:02]1041 (16) - 0000000000874662 [11:22:02]1040 (4) - 72997 [11:22:02]1012 (4) - 31.10.2024 05:18 [11:22:02]1206 (1) - 0 [11:22:02]OFD Sender: Remove packet 72997 [11:22:02]ProducePacketName [11:22:02]name=ofd_packets/00072997 [11:22:02]NVStorageDeleteData [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:27]recv_with_timeout no data received [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:46]recv_with_timeout no data received [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:37]recv_with_timeout no data received [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:47]recv_with_timeout no data received [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:39]recv_with_timeout no data received [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:00]recv_with_timeout no data received [11:26:02]accept exits with 9 [11:26:02]New connection [11:26:02]New thread 3066559844 created [11:26:02]Thread 3066703204 joined [11:26:02]Waiting for new connection... [11:26:02] Sock 9.Parse request [11:26:02]Sock 9.Check first char [11:26:02]Sock 9.First char is OK [11:26:02]request: POST /json_proto HTTP/1.0 [11:26:02]Method: POST [11:26:02]URL: /json_proto [11:26:02]Method is POST - this is cgi request [11:26:02]url: /json_proto [11:26:02]query_string will be loaded in cgi processing [11:26:02]execute_cgi json_proto POST (null) [11:26:02]execute_cgi path=json_proto method=POST [11:26:02]POST find Content-Length [11:26:02]Host: 172.17.43.195:8080 [11:26:02]Content-Length: 792 [11:26:02]Content-Type: application/json [11:26:02] [11:26:02]POST finish read [11:26:02]Found Content-Length = 792 [11:26:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:02]execute_script... [11:26:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:02]POST & json_proto [11:26:02]process_json_proto [11:26:02]json parsed OK: [11:26:02]protocol is kg_v1.0 [11:26:02]action value=close_receipt [11:26:02]process_action close_receipt [11:26:02]cmd_close_receipt [11:26:02]MH_GetDate [11:26:02]Write to MH i2c: F0 00 00 FA 00 E9 [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: F0 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: F0 09 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: F0 09 00 FA 00 00 4A 69 23 67 74 2C AD 66 E2 [11:26:02]GetLastDocTimeStamp 1730373718 [11:26:02]current date 1730373962 [11:26:02]FM_GetShiftState [11:26:02]SAM_PROTO_GetShiftState [11:26:02]wFMCommunicate request_size=4 [11:26:02]MH_SAM_APDU [11:26:02]CAPDU: 80 13 01 00 [11:26:02]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:02]Read from MH i2c: E2 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 0E 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 21 [11:26:02]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:26:02]wFMCommunicate OK [11:26:02]SAM_PROTO_GetShiftState done [11:26:02]FM_GetShiftState done [11:26:02]opened in 1730333258 [11:26:02]opened+sec_in_day 1730419658 [11:26:02]quantity*price = 0 [11:26:02]sum+1 = 1 [11:26:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 73 31.10.2024 11:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72998 ФПД: 219152081523350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T112602&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72998&fm=219152081523350&tin=02508201610067®Number=0000000000091644&sum=0 [11:26:03]StoreToDocumentArchive [11:26:03]shift 557 fd 72998 [11:26:03]save to /storage/0557/doc_00072998 [11:26:03]save last doc name /storage/0557/doc_00072998 to /storage/kkm_last_doc_name [11:26:03]save OK [11:26:03]Clear old archive folders... [11:26:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:03]tlvbuf is 00188990 [11:26:03]SAM_PROTO_ClearQueue [11:26:03]wFMCommunicate request_size=4 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 09 00 00 [11:26:03]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [11:26:03]RAPDU: 90 00 [11:26:03]wFMCommunicate OK [11:26:03]SAM_PROTO_ClearQueue done [11:26:03]KKMCreateOFDPacket [11:26:03]OFDProtocolAddRootSTLVToBuf [11:26:03]FM_MakeSignedData [11:26:03]FM_MakeSignedData [11:26:03]SAM_PROTO_SignData [11:26:03]wFMCommunicate request_size=4 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 0D 01 02 [11:26:03]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [11:26:03]RAPDU: 90 00 [11:26:03]wFMCommunicate OK [11:26:03]wFMCommunicate request_size=255 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4A 69 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1D 01 00 35 04 06 00 C7 [11:26:03]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4A 69 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1D 01 00 35 04 06 00 C7 00 00 84 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [11:26:03]RAPDU: 90 00 [11:26:03]wFMCommunicate OK [11:26:03]wFMCommunicate request_size=10 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 0D 02 02 05 51 51 F8 92 96 [11:26:03]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 51 51 F8 92 96 00 00 52 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [11:26:03]RAPDU: 90 00 [11:26:03]wFMCommunicate OK [11:26:03]wFMCommunicate request_size=4 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 0D 03 02 [11:26:03]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 0B 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 0B 00 0C 01 00 64 DF 22 C0 0A 8C AC ED 90 00 DD [11:26:03]RAPDU: 64 DF 22 C0 0A 8C AC ED 90 00 [11:26:03]wFMCommunicate OK [11:26:03]SAM_PROTO_SignData done [11:26:03]FM_MakeSignedData done [11:26:03]CreateOFDProtocolMessage [11:26:03]wFMCommunicate request_size=4 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 11 00 00 [11:26:03]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 17 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [11:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:26:03]wFMCommunicate OK [11:26:03]CreateOFDProtocolMessage done [11:26:03]OFDSenderStorePacket 72998 [11:26:03]StoreOFDPacket docnum=72998 [11:26:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E0 25 07 01 91 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4A 69 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1D 01 00 35 04 06 00 C7 51 51 F8 92 96 64 DF 22 C0 0A 8C AC ED [11:26:03]CheckFolder [11:26:03]dirname=/storage/ofd_packets [11:26:03]CheckFolder done [11:26:03]ProducePacketName [11:26:03]name=ofd_packets/00072998 [11:26:03]NVStorageSaveData ofd_packets/00072998 [11:26:03]File name is /storage/ofd_packets/00072998 [11:26:03]Write 301 bytes [11:26:03]NVStorageSaveData done [11:26:03]OFDSenderStorePacket done [11:26:03]KKMCreateOFDPacket done [11:26:03]NVStorageSaveData kkm_last_timestamp [11:26:03]File name is /storage/kkm_last_timestamp [11:26:03]Write 4 bytes [11:26:03]NVStorageSaveData done [11:26:03]ExternCall_PrintAddStr [11:26:03]wPrintStart [11:26:03]Write to MH i2c: 01 00 00 0E 01 0F [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: 01 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: 01 07 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [11:26:03]RasterBufferAndPrint [11:26:03]line Счет N : (1)952598 [11:26:03]line ИНН: 02508201610067 [11:26:03]line Контрольно-Кассовый Чек [11:26:03]line ПРОДАЖА [11:26:03]line ТРК (МРК, ГНК) : 63 [11:26:03]line Товар: 2710124130 [11:26:03]line Аи-92-К-5 [11:26:03]line 10.000 * 0.00 [11:26:03]line = 0.00 [11:26:03]line НДС 12% НСП 1% [11:26:03]line > о реализуемом товаре [11:26:03]line ИТОГО: 0.00 [11:26:03]line НСП 1% : 0.00 [11:26:03]line НДС 12% : 0.00 [11:26:03]line Наличными: 0.00 [11:26:03]line Безнал.: 0.00 [11:26:03]line Место: АЗС № 113 "Партнер Нефть" [11:26:03]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:26:03]line СНО: Общий режим [11:26:03]line Чек 73 31.10.2024 11:26 [11:26:03]line Смена: 557 ФФД: 1.0 [11:26:03]line ЗНМ: 0300000087 [11:26:03]line РНМ: 0000000000091644 [11:26:03]line Версия ККМ: 001 [11:26:03]line Талоны: Топливная Карта [11:26:03]line 03047 [11:26:03]line ФМ: 0000000000874662 [11:26:03]line ФД: 72998 [11:26:03]line ФПД: 219152081523350 [11:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T112602&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72998&fm=219152081523350&tin=02508201610067®Number=0000000000091644&sum=0 [11:26:03]written 0, free lines is 4095 [11:26:03]OFD Sender: Processing packet 72998 [packets to send 279, broken 278] [11:26:03]ProducePacketName [11:26:03]name=ofd_packets/00072998 [11:26:03]OFD Sender: To server: pG, [11:26:03]CommunicateWithHost lk.salyk.kg:30040 [11:26:03]ConnectInit lk.salyk.kg [11:26:04]Write to MH i2c: 01 00 00 38 01 39 [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: 01 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: 01 07 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 DA 0C 26 [11:26:04]RasterBufferAndPrint [11:26:04]line [11:26:04]line [11:26:04]line [11:26:04]line [11:26:04]line [11:26:04]written 0, free lines is 3296 [11:26:04]MH_Cut [11:26:04]Write to MH i2c: D1 01 00 3F 01 01 12 [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: D1 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: D1 01 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: D1 01 00 3F 01 00 11 [11:26:04]Write to MH i2c: 01 00 00 40 01 41 [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:05]*** Cut start [11:26:05]*** Partial cut [11:26:05]*** CUTSNS_PIN = 1 [11:26:05]*** CUTSNS_PIN = 0 [11:26:05]*** Brake cut motor [11:26:05]Read from MH i2c: 01 [11:26:05]MH_I2C_Read... [11:26:05]*** Stop cut motor [11:26:05]*** Cut end [11:26:05]Read from MH i2c: 01 07 00 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [11:26:05]process_action close_receipt done [11:26:05]requested_data is exist [11:26:05]produce_requested_data [11:26:05]requested_item fm.sn is exist - process it [11:26:05]wFMCommunicate request_size=4 [11:26:05]MH_SAM_APDU [11:26:05]CAPDU: 80 11 00 00 [11:26:05]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [11:26:05]Write i2c OK [11:26:05]MH_I2C_Read... [11:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:05]Read from MH i2c: E2 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 17 00 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 10 [11:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:26:05]wFMCommunicate OK [11:26:05]requested_item fd.num is exist - process it [11:26:05]SAM_PROTO_GetFieldsCounters [11:26:05]wFMCommunicate request_size=4 [11:26:05]MH_SAM_APDU [11:26:05]CAPDU: 80 13 00 00 [11:26:05]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [11:26:05]Write i2c OK [11:26:05]MH_I2C_Read... [11:26:05]Connected sock=10 [11:26:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E0 25 07 01 91 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4A 69 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1D 01 00 35 04 06 00 C7 51 51 F8 92 96 64 DF 22 C0 0A 8C AC ED [11:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:05]Read from MH i2c: E2 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 62 00 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 62 00 42 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 26 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [11:26:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 26 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:05]wFMCommunicate OK [11:26:05]SAM_PROTO_GetFieldsCounters done [11:26:05]requested_item shift.num is exist - process it [11:26:05]requested_item shift.opened is exist - process it [11:26:05]req_shift_opened [11:26:05]FM_GetShiftState [11:26:05]SAM_PROTO_GetShiftState [11:26:05]wFMCommunicate request_size=4 [11:26:05]MH_SAM_APDU [11:26:05]CAPDU: 80 13 01 00 [11:26:05]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [11:26:05]Write i2c OK [11:26:05]MH_I2C_Read... [11:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:05]Read from MH i2c: E2 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 0E 00 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6A [11:26:05]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:26:05]wFMCommunicate OK [11:26:05]SAM_PROTO_GetShiftState done [11:26:05]FM_GetShiftState done [11:26:05]req_shift_opened done [11:26:05]requested_item shift.open_date is exist - process it [11:26:05]req_shift_open_date [11:26:05]req_shift_open_date done [11:26:05]produce_requested_data done [11:26:05]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72998,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [11:26:05]process_action_free close_receipt [11:26:05]json_value_free [11:26:05]json_value_free done [11:26:05]process_json_proto returns [11:26:05]Send response to host [11:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72998,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [11:26:05]free response buf [11:26:05]execute_script done [11:26:05]execute_script returns [11:26:05]free content buf [11:26:05]Sock 9.Close socket [11:26:05]Sock 9.Thread stoped [11:26:10]recv_with_timeout no data received [11:26:10]CommunicateWithHost answer receiving error [11:26:10]CommunicateWithHost err = -3 [11:26:10]OFD Sender: Server communicate error [11:26:10]recv_with_timeout no data received [11:26:15]OFD Sender: Processing packet 72998 [packets to send 279, broken 278] [11:26:15]ProducePacketName [11:26:15]name=ofd_packets/00072998 [11:26:15]OFD Sender: To server: pG, [11:26:15]CommunicateWithHost lk.salyk.kg:30040 [11:26:15]ConnectInit lk.salyk.kg [11:27:33]ConnectInit Can't connect to host [11:27:36]OFD Sender: Processing packet 72998 [packets to send 279, broken 278] [11:27:36]ProducePacketName [11:27:36]name=ofd_packets/00072998 [11:27:36]OFD Sender: To server: pG, [11:27:36]CommunicateWithHost lk.salyk.kg:30040 [11:27:36]ConnectInit lk.salyk.kg [11:27:38]Connected sock=9 [11:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E0 25 07 01 91 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4A 69 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1D 01 00 35 04 06 00 C7 51 51 F8 92 96 64 DF 22 C0 0A 8C AC ED [11:27:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 78 6C 47 00 17 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1D 01 00 F4 03 04 00 5E 14 23 67 B6 04 01 00 00 52 3A 2F 16 D4 50 A7 A9 [11:27:39]CommunicateWithHost err = 0 [11:27:39]CheckOFDResponse [11:27:39]1017 (14) - 77093643461234 [11:27:39]1041 (16) - 0000000000874662 [11:27:39]1040 (4) - 72998 [11:27:39]1012 (4) - 31.10.2024 05:23 [11:27:39]1206 (1) - 0 [11:27:39]OFD Sender: Remove packet 72998 [11:27:39]ProducePacketName [11:27:39]name=ofd_packets/00072998 [11:27:39]NVStorageDeleteData [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:50]recv_with_timeout no data received [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:17]recv_with_timeout no data received [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:02]accept exits with 7 [11:30:02]New connection [11:30:02]New thread 3066703204 created [11:30:02]Thread 3066559844 joined [11:30:02]Waiting for new connection... [11:30:02] Sock 7.Parse request [11:30:02]Sock 7.Check first char [11:30:02]Sock 7.First char is OK [11:30:02]request: POST /json_proto HTTP/1.0 [11:30:02]Method: POST [11:30:02]URL: /json_proto [11:30:02]Method is POST - this is cgi request [11:30:02]url: /json_proto [11:30:02]query_string will be loaded in cgi processing [11:30:02]execute_cgi json_proto POST (null) [11:30:02]execute_cgi path=json_proto method=POST [11:30:02]POST find Content-Length [11:30:02]Host: 172.17.43.195:8080 [11:30:02]Content-Length: 792 [11:30:02]Content-Type: application/json [11:30:02] [11:30:02]POST finish read [11:30:02]Found Content-Length = 792 [11:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:02]execute_script... [11:30:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:02]POST & json_proto [11:30:02]process_json_proto [11:30:02]json parsed OK: [11:30:02]protocol is kg_v1.0 [11:30:02]action value=close_receipt [11:30:02]process_action close_receipt [11:30:02]cmd_close_receipt [11:30:02]MH_GetDate [11:30:02]Write to MH i2c: F0 00 00 44 01 34 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: F0 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: F0 09 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: F0 09 00 44 01 00 3A 6A 23 67 74 2C AD 66 1E [11:30:02]GetLastDocTimeStamp 1730373962 [11:30:02]current date 1730374202 [11:30:02]FM_GetShiftState [11:30:02]SAM_PROTO_GetShiftState [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 13 01 00 [11:30:02]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0E 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6C [11:30:02]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:30:02]wFMCommunicate OK [11:30:02]SAM_PROTO_GetShiftState done [11:30:02]FM_GetShiftState done [11:30:02]opened in 1730333258 [11:30:02]opened+sec_in_day 1730419658 [11:30:02]quantity*price = 0 [11:30:02]sum+1 = 1 [11:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 74 31.10.2024 11:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72999 ФПД: 81752178008262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113002&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72999&fm=81752178008262&tin=02508201610067®Number=0000000000091644&sum=0 [11:30:03]StoreToDocumentArchive [11:30:03]shift 557 fd 72999 [11:30:03]save to /storage/0557/doc_00072999 [11:30:03]save last doc name /storage/0557/doc_00072999 to /storage/kkm_last_doc_name [11:30:03]save OK [11:30:03]Clear old archive folders... [11:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:03]tlvbuf is 00191080 [11:30:03]SAM_PROTO_ClearQueue [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 09 00 00 [11:30:03]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [11:30:03]RAPDU: 90 00 [11:30:03]wFMCommunicate OK [11:30:03]SAM_PROTO_ClearQueue done [11:30:03]KKMCreateOFDPacket [11:30:03]OFDProtocolAddRootSTLVToBuf [11:30:03]FM_MakeSignedData [11:30:03]FM_MakeSignedData [11:30:03]SAM_PROTO_SignData [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 0D 01 02 [11:30:03]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [11:30:03]RAPDU: 90 00 [11:30:03]wFMCommunicate OK [11:30:03]wFMCommunicate request_size=255 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3A 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1D 01 00 35 04 06 00 4A [11:30:03]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3A 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1D 01 00 35 04 06 00 4A 00 00 AD [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [11:30:04]RAPDU: 90 00 [11:30:04]wFMCommunicate OK [11:30:04]wFMCommunicate request_size=10 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 0D 02 02 05 5A 69 87 A0 C6 [11:30:04]Write to MH i2c: E2 0D 00 55 01 80 0D 02 02 05 00 5A 69 87 A0 C6 00 00 8A [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [11:30:04]RAPDU: 90 00 [11:30:04]wFMCommunicate OK [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 0D 03 02 [11:30:04]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 0B 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 0B 00 56 01 00 F2 B6 03 5D C1 0A 69 E3 90 00 F2 [11:30:04]RAPDU: F2 B6 03 5D C1 0A 69 E3 90 00 [11:30:04]wFMCommunicate OK [11:30:04]SAM_PROTO_SignData done [11:30:04]FM_MakeSignedData done [11:30:04]CreateOFDProtocolMessage [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 11 00 00 [11:30:04]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 17 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 26 [11:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:30:04]wFMCommunicate OK [11:30:04]CreateOFDProtocolMessage done [11:30:04]OFDSenderStorePacket 72999 [11:30:04]StoreOFDPacket docnum=72999 [11:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8F 13 07 01 F3 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3A 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1D 01 00 35 04 06 00 4A 5A 69 87 A0 C6 F2 B6 03 5D C1 0A 69 E3 [11:30:04]CheckFolder [11:30:04]dirname=/storage/ofd_packets [11:30:04]CheckFolder done [11:30:04]ProducePacketName [11:30:04]name=ofd_packets/00072999 [11:30:04]NVStorageSaveData ofd_packets/00072999 [11:30:04]File name is /storage/ofd_packets/00072999 [11:30:04]Write 301 bytes [11:30:04]NVStorageSaveData done [11:30:04]OFDSenderStorePacket done [11:30:04]KKMCreateOFDPacket done [11:30:04]NVStorageSaveData kkm_last_timestamp [11:30:04]File name is /storage/kkm_last_timestamp [11:30:04]Write 4 bytes [11:30:04]NVStorageSaveData done [11:30:04]ExternCall_PrintAddStr [11:30:04]wPrintStart [11:30:04]Write to MH i2c: 01 00 00 58 01 59 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 07 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [11:30:04]RasterBufferAndPrint [11:30:04]line Счет N : (1)952599 [11:30:04]line ИНН: 02508201610067 [11:30:04]line Контрольно-Кассовый Чек [11:30:04]line ПРОДАЖА [11:30:04]line ТРК (МРК, ГНК) : 53 [11:30:04]line Товар: 2710124130 [11:30:04]line Аи-92-К-5 [11:30:04]line 14.950 * 0.00 [11:30:04]line = 0.00 [11:30:04]line НДС 12% НСП 1% [11:30:04]line > о реализуемом товаре [11:30:04]line ИТОГО: 0.00 [11:30:04]line НСП 1% : 0.00 [11:30:04]line НДС 12% : 0.00 [11:30:04]line Наличными: 0.00 [11:30:04]line Безнал.: 0.00 [11:30:04]line Место: АЗС № 113 "Партнер Нефть" [11:30:04]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:30:04]line СНО: Общий режим [11:30:04]line Чек 74 31.10.2024 11:30 [11:30:04]line Смена: 557 ФФД: 1.0 [11:30:04]line ЗНМ: 0300000087 [11:30:04]line РНМ: 0000000000091644 [11:30:04]line Версия ККМ: 001 [11:30:04]line Талоны: Топливная Карта [11:30:04]line 03047 [11:30:04]line ФМ: 0000000000874662 [11:30:04]line ФД: 72999 [11:30:04]line ФПД: 81752178008262 [11:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113002&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72999&fm=81752178008262&tin=02508201610067®Number=0000000000091644&sum=0 [11:30:04]written 0, free lines is 4095 [11:30:04]OFD Sender: Processing packet 72999 [packets to send 279, broken 278] [11:30:04]ProducePacketName [11:30:04]name=ofd_packets/00072999 [11:30:04]OFD Sender: To server: pG, [11:30:04]CommunicateWithHost lk.salyk.kg:30040 [11:30:04]ConnectInit lk.salyk.kg [11:30:04]Write to MH i2c: 01 00 00 82 01 83 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 07 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 DF 0C 75 [11:30:04]RasterBufferAndPrint [11:30:04]line [11:30:04]line [11:30:04]line [11:30:04]line [11:30:04]line [11:30:04]written 0, free lines is 3301 [11:30:04]MH_Cut [11:30:04]Write to MH i2c: D1 01 00 89 01 01 5C [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: D1 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: D1 01 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: D1 01 00 89 01 00 5B [11:30:04]Write to MH i2c: 01 00 00 8A 01 8B [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:05]*** Cut start [11:30:05]*** Partial cut [11:30:05]*** CUTSNS_PIN = 1 [11:30:05]*** CUTSNS_PIN = 0 [11:30:05]*** Brake cut motor [11:30:05]Connected sock=10 [11:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8F 13 07 01 F3 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3A 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1D 01 00 35 04 06 00 4A 5A 69 87 A0 C6 F2 B6 03 5D C1 0A 69 E3 [11:30:06]Read from MH i2c: 01 [11:30:06]MH_I2C_Read... [11:30:06]*** Stop cut motor [11:30:06]*** Cut end [11:30:06]Read from MH i2c: 01 07 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [11:30:06]process_action close_receipt done [11:30:06]requested_data is exist [11:30:06]produce_requested_data [11:30:06]requested_item fm.sn is exist - process it [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 11 00 00 [11:30:06]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5A [11:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:30:06]wFMCommunicate OK [11:30:06]requested_item fd.num is exist - process it [11:30:06]SAM_PROTO_GetFieldsCounters [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 13 00 00 [11:30:06]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 62 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 62 00 8C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 27 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 27 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_GetFieldsCounters done [11:30:06]requested_item shift.num is exist - process it [11:30:06]requested_item shift.opened is exist - process it [11:30:06]req_shift_opened [11:30:06]FM_GetShiftState [11:30:06]SAM_PROTO_GetShiftState [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 13 01 00 [11:30:06]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0E 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B4 [11:30:06]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_GetShiftState done [11:30:06]FM_GetShiftState done [11:30:06]req_shift_opened done [11:30:06]requested_item shift.open_date is exist - process it [11:30:06]req_shift_open_date [11:30:06]req_shift_open_date done [11:30:06]produce_requested_data done [11:30:06]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72999,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [11:30:06]process_action_free close_receipt [11:30:06]json_value_free [11:30:06]json_value_free done [11:30:06]process_json_proto returns [11:30:06]Send response to host [11:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72999,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [11:30:06]free response buf [11:30:06]execute_script done [11:30:06]execute_script returns [11:30:06]free content buf [11:30:06]Sock 7.Close socket [11:30:06]Sock 7.Thread stoped [11:30:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 20 D0 47 00 9E 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1D 01 00 F4 03 04 00 F1 14 23 67 B6 04 01 00 00 65 46 6A BC 0C B2 4A 22 [11:30:06]CommunicateWithHost err = 0 [11:30:06]CheckOFDResponse [11:30:06]1017 (14) - 77093643461234 [11:30:06]1041 (16) - 0000000000874662 [11:30:06]1040 (4) - 72999 [11:30:06]1012 (4) - 31.10.2024 05:26 [11:30:06]1206 (1) - 0 [11:30:06]OFD Sender: Remove packet 72999 [11:30:06]ProducePacketName [11:30:06]name=ofd_packets/00072999 [11:30:06]NVStorageDeleteData [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:20]recv_with_timeout no data received [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:36]recv_with_timeout no data received [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:18]recv_with_timeout no data received [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:53]recv_with_timeout no data received [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:17]accept exits with 9 [11:34:17]New connection [11:34:17]New thread 3066559844 created [11:34:17]Thread 3066703204 joined [11:34:17]Waiting for new connection... [11:34:17] Sock 9.Parse request [11:34:17]Sock 9.Check first char [11:34:17]Sock 9.First char is OK [11:34:17]request: POST /json_proto HTTP/1.0 [11:34:17]Method: POST [11:34:17]URL: /json_proto [11:34:17]Method is POST - this is cgi request [11:34:17]url: /json_proto [11:34:17]query_string will be loaded in cgi processing [11:34:17]execute_cgi json_proto POST (null) [11:34:17]execute_cgi path=json_proto method=POST [11:34:17]POST find Content-Length [11:34:17]Host: 172.17.43.195:8080 [11:34:17]Content-Length: 677 [11:34:17]Content-Type: application/json [11:34:17] [11:34:17]POST finish read [11:34:17]Found Content-Length = 677 [11:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:17]execute_script... [11:34:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:17]POST & json_proto [11:34:17]process_json_proto [11:34:17]json parsed OK: [11:34:17]protocol is kg_v1.0 [11:34:17]action value=close_receipt [11:34:17]process_action close_receipt [11:34:17]cmd_close_receipt [11:34:17]MH_GetDate [11:34:17]Write to MH i2c: F0 00 00 8E 01 7E [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: F0 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: F0 09 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: F0 09 00 8E 01 00 3A 6B 23 67 74 2C AD 66 69 [11:34:17]GetLastDocTimeStamp 1730374202 [11:34:17]current date 1730374458 [11:34:17]FM_GetShiftState [11:34:17]SAM_PROTO_GetShiftState [11:34:17]wFMCommunicate request_size=4 [11:34:17]MH_SAM_APDU [11:34:17]CAPDU: 80 13 01 00 [11:34:17]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:17]Read from MH i2c: E2 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 0E 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B6 [11:34:17]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:34:17]wFMCommunicate OK [11:34:17]SAM_PROTO_GetShiftState done [11:34:17]FM_GetShiftState done [11:34:17]opened in 1730333258 [11:34:17]opened+sec_in_day 1730419658 [11:34:17]quantity*price = 20003 [11:34:17]sum+1 = 20004 [11:34:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 75 31.10.2024 11:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73000 ФПД: 176307312332228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113418&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73000&fm=176307312332228&tin=02508201610067®Number=0000000000091644&sum=20000 [11:34:19]StoreToDocumentArchive [11:34:19]shift 557 fd 73000 [11:34:19]save to /storage/0557/doc_00073000 [11:34:19]save last doc name /storage/0557/doc_00073000 to /storage/kkm_last_doc_name [11:34:19]save OK [11:34:19]Clear old archive folders... [11:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:19]tlvbuf is 00192990 [11:34:19]SAM_PROTO_ClearQueue [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 09 00 00 [11:34:19]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [11:34:19]RAPDU: 90 00 [11:34:19]wFMCommunicate OK [11:34:19]SAM_PROTO_ClearQueue done [11:34:19]KKMCreateOFDPacket [11:34:19]OFDProtocolAddRootSTLVToBuf [11:34:19]FM_MakeSignedData [11:34:19]FM_MakeSignedData [11:34:19]SAM_PROTO_SignData [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 0D 01 02 [11:34:19]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [11:34:19]RAPDU: 90 00 [11:34:19]wFMCommunicate OK [11:34:19]wFMCommunicate request_size=255 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3A 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1D 01 00 35 04 06 00 A0 [11:34:19]Write to MH i2c: E2 02 01 9E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3A 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1D 01 00 35 04 06 00 A0 00 00 F7 [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]recv_with_timeout no data received [11:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [11:34:19]RAPDU: 90 00 [11:34:19]wFMCommunicate OK [11:34:19]wFMCommunicate request_size=10 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 0D 02 02 05 59 BE B9 0D C4 [11:34:19]Write to MH i2c: E2 0D 00 9F 01 80 0D 02 02 05 00 59 BE B9 0D C4 00 00 C5 [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [11:34:19]RAPDU: 90 00 [11:34:19]wFMCommunicate OK [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 0D 03 02 [11:34:19]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 0B 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 0B 00 A0 01 00 99 B5 CA B2 CD D5 FE FB 90 00 82 [11:34:19]RAPDU: 99 B5 CA B2 CD D5 FE FB 90 00 [11:34:19]wFMCommunicate OK [11:34:19]SAM_PROTO_SignData done [11:34:19]FM_MakeSignedData done [11:34:19]CreateOFDProtocolMessage [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 11 00 00 [11:34:19]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 17 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 70 [11:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:34:19]wFMCommunicate OK [11:34:19]CreateOFDProtocolMessage done [11:34:19]OFDSenderStorePacket 73000 [11:34:19]StoreOFDPacket docnum=73000 [11:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CE 4C 07 01 E3 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3A 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1D 01 00 35 04 06 00 A0 59 BE B9 0D C4 99 B5 CA B2 CD D5 FE FB [11:34:19]CheckFolder [11:34:19]dirname=/storage/ofd_packets [11:34:19]CheckFolder done [11:34:19]ProducePacketName [11:34:19]name=ofd_packets/00073000 [11:34:19]NVStorageSaveData ofd_packets/00073000 [11:34:19]File name is /storage/ofd_packets/00073000 [11:34:19]Write 301 bytes [11:34:19]NVStorageSaveData done [11:34:19]OFDSenderStorePacket done [11:34:19]KKMCreateOFDPacket done [11:34:19]NVStorageSaveData kkm_last_timestamp [11:34:19]File name is /storage/kkm_last_timestamp [11:34:19]Write 4 bytes [11:34:19]NVStorageSaveData done [11:34:19]ExternCall_PrintAddStr [11:34:19]wPrintStart [11:34:19]Write to MH i2c: 01 00 00 A2 01 A3 [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: 01 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: 01 07 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [11:34:19]RasterBufferAndPrint [11:34:19]line Счет N : (1)952600 [11:34:19]line ИНН: 02508201610067 [11:34:19]line Контрольно-Кассовый Чек [11:34:19]line ПРОДАЖА [11:34:19]line ТРК (МРК, ГНК) : 63 [11:34:19]line Товар: 2710124130 [11:34:19]line Аи-92-К-5 [11:34:19]line 2.990 * 66.90 [11:34:19]line = 200.03 [11:34:19]line НДС 12% НСП 1% [11:34:19]line > о реализуемом товаре [11:34:19]line ОКРУГЛЕНИЕ: -0.03 [11:34:19]line ИТОГО: 200.00 [11:34:19]line Внесено: 200.00 [11:34:19]line СДАЧА: 0.00 [11:34:19]line НСП 1% : 1.77 [11:34:19]line НДС 12% : 21.24 [11:34:19]line Наличными: 200.00 [11:34:19]line Безнал.: 0.00 [11:34:19]line Место: АЗС № 113 "Партнер Нефть" [11:34:19]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:34:19]line СНО: Общий режим [11:34:19]line Чек 75 31.10.2024 11:34 [11:34:19]line Смена: 557 ФФД: 1.0 [11:34:19]line ЗНМ: 0300000087 [11:34:19]line РНМ: 0000000000091644 [11:34:19]line Версия ККМ: 001 [11:34:19]line ФМ: 0000000000874662 [11:34:19]line ФД: 73000 [11:34:19]line ФПД: 176307312332228 [11:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113418&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73000&fm=176307312332228&tin=02508201610067®Number=0000000000091644&sum=20000 [11:34:19]OFD Sender: Processing packet 73000 [packets to send 279, broken 278] [11:34:19]ProducePacketName [11:34:19]name=ofd_packets/00073000 [11:34:19]OFD Sender: To server: pG, [11:34:19]CommunicateWithHost lk.salyk.kg:30040 [11:34:19]ConnectInit lk.salyk.kg [11:34:19]written 0, free lines is 4095 [11:34:20]Write to MH i2c: 01 00 00 CD 01 CE [11:34:20]Write i2c OK [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: 01 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: 01 07 00 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 C6 0C A7 [11:34:20]RasterBufferAndPrint [11:34:20]line [11:34:20]line [11:34:20]line [11:34:20]line [11:34:20]line [11:34:20]written 0, free lines is 3276 [11:34:20]MH_Cut [11:34:20]Write to MH i2c: D1 01 00 D4 01 01 A7 [11:34:20]Write i2c OK [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: D1 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: D1 01 00 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: D1 01 00 D4 01 00 A6 [11:34:20]Write to MH i2c: 01 00 00 D5 01 D6 [11:34:20]Write i2c OK [11:34:20]MH_I2C_Read... [11:34:21]*** Cut start [11:34:21]*** Partial cut [11:34:21]*** CUTSNS_PIN = 1 [11:34:21]*** CUTSNS_PIN = 0 [11:34:21]*** Brake cut motor [11:34:21]Read from MH i2c: 01 [11:34:21]MH_I2C_Read... [11:34:21]*** Stop cut motor [11:34:21]*** Cut end [11:34:21]Read from MH i2c: 01 07 00 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [11:34:21]process_action close_receipt done [11:34:21]requested_data is exist [11:34:21]produce_requested_data [11:34:21]requested_item fm.sn is exist - process it [11:34:21]wFMCommunicate request_size=4 [11:34:21]MH_SAM_APDU [11:34:21]CAPDU: 80 11 00 00 [11:34:21]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:21]Read from MH i2c: E2 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: E2 17 00 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [11:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:34:21]wFMCommunicate OK [11:34:21]requested_item fd.num is exist - process it [11:34:21]SAM_PROTO_GetFieldsCounters [11:34:21]wFMCommunicate request_size=4 [11:34:21]MH_SAM_APDU [11:34:21]CAPDU: 80 13 00 00 [11:34:21]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:21]Read from MH i2c: E2 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: E2 62 00 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 28 1D 01 00 0E 04 04 00 2D 02 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 CB [11:34:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 28 1D 01 00 0E 04 04 00 2D 02 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 [11:34:21]wFMCommunicate OK [11:34:21]SAM_PROTO_GetFieldsCounters done [11:34:21]requested_item shift.num is exist - process it [11:34:21]requested_item shift.opened is exist - process it [11:34:21]req_shift_opened [11:34:21]FM_GetShiftState [11:34:21]SAM_PROTO_GetShiftState [11:34:21]wFMCommunicate request_size=4 [11:34:21]MH_SAM_APDU [11:34:21]CAPDU: 80 13 01 00 [11:34:21]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:22]Read from MH i2c: E2 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 0E 00 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 FF [11:34:22]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:34:22]wFMCommunicate OK [11:34:22]SAM_PROTO_GetShiftState done [11:34:22]FM_GetShiftState done [11:34:22]req_shift_opened done [11:34:22]requested_item shift.open_date is exist - process it [11:34:22]req_shift_open_date [11:34:22]req_shift_open_date done [11:34:22]produce_requested_data done [11:34:22]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73000,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [11:34:22]process_action_free close_receipt [11:34:22]json_value_free [11:34:22]json_value_free done [11:34:22]process_json_proto returns [11:34:22]Send response to host [11:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73000,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [11:34:22]free response buf [11:34:22]execute_script done [11:34:22]execute_script returns [11:34:22]free content buf [11:34:22]Sock 9.Close socket [11:34:22]Sock 9.Thread stoped [11:34:24]ConnectInit Can't take IP for lk.salyk.kg [11:34:24]CommunicateWithHost connect error [11:34:24]CommunicateWithHost err = -1 [11:34:24]OFD Sender: Server communicate error [11:34:29]OFD Sender: Processing packet 73000 [packets to send 279, broken 278] [11:34:29]ProducePacketName [11:34:29]name=ofd_packets/00073000 [11:34:29]OFD Sender: To server: pG, [11:34:29]CommunicateWithHost lk.salyk.kg:30040 [11:34:29]ConnectInit lk.salyk.kg [11:34:32]Connected sock=7 [11:34:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CE 4C 07 01 E3 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3A 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1D 01 00 35 04 06 00 A0 59 BE B9 0D C4 99 B5 CA B2 CD D5 FE FB [11:34:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 3D A1 47 00 34 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1D 01 00 F4 03 04 00 FC 15 23 67 B6 04 01 00 00 60 C1 BF 65 E3 BC 70 6E [11:34:33]CommunicateWithHost err = 0 [11:34:33]CheckOFDResponse [11:34:33]1017 (14) - 77093643461234 [11:34:33]1041 (16) - 0000000000874662 [11:34:33]1040 (4) - 73000 [11:34:33]1012 (4) - 31.10.2024 05:30 [11:34:33]1206 (1) - 0 [11:34:33]OFD Sender: Remove packet 73000 [11:34:33]ProducePacketName [11:34:33]name=ofd_packets/00073000 [11:34:33]NVStorageDeleteData [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:57]recv_with_timeout no data received [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:33]recv_with_timeout no data received [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:47]recv_with_timeout no data received [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:36:59]recv_with_timeout no data received [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [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:57]recv_with_timeout no data received [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:45:00]OFD Sender: No OFD packet to send [11:45:02]recv_with_timeout no data received [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:50]recv_with_timeout no data received [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:14]recv_with_timeout no data received [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:53]recv_with_timeout no data received [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:17]recv_with_timeout no data received [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:50]recv_with_timeout no data received [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:22]recv_with_timeout no data received [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:19]accept exits with 10 [11:51:19]New connection [11:51:19]New thread 3066703204 created [11:51:19]Thread 3066559844 joined [11:51:19]Waiting for new connection... [11:51:19] Sock 10.Parse request [11:51:19]Sock 10.Check first char [11:51:19]Sock 10.First char is OK [11:51:19]request: POST /json_proto HTTP/1.0 [11:51:19]Method: POST [11:51:19]URL: /json_proto [11:51:19]Method is POST - this is cgi request [11:51:19]url: /json_proto [11:51:19]query_string will be loaded in cgi processing [11:51:19]execute_cgi json_proto POST (null) [11:51:19]execute_cgi path=json_proto method=POST [11:51:19]POST find Content-Length [11:51:19]Host: 172.17.43.195:8080 [11:51:19]Content-Length: 792 [11:51:19]Content-Type: application/json [11:51:19] [11:51:19]POST finish read [11:51:19]Found Content-Length = 792 [11:51:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:19]execute_script... [11:51: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)952602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:19]POST & json_proto [11:51:19]process_json_proto [11:51:19]json parsed OK: [11:51:19]protocol is kg_v1.0 [11:51:19]action value=close_receipt [11:51:19]process_action close_receipt [11:51:19]cmd_close_receipt [11:51:19]MH_GetDate [11:51:19]Write to MH i2c: F0 00 00 D9 01 C9 [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: F0 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: F0 09 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: F0 09 00 D9 01 00 37 6F 23 67 74 2C AD 66 B5 [11:51:19]GetLastDocTimeStamp 1730374458 [11:51:19]current date 1730375479 [11:51:19]FM_GetShiftState [11:51:19]SAM_PROTO_GetShiftState [11:51:19]wFMCommunicate request_size=4 [11:51:19]MH_SAM_APDU [11:51:19]CAPDU: 80 13 01 00 [11:51:19]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:19]Read from MH i2c: E2 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 0E 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 01 [11:51:19]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:51:19]wFMCommunicate OK [11:51:19]SAM_PROTO_GetShiftState done [11:51:19]FM_GetShiftState done [11:51:19]opened in 1730333258 [11:51:19]opened+sec_in_day 1730419658 [11:51:19]quantity*price = 0 [11:51:19]sum+1 = 1 [11:51:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 76 31.10.2024 11:51 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73001 ФПД: 262614950427263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T115119&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73001&fm=262614950427263&tin=02508201610067®Number=0000000000091644&sum=0 [11:51:20]StoreToDocumentArchive [11:51:20]shift 557 fd 73001 [11:51:20]save to /storage/0557/doc_00073001 [11:51:20]save last doc name /storage/0557/doc_00073001 to /storage/kkm_last_doc_name [11:51:20]save OK [11:51:20]Clear old archive folders... [11:51:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:20]tlvbuf is 000F38C0 [11:51:20]SAM_PROTO_ClearQueue [11:51:20]wFMCommunicate request_size=4 [11:51:20]MH_SAM_APDU [11:51:20]CAPDU: 80 09 00 00 [11:51:20]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [11:51:20]RAPDU: 90 00 [11:51:20]wFMCommunicate OK [11:51:20]SAM_PROTO_ClearQueue done [11:51:20]KKMCreateOFDPacket [11:51:20]OFDProtocolAddRootSTLVToBuf [11:51:20]FM_MakeSignedData [11:51:20]FM_MakeSignedData [11:51:20]SAM_PROTO_SignData [11:51:20]wFMCommunicate request_size=4 [11:51:20]MH_SAM_APDU [11:51:20]CAPDU: 80 0D 01 02 [11:51:20]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [11:51:20]RAPDU: 90 00 [11:51:20]wFMCommunicate OK [11:51:20]wFMCommunicate request_size=255 [11:51:20]MH_SAM_APDU [11:51: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 37 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 29 1D 01 00 35 04 06 00 EE [11:51:20]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 37 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 29 1D 01 00 35 04 06 00 EE 00 00 83 [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:21]Read from MH i2c: E2 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 03 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [11:51:21]RAPDU: 90 00 [11:51:21]wFMCommunicate OK [11:51:21]wFMCommunicate request_size=10 [11:51:21]MH_SAM_APDU [11:51:21]CAPDU: 80 0D 02 02 05 D8 CE D5 3A 7F [11:51:21]Write to MH i2c: E2 0D 00 EA 01 80 0D 02 02 05 00 D8 CE D5 3A 7F 00 00 A3 [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:21]Read from MH i2c: E2 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 03 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [11:51:21]RAPDU: 90 00 [11:51:21]wFMCommunicate OK [11:51:21]wFMCommunicate request_size=4 [11:51:21]MH_SAM_APDU [11:51:21]CAPDU: 80 0D 03 02 [11:51:21]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:21]Read from MH i2c: E2 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 0B 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 0B 00 EB 01 00 4F 25 9A 06 93 4E 73 43 90 00 13 [11:51:21]RAPDU: 4F 25 9A 06 93 4E 73 43 90 00 [11:51:21]wFMCommunicate OK [11:51:21]SAM_PROTO_SignData done [11:51:21]FM_MakeSignedData done [11:51:21]CreateOFDProtocolMessage [11:51:21]wFMCommunicate request_size=4 [11:51:21]MH_SAM_APDU [11:51:21]CAPDU: 80 11 00 00 [11:51:21]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:21]Read from MH i2c: E2 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 17 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BB [11:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:51:21]wFMCommunicate OK [11:51:21]CreateOFDProtocolMessage done [11:51:21]OFDSenderStorePacket 73001 [11:51:21]StoreOFDPacket docnum=73001 [11:51:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 20 4F 07 01 E4 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 37 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 29 1D 01 00 35 04 06 00 EE D8 CE D5 3A 7F 4F 25 9A 06 93 4E 73 43 [11:51:21]CheckFolder [11:51:21]dirname=/storage/ofd_packets [11:51:21]CheckFolder done [11:51:21]ProducePacketName [11:51:21]name=ofd_packets/00073001 [11:51:21]NVStorageSaveData ofd_packets/00073001 [11:51:21]File name is /storage/ofd_packets/00073001 [11:51:21]Write 301 bytes [11:51:21]NVStorageSaveData done [11:51:21]OFDSenderStorePacket done [11:51:21]KKMCreateOFDPacket done [11:51:21]NVStorageSaveData kkm_last_timestamp [11:51:21]File name is /storage/kkm_last_timestamp [11:51:21]Write 4 bytes [11:51:21]NVStorageSaveData done [11:51:21]ExternCall_PrintAddStr [11:51:21]wPrintStart [11:51:21]Write to MH i2c: 01 00 00 ED 01 EE [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 07 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [11:51:21]RasterBufferAndPrint [11:51:21]line Счет N : (1)952602 [11:51:21]line ИНН: 02508201610067 [11:51:21]line Контрольно-Кассовый Чек [11:51:21]line ПРОДАЖА [11:51:21]line ТРК (МРК, ГНК) : 42 [11:51:21]line Товар: 2710124130 [11:51:21]line Аи-92-К-5 [11:51:21]line 10.000 * 0.00 [11:51:21]line = 0.00 [11:51:21]line НДС 12% НСП 1% [11:51:21]line > о реализуемом товаре [11:51:21]line ИТОГО: 0.00 [11:51:21]line НСП 1% : 0.00 [11:51:21]line НДС 12% : 0.00 [11:51:21]line Наличными: 0.00 [11:51:21]line Безнал.: 0.00 [11:51:21]line Место: АЗС № 113 "Партнер Нефть" [11:51:21]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:51:21]line СНО: Общий режим [11:51:21]line Чек 76 31.10.2024 11:51 [11:51:21]line Смена: 557 ФФД: 1.0 [11:51:21]line ЗНМ: 0300000087 [11:51:21]line РНМ: 0000000000091644 [11:51:21]line Версия ККМ: 001 [11:51:21]line Талоны: Топливная Карта [11:51:21]line 03047 [11:51:21]line ФМ: 0000000000874662 [11:51:21]line ФД: 73001 [11:51:21]line ФПД: 262614950427263 [11:51:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T115119&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73001&fm=262614950427263&tin=02508201610067®Number=0000000000091644&sum=0 [11:51:21]written 0, free lines is 4095 [11:51:21]OFD Sender: Processing packet 73001 [packets to send 279, broken 278] [11:51:21]ProducePacketName [11:51:21]name=ofd_packets/00073001 [11:51:21]OFD Sender: To server: pG, [11:51:21]CommunicateWithHost lk.salyk.kg:30040 [11:51:21]ConnectInit lk.salyk.kg [11:51:21]Write to MH i2c: 01 00 00 17 02 19 [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 07 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 D7 0C 03 [11:51:21]RasterBufferAndPrint [11:51:21]line [11:51:21]line [11:51:21]line [11:51:21]line [11:51:21]line [11:51:21]written 0, free lines is 3293 [11:51:21]MH_Cut [11:51:21]Write to MH i2c: D1 01 00 1E 02 01 F2 [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: D1 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: D1 01 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: D1 01 00 1E 02 00 F1 [11:51:21]Write to MH i2c: 01 00 00 1F 02 21 [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:22]Connected sock=11 [11:51:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 20 4F 07 01 E4 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 37 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 29 1D 01 00 35 04 06 00 EE D8 CE D5 3A 7F 4F 25 9A 06 93 4E 73 43 [11:51:22]*** Cut start [11:51:22]*** Partial cut [11:51:22]*** CUTSNS_PIN = 1 [11:51:22]*** CUTSNS_PIN = 0 [11:51:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 5E A4 47 00 12 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 29 1D 01 00 F4 03 04 00 EE 19 23 67 B6 04 01 00 00 DB 44 E5 89 B2 68 3C E1 [11:51:22]CommunicateWithHost err = 0 [11:51:22]CheckOFDResponse [11:51:22]1017 (14) - 77093643461234 [11:51:22]1041 (16) - 0000000000874662 [11:51:22]1040 (4) - 73001 [11:51:22]1012 (4) - 31.10.2024 05:47 [11:51:22]1206 (1) - 0 [11:51:22]OFD Sender: Remove packet 73001 [11:51:22]ProducePacketName [11:51:22]name=ofd_packets/00073001 [11:51:22]NVStorageDeleteData [11:51:22]*** Brake cut motor [11:51:23]Read from MH i2c: 01 [11:51:23]MH_I2C_Read... [11:51:23]*** Stop cut motor [11:51:23]*** Cut end [11:51:23]Read from MH i2c: 01 07 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [11:51:23]process_action close_receipt done [11:51:23]requested_data is exist [11:51:23]produce_requested_data [11:51:23]requested_item fm.sn is exist - process it [11:51:23]wFMCommunicate request_size=4 [11:51:23]MH_SAM_APDU [11:51:23]CAPDU: 80 11 00 00 [11:51:23]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [11:51:23]Write i2c OK [11:51:23]MH_I2C_Read... [11:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:23]Read from MH i2c: E2 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 17 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F0 [11:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:51:23]wFMCommunicate OK [11:51:23]requested_item fd.num is exist - process it [11:51:23]SAM_PROTO_GetFieldsCounters [11:51:23]wFMCommunicate request_size=4 [11:51:23]MH_SAM_APDU [11:51:23]CAPDU: 80 13 00 00 [11:51:23]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [11:51:23]Write i2c OK [11:51:23]MH_I2C_Read... [11:51:23]OFD Sender: No OFD packet to send [11:51:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:23]Read from MH i2c: E2 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 62 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 29 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [11:51:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 29 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:23]wFMCommunicate OK [11:51:23]SAM_PROTO_GetFieldsCounters done [11:51:23]requested_item shift.num is exist - process it [11:51:23]requested_item shift.opened is exist - process it [11:51:23]req_shift_opened [11:51:23]FM_GetShiftState [11:51:23]SAM_PROTO_GetShiftState [11:51:23]wFMCommunicate request_size=4 [11:51:23]MH_SAM_APDU [11:51:23]CAPDU: 80 13 01 00 [11:51:23]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [11:51:23]Write i2c OK [11:51:23]MH_I2C_Read... [11:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:23]Read from MH i2c: E2 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 0E 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4A [11:51:23]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [11:51:23]wFMCommunicate OK [11:51:23]SAM_PROTO_GetShiftState done [11:51:23]FM_GetShiftState done [11:51:23]req_shift_opened done [11:51:23]requested_item shift.open_date is exist - process it [11:51:23]req_shift_open_date [11:51:23]req_shift_open_date done [11:51:23]produce_requested_data done [11:51:23]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73001,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [11:51:23]process_action_free close_receipt [11:51:23]json_value_free [11:51:23]json_value_free done [11:51:23]process_json_proto returns [11:51:23]Send response to host [11:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73001,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [11:51:23]free response buf [11:51:23]execute_script done [11:51:23]execute_script returns [11:51:23]free content buf [11:51:23]Sock 10.Close socket [11:51:23]Sock 10.Thread stoped [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:20]recv_with_timeout no data received [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]accept exits with 9 [11:54:48]New connection [11:54:48]New thread 3066559844 created [11:54:48]Thread 3066703204 joined [11:54:48]Waiting for new connection... [11:54:48] Sock 9.Parse request [11:54:48]Sock 9.Check first char [11:54:48]Sock 9.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.43.195:8080 [11:54:48]Content-Length: 663 [11:54:48]Content-Type: application/json [11:54:48] [11:54:48]POST finish read [11:54:48]Found Content-Length = 663 [11:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 : (1)952603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 23 02 14 [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 23 02 00 08 70 23 67 74 2C AD 66 D2 [11:54:48]GetLastDocTimeStamp 1730375479 [11:54:48]current date 1730375688 [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 24 02 80 13 01 00 00 00 00 00 A3 [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 24 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4C [11:54:48]RAPDU: 09 00 01 4A CA 22 67 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 1730333258 [11:54:48]opened+sec_in_day 1730419658 [11:54:48]quantity*price = 150001 [11:54:48]sum+1 = 150002 [11:54:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 77 31.10.2024 11:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73002 ФПД: 223032829495134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T115448&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73002&fm=223032829495134&tin=02508201610067®Number=0000000000091644&sum=150000 [11:54:49]StoreToDocumentArchive [11:54:49]shift 557 fd 73002 [11:54:49]save to /storage/0557/doc_00073002 [11:54:49]save last doc name /storage/0557/doc_00073002 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=244 [11:54:49]tlvbuf is 00176E70 [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 31 02 80 09 00 00 00 00 00 00 A5 [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 31 02 00 90 00 A7 [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 32 02 80 0D 01 02 00 00 00 00 AD [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 32 02 00 90 00 A8 [11:54:49]RAPDU: 90 00 [11:54:49]wFMCommunicate OK [11:54:49]wFMCommunicate request_size=253 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 08 70 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2A 1D 01 00 35 04 06 00 CA D8 E0 93 47 5E [11:54:49]Write to MH i2c: E2 00 01 33 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 08 70 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2A 1D 01 00 35 04 06 00 CA D8 E0 93 47 5E 00 00 CE [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 0D 02 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 33 02 00 90 00 A9 [11:54:49]RAPDU: 90 00 [11:54:49]wFMCommunicate OK [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 0D 03 02 [11:54:49]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 0B 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 0B 00 34 02 00 28 8F 54 E6 5A 56 07 90 90 00 EA [11:54:49]RAPDU: 28 8F 54 E6 5A 56 07 90 90 00 [11:54:49]wFMCommunicate OK [11:54:49]SAM_PROTO_SignData done [11:54:49]FM_MakeSignedData done [11:54:49]CreateOFDProtocolMessage [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 11 00 00 [11:54:49]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 17 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [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":"0000000000874662","fd.num":73002,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [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 9.Close socket [11:54:52]Sock 9.Thread stoped [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:05]ConnectInit Can't connect to host [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:20]recv_with_timeout no data received [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:33]recv_with_timeout no data received [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:50]ConnectInit Can't connect to host [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:50]recv_with_timeout no data received [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:45]recv_with_timeout no data received [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:28]recv_with_timeout no data received [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:30]recv_with_timeout no data received [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:35]recv_with_timeout no data received [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:14]recv_with_timeout no data received [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:31]recv_with_timeout no data received [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:10]recv_with_timeout no data received [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:18]accept exits with 10 [12:09:18]New connection [12:09:18]New thread 3066703204 created [12:09:18]Thread 3066559844 joined [12:09:18]Waiting for new connection... [12:09:18] Sock 10.Parse request [12:09:18]Sock 10.Check first char [12:09:18]Sock 10.First char is OK [12:09:18]request: POST /json_proto HTTP/1.0 [12:09:18]Method: POST [12:09:18]URL: /json_proto [12:09:18]Method is POST - this is cgi request [12:09:18]url: /json_proto [12:09:18]query_string will be loaded in cgi processing [12:09:18]execute_cgi json_proto POST (null) [12:09:18]execute_cgi path=json_proto method=POST [12:09:18]POST find Content-Length [12:09:18]Host: 172.17.43.195:8080 [12:09:18]Content-Length: 800 [12:09:18]Content-Type: application/json [12:09:18] [12:09:18]POST finish read [12:09:18]Found Content-Length = 800 [12:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:18]execute_script... [12:09:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:18]POST & json_proto [12:09:18]process_json_proto [12:09:18]json parsed OK: [12:09:18]protocol is kg_v1.0 [12:09:18]action value=close_receipt [12:09:18]process_action close_receipt [12:09:18]cmd_close_receipt [12:09:18]MH_GetDate [12:09:18]Write to MH i2c: F0 00 00 6D 02 5E [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: F0 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: F0 09 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: F0 09 00 6D 02 00 6E 73 23 67 74 2C AD 66 85 [12:09:18]GetLastDocTimeStamp 1730375688 [12:09:18]current date 1730376558 [12:09:18]FM_GetShiftState [12:09:18]SAM_PROTO_GetShiftState [12:09:18]wFMCommunicate request_size=4 [12:09:18]MH_SAM_APDU [12:09:18]CAPDU: 80 13 01 00 [12:09:18]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 0E 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 96 [12:09:18]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:09:18]wFMCommunicate OK [12:09:18]SAM_PROTO_GetShiftState done [12:09:18]FM_GetShiftState done [12:09:18]opened in 1730333258 [12:09:18]opened+sec_in_day 1730419658 [12:09:18]quantity*price = 30038 [12:09:18]sum+1 = 30039 [12:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 78 31.10.2024 12:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73003 ФПД: 22482791602749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120918&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73003&fm=22482791602749&tin=02508201610067®Number=0000000000091644&sum=30038 [12:09:19]StoreToDocumentArchive [12:09:19]shift 557 fd 73003 [12:09:19]save to /storage/0557/doc_00073003 [12:09:19]save last doc name /storage/0557/doc_00073003 to /storage/kkm_last_doc_name [12:09:19]save OK [12:09:19]Clear old archive folders... [12:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:19]tlvbuf is B6F1BB60 [12:09:19]SAM_PROTO_ClearQueue [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 09 00 00 [12:09:19]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [12:09:19]RAPDU: 90 00 [12:09:19]wFMCommunicate OK [12:09:19]SAM_PROTO_ClearQueue done [12:09:19]KKMCreateOFDPacket [12:09:19]OFDProtocolAddRootSTLVToBuf [12:09:19]FM_MakeSignedData [12:09:19]FM_MakeSignedData [12:09:19]SAM_PROTO_SignData [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 0D 01 02 [12:09:19]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [12:09:19]RAPDU: 90 00 [12:09:19]wFMCommunicate OK [12:09:19]wFMCommunicate request_size=255 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6E 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1D 01 00 35 04 06 00 14 [12:09:19]Write to MH i2c: E2 02 01 7D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6E 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1D 01 00 35 04 06 00 14 00 00 0B [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [12:09:20]RAPDU: 90 00 [12:09:20]wFMCommunicate OK [12:09:20]wFMCommunicate request_size=10 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 0D 02 02 05 72 AE CE 9A 3D [12:09:20]Write to MH i2c: E2 0D 00 7E 02 80 0D 02 02 05 00 72 AE CE 9A 3D 00 00 C9 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [12:09:20]RAPDU: 90 00 [12:09:20]wFMCommunicate OK [12:09:20]wFMCommunicate request_size=4 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 0D 03 02 [12:09:20]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 0B 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 0B 00 7F 02 00 75 22 FB C5 32 21 6B 06 90 00 18 [12:09:20]RAPDU: 75 22 FB C5 32 21 6B 06 90 00 [12:09:20]wFMCommunicate OK [12:09:20]SAM_PROTO_SignData done [12:09:20]FM_MakeSignedData done [12:09:20]CreateOFDProtocolMessage [12:09:20]wFMCommunicate request_size=4 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 11 00 00 [12:09:20]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 17 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 50 [12:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:09:20]wFMCommunicate OK [12:09:20]CreateOFDProtocolMessage done [12:09:20]OFDSenderStorePacket 73003 [12:09:20]StoreOFDPacket docnum=73003 [12:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 ED 6C 07 01 C0 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6E 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1D 01 00 35 04 06 00 14 72 AE CE 9A 3D 75 22 FB C5 32 21 6B 06 [12:09:20]CheckFolder [12:09:20]dirname=/storage/ofd_packets [12:09:20]CheckFolder done [12:09:20]ProducePacketName [12:09:20]name=ofd_packets/00073003 [12:09:20]NVStorageSaveData ofd_packets/00073003 [12:09:20]File name is /storage/ofd_packets/00073003 [12:09:20]Write 301 bytes [12:09:20]NVStorageSaveData done [12:09:20]OFDSenderStorePacket done [12:09:20]KKMCreateOFDPacket done [12:09:20]NVStorageSaveData kkm_last_timestamp [12:09:20]File name is /storage/kkm_last_timestamp [12:09:20]Write 4 bytes [12:09:20]NVStorageSaveData done [12:09:20]ExternCall_PrintAddStr [12:09:20]wPrintStart [12:09:20]Write to MH i2c: 01 00 00 81 02 83 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [12:09:20]RasterBufferAndPrint [12:09:20]line Счет N : (1)952604 [12:09:20]line ИНН: 02508201610067 [12:09:20]line Контрольно-Кассовый Чек [12:09:20]line ПРОДАЖА [12:09:20]line ТРК (МРК, ГНК) : 42 [12:09:20]line Товар: 2710124130 [12:09:20]line Аи-92-К-5 [12:09:20]line 4.490 * 66.90 [12:09:20]line = 300.38 [12:09:20]line НДС 12% НСП 1% [12:09:20]line > о реализуемом товаре [12:09:20]line ИТОГО: 300.38 [12:09:20]line НСП 1% : 2.66 [12:09:20]line НДС 12% : 31.90 [12:09:20]line Наличными: 0.00 [12:09:20]line Безнал.: 300.38 [12:09:20]line Место: АЗС № 113 "Партнер Нефть" [12:09:20]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:09:20]line СНО: Общий режим [12:09:20]line Чек 78 31.10.2024 12:09 [12:09:20]line Смена: 557 ФФД: 1.0 [12:09:20]line ЗНМ: 0300000087 [12:09:20]line РНМ: 0000000000091644 [12:09:20]line Версия ККМ: 001 [12:09:20]line Платежная система: O! деньги [12:09:20]line ФМ: 0000000000874662 [12:09:20]line ФД: 73003 [12:09:20]line ФПД: 22482791602749 [12:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120918&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73003&fm=22482791602749&tin=02508201610067®Number=0000000000091644&sum=30038 [12:09:20]OFD Sender: Processing packet 73003 [packets to send 279, broken 278] [12:09:20]ProducePacketName [12:09:20]name=ofd_packets/00073003 [12:09:20]OFD Sender: To server: pG, [12:09:20]CommunicateWithHost lk.salyk.kg:30040 [12:09:20]ConnectInit lk.salyk.kg [12:09:20]written 0, free lines is 4095 [12:09:20]Write to MH i2c: 01 00 00 AB 02 AD [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 DE 0C 9E [12:09:20]RasterBufferAndPrint [12:09:20]line [12:09:20]line [12:09:20]line [12:09:20]line [12:09:20]line [12:09:20]written 0, free lines is 3301 [12:09:20]MH_Cut [12:09:20]Write to MH i2c: D1 01 00 B2 02 01 86 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: D1 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: D1 01 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: D1 01 00 B2 02 00 85 [12:09:20]Write to MH i2c: 01 00 00 B3 02 B5 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:21]*** Cut start [12:09:21]*** Partial cut [12:09:21]*** CUTSNS_PIN = 1 [12:09:21]*** CUTSNS_PIN = 0 [12:09:22]*** Brake cut motor [12:09:22]Read from MH i2c: 01 [12:09:22]MH_I2C_Read... [12:09:22]*** Stop cut motor [12:09:22]*** Cut end [12:09:22]Read from MH i2c: 01 07 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [12:09:22]process_action close_receipt done [12:09:22]requested_data is exist [12:09:22]produce_requested_data [12:09:22]requested_item fm.sn is exist - process it [12:09:22]wFMCommunicate request_size=4 [12:09:22]MH_SAM_APDU [12:09:22]CAPDU: 80 11 00 00 [12:09:22]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 17 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 84 [12:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:09:22]wFMCommunicate OK [12:09:22]requested_item fd.num is exist - process it [12:09:22]SAM_PROTO_GetFieldsCounters [12:09:22]wFMCommunicate request_size=4 [12:09:22]MH_SAM_APDU [12:09:22]CAPDU: 80 13 00 00 [12:09:22]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 62 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 62 00 B5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [12:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:22]wFMCommunicate OK [12:09:22]SAM_PROTO_GetFieldsCounters done [12:09:22]requested_item shift.num is exist - process it [12:09:22]requested_item shift.opened is exist - process it [12:09:22]req_shift_opened [12:09:22]FM_GetShiftState [12:09:22]SAM_PROTO_GetShiftState [12:09:22]wFMCommunicate request_size=4 [12:09:22]MH_SAM_APDU [12:09:22]CAPDU: 80 13 01 00 [12:09:22]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 DE [12:09:22]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:09:22]wFMCommunicate OK [12:09:22]SAM_PROTO_GetShiftState done [12:09:22]FM_GetShiftState done [12:09:22]req_shift_opened done [12:09:22]requested_item shift.open_date is exist - process it [12:09:22]req_shift_open_date [12:09:22]req_shift_open_date done [12:09:22]produce_requested_data done [12:09:22]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73003,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:09:22]process_action_free close_receipt [12:09:22]json_value_free [12:09:22]json_value_free done [12:09:22]process_json_proto returns [12:09:22]Send response to host [12:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73003,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:09:22]free response buf [12:09:22]execute_script done [12:09:22]execute_script returns [12:09:22]free content buf [12:09:22]Sock 10.Close socket [12:09:22]Sock 10.Thread stoped [12:09:25]recv_with_timeout no data received [12:09:25]ConnectInit Can't take IP for lk.salyk.kg [12:09:25]CommunicateWithHost connect error [12:09:25]CommunicateWithHost err = -1 [12:09:25]OFD Sender: Server communicate error [12:09:30]OFD Sender: Processing packet 73003 [packets to send 279, broken 278] [12:09:30]ProducePacketName [12:09:30]name=ofd_packets/00073003 [12:09:30]OFD Sender: To server: pG, [12:09:30]CommunicateWithHost lk.salyk.kg:30040 [12:09:30]ConnectInit lk.salyk.kg [12:09:39]Connected sock=10 [12:09:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 ED 6C 07 01 C0 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6E 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1D 01 00 35 04 06 00 14 72 AE CE 9A 3D 75 22 FB C5 32 21 6B 06 [12:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BA 31 47 00 57 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1D 01 00 F4 03 04 00 37 1E 23 67 B6 04 01 00 00 03 C3 F9 9D A6 3E CB 36 [12:09:40]CommunicateWithHost err = 0 [12:09:40]CheckOFDResponse [12:09:40]1017 (14) - 77093643461234 [12:09:40]1041 (16) - 0000000000874662 [12:09:40]1040 (4) - 73003 [12:09:40]1012 (4) - 31.10.2024 06:05 [12:09:40]1206 (1) - 0 [12:09:40]OFD Sender: Remove packet 73003 [12:09:40]ProducePacketName [12:09:40]name=ofd_packets/00073003 [12:09:40]NVStorageDeleteData [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]recv_with_timeout no data received [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:06]accept exits with 7 [12:10:06]New connection [12:10:06]New thread 3066559844 created [12:10:06]Thread 3066703204 joined [12:10:06]Waiting for new connection... [12:10:06] Sock 7.Parse request [12:10:06]Sock 7.Check first char [12:10:06]Sock 7.First char is OK [12:10:06]request: POST /json_proto HTTP/1.0 [12:10:06]Method: POST [12:10:06]URL: /json_proto [12:10:06]Method is POST - this is cgi request [12:10:06]url: /json_proto [12:10:06]query_string will be loaded in cgi processing [12:10:06]execute_cgi json_proto POST (null) [12:10:06]execute_cgi path=json_proto method=POST [12:10:06]POST find Content-Length [12:10:06]Host: 172.17.43.195:8080 [12:10:06]Content-Length: 792 [12:10:06]Content-Type: application/json [12:10:06] [12:10:06]POST finish read [12:10:06]Found Content-Length = 792 [12:10:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:06]execute_script... [12:10:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:06]POST & json_proto [12:10:06]process_json_proto [12:10:06]json parsed OK: [12:10:06]protocol is kg_v1.0 [12:10:06]action value=close_receipt [12:10:06]process_action close_receipt [12:10:06]cmd_close_receipt [12:10:06]MH_GetDate [12:10:06]Write to MH i2c: F0 00 00 B7 02 A8 [12:10:06]Write i2c OK [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: F0 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: F0 09 00 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: F0 09 00 B7 02 00 9F 73 23 67 74 2C AD 66 00 [12:10:06]GetLastDocTimeStamp 1730376558 [12:10:06]current date 1730376607 [12:10:06]FM_GetShiftState [12:10:06]SAM_PROTO_GetShiftState [12:10:06]wFMCommunicate request_size=4 [12:10:06]MH_SAM_APDU [12:10:06]CAPDU: 80 13 01 00 [12:10:06]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [12:10:06]Write i2c OK [12:10:06]MH_I2C_Read... [12:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:06]Read from MH i2c: E2 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: E2 0E 00 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E0 [12:10:06]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:10:06]wFMCommunicate OK [12:10:06]SAM_PROTO_GetShiftState done [12:10:06]FM_GetShiftState done [12:10:06]opened in 1730333258 [12:10:06]opened+sec_in_day 1730419658 [12:10:06]quantity*price = 0 [12:10:06]sum+1 = 1 [12:10:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 79 31.10.2024 12:10 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73004 ФПД: 126986916769706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T121007&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73004&fm=126986916769706&tin=02508201610067®Number=0000000000091644&sum=0 [12:10:07]StoreToDocumentArchive [12:10:07]shift 557 fd 73004 [12:10:07]save to /storage/0557/doc_00073004 [12:10:07]save last doc name /storage/0557/doc_00073004 to /storage/kkm_last_doc_name [12:10:07]save OK [12:10:07]Clear old archive folders... [12:10:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:07]tlvbuf is B6E9D640 [12:10:07]SAM_PROTO_ClearQueue [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 09 00 00 [12:10:07]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 03 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [12:10:07]RAPDU: 90 00 [12:10:07]wFMCommunicate OK [12:10:07]SAM_PROTO_ClearQueue done [12:10:07]KKMCreateOFDPacket [12:10:07]OFDProtocolAddRootSTLVToBuf [12:10:07]FM_MakeSignedData [12:10:07]FM_MakeSignedData [12:10:07]SAM_PROTO_SignData [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 0D 01 02 [12:10:07]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=255 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9F 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1D 01 00 35 04 06 00 73 [12:10:08]Write to MH i2c: E2 02 01 C7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9F 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1D 01 00 35 04 06 00 73 00 00 59 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=10 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 02 02 05 7E 72 10 AF AA [12:10:08]Write to MH i2c: E2 0D 00 C8 02 80 0D 02 02 05 00 7E 72 10 AF AA 00 00 A7 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 03 02 [12:10:08]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 C9 02 00 5F 7F 8B 14 FA A9 72 D8 90 00 B1 [12:10:08]RAPDU: 5F 7F 8B 14 FA A9 72 D8 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_SignData done [12:10:08]FM_MakeSignedData done [12:10:08]CreateOFDProtocolMessage [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 11 00 00 [12:10:08]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9A [12:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:10:08]wFMCommunicate OK [12:10:08]CreateOFDProtocolMessage done [12:10:08]OFDSenderStorePacket 73004 [12:10:08]StoreOFDPacket docnum=73004 [12:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8A 91 07 01 BF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9F 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1D 01 00 35 04 06 00 73 7E 72 10 AF AA 5F 7F 8B 14 FA A9 72 D8 [12:10:08]CheckFolder [12:10:08]dirname=/storage/ofd_packets [12:10:08]CheckFolder done [12:10:08]ProducePacketName [12:10:08]name=ofd_packets/00073004 [12:10:08]NVStorageSaveData ofd_packets/00073004 [12:10:08]File name is /storage/ofd_packets/00073004 [12:10:08]Write 301 bytes [12:10:08]NVStorageSaveData done [12:10:08]OFDSenderStorePacket done [12:10:08]KKMCreateOFDPacket done [12:10:08]NVStorageSaveData kkm_last_timestamp [12:10:08]File name is /storage/kkm_last_timestamp [12:10:08]Write 4 bytes [12:10:08]NVStorageSaveData done [12:10:08]ExternCall_PrintAddStr [12:10:08]wPrintStart [12:10:08]Write to MH i2c: 01 00 00 CB 02 CD [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [12:10:08]RasterBufferAndPrint [12:10:08]line Счет N : (1)952605 [12:10:08]line ИНН: 02508201610067 [12:10:08]line Контрольно-Кассовый Чек [12:10:08]line ПРОДАЖА [12:10:08]line ТРК (МРК, ГНК) : 53 [12:10:08]line Товар: 2710124130 [12:10:08]line Аи-92-К-5 [12:10:08]line 10.000 * 0.00 [12:10:08]line = 0.00 [12:10:08]line НДС 12% НСП 1% [12:10:08]line > о реализуемом товаре [12:10:08]line ИТОГО: 0.00 [12:10:08]line НСП 1% : 0.00 [12:10:08]line НДС 12% : 0.00 [12:10:08]line Наличными: 0.00 [12:10:08]line Безнал.: 0.00 [12:10:08]line Место: АЗС № 113 "Партнер Нефть" [12:10:08]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:10:08]line СНО: Общий режим [12:10:08]line Чек 79 31.10.2024 12:10 [12:10:08]line Смена: 557 ФФД: 1.0 [12:10:08]line ЗНМ: 0300000087 [12:10:08]line РНМ: 0000000000091644 [12:10:08]line Версия ККМ: 001 [12:10:08]line Талоны: Топливная Карта [12:10:08]line 03047 [12:10:08]line ФМ: 0000000000874662 [12:10:08]line ФД: 73004 [12:10:08]line ФПД: 126986916769706 [12:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T121007&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73004&fm=126986916769706&tin=02508201610067®Number=0000000000091644&sum=0 [12:10:08]written 0, free lines is 4095 [12:10:08]OFD Sender: Processing packet 73004 [packets to send 279, broken 278] [12:10:08]ProducePacketName [12:10:08]name=ofd_packets/00073004 [12:10:08]OFD Sender: To server: pG, [12:10:08]CommunicateWithHost lk.salyk.kg:30040 [12:10:08]ConnectInit lk.salyk.kg [12:10:08]Write to MH i2c: 01 00 00 F5 02 F7 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 E3 0C ED [12:10:08]RasterBufferAndPrint [12:10:08]line [12:10:08]line [12:10:08]line [12:10:08]line [12:10:08]line [12:10:08]written 0, free lines is 3305 [12:10:08]MH_Cut [12:10:08]Write to MH i2c: D1 01 00 FC 02 01 D0 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: D1 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: D1 01 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: D1 01 00 FC 02 00 CF [12:10:08]Write to MH i2c: 01 00 00 FD 02 FF [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:09]Connected sock=11 [12:10:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8A 91 07 01 BF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9F 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1D 01 00 35 04 06 00 73 7E 72 10 AF AA 5F 7F 8B 14 FA A9 72 D8 [12:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7B 24 47 00 54 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1D 01 00 F4 03 04 00 55 1E 23 67 B6 04 01 00 00 FF 86 ED 8F 48 24 9B 7E [12:10:09]CommunicateWithHost err = 0 [12:10:09]CheckOFDResponse [12:10:09]1017 (14) - 77093643461234 [12:10:09]1041 (16) - 0000000000874662 [12:10:09]1040 (4) - 73004 [12:10:09]1012 (4) - 31.10.2024 06:06 [12:10:09]1206 (1) - 0 [12:10:09]OFD Sender: Remove packet 73004 [12:10:09]ProducePacketName [12:10:09]name=ofd_packets/00073004 [12:10:09]NVStorageDeleteData [12:10:09]*** Cut start [12:10:09]*** Partial cut [12:10:09]*** CUTSNS_PIN = 1 [12:10:09]*** CUTSNS_PIN = 0 [12:10:09]*** Brake cut motor [12:10:10]OFD Sender: No OFD packet to send [12:10:10]Read from MH i2c: 01 [12:10:10]MH_I2C_Read... [12:10:10]*** Stop cut motor [12:10:10]*** Cut end [12:10:10]Read from MH i2c: 01 07 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [12:10:10]process_action close_receipt done [12:10:10]requested_data is exist [12:10:10]produce_requested_data [12:10:10]requested_item fm.sn is exist - process it [12:10:10]wFMCommunicate request_size=4 [12:10:10]MH_SAM_APDU [12:10:10]CAPDU: 80 11 00 00 [12:10:10]Write to MH i2c: E2 08 00 FE 02 80 11 00 00 00 00 00 00 7A [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:10]Read from MH i2c: E2 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 17 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 17 00 FE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CE [12:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:10:10]wFMCommunicate OK [12:10:10]requested_item fd.num is exist - process it [12:10:10]SAM_PROTO_GetFieldsCounters [12:10:10]wFMCommunicate request_size=4 [12:10:10]MH_SAM_APDU [12:10:10]CAPDU: 80 13 00 00 [12:10:10]Write to MH i2c: E2 08 00 FF 02 80 13 00 00 00 00 00 00 7D [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:10]Read from MH i2c: E2 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 62 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 62 00 FF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [12:10:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:10]wFMCommunicate OK [12:10:10]SAM_PROTO_GetFieldsCounters done [12:10:10]requested_item shift.num is exist - process it [12:10:10]requested_item shift.opened is exist - process it [12:10:10]req_shift_opened [12:10:10]FM_GetShiftState [12:10:10]SAM_PROTO_GetShiftState [12:10:10]wFMCommunicate request_size=4 [12:10:10]MH_SAM_APDU [12:10:10]CAPDU: 80 13 01 00 [12:10:10]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:10]Read from MH i2c: E2 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 0E 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 29 [12:10:10]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:10:10]wFMCommunicate OK [12:10:10]SAM_PROTO_GetShiftState done [12:10:10]FM_GetShiftState done [12:10:10]req_shift_opened done [12:10:10]requested_item shift.open_date is exist - process it [12:10:10]req_shift_open_date [12:10:10]req_shift_open_date done [12:10:10]produce_requested_data done [12:10:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73004,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:10:10]process_action_free close_receipt [12:10:10]json_value_free [12:10:10]json_value_free done [12:10:10]process_json_proto returns [12:10:10]Send response to host [12:10:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73004,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:10:10]free response buf [12:10:10]execute_script done [12:10:10]execute_script returns [12:10:10]free content buf [12:10:10]Sock 7.Close socket [12:10:10]Sock 7.Thread stoped [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:14]recv_with_timeout no data received [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:47]recv_with_timeout no data received [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]recv_with_timeout no data received [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:13]recv_with_timeout no data received [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:42]recv_with_timeout no data received [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:22]recv_with_timeout no data received [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:10]recv_with_timeout no data received [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]recv_with_timeout no data received [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:35]recv_with_timeout no data received [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:12]recv_with_timeout no data received [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:33]recv_with_timeout no data received [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:07]recv_with_timeout no data received [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]accept exits with 10 [12:24:26]New connection [12:24:26]New thread 3066703204 created [12:24:26]Thread 3066559844 joined [12:24:26]Waiting for new connection... [12:24:26] Sock 10.Parse request [12:24:26]Sock 10.Check first char [12:24:26]Sock 10.First char is OK [12:24:26]request: POST /json_proto HTTP/1.0 [12:24:26]Method: POST [12:24:26]URL: /json_proto [12:24:26]Method is POST - this is cgi request [12:24:26]url: /json_proto [12:24:26]query_string will be loaded in cgi processing [12:24:26]execute_cgi json_proto POST (null) [12:24:26]execute_cgi path=json_proto method=POST [12:24:26]POST find Content-Length [12:24:26]Host: 172.17.43.195:8080 [12:24:26]Content-Length: 800 [12:24:26]Content-Type: application/json [12:24:26] [12:24:26]POST finish read [12:24:26]Found Content-Length = 800 [12:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:26]execute_script... [12:24:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:26]POST & json_proto [12:24:26]process_json_proto [12:24:26]json parsed OK: [12:24:26]protocol is kg_v1.0 [12:24:26]action value=close_receipt [12:24:26]process_action close_receipt [12:24:26]cmd_close_receipt [12:24:26]MH_GetDate [12:24:26]Write to MH i2c: F0 00 00 01 03 F3 [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: F0 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: F0 09 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: F0 09 00 01 03 00 FA 76 23 67 74 2C AD 66 A9 [12:24:26]GetLastDocTimeStamp 1730376607 [12:24:26]current date 1730377466 [12:24:26]FM_GetShiftState [12:24:26]SAM_PROTO_GetShiftState [12:24:26]wFMCommunicate request_size=4 [12:24:26]MH_SAM_APDU [12:24:26]CAPDU: 80 13 01 00 [12:24:26]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:26]Read from MH i2c: E2 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 0E 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2B [12:24:26]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:24:26]wFMCommunicate OK [12:24:26]SAM_PROTO_GetShiftState done [12:24:26]FM_GetShiftState done [12:24:26]opened in 1730333258 [12:24:26]opened+sec_in_day 1730419658 [12:24:26]quantity*price = 60009 [12:24:26]sum+1 = 60010 [12:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 80 31.10.2024 12:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73005 ФПД: 203478302428569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122426&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73005&fm=203478302428569&tin=02508201610067®Number=0000000000091644&sum=60009 [12:24:27]StoreToDocumentArchive [12:24:27]shift 557 fd 73005 [12:24:27]save to /storage/0557/doc_00073005 [12:24:27]save last doc name /storage/0557/doc_00073005 to /storage/kkm_last_doc_name [12:24:27]save OK [12:24:27]Clear old archive folders... [12:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:27]tlvbuf is 0017DA90 [12:24:27]SAM_PROTO_ClearQueue [12:24:27]wFMCommunicate request_size=4 [12:24:27]MH_SAM_APDU [12:24:27]CAPDU: 80 09 00 00 [12:24:27]Write to MH i2c: E2 08 00 0F 03 80 09 00 00 00 00 00 00 84 [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:27]Read from MH i2c: E2 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 03 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [12:24:27]RAPDU: 90 00 [12:24:27]wFMCommunicate OK [12:24:27]SAM_PROTO_ClearQueue done [12:24:27]KKMCreateOFDPacket [12:24:27]OFDProtocolAddRootSTLVToBuf [12:24:27]FM_MakeSignedData [12:24:27]FM_MakeSignedData [12:24:27]SAM_PROTO_SignData [12:24:27]wFMCommunicate request_size=4 [12:24:27]MH_SAM_APDU [12:24:27]CAPDU: 80 0D 01 02 [12:24:27]Write to MH i2c: E2 08 00 10 03 80 0D 01 02 00 00 00 00 8C [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:27]Read from MH i2c: E2 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 03 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [12:24:27]RAPDU: 90 00 [12:24:27]wFMCommunicate OK [12:24:27]wFMCommunicate request_size=255 [12:24:27]MH_SAM_APDU [12:24: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FA 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2D 1D 01 00 35 04 06 00 B9 [12:24:27]Write to MH i2c: E2 02 01 11 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FA 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2D 1D 01 00 35 04 06 00 B9 00 00 87 [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:27]Read from MH i2c: E2 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 03 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [12:24:27]RAPDU: 90 00 [12:24:27]wFMCommunicate OK [12:24:27]wFMCommunicate request_size=10 [12:24:27]MH_SAM_APDU [12:24:27]CAPDU: 80 0D 02 02 05 0F FB EF 8D 99 [12:24:27]Write to MH i2c: E2 0D 00 12 03 80 0D 02 02 05 00 0F FB EF 8D 99 00 00 B8 [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:27]Read from MH i2c: E2 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 03 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [12:24:27]RAPDU: 90 00 [12:24:27]wFMCommunicate OK [12:24:27]wFMCommunicate request_size=4 [12:24:27]MH_SAM_APDU [12:24:27]CAPDU: 80 0D 03 02 [12:24:27]Write to MH i2c: E2 08 00 13 03 80 0D 03 02 00 00 00 00 91 [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:27]Read from MH i2c: E2 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 0B 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 0B 00 13 03 00 01 40 EC 32 AB F7 7C C3 90 00 D2 [12:24:27]RAPDU: 01 40 EC 32 AB F7 7C C3 90 00 [12:24:27]wFMCommunicate OK [12:24:27]SAM_PROTO_SignData done [12:24:27]FM_MakeSignedData done [12:24:27]CreateOFDProtocolMessage [12:24:27]wFMCommunicate request_size=4 [12:24:27]MH_SAM_APDU [12:24:27]CAPDU: 80 11 00 00 [12:24:27]Write to MH i2c: E2 08 00 14 03 80 11 00 00 00 00 00 00 91 [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:27]Read from MH i2c: E2 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 17 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: E2 17 00 14 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E5 [12:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:24:27]wFMCommunicate OK [12:24:27]CreateOFDProtocolMessage done [12:24:27]OFDSenderStorePacket 73005 [12:24:27]StoreOFDPacket docnum=73005 [12:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A8 B6 07 01 9A 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FA 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2D 1D 01 00 35 04 06 00 B9 0F FB EF 8D 99 01 40 EC 32 AB F7 7C C3 [12:24:27]CheckFolder [12:24:27]dirname=/storage/ofd_packets [12:24:27]CheckFolder done [12:24:27]ProducePacketName [12:24:27]name=ofd_packets/00073005 [12:24:27]NVStorageSaveData ofd_packets/00073005 [12:24:27]File name is /storage/ofd_packets/00073005 [12:24:27]Write 301 bytes [12:24:27]NVStorageSaveData done [12:24:27]OFDSenderStorePacket done [12:24:27]KKMCreateOFDPacket done [12:24:27]NVStorageSaveData kkm_last_timestamp [12:24:27]File name is /storage/kkm_last_timestamp [12:24:27]Write 4 bytes [12:24:27]NVStorageSaveData done [12:24:27]ExternCall_PrintAddStr [12:24:27]wPrintStart [12:24:27]Write to MH i2c: 01 00 00 15 03 18 [12:24:27]Write i2c OK [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: 01 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: 01 07 00 [12:24:27]MH_I2C_Read... [12:24:27]Read from MH i2c: 01 07 00 15 03 00 00 00 00 00 FF 0F 2D [12:24:27]RasterBufferAndPrint [12:24:27]line Счет N : (1)952606 [12:24:27]line ИНН: 02508201610067 [12:24:27]line Контрольно-Кассовый Чек [12:24:27]line ПРОДАЖА [12:24:27]line ТРК (МРК, ГНК) : 53 [12:24:27]line Товар: 2710124130 [12:24:27]line Аи-92-К-5 [12:24:27]line 8.970 * 66.90 [12:24:27]line = 600.09 [12:24:27]line НДС 12% НСП 1% [12:24:27]line > о реализуемом товаре [12:24:27]line ИТОГО: 600.09 [12:24:27]line НСП 1% : 5.31 [12:24:27]line НДС 12% : 63.73 [12:24:27]line Наличными: 0.00 [12:24:27]line Безнал.: 600.09 [12:24:27]line Место: АЗС № 113 "Партнер Нефть" [12:24:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:24:27]line СНО: Общий режим [12:24:27]line Чек 80 31.10.2024 12:24 [12:24:27]line Смена: 557 ФФД: 1.0 [12:24:27]line ЗНМ: 0300000087 [12:24:27]line РНМ: 0000000000091644 [12:24:27]line Версия ККМ: 001 [12:24:27]line Платежная система: O! деньги [12:24:27]line ФМ: 0000000000874662 [12:24:27]line ФД: 73005 [12:24:27]line ФПД: 203478302428569 [12:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122426&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73005&fm=203478302428569&tin=02508201610067®Number=0000000000091644&sum=60009 [12:24:28]OFD Sender: Processing packet 73005 [packets to send 279, broken 278] [12:24:28]ProducePacketName [12:24:28]name=ofd_packets/00073005 [12:24:28]OFD Sender: To server: pG, [12:24:28]CommunicateWithHost lk.salyk.kg:30040 [12:24:28]ConnectInit lk.salyk.kg [12:24:28]written 0, free lines is 4095 [12:24:28]Write to MH i2c: 01 00 00 3F 03 42 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: 01 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: 01 07 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 DF 0C 34 [12:24:28]RasterBufferAndPrint [12:24:28]line [12:24:28]line [12:24:28]line [12:24:28]line [12:24:28]line [12:24:28]written 0, free lines is 3302 [12:24:28]MH_Cut [12:24:28]Write to MH i2c: D1 01 00 46 03 01 1B [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: D1 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: D1 01 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: D1 01 00 46 03 00 1A [12:24:28]Write to MH i2c: 01 00 00 47 03 4A [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:29]*** Cut start [12:24:29]*** Partial cut [12:24:29]*** CUTSNS_PIN = 1 [12:24:29]*** CUTSNS_PIN = 0 [12:24:29]*** Brake cut motor [12:24:29]Connected sock=9 [12:24:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A8 B6 07 01 9A 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FA 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2D 1D 01 00 35 04 06 00 B9 0F FB EF 8D 99 01 40 EC 32 AB F7 7C C3 [12:24:29]Read from MH i2c: 01 [12:24:29]MH_I2C_Read... [12:24:29]*** Stop cut motor [12:24:29]*** Cut end [12:24:29]Read from MH i2c: 01 07 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 FF 0F 5F [12:24:29]process_action close_receipt done [12:24:29]requested_data is exist [12:24:29]produce_requested_data [12:24:29]requested_item fm.sn is exist - process it [12:24:29]wFMCommunicate request_size=4 [12:24:29]MH_SAM_APDU [12:24:29]CAPDU: 80 11 00 00 [12:24:29]Write to MH i2c: E2 08 00 48 03 80 11 00 00 00 00 00 00 C5 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:29]Read from MH i2c: E2 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 17 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 17 00 48 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 19 [12:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:24:29]wFMCommunicate OK [12:24:29]requested_item fd.num is exist - process it [12:24:29]SAM_PROTO_GetFieldsCounters [12:24:29]wFMCommunicate request_size=4 [12:24:29]MH_SAM_APDU [12:24:29]CAPDU: 80 13 00 00 [12:24:29]Write to MH i2c: E2 08 00 49 03 80 13 00 00 00 00 00 00 C8 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 62 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 62 00 49 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [12:24:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_GetFieldsCounters done [12:24:30]requested_item shift.num is exist - process it [12:24:30]requested_item shift.opened is exist - process it [12:24:30]req_shift_opened [12:24:30]FM_GetShiftState [12:24:30]SAM_PROTO_GetShiftState [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 13 01 00 [12:24:30]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0E 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 73 [12:24:30]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_GetShiftState done [12:24:30]FM_GetShiftState done [12:24:30]req_shift_opened done [12:24:30]requested_item shift.open_date is exist - process it [12:24:30]req_shift_open_date [12:24:30]req_shift_open_date done [12:24:30]produce_requested_data done [12:24:30]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73005,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:24:30]process_action_free close_receipt [12:24:30]json_value_free [12:24:30]json_value_free done [12:24:30]process_json_proto returns [12:24:30]Send response to host [12:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73005,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:24:30]free response buf [12:24:30]execute_script done [12:24:30]execute_script returns [12:24:30]free content buf [12:24:30]Sock 10.Close socket [12:24:30]Sock 10.Thread stoped [12:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D8 93 47 00 E2 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2D 1D 01 00 F4 03 04 00 B1 21 23 67 B6 04 01 00 00 43 D7 CA 80 7A 26 F9 59 [12:24:30]CommunicateWithHost err = 0 [12:24:30]CheckOFDResponse [12:24:30]1017 (14) - 77093643461234 [12:24:30]1041 (16) - 0000000000874662 [12:24:30]1040 (4) - 73005 [12:24:30]1012 (4) - 31.10.2024 06:20 [12:24:30]1206 (1) - 0 [12:24:30]OFD Sender: Remove packet 73005 [12:24:30]ProducePacketName [12:24:30]name=ofd_packets/00073005 [12:24:30]NVStorageDeleteData [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:03]recv_with_timeout no data received [12:26:05]OFD Sender: No OFD packet to send [12:26:10]accept exits with 7 [12:26:10]New connection [12:26:10]New thread 3066559844 created [12:26:10]Thread 3066703204 joined [12:26:10]Waiting for new connection... [12:26:10] Sock 7.Parse request [12:26:10]Sock 7.Check first char [12:26:10]Sock 7.First char is OK [12:26:10]request: POST /json_proto HTTP/1.0 [12:26:10]Method: POST [12:26:10]URL: /json_proto [12:26:10]Method is POST - this is cgi request [12:26:10]url: /json_proto [12:26:10]query_string will be loaded in cgi processing [12:26:10]execute_cgi json_proto POST (null) [12:26:10]execute_cgi path=json_proto method=POST [12:26:10]POST find Content-Length [12:26:10]Host: 172.17.43.195:8080 [12:26:10]Content-Length: 663 [12:26:10]Content-Type: application/json [12:26:10] [12:26:10]POST finish read [12:26:10]Found Content-Length = 663 [12:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:10]execute_script... [12:26:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:10]POST & json_proto [12:26:10]process_json_proto [12:26:10]json parsed OK: [12:26:10]protocol is kg_v1.0 [12:26:10]action value=close_receipt [12:26:10]process_action close_receipt [12:26:10]cmd_close_receipt [12:26:10]MH_GetDate [12:26:10]Write to MH i2c: F0 00 00 4B 03 3D [12:26:10]Write i2c OK [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: F0 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: F0 09 00 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: F0 09 00 4B 03 00 63 77 23 67 74 2C AD 66 5D [12:26:10]GetLastDocTimeStamp 1730377466 [12:26:10]current date 1730377571 [12:26:10]FM_GetShiftState [12:26:10]SAM_PROTO_GetShiftState [12:26:10]wFMCommunicate request_size=4 [12:26:10]MH_SAM_APDU [12:26:10]CAPDU: 80 13 01 00 [12:26:10]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [12:26:10]Write i2c OK [12:26:10]MH_I2C_Read... [12:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:10]OFD Sender: No OFD packet to send [12:26:10]Read from MH i2c: E2 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: E2 0E 00 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 75 [12:26:10]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:26:10]wFMCommunicate OK [12:26:10]SAM_PROTO_GetShiftState done [12:26:10]FM_GetShiftState done [12:26:10]opened in 1730333258 [12:26:10]opened+sec_in_day 1730419658 [12:26:10]quantity*price = 100000 [12:26:10]sum+1 = 100002 [12:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 81 31.10.2024 12:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73006 ФПД: 274473401523534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122611&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73006&fm=274473401523534&tin=02508201610067®Number=0000000000091644&sum=100000 [12:26:11]StoreToDocumentArchive [12:26:11]shift 557 fd 73006 [12:26:11]save to /storage/0557/doc_00073006 [12:26:11]save last doc name /storage/0557/doc_00073006 to /storage/kkm_last_doc_name [12:26:11]save OK [12:26:11]Clear old archive folders... [12:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:26:11]tlvbuf is 000F2D40 [12:26:11]SAM_PROTO_ClearQueue [12:26:11]wFMCommunicate request_size=4 [12:26:11]MH_SAM_APDU [12:26:11]CAPDU: 80 09 00 00 [12:26:11]Write to MH i2c: E2 08 00 59 03 80 09 00 00 00 00 00 00 CE [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:12]Read from MH i2c: E2 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 03 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [12:26:12]RAPDU: 90 00 [12:26:12]wFMCommunicate OK [12:26:12]SAM_PROTO_ClearQueue done [12:26:12]KKMCreateOFDPacket [12:26:12]OFDProtocolAddRootSTLVToBuf [12:26:12]FM_MakeSignedData [12:26:12]FM_MakeSignedData [12:26:12]SAM_PROTO_SignData [12:26:12]wFMCommunicate request_size=4 [12:26:12]MH_SAM_APDU [12:26:12]CAPDU: 80 0D 01 02 [12:26:12]Write to MH i2c: E2 08 00 5A 03 80 0D 01 02 00 00 00 00 D6 [12:26:12]Write i2c OK [12:26:12]MH_I2C_Read... [12:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:12]Read from MH i2c: E2 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 03 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [12:26:12]RAPDU: 90 00 [12:26:12]wFMCommunicate OK [12:26:12]wFMCommunicate request_size=253 [12:26:12]MH_SAM_APDU [12:26:12]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 63 77 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1D 01 00 35 04 06 00 F9 A1 D1 99 1D 4E [12:26:12]Write to MH i2c: E2 00 01 5B 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 63 77 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1D 01 00 35 04 06 00 F9 A1 D1 99 1D 4E 00 00 A2 [12:26:12]Write i2c OK [12:26:12]MH_I2C_Read... [12:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:12]Read from MH i2c: E2 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 03 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [12:26:12]RAPDU: 90 00 [12:26:12]wFMCommunicate OK [12:26:12]wFMCommunicate request_size=4 [12:26:12]MH_SAM_APDU [12:26:12]CAPDU: 80 0D 03 02 [12:26:12]Write to MH i2c: E2 08 00 5C 03 80 0D 03 02 00 00 00 00 DA [12:26:12]Write i2c OK [12:26:12]MH_I2C_Read... [12:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:12]Read from MH i2c: E2 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 0B 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 0B 00 5C 03 00 0F EA 6E C0 27 A9 62 87 90 00 BB [12:26:12]RAPDU: 0F EA 6E C0 27 A9 62 87 90 00 [12:26:12]wFMCommunicate OK [12:26:12]SAM_PROTO_SignData done [12:26:12]FM_MakeSignedData done [12:26:12]CreateOFDProtocolMessage [12:26:12]wFMCommunicate request_size=4 [12:26:12]MH_SAM_APDU [12:26:12]CAPDU: 80 11 00 00 [12:26:12]Write to MH i2c: E2 08 00 5D 03 80 11 00 00 00 00 00 00 DA [12:26:12]Write i2c OK [12:26:12]MH_I2C_Read... [12:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:12]Read from MH i2c: E2 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 17 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 17 00 5D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2E [12:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:26:12]wFMCommunicate OK [12:26:12]CreateOFDProtocolMessage done [12:26:12]OFDSenderStorePacket 73006 [12:26:12]StoreOFDPacket docnum=73006 [12:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 91 8D 00 01 8C 5C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 63 77 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1D 01 00 35 04 06 00 F9 A1 D1 99 1D 4E 0F EA 6E C0 27 A9 62 87 [12:26:12]CheckFolder [12:26:12]dirname=/storage/ofd_packets [12:26:12]CheckFolder done [12:26:12]ProducePacketName [12:26:12]name=ofd_packets/00073006 [12:26:12]NVStorageSaveData ofd_packets/00073006 [12:26:12]File name is /storage/ofd_packets/00073006 [12:26:12]Write 294 bytes [12:26:12]NVStorageSaveData done [12:26:12]OFDSenderStorePacket done [12:26:12]KKMCreateOFDPacket done [12:26:12]NVStorageSaveData kkm_last_timestamp [12:26:12]File name is /storage/kkm_last_timestamp [12:26:12]Write 4 bytes [12:26:12]NVStorageSaveData done [12:26:12]ExternCall_PrintAddStr [12:26:12]wPrintStart [12:26:12]Write to MH i2c: 01 00 00 5E 03 61 [12:26:12]Write i2c OK [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: 01 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: 01 07 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: 01 07 00 5E 03 00 00 00 00 00 FF 0F 76 [12:26:12]RasterBufferAndPrint [12:26:12]line Счет N : (1)952607 [12:26:12]line ИНН: 02508201610067 [12:26:12]line Контрольно-Кассовый Чек [12:26:12]line ПРОДАЖА [12:26:12]line ТРК (МРК, ГНК) : 61 [12:26:12]line Товар: 50.50.0 [12:26:12]line Super 92 [12:26:12]line 14.620 * 68.40 [12:26:12]line = 1000.01 [12:26:12]line НДС 12% НСП 1% [12:26:12]line > о реализуемом товаре [12:26:12]line ОКРУГЛЕНИЕ: -0.01 [12:26:12]line ИТОГО: 1000.00 [12:26:12]line Внесено: 1000.00 [12:26:12]line СДАЧА: 0.00 [12:26:12]line НСП 1% : 8.85 [12:26:12]line НДС 12% : 106.20 [12:26:12]line Наличными: 1000.00 [12:26:12]line Безнал.: 0.00 [12:26:12]line Место: АЗС № 113 "Партнер Нефть" [12:26:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:26:12]line СНО: Общий режим [12:26:12]line Чек 81 31.10.2024 12:26 [12:26:12]line Смена: 557 ФФД: 1.0 [12:26:12]line ЗНМ: 0300000087 [12:26:12]line РНМ: 0000000000091644 [12:26:12]line Версия ККМ: 001 [12:26:12]line ФМ: 0000000000874662 [12:26:12]line ФД: 73006 [12:26:12]line ФПД: 274473401523534 [12:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122611&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73006&fm=274473401523534&tin=02508201610067®Number=0000000000091644&sum=100000 [12:26:12]OFD Sender: Processing packet 73006 [packets to send 279, broken 278] [12:26:12]ProducePacketName [12:26:12]name=ofd_packets/00073006 [12:26:12]OFD Sender: To server: pG, [12:26:12]CommunicateWithHost lk.salyk.kg:30040 [12:26:12]ConnectInit lk.salyk.kg [12:26:12]written 0, free lines is 4095 [12:26:13]Write to MH i2c: 01 00 00 89 03 8C [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: 01 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: 01 07 00 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 DA 0C 79 [12:26:13]RasterBufferAndPrint [12:26:13]line [12:26:13]line [12:26:13]line [12:26:13]line [12:26:13]line [12:26:13]written 0, free lines is 3297 [12:26:13]MH_Cut [12:26:13]Write to MH i2c: D1 01 00 90 03 01 65 [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: D1 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: D1 01 00 [12:26:13]MH_I2C_Read... [12:26:13]Read from MH i2c: D1 01 00 90 03 00 64 [12:26:13]Write to MH i2c: 01 00 00 91 03 94 [12:26:13]Write i2c OK [12:26:13]MH_I2C_Read... [12:26:14]*** Cut start [12:26:14]*** Partial cut [12:26:14]*** CUTSNS_PIN = 1 [12:26:14]*** CUTSNS_PIN = 0 [12:26:14]*** Brake cut motor [12:26:14]Read from MH i2c: 01 [12:26:14]MH_I2C_Read... [12:26:14]*** Stop cut motor [12:26:14]*** Cut end [12:26:14]Read from MH i2c: 01 07 00 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [12:26:14]process_action close_receipt done [12:26:14]requested_data is exist [12:26:14]produce_requested_data [12:26:14]requested_item fm.sn is exist - process it [12:26:14]wFMCommunicate request_size=4 [12:26:14]MH_SAM_APDU [12:26:14]CAPDU: 80 11 00 00 [12:26:14]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [12:26:14]Write i2c OK [12:26:14]MH_I2C_Read... [12:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:14]Read from MH i2c: E2 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: E2 17 00 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 63 [12:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:26:14]wFMCommunicate OK [12:26:14]requested_item fd.num is exist - process it [12:26:14]SAM_PROTO_GetFieldsCounters [12:26:14]wFMCommunicate request_size=4 [12:26:14]MH_SAM_APDU [12:26:14]CAPDU: 80 13 00 00 [12:26:14]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [12:26:14]Write i2c OK [12:26:14]MH_I2C_Read... [12:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:14]Read from MH i2c: E2 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: E2 62 00 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: E2 62 00 93 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [12:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:14]wFMCommunicate OK [12:26:14]SAM_PROTO_GetFieldsCounters done [12:26:14]requested_item shift.num is exist - process it [12:26:14]requested_item shift.opened is exist - process it [12:26:14]req_shift_opened [12:26:14]FM_GetShiftState [12:26:14]SAM_PROTO_GetShiftState [12:26:14]wFMCommunicate request_size=4 [12:26:14]MH_SAM_APDU [12:26:14]CAPDU: 80 13 01 00 [12:26:14]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [12:26:14]Write i2c OK [12:26:14]MH_I2C_Read... [12:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:14]Read from MH i2c: E2 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: E2 0E 00 [12:26:14]MH_I2C_Read... [12:26:14]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 BD [12:26:14]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:26:14]wFMCommunicate OK [12:26:14]SAM_PROTO_GetShiftState done [12:26:14]FM_GetShiftState done [12:26:14]req_shift_opened done [12:26:14]requested_item shift.open_date is exist - process it [12:26:14]req_shift_open_date [12:26:14]req_shift_open_date done [12:26:14]produce_requested_data done [12:26:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73006,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:26:14]process_action_free close_receipt [12:26:14]json_value_free [12:26:14]json_value_free done [12:26:14]process_json_proto returns [12:26:14]Send response to host [12:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73006,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:26:14]free response buf [12:26:14]execute_script done [12:26:14]execute_script returns [12:26:14]free content buf [12:26:14]Sock 7.Close socket [12:26:14]Sock 7.Thread stoped [12:26:18]Connected sock=11 [12:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 91 8D 00 01 8C 5C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 63 77 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1D 01 00 35 04 06 00 F9 A1 D1 99 1D 4E 0F EA 6E C0 27 A9 62 87 [12:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1E 17 47 00 BE 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1D 01 00 F4 03 04 00 1E 22 23 67 B6 04 01 00 00 6B B8 2F AA 29 84 66 2B [12:26:19]CommunicateWithHost err = 0 [12:26:19]CheckOFDResponse [12:26:19]1017 (14) - 77093643461234 [12:26:19]1041 (16) - 0000000000874662 [12:26:19]1040 (4) - 73006 [12:26:19]1012 (4) - 31.10.2024 06:22 [12:26:19]1206 (1) - 0 [12:26:19]OFD Sender: Remove packet 73006 [12:26:19]ProducePacketName [12:26:19]name=ofd_packets/00073006 [12:26:19]NVStorageDeleteData [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:48]recv_with_timeout no data received [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:06]recv_with_timeout no data received [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:16]recv_with_timeout no data received [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]accept exits with 10 [12:27:45]New connection [12:27:45]New thread 3066703204 created [12:27:45]Thread 3066559844 joined [12:27:45]Waiting for new connection... [12:27:45] Sock 10.Parse request [12:27:45]Sock 10.Check first char [12:27:45]Sock 10.First char is OK [12:27:45]request: POST /json_proto HTTP/1.0 [12:27:45]Method: POST [12:27:45]URL: /json_proto [12:27:45]Method is POST - this is cgi request [12:27:45]url: /json_proto [12:27:45]query_string will be loaded in cgi processing [12:27:45]execute_cgi json_proto POST (null) [12:27:45]execute_cgi path=json_proto method=POST [12:27:45]POST find Content-Length [12:27:45]Host: 172.17.43.195:8080 [12:27:45]Content-Length: 682 [12:27:45]Content-Type: application/json [12:27:45] [12:27:45]POST finish read [12:27:45]Found Content-Length = 682 [12:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:45]execute_script... [12:27:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:45]POST & json_proto [12:27:45]process_json_proto [12:27:45]json parsed OK: [12:27:45]protocol is kg_v1.0 [12:27:45]action value=close_receipt [12:27:45]process_action close_receipt [12:27:45]cmd_close_receipt [12:27:45]MH_GetDate [12:27:45]Write to MH i2c: F0 00 00 95 03 87 [12:27:45]Write i2c OK [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: F0 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: F0 09 00 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: F0 09 00 95 03 00 C1 77 23 67 74 2C AD 66 05 [12:27:45]GetLastDocTimeStamp 1730377571 [12:27:45]current date 1730377665 [12:27:45]FM_GetShiftState [12:27:45]SAM_PROTO_GetShiftState [12:27:45]wFMCommunicate request_size=4 [12:27:45]MH_SAM_APDU [12:27:45]CAPDU: 80 13 01 00 [12:27:45]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [12:27:45]Write i2c OK [12:27:45]MH_I2C_Read... [12:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:45]Read from MH i2c: E2 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: E2 0E 00 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 BF [12:27:45]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:27:45]wFMCommunicate OK [12:27:45]SAM_PROTO_GetShiftState done [12:27:45]FM_GetShiftState done [12:27:45]opened in 1730333258 [12:27:45]opened+sec_in_day 1730419658 [12:27:45]quantity*price = 250054 [12:27:45]sum+1 = 250055 [12:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 82 31.10.2024 12:27 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73007 ФПД: 222741859932215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122745&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73007&fm=222741859932215&tin=02508201610067®Number=0000000000091644&sum=250000 [12:27:46]StoreToDocumentArchive [12:27:46]shift 557 fd 73007 [12:27:46]save to /storage/0557/doc_00073007 [12:27:46]save last doc name /storage/0557/doc_00073007 to /storage/kkm_last_doc_name [12:27:46]save OK [12:27:46]Clear old archive folders... [12:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:46]tlvbuf is 00164920 [12:27:46]SAM_PROTO_ClearQueue [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 09 00 00 [12:27:46]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]SAM_PROTO_ClearQueue done [12:27:46]KKMCreateOFDPacket [12:27:46]OFDProtocolAddRootSTLVToBuf [12:27:46]FM_MakeSignedData [12:27:46]FM_MakeSignedData [12:27:46]SAM_PROTO_SignData [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 0D 01 02 [12:27:46]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]wFMCommunicate request_size=255 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C1 77 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2F 1D 01 00 35 04 06 00 CA [12:27:46]Write to MH i2c: E2 02 01 A5 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C1 77 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2F 1D 01 00 35 04 06 00 CA 00 00 F2 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]wFMCommunicate request_size=10 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 0D 02 02 05 95 21 70 18 37 [12:27:46]Write to MH i2c: E2 0D 00 A6 03 80 0D 02 02 05 00 95 21 70 18 37 00 00 A2 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 0D 03 02 [12:27:46]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 0B 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 0B 00 A7 03 00 8E 59 B5 2A C4 97 CB 98 90 00 AA [12:27:46]RAPDU: 8E 59 B5 2A C4 97 CB 98 90 00 [12:27:46]wFMCommunicate OK [12:27:46]SAM_PROTO_SignData done [12:27:46]FM_MakeSignedData done [12:27:46]CreateOFDProtocolMessage [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 11 00 00 [12:27:46]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 17 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 79 [12:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:27:46]wFMCommunicate OK [12:27:46]CreateOFDProtocolMessage done [12:27:46]OFDSenderStorePacket 73007 [12:27:46]StoreOFDPacket docnum=73007 [12:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A3 A5 07 01 E1 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C1 77 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2F 1D 01 00 35 04 06 00 CA 95 21 70 18 37 8E 59 B5 2A C4 97 CB 98 [12:27:46]CheckFolder [12:27:46]dirname=/storage/ofd_packets [12:27:46]CheckFolder done [12:27:46]ProducePacketName [12:27:46]name=ofd_packets/00073007 [12:27:46]NVStorageSaveData ofd_packets/00073007 [12:27:46]File name is /storage/ofd_packets/00073007 [12:27:46]Write 301 bytes [12:27:46]NVStorageSaveData done [12:27:46]OFDSenderStorePacket done [12:27:46]KKMCreateOFDPacket done [12:27:46]NVStorageSaveData kkm_last_timestamp [12:27:46]File name is /storage/kkm_last_timestamp [12:27:46]Write 4 bytes [12:27:46]NVStorageSaveData done [12:27:46]ExternCall_PrintAddStr [12:27:46]wPrintStart [12:27:46]Write to MH i2c: 01 00 00 A9 03 AC [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 07 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [12:27:46]RasterBufferAndPrint [12:27:46]line Счет N : (1)952608 [12:27:46]line ИНН: 02508201610067 [12:27:46]line Контрольно-Кассовый Чек [12:27:46]line ПРОДАЖА [12:27:46]line ТРК (МРК, ГНК) : 31 [12:27:46]line Товар: 2710124500 [12:27:46]line Аи-95-К-3 [12:27:46]line 33.700 * 74.20 [12:27:46]line = 2500.54 [12:27:46]line НДС 12% НСП 1% [12:27:46]line > о реализуемом товаре [12:27:46]line ОКРУГЛЕНИЕ: -0.54 [12:27:46]line ИТОГО: 2500.00 [12:27:46]line Внесено: 2500.00 [12:27:46]line СДАЧА: 0.00 [12:27:46]line НСП 1% : 22.13 [12:27:46]line НДС 12% : 265.54 [12:27:46]line Наличными: 2500.00 [12:27:46]line Безнал.: 0.00 [12:27:46]line Место: АЗС № 113 "Партнер Нефть" [12:27:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:27:46]line СНО: Общий режим [12:27:46]line Чек 82 31.10.2024 12:27 [12:27:46]line Смена: 557 ФФД: 1.0 [12:27:46]line ЗНМ: 0300000087 [12:27:46]line РНМ: 0000000000091644 [12:27:46]line Версия ККМ: 001 [12:27:46]line ФМ: 0000000000874662 [12:27:46]line ФД: 73007 [12:27:46]line ФПД: 222741859932215 [12:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122745&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73007&fm=222741859932215&tin=02508201610067®Number=0000000000091644&sum=250000 [12:27:47]OFD Sender: Processing packet 73007 [packets to send 279, broken 278] [12:27:47]ProducePacketName [12:27:47]name=ofd_packets/00073007 [12:27:47]OFD Sender: To server: pG, [12:27:47]CommunicateWithHost lk.salyk.kg:30040 [12:27:47]ConnectInit lk.salyk.kg [12:27:47]written 0, free lines is 4095 [12:27:47]Write to MH i2c: 01 00 00 D4 03 D7 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 07 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 D9 0C C3 [12:27:47]RasterBufferAndPrint [12:27:47]line [12:27:47]line [12:27:47]line [12:27:47]line [12:27:47]line [12:27:47]written 0, free lines is 3296 [12:27:47]MH_Cut [12:27:47]Write to MH i2c: D1 01 00 DB 03 01 B0 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: D1 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: D1 01 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: D1 01 00 DB 03 00 AF [12:27:47]Write to MH i2c: 01 00 00 DC 03 DF [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:48]*** Cut start [12:27:48]*** Partial cut [12:27:48]*** CUTSNS_PIN = 1 [12:27:48]*** CUTSNS_PIN = 0 [12:27:48]recv_with_timeout no data received [12:27:48]*** Brake cut motor [12:27:49]Read from MH i2c: 01 [12:27:49]MH_I2C_Read... [12:27:49]*** Stop cut motor [12:27:49]*** Cut end [12:27:49]Read from MH i2c: 01 07 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 FF 0F F4 [12:27:49]process_action close_receipt done [12:27:49]requested_data is exist [12:27:49]produce_requested_data [12:27:49]requested_item fm.sn is exist - process it [12:27:49]wFMCommunicate request_size=4 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 11 00 00 [12:27:49]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 17 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 17 00 DD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AE [12:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:27:49]wFMCommunicate OK [12:27:49]requested_item fd.num is exist - process it [12:27:49]SAM_PROTO_GetFieldsCounters [12:27:49]wFMCommunicate request_size=4 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 13 00 00 [12:27:49]Write to MH i2c: E2 08 00 DE 03 80 13 00 00 00 00 00 00 5D [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 62 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 62 00 DE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [12:27: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:49]wFMCommunicate OK [12:27:49]SAM_PROTO_GetFieldsCounters done [12:27:49]requested_item shift.num is exist - process it [12:27:49]requested_item shift.opened is exist - process it [12:27:49]req_shift_opened [12:27:49]FM_GetShiftState [12:27:49]SAM_PROTO_GetShiftState [12:27:49]wFMCommunicate request_size=4 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 13 01 00 [12:27:49]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 0E 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 08 [12:27:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:27:49]wFMCommunicate OK [12:27:49]SAM_PROTO_GetShiftState done [12:27:49]FM_GetShiftState done [12:27:49]req_shift_opened done [12:27:49]requested_item shift.open_date is exist - process it [12:27:49]req_shift_open_date [12:27:49]req_shift_open_date done [12:27:49]produce_requested_data done [12:27:49]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73007,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:27:49]process_action_free close_receipt [12:27:49]json_value_free [12:27:49]json_value_free done [12:27:49]process_json_proto returns [12:27:49]Send response to host [12:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73007,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:27:49]free response buf [12:27:49]execute_script done [12:27:49]execute_script returns [12:27:49]free content buf [12:27:49]Sock 10.Close socket [12:27:49]Sock 10.Thread stoped [12:27:51]Connected sock=11 [12:27:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A3 A5 07 01 E1 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C1 77 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2F 1D 01 00 35 04 06 00 CA 95 21 70 18 37 8E 59 B5 2A C4 97 CB 98 [12:27:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E7 11 47 00 0E 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 34 36 36 32 10 04 04 00 2F 1D 01 00 F4 03 04 00 7B 22 23 67 B6 04 01 00 00 8C A4 2F E4 09 A6 82 C2 [12:27:51]CommunicateWithHost err = 0 [12:27:51]CheckOFDResponse [12:27:51]1017 (14) - 77093643461234 [12:27:51]1041 (16) - 0000000000874662 [12:27:51]1040 (4) - 73007 [12:27:51]1012 (4) - 31.10.2024 06:23 [12:27:51]1206 (1) - 0 [12:27:51]OFD Sender: Remove packet 73007 [12:27:51]ProducePacketName [12:27:51]name=ofd_packets/00073007 [12:27:51]NVStorageDeleteData [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:36]recv_with_timeout no data received [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:00]recv_with_timeout no data received [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:07]recv_with_timeout no data received [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]accept exits with 9 [12:33:42]New connection [12:33:42]New thread 3066559844 created [12:33:42]Thread 3066703204 joined [12:33:42]Waiting for new connection... [12:33:42] Sock 9.Parse request [12:33:42]Sock 9.Check first char [12:33:42]Sock 9.First char is OK [12:33:42]request: POST /json_proto HTTP/1.0 [12:33:42]Method: POST [12:33:42]URL: /json_proto [12:33:42]Method is POST - this is cgi request [12:33:42]url: /json_proto [12:33:42]query_string will be loaded in cgi processing [12:33:42]execute_cgi json_proto POST (null) [12:33:42]execute_cgi path=json_proto method=POST [12:33:42]POST find Content-Length [12:33:42]Host: 172.17.43.195:8080 [12:33:42]Content-Length: 677 [12:33:42]Content-Type: application/json [12:33:42] [12:33:42]POST finish read [12:33:42]Found Content-Length = 677 [12:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:42]execute_script... [12:33:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:42]POST & json_proto [12:33:42]process_json_proto [12:33:42]json parsed OK: [12:33:42]protocol is kg_v1.0 [12:33:42]action value=close_receipt [12:33:42]process_action close_receipt [12:33:42]cmd_close_receipt [12:33:42]MH_GetDate [12:33:42]Write to MH i2c: F0 00 00 E0 03 D2 [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: F0 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: F0 09 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: F0 09 00 E0 03 00 26 79 23 67 74 2C AD 66 B7 [12:33:42]GetLastDocTimeStamp 1730377665 [12:33:42]current date 1730378022 [12:33:42]FM_GetShiftState [12:33:42]SAM_PROTO_GetShiftState [12:33:42]wFMCommunicate request_size=4 [12:33:42]MH_SAM_APDU [12:33:42]CAPDU: 80 13 01 00 [12:33:42]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:42]Read from MH i2c: E2 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: E2 0E 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0A [12:33:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:33:42]wFMCommunicate OK [12:33:42]SAM_PROTO_GetShiftState done [12:33:42]FM_GetShiftState done [12:33:42]opened in 1730333258 [12:33:42]opened+sec_in_day 1730419658 [12:33:42]quantity*price = 30038 [12:33:42]sum+1 = 30039 [12:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 83 31.10.2024 12:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73008 ФПД: 197063028030214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T123342&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73008&fm=197063028030214&tin=02508201610067®Number=0000000000091644&sum=30000 [12:33:43]StoreToDocumentArchive [12:33:43]shift 557 fd 73008 [12:33:43]save to /storage/0557/doc_00073008 [12:33:43]save last doc name /storage/0557/doc_00073008 to /storage/kkm_last_doc_name [12:33:43]save OK [12:33:43]Clear old archive folders... [12:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:43]tlvbuf is 00182EC0 [12:33:43]SAM_PROTO_ClearQueue [12:33:43]wFMCommunicate request_size=4 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 09 00 00 [12:33:43]Write to MH i2c: E2 08 00 EE 03 80 09 00 00 00 00 00 00 63 [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:43]Read from MH i2c: E2 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 03 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [12:33:43]RAPDU: 90 00 [12:33:43]wFMCommunicate OK [12:33:43]SAM_PROTO_ClearQueue done [12:33:43]KKMCreateOFDPacket [12:33:43]OFDProtocolAddRootSTLVToBuf [12:33:43]FM_MakeSignedData [12:33:43]FM_MakeSignedData [12:33:43]SAM_PROTO_SignData [12:33:43]wFMCommunicate request_size=4 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 0D 01 02 [12:33:43]Write to MH i2c: E2 08 00 EF 03 80 0D 01 02 00 00 00 00 6B [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:43]Read from MH i2c: E2 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 03 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [12:33:43]RAPDU: 90 00 [12:33:43]wFMCommunicate OK [12:33:43]wFMCommunicate request_size=255 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 26 79 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1D 01 00 35 04 06 00 B3 [12:33:43]Write to MH i2c: E2 02 01 F0 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 26 79 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1D 01 00 35 04 06 00 B3 00 00 9A [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [12:33:44]RAPDU: 90 00 [12:33:44]wFMCommunicate OK [12:33:44]wFMCommunicate request_size=10 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 0D 02 02 05 3A 4F C8 BB 06 [12:33:44]Write to MH i2c: E2 0D 00 F1 03 80 0D 02 02 05 00 3A 4F C8 BB 06 00 00 8A [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [12:33:44]RAPDU: 90 00 [12:33:44]wFMCommunicate OK [12:33:44]wFMCommunicate request_size=4 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 0D 03 02 [12:33:44]Write to MH i2c: E2 08 00 F2 03 80 0D 03 02 00 00 00 00 70 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 0B 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 0B 00 F2 03 00 7B A7 24 7B 11 CC F2 F2 90 00 F3 [12:33:44]RAPDU: 7B A7 24 7B 11 CC F2 F2 90 00 [12:33:44]wFMCommunicate OK [12:33:44]SAM_PROTO_SignData done [12:33:44]FM_MakeSignedData done [12:33:44]CreateOFDProtocolMessage [12:33:44]wFMCommunicate request_size=4 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 11 00 00 [12:33:44]Write to MH i2c: E2 08 00 F3 03 80 11 00 00 00 00 00 00 70 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 17 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 17 00 F3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C4 [12:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:33:44]wFMCommunicate OK [12:33:44]CreateOFDProtocolMessage done [12:33:44]OFDSenderStorePacket 73008 [12:33:44]StoreOFDPacket docnum=73008 [12:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BB 41 07 01 A8 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 26 79 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1D 01 00 35 04 06 00 B3 3A 4F C8 BB 06 7B A7 24 7B 11 CC F2 F2 [12:33:44]CheckFolder [12:33:44]dirname=/storage/ofd_packets [12:33:44]CheckFolder done [12:33:44]ProducePacketName [12:33:44]name=ofd_packets/00073008 [12:33:44]NVStorageSaveData ofd_packets/00073008 [12:33:44]File name is /storage/ofd_packets/00073008 [12:33:44]Write 301 bytes [12:33:44]NVStorageSaveData done [12:33:44]OFDSenderStorePacket done [12:33:44]KKMCreateOFDPacket done [12:33:44]NVStorageSaveData kkm_last_timestamp [12:33:44]File name is /storage/kkm_last_timestamp [12:33:44]Write 4 bytes [12:33:44]NVStorageSaveData done [12:33:44]ExternCall_PrintAddStr [12:33:44]wPrintStart [12:33:44]Write to MH i2c: 01 00 00 F4 03 F7 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: 01 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: 01 07 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 FF 0F 0C [12:33:44]RasterBufferAndPrint [12:33:44]line Счет N : (1)952609 [12:33:44]line ИНН: 02508201610067 [12:33:44]line Контрольно-Кассовый Чек [12:33:44]line ПРОДАЖА [12:33:44]line ТРК (МРК, ГНК) : 53 [12:33:44]line Товар: 2710124130 [12:33:44]line Аи-92-К-5 [12:33:44]line 4.490 * 66.90 [12:33:44]line = 300.38 [12:33:44]line НДС 12% НСП 1% [12:33:44]line > о реализуемом товаре [12:33:44]line ОКРУГЛЕНИЕ: -0.38 [12:33:44]line ИТОГО: 300.00 [12:33:44]line Внесено: 300.00 [12:33:44]line СДАЧА: 0.00 [12:33:44]line НСП 1% : 2.66 [12:33:44]line НДС 12% : 31.90 [12:33:44]line Наличными: 300.00 [12:33:44]line Безнал.: 0.00 [12:33:44]line Место: АЗС № 113 "Партнер Нефть" [12:33:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:33:44]line СНО: Общий режим [12:33:44]line Чек 83 31.10.2024 12:33 [12:33:44]line Смена: 557 ФФД: 1.0 [12:33:44]line ЗНМ: 0300000087 [12:33:44]line РНМ: 0000000000091644 [12:33:44]line Версия ККМ: 001 [12:33:44]line ФМ: 0000000000874662 [12:33:44]line ФД: 73008 [12:33:44]line ФПД: 197063028030214 [12:33:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T123342&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73008&fm=197063028030214&tin=02508201610067®Number=0000000000091644&sum=30000 [12:33:44]written 0, free lines is 4095 [12:33:44]OFD Sender: Processing packet 73008 [packets to send 279, broken 278] [12:33:44]ProducePacketName [12:33:44]name=ofd_packets/00073008 [12:33:44]OFD Sender: To server: pG, [12:33:44]CommunicateWithHost lk.salyk.kg:30040 [12:33:44]ConnectInit lk.salyk.kg [12:33:44]Write to MH i2c: 01 00 00 1F 04 23 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: 01 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: 01 07 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 CD 0C 03 [12:33:44]RasterBufferAndPrint [12:33:44]line [12:33:44]line [12:33:44]line [12:33:44]line [12:33:44]line [12:33:44]written 0, free lines is 3283 [12:33:44]MH_Cut [12:33:44]Write to MH i2c: D1 01 00 26 04 01 FC [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: D1 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: D1 01 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: D1 01 00 26 04 00 FB [12:33:44]Write to MH i2c: 01 00 00 27 04 2B [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]Connected sock=7 [12:33:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BB 41 07 01 A8 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 26 79 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1D 01 00 35 04 06 00 B3 3A 4F C8 BB 06 7B A7 24 7B 11 CC F2 F2 [12:33:45]*** Cut start [12:33:45]*** Partial cut [12:33:45]*** CUTSNS_PIN = 1 [12:33:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B2 3F 47 00 B3 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1D 01 00 F4 03 04 00 DC 23 23 67 B6 04 01 00 00 97 27 88 20 6D 85 C8 94 [12:33:45]CommunicateWithHost err = 0 [12:33:45]CheckOFDResponse [12:33:45]1017 (14) - 77093643461234 [12:33:45]1041 (16) - 0000000000874662 [12:33:45]1040 (4) - 73008 [12:33:45]1012 (4) - 31.10.2024 06:29 [12:33:45]1206 (1) - 0 [12:33:45]OFD Sender: Remove packet 73008 [12:33:45]ProducePacketName [12:33:45]name=ofd_packets/00073008 [12:33:45]NVStorageDeleteData [12:33:45]*** CUTSNS_PIN = 0 [12:33:45]*** Brake cut motor [12:33:45]OFD Sender: No OFD packet to send [12:33:46]Read from MH i2c: 01 [12:33:46]MH_I2C_Read... [12:33:46]*** Stop cut motor [12:33:46]*** Cut end [12:33:46]Read from MH i2c: 01 07 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [12:33:46]process_action close_receipt done [12:33:46]requested_data is exist [12:33:46]produce_requested_data [12:33:46]requested_item fm.sn is exist - process it [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 11 00 00 [12:33:46]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FA [12:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:33:46]wFMCommunicate OK [12:33:46]requested_item fd.num is exist - process it [12:33:46]SAM_PROTO_GetFieldsCounters [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 13 00 00 [12:33:46]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 62 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 62 00 29 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 30 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [12:33:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 30 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:46]wFMCommunicate OK [12:33:46]SAM_PROTO_GetFieldsCounters done [12:33:46]requested_item shift.num is exist - process it [12:33:46]requested_item shift.opened is exist - process it [12:33:46]req_shift_opened [12:33:46]FM_GetShiftState [12:33:46]SAM_PROTO_GetShiftState [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 13 01 00 [12:33:46]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:46]Read from MH i2c: E2 0E 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 54 [12:33:46]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:33:46]wFMCommunicate OK [12:33:46]SAM_PROTO_GetShiftState done [12:33:46]FM_GetShiftState done [12:33:46]req_shift_opened done [12:33:46]requested_item shift.open_date is exist - process it [12:33:46]req_shift_open_date [12:33:46]req_shift_open_date done [12:33:46]produce_requested_data done [12:33:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73008,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:33:46]process_action_free close_receipt [12:33:46]json_value_free [12:33:46]json_value_free done [12:33:46]process_json_proto returns [12:33:46]Send response to host [12:33:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73008,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:33:46]free response buf [12:33:46]execute_script done [12:33:46]execute_script returns [12:33:46]free content buf [12:33:46]Sock 9.Close socket [12:33:46]Sock 9.Thread stoped [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]recv_with_timeout no data received [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:18]recv_with_timeout no data received [12:34:20]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:34]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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:01]recv_with_timeout no data received [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:21]recv_with_timeout no data received [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:42]accept exits with 10 [12:36:42]New connection [12:36:42]New thread 3066703204 created [12:36:42]Thread 3066559844 joined [12:36:42]Waiting for new connection... [12:36:42] Sock 10.Parse request [12:36:42]Sock 10.Check first char [12:36:42]Sock 10.First char is OK [12:36:42]request: POST /json_proto HTTP/1.0 [12:36:42]Method: POST [12:36:42]URL: /json_proto [12:36:42]Method is POST - this is cgi request [12:36:42]url: /json_proto [12:36:42]query_string will be loaded in cgi processing [12:36:42]execute_cgi json_proto POST (null) [12:36:42]execute_cgi path=json_proto method=POST [12:36:42]POST find Content-Length [12:36:42]Host: 172.17.43.195:8080 [12:36:42]Content-Length: 677 [12:36:42]Content-Type: application/json [12:36:42] [12:36:42]POST finish read [12:36:42]Found Content-Length = 677 [12:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:42]execute_script... [12:36:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:42]POST & json_proto [12:36:42]process_json_proto [12:36:42]json parsed OK: [12:36:42]protocol is kg_v1.0 [12:36:42]action value=close_receipt [12:36:42]process_action close_receipt [12:36:42]cmd_close_receipt [12:36:42]MH_GetDate [12:36:42]Write to MH i2c: F0 00 00 2B 04 1E [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 2B 04 00 DA 79 23 67 74 2C AD 66 B7 [12:36:42]GetLastDocTimeStamp 1730378022 [12:36:42]current date 1730378202 [12:36:42]FM_GetShiftState [12:36:42]SAM_PROTO_GetShiftState [12:36:42]wFMCommunicate request_size=4 [12:36:42]MH_SAM_APDU [12:36:42]CAPDU: 80 13 01 00 [12:36:42]Write to MH i2c: E2 08 00 2C 04 80 13 01 00 00 00 00 00 AD [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 2C 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 56 [12:36:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:36:42]wFMCommunicate OK [12:36:42]SAM_PROTO_GetShiftState done [12:36:42]FM_GetShiftState done [12:36:42]opened in 1730333258 [12:36:42]opened+sec_in_day 1730419658 [12:36:42]quantity*price = 30038 [12:36:42]sum+1 = 30039 [12:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 84 31.10.2024 12:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73009 ФПД: 243810484291661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T123642&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73009&fm=243810484291661&tin=02508201610067®Number=0000000000091644&sum=30000 [12:36:43]StoreToDocumentArchive [12:36:43]shift 557 fd 73009 [12:36:43]save to /storage/0557/doc_00073009 [12:36:43]save last doc name /storage/0557/doc_00073009 to /storage/kkm_last_doc_name [12:36:43]save OK [12:36:43]Clear old archive folders... [12:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:43]tlvbuf is 00176B70 [12:36:43]SAM_PROTO_ClearQueue [12:36:43]wFMCommunicate request_size=4 [12:36:43]MH_SAM_APDU [12:36:43]CAPDU: 80 09 00 00 [12:36:43]Write to MH i2c: E2 08 00 39 04 80 09 00 00 00 00 00 00 AF [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:43]Read from MH i2c: E2 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [12:36:43]RAPDU: 90 00 [12:36:43]wFMCommunicate OK [12:36:43]SAM_PROTO_ClearQueue done [12:36:43]KKMCreateOFDPacket [12:36:43]OFDProtocolAddRootSTLVToBuf [12:36:43]FM_MakeSignedData [12:36:43]FM_MakeSignedData [12:36:43]SAM_PROTO_SignData [12:36:43]wFMCommunicate request_size=4 [12:36:43]MH_SAM_APDU [12:36:43]CAPDU: 80 0D 01 02 [12:36:43]Write to MH i2c: E2 08 00 3A 04 80 0D 01 02 00 00 00 00 B7 [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:43]Read from MH i2c: E2 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [12:36:43]RAPDU: 90 00 [12:36:43]wFMCommunicate OK [12:36:43]wFMCommunicate request_size=255 [12:36:43]MH_SAM_APDU [12:36:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DA 79 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 31 1D 01 00 35 04 06 00 DD [12:36:43]Write to MH i2c: E2 02 01 3B 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DA 79 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 31 1D 01 00 35 04 06 00 DD 00 00 C6 [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:43]Read from MH i2c: E2 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [12:36:43]RAPDU: 90 00 [12:36:43]wFMCommunicate OK [12:36:43]wFMCommunicate request_size=10 [12:36:43]MH_SAM_APDU [12:36:43]CAPDU: 80 0D 02 02 05 BE 8D 4F 08 4D [12:36:43]Write to MH i2c: E2 0D 00 3C 04 80 0D 02 02 05 00 BE 8D 4F 08 4D 00 00 B3 [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:43]Read from MH i2c: E2 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [12:36:43]RAPDU: 90 00 [12:36:43]wFMCommunicate OK [12:36:43]wFMCommunicate request_size=4 [12:36:43]MH_SAM_APDU [12:36:43]CAPDU: 80 0D 03 02 [12:36:43]Write to MH i2c: E2 08 00 3D 04 80 0D 03 02 00 00 00 00 BC [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:43]Read from MH i2c: E2 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 0B 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 0B 00 3D 04 00 CB C0 2D 3C BF D5 22 38 90 00 9F [12:36:43]RAPDU: CB C0 2D 3C BF D5 22 38 90 00 [12:36:43]wFMCommunicate OK [12:36:43]SAM_PROTO_SignData done [12:36:43]FM_MakeSignedData done [12:36:43]CreateOFDProtocolMessage [12:36:43]wFMCommunicate request_size=4 [12:36:43]MH_SAM_APDU [12:36:43]CAPDU: 80 11 00 00 [12:36:43]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:43]Read from MH i2c: E2 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 17 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 10 [12:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:36:43]wFMCommunicate OK [12:36:43]CreateOFDProtocolMessage done [12:36:43]OFDSenderStorePacket 73009 [12:36:43]StoreOFDPacket docnum=73009 [12:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 35 5A 07 01 A9 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DA 79 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 31 1D 01 00 35 04 06 00 DD BE 8D 4F 08 4D CB C0 2D 3C BF D5 22 38 [12:36:43]CheckFolder [12:36:43]dirname=/storage/ofd_packets [12:36:43]CheckFolder done [12:36:43]ProducePacketName [12:36:43]name=ofd_packets/00073009 [12:36:43]NVStorageSaveData ofd_packets/00073009 [12:36:43]File name is /storage/ofd_packets/00073009 [12:36:43]Write 301 bytes [12:36:43]NVStorageSaveData done [12:36:43]OFDSenderStorePacket done [12:36:43]KKMCreateOFDPacket done [12:36:43]NVStorageSaveData kkm_last_timestamp [12:36:43]File name is /storage/kkm_last_timestamp [12:36:43]Write 4 bytes [12:36:43]NVStorageSaveData done [12:36:43]ExternCall_PrintAddStr [12:36:43]wPrintStart [12:36:43]Write to MH i2c: 01 00 00 3F 04 43 [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: 01 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: 01 07 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FF 0F 58 [12:36:43]RasterBufferAndPrint [12:36:43]line Счет N : (1)952610 [12:36:43]line ИНН: 02508201610067 [12:36:43]line Контрольно-Кассовый Чек [12:36:43]line ПРОДАЖА [12:36:43]line ТРК (МРК, ГНК) : 63 [12:36:43]line Товар: 2710124130 [12:36:43]line Аи-92-К-5 [12:36:43]line 4.490 * 66.90 [12:36:43]line = 300.38 [12:36:43]line НДС 12% НСП 1% [12:36:43]line > о реализуемом товаре [12:36:43]line ОКРУГЛЕНИЕ: -0.38 [12:36:43]line ИТОГО: 300.00 [12:36:43]line Внесено: 300.00 [12:36:43]line СДАЧА: 0.00 [12:36:43]line НСП 1% : 2.66 [12:36:43]line НДС 12% : 31.90 [12:36:43]line Наличными: 300.00 [12:36:43]line Безнал.: 0.00 [12:36:43]line Место: АЗС № 113 "Партнер Нефть" [12:36:43]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:36:43]line СНО: Общий режим [12:36:43]line Чек 84 31.10.2024 12:36 [12:36:43]line Смена: 557 ФФД: 1.0 [12:36:43]line ЗНМ: 0300000087 [12:36:43]line РНМ: 0000000000091644 [12:36:43]line Версия ККМ: 001 [12:36:43]line ФМ: 0000000000874662 [12:36:43]line ФД: 73009 [12:36:43]line ФПД: 243810484291661 [12:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T123642&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73009&fm=243810484291661&tin=02508201610067®Number=0000000000091644&sum=30000 [12:36:43]written 0, free lines is 4095 [12:36:43]OFD Sender: Processing packet 73009 [packets to send 279, broken 278] [12:36:43]ProducePacketName [12:36:43]name=ofd_packets/00073009 [12:36:43]OFD Sender: To server: pG, [12:36:43]CommunicateWithHost lk.salyk.kg:30040 [12:36:43]ConnectInit lk.salyk.kg [12:36:44]Write to MH i2c: 01 00 00 6A 04 6E [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 CD 0C 4E [12:36:44]RasterBufferAndPrint [12:36:44]line [12:36:44]line [12:36:44]line [12:36:44]line [12:36:44]line [12:36:44]written 0, free lines is 3283 [12:36:44]MH_Cut [12:36:44]Write to MH i2c: D1 01 00 71 04 01 47 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: D1 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: D1 01 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: D1 01 00 71 04 00 46 [12:36:44]Write to MH i2c: 01 00 00 72 04 76 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:45]*** Cut start [12:36:45]*** Partial cut [12:36:45]*** CUTSNS_PIN = 1 [12:36:45]*** CUTSNS_PIN = 0 [12:36:45]*** Brake cut motor [12:36:45]Read from MH i2c: 01 [12:36:45]MH_I2C_Read... [12:36:45]*** Stop cut motor [12:36:45]*** Cut end [12:36:45]Read from MH i2c: 01 07 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 FF 0F 8B [12:36:45]process_action close_receipt done [12:36:45]requested_data is exist [12:36:45]produce_requested_data [12:36:45]requested_item fm.sn is exist - process it [12:36:45]wFMCommunicate request_size=4 [12:36:45]MH_SAM_APDU [12:36:45]CAPDU: 80 11 00 00 [12:36:45]Write to MH i2c: E2 08 00 73 04 80 11 00 00 00 00 00 00 F1 [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:45]Read from MH i2c: E2 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: E2 17 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: E2 17 00 73 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 45 [12:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:36:45]wFMCommunicate OK [12:36:45]requested_item fd.num is exist - process it [12:36:45]SAM_PROTO_GetFieldsCounters [12:36:45]wFMCommunicate request_size=4 [12:36:45]MH_SAM_APDU [12:36:45]CAPDU: 80 13 00 00 [12:36:45]Write to MH i2c: E2 08 00 74 04 80 13 00 00 00 00 00 00 F4 [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:45]Read from MH i2c: E2 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: E2 62 00 [12:36:45]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 62 00 74 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 31 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [12:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 31 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:46]wFMCommunicate OK [12:36:46]SAM_PROTO_GetFieldsCounters done [12:36:46]requested_item shift.num is exist - process it [12:36:46]requested_item shift.opened is exist - process it [12:36:46]req_shift_opened [12:36:46]FM_GetShiftState [12:36:46]SAM_PROTO_GetShiftState [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 13 01 00 [12:36:46]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 0E 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 9F [12:36:46]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:36:46]wFMCommunicate OK [12:36:46]SAM_PROTO_GetShiftState done [12:36:46]FM_GetShiftState done [12:36:46]req_shift_opened done [12:36:46]requested_item shift.open_date is exist - process it [12:36:46]req_shift_open_date [12:36:46]req_shift_open_date done [12:36:46]produce_requested_data done [12:36:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73009,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:36:46]process_action_free close_receipt [12:36:46]json_value_free [12:36:46]json_value_free done [12:36:46]process_json_proto returns [12:36:46]Send response to host [12:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73009,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:36:46]free response buf [12:36:46]execute_script done [12:36:46]execute_script returns [12:36:46]free content buf [12:36:46]Sock 10.Close socket [12:36:46]Sock 10.Thread stoped [12:36:47]Connected sock=11 [12:36:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 35 5A 07 01 A9 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DA 79 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 31 1D 01 00 35 04 06 00 DD BE 8D 4F 08 4D CB C0 2D 3C BF D5 22 38 [12:36:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 61 AB 47 00 D0 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 31 1D 01 00 F4 03 04 00 93 24 23 67 B6 04 01 00 00 5C D2 DD 38 42 21 DF 73 [12:36:49]CommunicateWithHost err = 0 [12:36:49]CheckOFDResponse [12:36:49]1017 (14) - 77093643461234 [12:36:49]1041 (16) - 0000000000874662 [12:36:49]1040 (4) - 73009 [12:36:49]1012 (4) - 31.10.2024 06:32 [12:36:49]1206 (1) - 0 [12:36:49]OFD Sender: Remove packet 73009 [12:36:49]ProducePacketName [12:36:49]name=ofd_packets/00073009 [12:36:49]NVStorageDeleteData [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:06]recv_with_timeout no data received [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:17]recv_with_timeout no data received [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:46]recv_with_timeout no data received [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:37:58]recv_with_timeout no data received [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:04]recv_with_timeout no data received [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:44]recv_with_timeout no data received [12:39:45]OFD Sender: No OFD packet to send [12:39:49]accept exits with 9 [12:39:49]New connection [12:39:49]New thread 3066559844 created [12:39:49]Thread 3066703204 joined [12:39:49]Waiting for new connection... [12:39:49] Sock 9.Parse request [12:39:49]Sock 9.Check first char [12:39:49]Sock 9.First char is OK [12:39:49]request: POST /json_proto HTTP/1.0 [12:39:49]Method: POST [12:39:49]URL: /json_proto [12:39:49]Method is POST - this is cgi request [12:39:49]url: /json_proto [12:39:49]query_string will be loaded in cgi processing [12:39:49]execute_cgi json_proto POST (null) [12:39:49]execute_cgi path=json_proto method=POST [12:39:49]POST find Content-Length [12:39:49]Host: 172.17.43.195:8080 [12:39:49]Content-Length: 796 [12:39:49]Content-Type: application/json [12:39:49] [12:39:49]POST finish read [12:39:49]Found Content-Length = 796 [12:39:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:49]execute_script... [12:39: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)952611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:49]POST & json_proto [12:39:49]process_json_proto [12:39:49]json parsed OK: [12:39:49]protocol is kg_v1.0 [12:39:49]action value=close_receipt [12:39:49]process_action close_receipt [12:39:49]cmd_close_receipt [12:39:49]MH_GetDate [12:39:49]Write to MH i2c: F0 00 00 76 04 69 [12:39:49]Write i2c OK [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: F0 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: F0 09 00 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: F0 09 00 76 04 00 95 7A 23 67 74 2C AD 66 BE [12:39:49]GetLastDocTimeStamp 1730378202 [12:39:49]current date 1730378389 [12:39:49]FM_GetShiftState [12:39:49]SAM_PROTO_GetShiftState [12:39:49]wFMCommunicate request_size=4 [12:39:49]MH_SAM_APDU [12:39:49]CAPDU: 80 13 01 00 [12:39:49]Write to MH i2c: E2 08 00 77 04 80 13 01 00 00 00 00 00 F8 [12:39:49]Write i2c OK [12:39:49]MH_I2C_Read... [12:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:49]Read from MH i2c: E2 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 0E 00 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 0E 00 77 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A1 [12:39:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:39:49]wFMCommunicate OK [12:39:49]SAM_PROTO_GetShiftState done [12:39:49]FM_GetShiftState done [12:39:49]opened in 1730333258 [12:39:49]opened+sec_in_day 1730419658 [12:39:49]quantity*price = 0 [12:39:49]sum+1 = 1 [12:39:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 85 31.10.2024 12:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 73010 ФПД: 195295899548727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T123949&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73010&fm=195295899548727&tin=02508201610067®Number=0000000000091644&sum=0 [12:39:50]StoreToDocumentArchive [12:39:50]shift 557 fd 73010 [12:39:50]save to /storage/0557/doc_00073010 [12:39:50]save last doc name /storage/0557/doc_00073010 to /storage/kkm_last_doc_name [12:39:50]save OK [12:39:50]Clear old archive folders... [12:39:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:39:50]tlvbuf is 0017D2C0 [12:39:50]SAM_PROTO_ClearQueue [12:39:50]wFMCommunicate request_size=4 [12:39:50]MH_SAM_APDU [12:39:50]CAPDU: 80 09 00 00 [12:39:50]Write to MH i2c: E2 08 00 84 04 80 09 00 00 00 00 00 00 FA [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:50]OFD Sender: No OFD packet to send [12:39:50]Read from MH i2c: E2 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 03 00 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [12:39:50]RAPDU: 90 00 [12:39:50]wFMCommunicate OK [12:39:50]SAM_PROTO_ClearQueue done [12:39:50]KKMCreateOFDPacket [12:39:50]OFDProtocolAddRootSTLVToBuf [12:39:50]FM_MakeSignedData [12:39:50]FM_MakeSignedData [12:39:50]SAM_PROTO_SignData [12:39:50]wFMCommunicate request_size=4 [12:39:50]MH_SAM_APDU [12:39:50]CAPDU: 80 0D 01 02 [12:39:50]Write to MH i2c: E2 08 00 85 04 80 0D 01 02 00 00 00 00 02 [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:50]Read from MH i2c: E2 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 03 00 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [12:39:50]RAPDU: 90 00 [12:39:50]wFMCommunicate OK [12:39:50]wFMCommunicate request_size=255 [12:39:50]MH_SAM_APDU [12:39:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 95 7A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 32 1D 01 00 35 04 06 00 [12:39:50]Write to MH i2c: E2 02 01 86 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 95 7A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 32 1D 01 00 35 04 06 00 00 00 4F [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [12:39:51]RAPDU: 90 00 [12:39:51]wFMCommunicate OK [12:39:51]wFMCommunicate request_size=11 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 0D 02 02 06 B1 9E DE B7 FC 37 [12:39:51]Write to MH i2c: E2 0E 00 87 04 80 0D 02 02 06 00 B1 9E DE B7 FC 37 00 00 28 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [12:39:51]RAPDU: 90 00 [12:39:51]wFMCommunicate OK [12:39:51]wFMCommunicate request_size=4 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 0D 03 02 [12:39:51]Write to MH i2c: E2 08 00 88 04 80 0D 03 02 00 00 00 00 07 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 0B 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 0B 00 88 04 00 24 01 05 7D EB 33 36 43 90 00 46 [12:39:51]RAPDU: 24 01 05 7D EB 33 36 43 90 00 [12:39:51]wFMCommunicate OK [12:39:51]SAM_PROTO_SignData done [12:39:51]FM_MakeSignedData done [12:39:51]CreateOFDProtocolMessage [12:39:51]wFMCommunicate request_size=4 [12:39:51]MH_SAM_APDU [12:39:51]CAPDU: 80 11 00 00 [12:39:51]Write to MH i2c: E2 08 00 89 04 80 11 00 00 00 00 00 00 07 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:51]Read from MH i2c: E2 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 17 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: E2 17 00 89 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [12:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:39:51]wFMCommunicate OK [12:39:51]CreateOFDProtocolMessage done [12:39:51]OFDSenderStorePacket 73010 [12:39:51]StoreOFDPacket docnum=73010 [12:39:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 23 5C 08 01 21 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 95 7A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 32 1D 01 00 35 04 06 00 B1 9E DE B7 FC 37 24 01 05 7D EB 33 36 43 [12:39:51]CheckFolder [12:39:51]dirname=/storage/ofd_packets [12:39:51]CheckFolder done [12:39:51]ProducePacketName [12:39:51]name=ofd_packets/00073010 [12:39:51]NVStorageSaveData ofd_packets/00073010 [12:39:51]File name is /storage/ofd_packets/00073010 [12:39:51]Write 302 bytes [12:39:51]NVStorageSaveData done [12:39:51]OFDSenderStorePacket done [12:39:51]KKMCreateOFDPacket done [12:39:51]NVStorageSaveData kkm_last_timestamp [12:39:51]File name is /storage/kkm_last_timestamp [12:39:51]Write 4 bytes [12:39:51]NVStorageSaveData done [12:39:51]ExternCall_PrintAddStr [12:39:51]wPrintStart [12:39:51]Write to MH i2c: 01 00 00 8A 04 8E [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 07 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 07 00 8A 04 00 00 00 00 00 FF 0F A3 [12:39:51]RasterBufferAndPrint [12:39:51]line Счет N : (1)952611 [12:39:51]line ИНН: 02508201610067 [12:39:51]line Контрольно-Кассовый Чек [12:39:51]line ПРОДАЖА [12:39:51]line ТРК (МРК, ГНК) : 22 [12:39:51]line Товар: 2710194210 [12:39:51]line ДТ(л)-К-5 [12:39:51]line 5.000 * 0.00 [12:39:51]line = 0.00 [12:39:51]line НДС 12% НСП 1% [12:39:51]line > о реализуемом товаре [12:39:51]line ИТОГО: 0.00 [12:39:51]line НСП 1% : 0.00 [12:39:51]line НДС 12% : 0.00 [12:39:51]line Наличными: 0.00 [12:39:51]line Безнал.: 0.00 [12:39:51]line Место: АЗС № 113 "Партнер Нефть" [12:39:51]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:39:51]line СНО: Общий режим [12:39:51]line Чек 85 31.10.2024 12:39 [12:39:51]line Смена: 557 ФФД: 1.0 [12:39:51]line ЗНМ: 0300000087 [12:39:51]line РНМ: 0000000000091644 [12:39:51]line Версия ККМ: 001 [12:39:51]line Талоны: Топливная Карта [12:39:51]line 53623 [12:39:51]line ФМ: 0000000000874662 [12:39:51]line ФД: 73010 [12:39:51]line ФПД: 195295899548727 [12:39:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T123949&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73010&fm=195295899548727&tin=02508201610067®Number=0000000000091644&sum=0 [12:39:51]OFD Sender: Processing packet 73010 [packets to send 279, broken 278] [12:39:51]ProducePacketName [12:39:51]name=ofd_packets/00073010 [12:39:51]OFD Sender: To server: pG, [12:39:51]CommunicateWithHost lk.salyk.kg:30040 [12:39:51]ConnectInit lk.salyk.kg [12:39:51]written 0, free lines is 4095 [12:39:51]Write to MH i2c: 01 00 00 B4 04 B8 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 07 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 D4 0C 9F [12:39:51]RasterBufferAndPrint [12:39:51]line [12:39:51]line [12:39:51]line [12:39:51]line [12:39:51]line [12:39:51]written 0, free lines is 3290 [12:39:51]MH_Cut [12:39:51]Write to MH i2c: D1 01 00 BB 04 01 91 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: D1 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: D1 01 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: D1 01 00 BB 04 00 90 [12:39:51]Write to MH i2c: 01 00 00 BC 04 C0 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:52]*** Cut start [12:39:52]*** Partial cut [12:39:52]*** CUTSNS_PIN = 1 [12:39:52]*** CUTSNS_PIN = 0 [12:39:53]*** Brake cut motor [12:39:53]Read from MH i2c: 01 [12:39:53]MH_I2C_Read... [12:39:53]*** Stop cut motor [12:39:53]*** Cut end [12:39:53]Read from MH i2c: 01 07 00 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 FF 0F D5 [12:39:53]process_action close_receipt done [12:39:53]requested_data is exist [12:39:53]produce_requested_data [12:39:53]requested_item fm.sn is exist - process it [12:39:53]wFMCommunicate request_size=4 [12:39:53]MH_SAM_APDU [12:39:53]CAPDU: 80 11 00 00 [12:39:53]Write to MH i2c: E2 08 00 BD 04 80 11 00 00 00 00 00 00 3B [12:39:53]Write i2c OK [12:39:53]MH_I2C_Read... [12:39:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:53]Read from MH i2c: E2 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 17 00 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 17 00 BD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8F [12:39:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:39:53]wFMCommunicate OK [12:39:53]requested_item fd.num is exist - process it [12:39:53]SAM_PROTO_GetFieldsCounters [12:39:53]wFMCommunicate request_size=4 [12:39:53]MH_SAM_APDU [12:39:53]CAPDU: 80 13 00 00 [12:39:53]Write to MH i2c: E2 08 00 BE 04 80 13 00 00 00 00 00 00 3E [12:39:53]Write i2c OK [12:39:53]MH_I2C_Read... [12:39:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:53]Read from MH i2c: E2 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 62 00 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 62 00 BE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 32 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [12:39:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 32 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:53]wFMCommunicate OK [12:39:53]SAM_PROTO_GetFieldsCounters done [12:39:53]requested_item shift.num is exist - process it [12:39:53]requested_item shift.opened is exist - process it [12:39:53]req_shift_opened [12:39:53]FM_GetShiftState [12:39:53]SAM_PROTO_GetShiftState [12:39:53]wFMCommunicate request_size=4 [12:39:53]MH_SAM_APDU [12:39:53]CAPDU: 80 13 01 00 [12:39:53]Write to MH i2c: E2 08 00 BF 04 80 13 01 00 00 00 00 00 40 [12:39:53]Write i2c OK [12:39:53]MH_I2C_Read... [12:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:53]Read from MH i2c: E2 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 0E 00 [12:39:53]MH_I2C_Read... [12:39:53]Read from MH i2c: E2 0E 00 BF 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E9 [12:39:53]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:39:53]wFMCommunicate OK [12:39:53]SAM_PROTO_GetShiftState done [12:39:53]FM_GetShiftState done [12:39:53]req_shift_opened done [12:39:53]requested_item shift.open_date is exist - process it [12:39:53]req_shift_open_date [12:39:53]req_shift_open_date done [12:39:53]produce_requested_data done [12:39:53]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73010,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:39:53]process_action_free close_receipt [12:39:53]json_value_free [12:39:53]json_value_free done [12:39:53]process_json_proto returns [12:39:53]Send response to host [12:39:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73010,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:39:53]free response buf [12:39:53]execute_script done [12:39:53]execute_script returns [12:39:53]free content buf [12:39:53]Sock 9.Close socket [12:39:53]Sock 9.Thread stoped [12:39:55]Connected sock=11 [12:39:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 23 5C 08 01 21 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 95 7A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 32 1D 01 00 35 04 06 00 B1 9E DE B7 FC 37 24 01 05 7D EB 33 36 43 [12:39:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 16 49 47 00 8B CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 32 1D 01 00 F4 03 04 00 4F 25 23 67 B6 04 01 00 00 FA 82 33 26 4D 32 7F 1C [12:39:55]CommunicateWithHost err = 0 [12:39:55]CheckOFDResponse [12:39:55]1017 (14) - 77093643461234 [12:39:55]1041 (16) - 0000000000874662 [12:39:55]1040 (4) - 73010 [12:39:55]1012 (4) - 31.10.2024 06:35 [12:39:55]1206 (1) - 0 [12:39:55]OFD Sender: Remove packet 73010 [12:39:55]ProducePacketName [12:39:55]name=ofd_packets/00073010 [12:39:55]NVStorageDeleteData [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:06]recv_with_timeout no data received [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:22]recv_with_timeout no data received [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:30]recv_with_timeout no data received [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:30]recv_with_timeout no data received [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:40]recv_with_timeout no data received [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:10]recv_with_timeout no data received [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:20]recv_with_timeout no data received [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]recv_with_timeout no data received [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:41]recv_with_timeout no data received [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:53]recv_with_timeout no data received [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:17]recv_with_timeout no data received [12:47:21]OFD Sender: No OFD packet to send [12:47:22]accept exits with 7 [12:47:22]New connection [12:47:22]New thread 3066703204 created [12:47:22]Thread 3066559844 joined [12:47:22]Waiting for new connection... [12:47:22] Sock 7.Parse request [12:47:22]Sock 7.Check first char [12:47:22]Sock 7.First char is OK [12:47:22]request: POST /json_proto HTTP/1.0 [12:47:22]Method: POST [12:47:22]URL: /json_proto [12:47:22]Method is POST - this is cgi request [12:47:22]url: /json_proto [12:47:22]query_string will be loaded in cgi processing [12:47:22]execute_cgi json_proto POST (null) [12:47:22]execute_cgi path=json_proto method=POST [12:47:22]POST find Content-Length [12:47:22]Host: 172.17.43.195:8080 [12:47:22]Content-Length: 687 [12:47:22]Content-Type: application/json [12:47:22] [12:47:22]POST finish read [12:47:22]Found Content-Length = 687 [12:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:22]execute_script... [12:47: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)952612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:22]POST & json_proto [12:47:22]process_json_proto [12:47:22]json parsed OK: [12:47:22]protocol is kg_v1.0 [12:47:22]action value=close_receipt [12:47:22]process_action close_receipt [12:47:22]cmd_close_receipt [12:47:22]MH_GetDate [12:47:22]Write to MH i2c: F0 00 00 C0 04 B3 [12:47:22]Write i2c OK [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: F0 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: F0 09 00 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: F0 09 00 C0 04 00 5B 7C 23 67 74 2C AD 66 D0 [12:47:22]GetLastDocTimeStamp 1730378389 [12:47:22]current date 1730378843 [12:47:22]FM_GetShiftState [12:47:22]SAM_PROTO_GetShiftState [12:47:22]wFMCommunicate request_size=4 [12:47:22]MH_SAM_APDU [12:47:22]CAPDU: 80 13 01 00 [12:47:22]Write to MH i2c: E2 08 00 C1 04 80 13 01 00 00 00 00 00 42 [12:47:22]Write i2c OK [12:47:22]MH_I2C_Read... [12:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:22]Read from MH i2c: E2 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 0E 00 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 0E 00 C1 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 EB [12:47:22]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:47:22]wFMCommunicate OK [12:47:22]SAM_PROTO_GetShiftState done [12:47:22]FM_GetShiftState done [12:47:22]opened in 1730333258 [12:47:22]opened+sec_in_day 1730419658 [12:47:22]quantity*price = 130073 [12:47:22]sum+1 = 130074 [12:47:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 86 31.10.2024 12:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73011 ФПД: 72949420010855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124723&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73011&fm=72949420010855&tin=02508201610067®Number=0000000000091644&sum=130000 [12:47:24]StoreToDocumentArchive [12:47:24]shift 557 fd 73011 [12:47:24]save to /storage/0557/doc_00073011 [12:47:24]save last doc name /storage/0557/doc_00073011 to /storage/kkm_last_doc_name [12:47:24]save OK [12:47:24]Clear old archive folders... [12:47:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:47:24]tlvbuf is 0017ED60 [12:47:24]SAM_PROTO_ClearQueue [12:47:24]wFMCommunicate request_size=4 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 09 00 00 [12:47:24]Write to MH i2c: E2 08 00 CE 04 80 09 00 00 00 00 00 00 44 [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:24]Read from MH i2c: E2 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 03 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [12:47:24]RAPDU: 90 00 [12:47:24]wFMCommunicate OK [12:47:24]SAM_PROTO_ClearQueue done [12:47:24]KKMCreateOFDPacket [12:47:24]OFDProtocolAddRootSTLVToBuf [12:47:24]FM_MakeSignedData [12:47:24]FM_MakeSignedData [12:47:24]SAM_PROTO_SignData [12:47:24]wFMCommunicate request_size=4 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 0D 01 02 [12:47:24]Write to MH i2c: E2 08 00 CF 04 80 0D 01 02 00 00 00 00 4C [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:24]Read from MH i2c: E2 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 03 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [12:47:24]RAPDU: 90 00 [12:47:24]wFMCommunicate OK [12:47:24]wFMCommunicate request_size=255 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 5B 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 33 1D 01 00 35 04 06 00 [12:47:24]Write to MH i2c: E2 02 01 D0 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 5B 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 33 1D 01 00 35 04 06 00 00 00 F4 [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:24]Read from MH i2c: E2 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 03 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [12:47:24]RAPDU: 90 00 [12:47:24]wFMCommunicate OK [12:47:24]wFMCommunicate request_size=11 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 0D 02 02 06 42 58 DC 44 2D 67 [12:47:24]Write to MH i2c: E2 0E 00 D1 04 80 0D 02 02 06 00 42 58 DC 44 2D 67 00 00 A9 [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:24]Read from MH i2c: E2 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 03 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [12:47:24]RAPDU: 90 00 [12:47:24]wFMCommunicate OK [12:47:24]wFMCommunicate request_size=4 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 0D 03 02 [12:47:24]Write to MH i2c: E2 08 00 D2 04 80 0D 03 02 00 00 00 00 51 [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:24]Read from MH i2c: E2 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 0B 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 0B 00 D2 04 00 36 0D D9 B6 48 57 48 B7 90 00 C2 [12:47:24]RAPDU: 36 0D D9 B6 48 57 48 B7 90 00 [12:47:24]wFMCommunicate OK [12:47:24]SAM_PROTO_SignData done [12:47:24]FM_MakeSignedData done [12:47:24]CreateOFDProtocolMessage [12:47:24]wFMCommunicate request_size=4 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 11 00 00 [12:47:24]Write to MH i2c: E2 08 00 D3 04 80 11 00 00 00 00 00 00 51 [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:24]Read from MH i2c: E2 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 17 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 17 00 D3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [12:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:47:24]wFMCommunicate OK [12:47:24]CreateOFDProtocolMessage done [12:47:24]OFDSenderStorePacket 73011 [12:47:24]StoreOFDPacket docnum=73011 [12:47:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 A1 71 08 01 28 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 5B 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 33 1D 01 00 35 04 06 00 42 58 DC 44 2D 67 36 0D D9 B6 48 57 48 B7 [12:47:24]CheckFolder [12:47:24]dirname=/storage/ofd_packets [12:47:24]CheckFolder done [12:47:24]ProducePacketName [12:47:24]name=ofd_packets/00073011 [12:47:24]NVStorageSaveData ofd_packets/00073011 [12:47:24]File name is /storage/ofd_packets/00073011 [12:47:24]Write 302 bytes [12:47:24]NVStorageSaveData done [12:47:24]OFDSenderStorePacket done [12:47:24]KKMCreateOFDPacket done [12:47:24]NVStorageSaveData kkm_last_timestamp [12:47:24]File name is /storage/kkm_last_timestamp [12:47:24]Write 4 bytes [12:47:24]NVStorageSaveData done [12:47:24]OFD Sender: Processing packet 73011 [packets to send 279, broken 278] [12:47:24]ProducePacketName [12:47:24]name=ofd_packets/00073011 [12:47:24]OFD Sender: To server: pG, [12:47:24]CommunicateWithHost lk.salyk.kg:30040 [12:47:24]ConnectInit lk.salyk.kg [12:47:24]ExternCall_PrintAddStr [12:47:24]wPrintStart [12:47:24]Write to MH i2c: 01 00 00 D4 04 D8 [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: 01 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: 01 07 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: 01 07 00 D4 04 00 00 00 00 00 FF 0F ED [12:47:24]RasterBufferAndPrint [12:47:24]line Счет N : (1)952612 [12:47:24]line ИНН: 02508201610067 [12:47:24]line Контрольно-Кассовый Чек [12:47:24]line ПРОДАЖА [12:47:24]line ТРК (МРК, ГНК) : 43 [12:47:24]line Товар: 2710194210 [12:47:24]line ДТ(л)-К-5 [12:47:24]line 17.070 * 76.20 [12:47:24]line = 1300.73 [12:47:24]line НДС 12% НСП 1% [12:47:24]line > о реализуемом товаре [12:47:24]line ОКРУГЛЕНИЕ: -0.73 [12:47:24]line ИТОГО: 1300.00 [12:47:24]line Внесено: 1300.00 [12:47:24]line СДАЧА: 0.00 [12:47:24]line НСП 1% : 11.51 [12:47:24]line НДС 12% : 138.13 [12:47:24]line Наличными: 1300.00 [12:47:24]line Безнал.: 0.00 [12:47:24]line Место: АЗС № 113 "Партнер Нефть" [12:47:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:47:24]line СНО: Общий режим [12:47:24]line Чек 86 31.10.2024 12:47 [12:47:24]line Смена: 557 ФФД: 1.0 [12:47:24]line ЗНМ: 0300000087 [12:47:24]line РНМ: 0000000000091644 [12:47:24]line Версия ККМ: 001 [12:47:24]line ФМ: 0000000000874662 [12:47:24]line ФД: 73011 [12:47:24]line ФПД: 72949420010855 [12:47:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124723&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73011&fm=72949420010855&tin=02508201610067®Number=0000000000091644&sum=130000 [12:47:24]written 0, free lines is 4095 [12:47:25]Write to MH i2c: 01 00 00 FF 04 03 [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: 01 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: 01 07 00 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 CD 0C E3 [12:47:25]RasterBufferAndPrint [12:47:25]line [12:47:25]line [12:47:25]line [12:47:25]line [12:47:25]line [12:47:25]written 0, free lines is 3283 [12:47:25]MH_Cut [12:47:25]Write to MH i2c: D1 01 00 06 05 01 DD [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: D1 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: D1 01 00 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: D1 01 00 06 05 00 DC [12:47:25]Write to MH i2c: 01 00 00 07 05 0C [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:26]*** Cut start [12:47:26]*** Partial cut [12:47:26]*** CUTSNS_PIN = 1 [12:47:26]*** CUTSNS_PIN = 0 [12:47:26]*** Brake cut motor [12:47:26]Read from MH i2c: 01 [12:47:26]MH_I2C_Read... [12:47:26]*** Stop cut motor [12:47:26]*** Cut end [12:47:26]Read from MH i2c: 01 07 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [12:47:26]process_action close_receipt done [12:47:26]requested_data is exist [12:47:26]produce_requested_data [12:47:26]requested_item fm.sn is exist - process it [12:47:26]wFMCommunicate request_size=4 [12:47:26]MH_SAM_APDU [12:47:26]CAPDU: 80 11 00 00 [12:47:26]Write to MH i2c: E2 08 00 08 05 80 11 00 00 00 00 00 00 87 [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:26]Connected sock=12 [12:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 A1 71 08 01 28 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 5B 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 33 1D 01 00 35 04 06 00 42 58 DC 44 2D 67 36 0D D9 B6 48 57 48 B7 [12:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:26]Read from MH i2c: E2 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 17 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 17 00 08 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DB [12:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:47:26]wFMCommunicate OK [12:47:26]requested_item fd.num is exist - process it [12:47:26]SAM_PROTO_GetFieldsCounters [12:47:26]wFMCommunicate request_size=4 [12:47:26]MH_SAM_APDU [12:47:26]CAPDU: 80 13 00 00 [12:47:26]Write to MH i2c: E2 08 00 09 05 80 13 00 00 00 00 00 00 8A [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:26]Read from MH i2c: E2 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 62 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 62 00 09 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 33 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [12:47:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 33 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:26]wFMCommunicate OK [12:47:26]SAM_PROTO_GetFieldsCounters done [12:47:26]requested_item shift.num is exist - process it [12:47:26]requested_item shift.opened is exist - process it [12:47:26]req_shift_opened [12:47:26]FM_GetShiftState [12:47:26]SAM_PROTO_GetShiftState [12:47:26]wFMCommunicate request_size=4 [12:47:26]MH_SAM_APDU [12:47:26]CAPDU: 80 13 01 00 [12:47:26]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:27]Read from MH i2c: E2 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 0E 00 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 35 [12:47:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:47:27]wFMCommunicate OK [12:47:27]SAM_PROTO_GetShiftState done [12:47:27]FM_GetShiftState done [12:47:27]req_shift_opened done [12:47:27]requested_item shift.open_date is exist - process it [12:47:27]req_shift_open_date [12:47:27]req_shift_open_date done [12:47:27]produce_requested_data done [12:47:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73011,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:47:27]process_action_free close_receipt [12:47:27]json_value_free [12:47:27]json_value_free done [12:47:27]process_json_proto returns [12:47:27]Send response to host [12:47:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73011,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:47:27]free response buf [12:47:27]execute_script done [12:47:27]execute_script returns [12:47:27]free content buf [12:47:27]Sock 7.Close socket [12:47:27]Sock 7.Thread stoped [12:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BB B2 47 00 85 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 33 1D 01 00 F4 03 04 00 13 27 23 67 B6 04 01 00 00 B6 BA A2 DB 5E 87 7E F6 [12:47:27]CommunicateWithHost err = 0 [12:47:27]CheckOFDResponse [12:47:27]1017 (14) - 77093643461234 [12:47:27]1041 (16) - 0000000000874662 [12:47:27]1040 (4) - 73011 [12:47:27]1012 (4) - 31.10.2024 06:43 [12:47:27]1206 (1) - 0 [12:47:27]OFD Sender: Remove packet 73011 [12:47:27]ProducePacketName [12:47:27]name=ofd_packets/00073011 [12:47:27]NVStorageDeleteData [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:37]recv_with_timeout no data received [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:48]recv_with_timeout no data received [12:47:53]OFD Sender: No OFD packet to send [12:47:55]accept exits with 10 [12:47:55]New connection [12:47:55]New thread 3066559844 created [12:47:55]Thread 3066703204 joined [12:47:55]Waiting for new connection... [12:47:55] Sock 10.Parse request [12:47:55]Sock 10.Check first char [12:47:55]Sock 10.First char is OK [12:47:55]request: POST /json_proto HTTP/1.0 [12:47:55]Method: POST [12:47:55]URL: /json_proto [12:47:55]Method is POST - this is cgi request [12:47:55]url: /json_proto [12:47:55]query_string will be loaded in cgi processing [12:47:55]execute_cgi json_proto POST (null) [12:47:55]execute_cgi path=json_proto method=POST [12:47:55]POST find Content-Length [12:47:55]Host: 172.17.43.195:8080 [12:47:55]Content-Length: 682 [12:47:55]Content-Type: application/json [12:47:55] [12:47:55]POST finish read [12:47:55]Found Content-Length = 682 [12:47:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:55]execute_script... [12:47: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)952613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:55]POST & json_proto [12:47:55]process_json_proto [12:47:55]json parsed OK: [12:47:55]protocol is kg_v1.0 [12:47:55]action value=close_receipt [12:47:55]process_action close_receipt [12:47:55]cmd_close_receipt [12:47:55]MH_GetDate [12:47:55]Write to MH i2c: F0 00 00 0B 05 FF [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 09 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 09 00 0B 05 00 7C 7C 23 67 74 2C AD 66 3D [12:47:55]GetLastDocTimeStamp 1730378843 [12:47:55]current date 1730378876 [12:47:55]FM_GetShiftState [12:47:55]SAM_PROTO_GetShiftState [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 13 01 00 [12:47:55]Write to MH i2c: E2 08 00 0C 05 80 13 01 00 00 00 00 00 8E [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 0E 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 0E 00 0C 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 37 [12:47:55]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:47:55]wFMCommunicate OK [12:47:55]SAM_PROTO_GetShiftState done [12:47:55]FM_GetShiftState done [12:47:55]opened in 1730333258 [12:47:55]opened+sec_in_day 1730419658 [12:47:55]quantity*price = 50063 [12:47:55]sum+1 = 50064 [12:47:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 87 31.10.2024 12:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73012 ФПД: 146399450715721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124756&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73012&fm=146399450715721&tin=02508201610067®Number=0000000000091644&sum=50000 [12:47:56]StoreToDocumentArchive [12:47:56]shift 557 fd 73012 [12:47:56]save to /storage/0557/doc_00073012 [12:47:56]save last doc name /storage/0557/doc_00073012 to /storage/kkm_last_doc_name [12:47:56]save OK [12:47:56]Clear old archive folders... [12:47:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:47:56]tlvbuf is 001655C0 [12:47:56]SAM_PROTO_ClearQueue [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 09 00 00 [12:47:56]Write to MH i2c: E2 08 00 19 05 80 09 00 00 00 00 00 00 90 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]SAM_PROTO_ClearQueue done [12:47:56]KKMCreateOFDPacket [12:47:56]OFDProtocolAddRootSTLVToBuf [12:47:56]FM_MakeSignedData [12:47:56]FM_MakeSignedData [12:47:56]SAM_PROTO_SignData [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 01 02 [12:47:56]Write to MH i2c: E2 08 00 1A 05 80 0D 01 02 00 00 00 00 98 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=255 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7C 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 34 1D 01 00 35 04 06 00 [12:47:56]Write to MH i2c: E2 02 01 1B 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7C 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 34 1D 01 00 35 04 06 00 00 00 E7 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [12:47:57]RAPDU: 90 00 [12:47:57]wFMCommunicate OK [12:47:57]wFMCommunicate request_size=11 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 0D 02 02 06 85 26 47 41 56 49 [12:47:57]Write to MH i2c: E2 0E 00 1C 05 80 0D 02 02 06 00 85 26 47 41 56 49 00 00 79 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [12:47:57]RAPDU: 90 00 [12:47:57]wFMCommunicate OK [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 0D 03 02 [12:47:57]Write to MH i2c: E2 08 00 1D 05 80 0D 03 02 00 00 00 00 9D [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 0B 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 0B 00 1D 05 00 D1 7D 6B 5B 9E FE E5 E8 90 00 1B [12:47:57]RAPDU: D1 7D 6B 5B 9E FE E5 E8 90 00 [12:47:57]wFMCommunicate OK [12:47:57]SAM_PROTO_SignData done [12:47:57]FM_MakeSignedData done [12:47:57]CreateOFDProtocolMessage [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 11 00 00 [12:47:57]Write to MH i2c: E2 08 00 1E 05 80 11 00 00 00 00 00 00 9D [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 17 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 17 00 1E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F1 [12:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:47:57]wFMCommunicate OK [12:47:57]CreateOFDProtocolMessage done [12:47:57]OFDSenderStorePacket 73012 [12:47:57]StoreOFDPacket docnum=73012 [12:47:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 76 1D 08 01 8C 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7C 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 34 1D 01 00 35 04 06 00 85 26 47 41 56 49 D1 7D 6B 5B 9E FE E5 E8 [12:47:57]CheckFolder [12:47:57]dirname=/storage/ofd_packets [12:47:57]CheckFolder done [12:47:57]ProducePacketName [12:47:57]name=ofd_packets/00073012 [12:47:57]NVStorageSaveData ofd_packets/00073012 [12:47:57]File name is /storage/ofd_packets/00073012 [12:47:57]Write 302 bytes [12:47:57]NVStorageSaveData done [12:47:57]OFDSenderStorePacket done [12:47:57]KKMCreateOFDPacket done [12:47:57]NVStorageSaveData kkm_last_timestamp [12:47:57]File name is /storage/kkm_last_timestamp [12:47:57]Write 4 bytes [12:47:57]NVStorageSaveData done [12:47:57]ExternCall_PrintAddStr [12:47:57]wPrintStart [12:47:57]Write to MH i2c: 01 00 00 1F 05 24 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 1F 05 00 00 00 00 00 FF 0F 39 [12:47:57]RasterBufferAndPrint [12:47:57]line Счет N : (1)952613 [12:47:57]line ИНН: 02508201610067 [12:47:57]line Контрольно-Кассовый Чек [12:47:57]line ПРОДАЖА [12:47:57]line ТРК (МРК, ГНК) : 22 [12:47:57]line Товар: 2710194210 [12:47:57]line ДТ(л)-К-5 [12:47:57]line 6.570 * 76.20 [12:47:57]line = 500.63 [12:47:57]line НДС 12% НСП 1% [12:47:57]line > о реализуемом товаре [12:47:57]line ОКРУГЛЕНИЕ: -0.63 [12:47:57]line ИТОГО: 500.00 [12:47:57]line Внесено: 500.00 [12:47:57]line СДАЧА: 0.00 [12:47:57]line НСП 1% : 4.43 [12:47:57]line НДС 12% : 53.16 [12:47:57]line Наличными: 500.00 [12:47:57]line Безнал.: 0.00 [12:47:57]line Место: АЗС № 113 "Партнер Нефть" [12:47:57]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:47:57]line СНО: Общий режим [12:47:57]line Чек 87 31.10.2024 12:47 [12:47:57]line Смена: 557 ФФД: 1.0 [12:47:57]line ЗНМ: 0300000087 [12:47:57]line РНМ: 0000000000091644 [12:47:57]line Версия ККМ: 001 [12:47:57]line ФМ: 0000000000874662 [12:47:57]line ФД: 73012 [12:47:57]line ФПД: 146399450715721 [12:47:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124756&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73012&fm=146399450715721&tin=02508201610067®Number=0000000000091644&sum=50000 [12:47:57]OFD Sender: Processing packet 73012 [packets to send 279, broken 278] [12:47:57]ProducePacketName [12:47:57]name=ofd_packets/00073012 [12:47:57]OFD Sender: To server: pG, [12:47:57]CommunicateWithHost lk.salyk.kg:30040 [12:47:57]ConnectInit lk.salyk.kg [12:47:57]written 0, free lines is 4095 [12:47:58]Write to MH i2c: 01 00 00 4A 05 4F [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: 01 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: 01 07 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 C9 0C 2B [12:47:58]RasterBufferAndPrint [12:47:58]line [12:47:58]line [12:47:58]line [12:47:58]line [12:47:58]line [12:47:58]written 0, free lines is 3280 [12:47:58]MH_Cut [12:47:58]Write to MH i2c: D1 01 00 51 05 01 28 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: D1 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: D1 01 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: D1 01 00 51 05 00 27 [12:47:58]Write to MH i2c: 01 00 00 52 05 57 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]Connected sock=11 [12:47:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 76 1D 08 01 8C 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7C 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 34 1D 01 00 35 04 06 00 85 26 47 41 56 49 D1 7D 6B 5B 9E FE E5 E8 [12:47:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 A8 47 00 8B B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 34 1D 01 00 F4 03 04 00 32 27 23 67 B6 04 01 00 00 33 C0 0C 97 21 74 A7 62 [12:47:58]CommunicateWithHost err = 0 [12:47:58]CheckOFDResponse [12:47:58]1017 (14) - 77093643461234 [12:47:58]1041 (16) - 0000000000874662 [12:47:58]1040 (4) - 73012 [12:47:58]1012 (4) - 31.10.2024 06:44 [12:47:58]1206 (1) - 0 [12:47:58]OFD Sender: Remove packet 73012 [12:47:58]ProducePacketName [12:47:58]name=ofd_packets/00073012 [12:47:58]NVStorageDeleteData [12:47:58]*** Cut start [12:47:58]*** Partial cut [12:47:58]*** CUTSNS_PIN = 1 [12:47:58]*** CUTSNS_PIN = 0 [12:47:59]OFD Sender: No OFD packet to send [12:47:59]*** Brake cut motor [12:47:59]Read from MH i2c: 01 [12:47:59]MH_I2C_Read... [12:47:59]*** Stop cut motor [12:47:59]*** Cut end [12:47:59]Read from MH i2c: 01 07 00 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 FF 0F 6C [12:47:59]process_action close_receipt done [12:47:59]requested_data is exist [12:47:59]produce_requested_data [12:47:59]requested_item fm.sn is exist - process it [12:47:59]wFMCommunicate request_size=4 [12:47:59]MH_SAM_APDU [12:47:59]CAPDU: 80 11 00 00 [12:47:59]Write to MH i2c: E2 08 00 53 05 80 11 00 00 00 00 00 00 D2 [12:47:59]Write i2c OK [12:47:59]MH_I2C_Read... [12:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:59]Read from MH i2c: E2 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 17 00 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 17 00 53 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 26 [12:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:47:59]wFMCommunicate OK [12:47:59]requested_item fd.num is exist - process it [12:47:59]SAM_PROTO_GetFieldsCounters [12:47:59]wFMCommunicate request_size=4 [12:47:59]MH_SAM_APDU [12:47:59]CAPDU: 80 13 00 00 [12:47:59]Write to MH i2c: E2 08 00 54 05 80 13 00 00 00 00 00 00 D5 [12:47:59]Write i2c OK [12:47:59]MH_I2C_Read... [12:47:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:59]Read from MH i2c: E2 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 62 00 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 62 00 54 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 34 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [12:47:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 34 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:59]wFMCommunicate OK [12:47:59]SAM_PROTO_GetFieldsCounters done [12:47:59]requested_item shift.num is exist - process it [12:47:59]requested_item shift.opened is exist - process it [12:47:59]req_shift_opened [12:47:59]FM_GetShiftState [12:47:59]SAM_PROTO_GetShiftState [12:47:59]wFMCommunicate request_size=4 [12:47:59]MH_SAM_APDU [12:47:59]CAPDU: 80 13 01 00 [12:47:59]Write to MH i2c: E2 08 00 55 05 80 13 01 00 00 00 00 00 D7 [12:47:59]Write i2c OK [12:47:59]MH_I2C_Read... [12:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:59]Read from MH i2c: E2 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 0E 00 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 0E 00 55 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 80 [12:47:59]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:47:59]wFMCommunicate OK [12:47:59]SAM_PROTO_GetShiftState done [12:47:59]FM_GetShiftState done [12:47:59]req_shift_opened done [12:47:59]requested_item shift.open_date is exist - process it [12:47:59]req_shift_open_date [12:47:59]req_shift_open_date done [12:47:59]produce_requested_data done [12:47:59]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73012,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:47:59]process_action_free close_receipt [12:47:59]json_value_free [12:47:59]json_value_free done [12:47:59]process_json_proto returns [12:47:59]Send response to host [12:47:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73012,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:47:59]free response buf [12:47:59]execute_script done [12:47:59]execute_script returns [12:47:59]free content buf [12:47:59]Sock 10.Close socket [12:47:59]Sock 10.Thread stoped [12:48:04]OFD Sender: No OFD packet to send [12:48:08]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:58]recv_with_timeout no data received [12:48:58]accept exits with 9 [12:48:58]New connection [12:48:58]New thread 3066703204 created [12:48:58]Thread 3066559844 joined [12:48:58]Waiting for new connection... [12:48:58] Sock 9.Parse request [12:48:58]Sock 9.Check first char [12:48:58]Sock 9.First char is OK [12:48:58]request: POST /json_proto HTTP/1.0 [12:48:58]Method: POST [12:48:58]URL: /json_proto [12:48:58]Method is POST - this is cgi request [12:48:58]url: /json_proto [12:48:58]query_string will be loaded in cgi processing [12:48:58]execute_cgi json_proto POST (null) [12:48:58]execute_cgi path=json_proto method=POST [12:48:58]POST find Content-Length [12:48:58]Host: 172.17.43.195:8080 [12:48:58]Content-Length: 677 [12:48:58]Content-Type: application/json [12:48:58] [12:48:58]POST finish read [12:48:58]Found Content-Length = 677 [12:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:58]execute_script... [12:48:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:58]POST & json_proto [12:48:58]process_json_proto [12:48:58]json parsed OK: [12:48:58]protocol is kg_v1.0 [12:48:58]action value=close_receipt [12:48:58]process_action close_receipt [12:48:58]cmd_close_receipt [12:48:58]MH_GetDate [12:48:58]Write to MH i2c: F0 00 00 56 05 4A [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: F0 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: F0 09 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: F0 09 00 56 05 00 BB 7C 23 67 74 2C AD 66 C7 [12:48:58]GetLastDocTimeStamp 1730378876 [12:48:58]current date 1730378939 [12:48:58]FM_GetShiftState [12:48:58]SAM_PROTO_GetShiftState [12:48:58]wFMCommunicate request_size=4 [12:48:58]MH_SAM_APDU [12:48:58]CAPDU: 80 13 01 00 [12:48:58]Write to MH i2c: E2 08 00 57 05 80 13 01 00 00 00 00 00 D9 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:58]Read from MH i2c: E2 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 0E 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 0E 00 57 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 82 [12:48:58]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:48:58]wFMCommunicate OK [12:48:58]SAM_PROTO_GetShiftState done [12:48:58]FM_GetShiftState done [12:48:58]opened in 1730333258 [12:48:58]opened+sec_in_day 1730419658 [12:48:58]quantity*price = 20003 [12:48:58]sum+1 = 20004 [12:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 88 31.10.2024 12:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73013 ФПД: 273076329786195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124859&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73013&fm=273076329786195&tin=02508201610067®Number=0000000000091644&sum=20000 [12:48:59]StoreToDocumentArchive [12:48:59]shift 557 fd 73013 [12:48:59]save to /storage/0557/doc_00073013 [12:48:59]save last doc name /storage/0557/doc_00073013 to /storage/kkm_last_doc_name [12:48:59]save OK [12:48:59]Clear old archive folders... [12:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:59]tlvbuf is 00187C90 [12:48:59]SAM_PROTO_ClearQueue [12:48:59]wFMCommunicate request_size=4 [12:48:59]MH_SAM_APDU [12:48:59]CAPDU: 80 09 00 00 [12:48:59]Write to MH i2c: E2 08 00 64 05 80 09 00 00 00 00 00 00 DB [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_ClearQueue done [12:49:00]KKMCreateOFDPacket [12:49:00]OFDProtocolAddRootSTLVToBuf [12:49:00]FM_MakeSignedData [12:49:00]FM_MakeSignedData [12:49:00]SAM_PROTO_SignData [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 0D 01 02 [12:49:00]Write to MH i2c: E2 08 00 65 05 80 0D 01 02 00 00 00 00 E3 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]wFMCommunicate request_size=255 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BB 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1D 01 00 35 04 06 00 F8 [12:49:00]Write to MH i2c: E2 02 01 66 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BB 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1D 01 00 35 04 06 00 F8 00 00 C7 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]wFMCommunicate request_size=10 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 0D 02 02 05 5C 89 A2 2B 53 [12:49:00]Write to MH i2c: E2 0D 00 67 05 80 0D 02 02 05 00 5C 89 A2 2B 53 00 00 F5 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 0D 03 02 [12:49:00]Write to MH i2c: E2 08 00 68 05 80 0D 03 02 00 00 00 00 E8 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0B 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0B 00 68 05 00 F8 26 7D 88 ED 44 ED E1 90 00 0B [12:49:00]RAPDU: F8 26 7D 88 ED 44 ED E1 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_SignData done [12:49:00]FM_MakeSignedData done [12:49:00]CreateOFDProtocolMessage [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 11 00 00 [12:49:00]Write to MH i2c: E2 08 00 69 05 80 11 00 00 00 00 00 00 E8 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 69 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [12:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:49:00]wFMCommunicate OK [12:49:00]CreateOFDProtocolMessage done [12:49:00]OFDSenderStorePacket 73013 [12:49:00]StoreOFDPacket docnum=73013 [12:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A5 AF 07 01 71 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BB 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1D 01 00 35 04 06 00 F8 5C 89 A2 2B 53 F8 26 7D 88 ED 44 ED E1 [12:49:00]CheckFolder [12:49:00]dirname=/storage/ofd_packets [12:49:00]CheckFolder done [12:49:00]ProducePacketName [12:49:00]name=ofd_packets/00073013 [12:49:00]NVStorageSaveData ofd_packets/00073013 [12:49:00]File name is /storage/ofd_packets/00073013 [12:49:00]Write 301 bytes [12:49:00]NVStorageSaveData done [12:49:00]OFDSenderStorePacket done [12:49:00]KKMCreateOFDPacket done [12:49:00]NVStorageSaveData kkm_last_timestamp [12:49:00]File name is /storage/kkm_last_timestamp [12:49:00]Write 4 bytes [12:49:00]NVStorageSaveData done [12:49:00]ExternCall_PrintAddStr [12:49:00]wPrintStart [12:49:00]Write to MH i2c: 01 00 00 6A 05 6F [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 6A 05 00 00 00 00 00 FF 0F 84 [12:49:00]RasterBufferAndPrint [12:49:00]line Счет N : (1)952614 [12:49:00]line ИНН: 02508201610067 [12:49:00]line Контрольно-Кассовый Чек [12:49:00]line ПРОДАЖА [12:49:00]line ТРК (МРК, ГНК) : 21 [12:49:00]line Товар: 2710124130 [12:49:00]line Аи-92-К-5 [12:49:00]line 2.990 * 66.90 [12:49:00]line = 200.03 [12:49:00]line НДС 12% НСП 1% [12:49:00]line > о реализуемом товаре [12:49:00]line ОКРУГЛЕНИЕ: -0.03 [12:49:00]line ИТОГО: 200.00 [12:49:00]line Внесено: 200.00 [12:49:00]line СДАЧА: 0.00 [12:49:00]line НСП 1% : 1.77 [12:49:00]line НДС 12% : 21.24 [12:49:00]line Наличными: 200.00 [12:49:00]line Безнал.: 0.00 [12:49:00]line Место: АЗС № 113 "Партнер Нефть" [12:49:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:49:00]line СНО: Общий режим [12:49:00]line Чек 88 31.10.2024 12:48 [12:49:00]line Смена: 557 ФФД: 1.0 [12:49:00]line ЗНМ: 0300000087 [12:49:00]line РНМ: 0000000000091644 [12:49:00]line Версия ККМ: 001 [12:49:00]line ФМ: 0000000000874662 [12:49:00]line ФД: 73013 [12:49:00]line ФПД: 273076329786195 [12:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124859&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73013&fm=273076329786195&tin=02508201610067®Number=0000000000091644&sum=20000 [12:49:00]written 0, free lines is 4095 [12:49:00]OFD Sender: Processing packet 73013 [packets to send 279, broken 278] [12:49:00]ProducePacketName [12:49:00]name=ofd_packets/00073013 [12:49:00]OFD Sender: To server: pG, [12:49:00]CommunicateWithHost lk.salyk.kg:30040 [12:49:00]ConnectInit lk.salyk.kg [12:49:00]Write to MH i2c: 01 00 00 95 05 9A [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 CD 0C 7A [12:49:00]RasterBufferAndPrint [12:49:00]line [12:49:00]line [12:49:00]line [12:49:00]line [12:49:00]line [12:49:00]written 0, free lines is 3283 [12:49:01]MH_Cut [12:49:01]Write to MH i2c: D1 01 00 9C 05 01 73 [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: D1 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: D1 01 00 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: D1 01 00 9C 05 00 72 [12:49:01]Write to MH i2c: 01 00 00 9D 05 A2 [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]*** Cut start [12:49:01]*** Partial cut [12:49:01]*** CUTSNS_PIN = 1 [12:49:01]*** CUTSNS_PIN = 0 [12:49:02]*** Brake cut motor [12:49:02]Read from MH i2c: 01 [12:49:02]MH_I2C_Read... [12:49:02]*** Stop cut motor [12:49:02]*** Cut end [12:49:02]Read from MH i2c: 01 07 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 FF 0F B7 [12:49:02]process_action close_receipt done [12:49:02]requested_data is exist [12:49:02]produce_requested_data [12:49:02]requested_item fm.sn is exist - process it [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 11 00 00 [12:49:02]Write to MH i2c: E2 08 00 9E 05 80 11 00 00 00 00 00 00 1D [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 17 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 17 00 9E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 71 [12:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:49:02]wFMCommunicate OK [12:49:02]requested_item fd.num is exist - process it [12:49:02]SAM_PROTO_GetFieldsCounters [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 13 00 00 [12:49:02]Write to MH i2c: E2 08 00 9F 05 80 13 00 00 00 00 00 00 20 [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 62 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 62 00 9F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 35 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [12:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 35 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:02]wFMCommunicate OK [12:49:02]SAM_PROTO_GetFieldsCounters done [12:49:02]requested_item shift.num is exist - process it [12:49:02]requested_item shift.opened is exist - process it [12:49:02]req_shift_opened [12:49:02]FM_GetShiftState [12:49:02]SAM_PROTO_GetShiftState [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 13 01 00 [12:49:02]Write to MH i2c: E2 08 00 A0 05 80 13 01 00 00 00 00 00 22 [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 0E 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 0E 00 A0 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 CB [12:49:02]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [12:49:02]wFMCommunicate OK [12:49:02]SAM_PROTO_GetShiftState done [12:49:02]FM_GetShiftState done [12:49:02]req_shift_opened done [12:49:02]requested_item shift.open_date is exist - process it [12:49:02]req_shift_open_date [12:49:02]req_shift_open_date done [12:49:02]produce_requested_data done [12:49:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73013,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [12:49:02]process_action_free close_receipt [12:49:02]json_value_free [12:49:02]json_value_free done [12:49:02]process_json_proto returns [12:49:02]Send response to host [12:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73013,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [12:49:02]free response buf [12:49:02]execute_script done [12:49:02]execute_script returns [12:49:02]free content buf [12:49:02]Sock 9.Close socket [12:49:02]Sock 9.Thread stoped [12:49:05]ConnectInit Can't take IP for lk.salyk.kg [12:49:05]CommunicateWithHost connect error [12:49:05]CommunicateWithHost err = -1 [12:49:05]OFD Sender: Server communicate error [12:49:10]OFD Sender: Processing packet 73013 [packets to send 279, broken 278] [12:49:10]ProducePacketName [12:49:10]name=ofd_packets/00073013 [12:49:10]OFD Sender: To server: pG, [12:49:10]CommunicateWithHost lk.salyk.kg:30040 [12:49:10]ConnectInit lk.salyk.kg [12:49:11]recv_with_timeout no data received [12:49:15]ConnectInit Can't take IP for lk.salyk.kg [12:49:15]CommunicateWithHost connect error [12:49:15]CommunicateWithHost err = -1 [12:49:15]OFD Sender: Server communicate error [12:49:20]OFD Sender: Processing packet 73013 [packets to send 279, broken 278] [12:49:20]ProducePacketName [12:49:20]name=ofd_packets/00073013 [12:49:20]OFD Sender: To server: pG, [12:49:20]CommunicateWithHost lk.salyk.kg:30040 [12:49:20]ConnectInit lk.salyk.kg [12:49:26]Connected sock=10 [12:49:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A5 AF 07 01 71 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BB 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1D 01 00 35 04 06 00 F8 5C 89 A2 2B 53 F8 26 7D 88 ED 44 ED E1 [12:49:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BA AB 47 00 E6 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1D 01 00 F4 03 04 00 8A 27 23 67 B6 04 01 00 00 85 3B F5 58 EE 44 20 F7 [12:49:27]CommunicateWithHost err = 0 [12:49:27]CheckOFDResponse [12:49:27]1017 (14) - 77093643461234 [12:49:27]1041 (16) - 0000000000874662 [12:49:27]1040 (4) - 73013 [12:49:27]1012 (4) - 31.10.2024 06:45 [12:49:27]1206 (1) - 0 [12:49:27]OFD Sender: Remove packet 73013 [12:49:27]ProducePacketName [12:49:27]name=ofd_packets/00073013 [12:49:27]NVStorageDeleteData [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:38]recv_with_timeout no data received [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:18]recv_with_timeout no data received [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:22]recv_with_timeout no data received [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:48]recv_with_timeout no data received [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:27]recv_with_timeout no data received [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:18]recv_with_timeout no data received [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:42]recv_with_timeout no data received [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:46]recv_with_timeout no data received [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:05]recv_with_timeout no data received [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:35]recv_with_timeout no data received [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:38]ConnectInit Can't connect to host [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:03]accept exits with 7 [13:04:03]New connection [13:04:03]New thread 3066559844 created [13:04:03]Thread 3066703204 joined [13:04:03]Waiting for new connection... [13:04:03] Sock 7.Parse request [13:04:03]Sock 7.Check first char [13:04:03]Sock 7.First char is OK [13:04:03]request: POST /json_proto HTTP/1.0 [13:04:03]Method: POST [13:04:03]URL: /json_proto [13:04:03]Method is POST - this is cgi request [13:04:03]url: /json_proto [13:04:03]query_string will be loaded in cgi processing [13:04:03]execute_cgi json_proto POST (null) [13:04:03]execute_cgi path=json_proto method=POST [13:04:03]POST find Content-Length [13:04:03]Host: 172.17.43.195:8080 [13:04:03]Content-Length: 677 [13:04:03]Content-Type: application/json [13:04:03] [13:04:03]POST finish read [13:04:03]Found Content-Length = 677 [13:04:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:03]execute_script... [13:04:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:03]POST & json_proto [13:04:03]process_json_proto [13:04:03]json parsed OK: [13:04:03]protocol is kg_v1.0 [13:04:03]action value=close_receipt [13:04:03]process_action close_receipt [13:04:03]cmd_close_receipt [13:04:03]MH_GetDate [13:04:03]Write to MH i2c: F0 00 00 A1 05 95 [13:04:03]Write i2c OK [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: F0 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: F0 09 00 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: F0 09 00 A1 05 00 43 80 23 67 74 2C AD 66 9E [13:04:03]GetLastDocTimeStamp 1730378939 [13:04:03]current date 1730379843 [13:04:03]FM_GetShiftState [13:04:03]SAM_PROTO_GetShiftState [13:04:03]wFMCommunicate request_size=4 [13:04:03]MH_SAM_APDU [13:04:03]CAPDU: 80 13 01 00 [13:04:03]Write to MH i2c: E2 08 00 A2 05 80 13 01 00 00 00 00 00 24 [13:04:03]Write i2c OK [13:04:03]MH_I2C_Read... [13:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:03]Read from MH i2c: E2 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 0E 00 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 0E 00 A2 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 CD [13:04:03]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:04:03]wFMCommunicate OK [13:04:03]SAM_PROTO_GetShiftState done [13:04:03]FM_GetShiftState done [13:04:03]opened in 1730333258 [13:04:03]opened+sec_in_day 1730419658 [13:04:03]quantity*price = 20003 [13:04:03]sum+1 = 20004 [13:04:03]Check (price>sum+1) || (price+1 о реализуемом товаре [13:07:12]line ОКРУГЛЕНИЕ: -0.03 [13:07:12]line ИТОГО: 200.00 [13:07:12]line Внесено: 200.00 [13:07:12]line СДАЧА: 0.00 [13:07:12]line НСП 1% : 1.77 [13:07:12]line НДС 12% : 21.24 [13:07:12]line Наличными: 200.00 [13:07:12]line Безнал.: 0.00 [13:07:12]line Место: АЗС № 113 "Партнер Нефть" [13:07:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:07:12]line СНО: Общий режим [13:07:12]line Чек 89 31.10.2024 13:04 [13:07:12]line Смена: 557 ФФД: 1.0 [13:07:12]line ЗНМ: 0300000087 [13:07:12]line РНМ: 0000000000091644 [13:07:12]line Версия ККМ: 001 [13:07:12]line ФМ: 0000000000874662 [13:07:12]line ФД: 73014 [13:07:12]line ФПД: 69276913858917 [13:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T130403&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73014&fm=69276913858917&tin=02508201610067®Number=0000000000091644&sum=20000 [13:07:12]written 0, free lines is 4095 [13:07:12]Write to MH i2c: 01 00 00 48 00 48 [13:07:12]Write i2c OK [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: 01 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: 01 07 00 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D3 0C 2E [13:07:12]RasterBufferAndPrint [13:07:12]line [13:07:12]line [13:07:12]line [13:07:12]line [13:07:12]line [13:07:12]written 0, free lines is 3300 [13:07:12]MH_Cut [13:07:12]Write to MH i2c: D1 01 00 4F 00 01 21 [13:07:12]Write i2c OK [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: D1 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: D1 01 00 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: D1 01 00 4F 00 00 20 [13:07:12]Write to MH i2c: 01 00 00 50 00 50 [13:07:12]Write i2c OK [13:07:12]MH_I2C_Read... [13:07:13]*** Cut start [13:07:13]*** Partial cut [13:07:13]*** CUTSNS_PIN = 1 [13:07:13]*** CUTSNS_PIN = 0 [13:07:13]*** Brake cut motor [13:07:13]OFD Sender: No OFD packet to send [13:07:14]Read from MH i2c: 01 [13:07:14]MH_I2C_Read... [13:07:14]*** Stop cut motor [13:07:14]*** Cut end [13:07:14]Read from MH i2c: 01 07 00 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [13:07:14]process_action print_doc done [13:07:14]requested_data is exist [13:07:14]produce_requested_data [13:07:14]produce_requested_data return (null) [13:07:14]process_action_free print_doc [13:07:14]json_value_free [13:07:14]json_value_free done [13:07:14]process_json_proto returns [13:07:14]Send response to host [13:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [13:07:14]free response buf [13:07:14]execute_script done [13:07:14]execute_script returns [13:07:14]free content buf [13:07:14]Sock 7.Close socket [13:07:14]Sock 7.Thread stoped [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:45]recv_with_timeout no data received [13:07:48]OFD Sender: No OFD packet to send [13:07:50]accept exits with 10 [13:07:50]New connection [13:07:50]New thread 3067166052 created [13:07:50]Thread 3067309412 joined [13:07:50]Waiting for new connection... [13:07:50] Sock 10.Parse request [13:07:50]Sock 10.Check first char [13:07:50]Sock 10.First char is OK [13:07:50]request: POST /json_proto HTTP/1.0 [13:07:50]Method: POST [13:07:50]URL: /json_proto [13:07:50]Method is POST - this is cgi request [13:07:50]url: /json_proto [13:07:50]query_string will be loaded in cgi processing [13:07:50]execute_cgi json_proto POST (null) [13:07:50]execute_cgi path=json_proto method=POST [13:07:50]POST find Content-Length [13:07:50]Host: 172.17.43.195:8080 [13:07:50]Content-Length: 791 [13:07:50]Content-Type: application/json [13:07:50] [13:07:50]POST finish read [13:07:50]Found Content-Length = 791 [13:07:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:50]execute_script... [13: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 : (1)952616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:50]POST & json_proto [13:07:50]process_json_proto [13:07:50]json parsed OK: [13:07:50]protocol is kg_v1.0 [13:07:50]action value=close_receipt [13:07:50]process_action close_receipt [13:07:50]cmd_close_receipt [13:07:50]MH_GetDate [13:07:50]Write to MH i2c: F0 00 00 51 00 40 [13:07:50]Write i2c OK [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: F0 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: F0 09 00 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: F0 09 00 51 00 00 27 81 23 67 74 2C AD 66 2E [13:07:50]GetLastDocTimeStamp 1730379843 [13:07:50]current date 1730380071 [13:07:50]FM_GetShiftState [13:07:50]SAM_PROTO_GetShiftState [13:07:50]wFMCommunicate request_size=4 [13:07:50]MH_SAM_APDU [13:07:50]CAPDU: 80 13 01 00 [13:07:50]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [13:07:50]Write i2c OK [13:07:50]MH_I2C_Read... [13:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:50]Read from MH i2c: E2 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: E2 0E 00 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 78 [13:07:50]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:07:50]wFMCommunicate OK [13:07:50]SAM_PROTO_GetShiftState done [13:07:50]FM_GetShiftState done [13:07:50]opened in 1730333258 [13:07:50]opened+sec_in_day 1730419658 [13:07:50]quantity*price = 0 [13:07:50]sum+1 = 1 [13:07:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 90 31.10.2024 13:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73015 ФПД: 78928331388644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T130751&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73015&fm=78928331388644&tin=02508201610067®Number=0000000000091644&sum=0 [13:07:51]StoreToDocumentArchive [13:07:51]shift 557 fd 73015 [13:07:51]save to /storage/0557/doc_00073015 [13:07:51]save last doc name /storage/0557/doc_00073015 to /storage/kkm_last_doc_name [13:07:51]save OK [13:07:51]Clear old archive folders... [13:07:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:51]tlvbuf is 014EDFD0 [13:07:51]SAM_PROTO_ClearQueue [13:07:51]wFMCommunicate request_size=4 [13:07:51]MH_SAM_APDU [13:07:51]CAPDU: 80 09 00 00 [13:07:51]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [13:07:51]Write i2c OK [13:07:51]MH_I2C_Read... [13:07:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:51]Read from MH i2c: E2 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 03 00 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [13:07:51]RAPDU: 90 00 [13:07:51]wFMCommunicate OK [13:07:51]SAM_PROTO_ClearQueue done [13:07:51]KKMCreateOFDPacket [13:07:51]OFDProtocolAddRootSTLVToBuf [13:07:51]FM_MakeSignedData [13:07:51]FM_MakeSignedData [13:07:51]SAM_PROTO_SignData [13:07:51]wFMCommunicate request_size=4 [13:07:51]MH_SAM_APDU [13:07:51]CAPDU: 80 0D 01 02 [13:07:51]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [13:07:51]Write i2c OK [13:07:51]MH_I2C_Read... [13:07:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:51]Read from MH i2c: E2 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 03 00 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [13:07:51]RAPDU: 90 00 [13:07:51]wFMCommunicate OK [13:07:51]wFMCommunicate request_size=255 [13:07:51]MH_SAM_APDU [13:07: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 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 27 81 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 37 1D 01 00 35 04 06 00 47 [13:07:51]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 27 81 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 37 1D 01 00 35 04 06 00 47 00 00 8F [13:07:51]Write i2c OK [13:07:51]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [13:07:52]RAPDU: 90 00 [13:07:52]wFMCommunicate OK [13:07:52]wFMCommunicate request_size=10 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 0D 02 02 05 C8 EF 27 B6 E4 [13:07:52]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 C8 EF 27 B6 E4 00 00 5E [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [13:07:52]RAPDU: 90 00 [13:07:52]wFMCommunicate OK [13:07:52]wFMCommunicate request_size=4 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 0D 03 02 [13:07:52]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 0B 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 0B 00 63 00 00 2B 7B 08 B3 4E 4D F9 5B 90 00 2F [13:07:52]RAPDU: 2B 7B 08 B3 4E 4D F9 5B 90 00 [13:07:52]wFMCommunicate OK [13:07:52]SAM_PROTO_SignData done [13:07:52]FM_MakeSignedData done [13:07:52]CreateOFDProtocolMessage [13:07:52]wFMCommunicate request_size=4 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 11 00 00 [13:07:52]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 17 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [13:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:07:52]wFMCommunicate OK [13:07:52]CreateOFDProtocolMessage done [13:07:52]OFDSenderStorePacket 73015 [13:07:52]StoreOFDPacket docnum=73015 [13:07:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C1 BF 07 01 BF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 27 81 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 37 1D 01 00 35 04 06 00 47 C8 EF 27 B6 E4 2B 7B 08 B3 4E 4D F9 5B [13:07:52]CheckFolder [13:07:52]dirname=/storage/ofd_packets [13:07:52]CheckFolder done [13:07:52]ProducePacketName [13:07:52]name=ofd_packets/00073015 [13:07:52]NVStorageSaveData ofd_packets/00073015 [13:07:52]File name is /storage/ofd_packets/00073015 [13:07:52]Write 301 bytes [13:07:52]NVStorageSaveData done [13:07:52]OFDSenderStorePacket done [13:07:52]KKMCreateOFDPacket done [13:07:52]NVStorageSaveData kkm_last_timestamp [13:07:52]File name is /storage/kkm_last_timestamp [13:07:52]Write 4 bytes [13:07:52]NVStorageSaveData done [13:07:52]ExternCall_PrintAddStr [13:07:52]wPrintStart [13:07:52]Write to MH i2c: 01 00 00 65 00 65 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 07 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [13:07:52]RasterBufferAndPrint [13:07:52]line Счет N : (1)952616 [13:07:52]line ИНН: 02508201610067 [13:07:52]line Контрольно-Кассовый Чек [13:07:52]line ПРОДАЖА [13:07:52]line ТРК (МРК, ГНК) : 63 [13:07:52]line Товар: 2710124130 [13:07:52]line Аи-92-К-5 [13:07:52]line 7.480 * 0.00 [13:07:52]line = 0.00 [13:07:52]line НДС 12% НСП 1% [13:07:52]line > о реализуемом товаре [13:07:52]line ИТОГО: 0.00 [13:07:52]line НСП 1% : 0.00 [13:07:52]line НДС 12% : 0.00 [13:07:52]line Наличными: 0.00 [13:07:52]line Безнал.: 0.00 [13:07:52]line Место: АЗС № 113 "Партнер Нефть" [13:07:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:07:52]line СНО: Общий режим [13:07:52]line Чек 90 31.10.2024 13:07 [13:07:52]line Смена: 557 ФФД: 1.0 [13:07:52]line ЗНМ: 0300000087 [13:07:52]line РНМ: 0000000000091644 [13:07:52]line Версия ККМ: 001 [13:07:52]line Талоны: Топливная Карта [13:07:52]line 03047 [13:07:52]line ФМ: 0000000000874662 [13:07:52]line ФД: 73015 [13:07:52]line ФПД: 78928331388644 [13:07:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T130751&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73015&fm=78928331388644&tin=02508201610067®Number=0000000000091644&sum=0 [13:07:52]written 0, free lines is 4095 [13:07:52]OFD Sender: Processing packet 73015 [packets to send 279, broken 278] [13:07:52]ProducePacketName [13:07:52]name=ofd_packets/00073015 [13:07:52]OFD Sender: To server: pG, [13:07:52]CommunicateWithHost lk.salyk.kg:30040 [13:07:52]ConnectInit lk.salyk.kg [13:07:52]Write to MH i2c: 01 00 00 8F 00 8F [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 07 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 D9 0C 7B [13:07:52]RasterBufferAndPrint [13:07:52]line [13:07:52]line [13:07:52]line [13:07:52]line [13:07:52]line [13:07:52]written 0, free lines is 3296 [13:07:52]MH_Cut [13:07:52]Write to MH i2c: D1 01 00 96 00 01 68 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: D1 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: D1 01 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: D1 01 00 96 00 00 67 [13:07:52]Write to MH i2c: 01 00 00 97 00 97 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:53]*** Cut start [13:07:53]*** Partial cut [13:07:53]*** CUTSNS_PIN = 1 [13:07:53]*** CUTSNS_PIN = 0 [13:07:53]*** Brake cut motor [13:07:54]Read from MH i2c: 01 [13:07:54]MH_I2C_Read... [13:07:54]*** Stop cut motor [13:07:54]*** Cut end [13:07:54]Read from MH i2c: 01 07 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [13:07:54]process_action close_receipt done [13:07:54]requested_data is exist [13:07:54]produce_requested_data [13:07:54]requested_item fm.sn is exist - process it [13:07:54]wFMCommunicate request_size=4 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 11 00 00 [13:07:54]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 17 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [13:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:07:54]wFMCommunicate OK [13:07:54]requested_item fd.num is exist - process it [13:07:54]SAM_PROTO_GetFieldsCounters [13:07:54]wFMCommunicate request_size=4 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 13 00 00 [13:07:54]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 62 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 37 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [13: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 37 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:54]wFMCommunicate OK [13:07:54]SAM_PROTO_GetFieldsCounters done [13:07:54]requested_item shift.num is exist - process it [13:07:54]requested_item shift.opened is exist - process it [13:07:54]req_shift_opened [13:07:54]FM_GetShiftState [13:07:54]SAM_PROTO_GetShiftState [13:07:54]wFMCommunicate request_size=4 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 13 01 00 [13:07:54]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 0E 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C0 [13:07:54]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:07:54]wFMCommunicate OK [13:07:54]SAM_PROTO_GetShiftState done [13:07:54]FM_GetShiftState done [13:07:54]req_shift_opened done [13:07:54]requested_item shift.open_date is exist - process it [13:07:54]req_shift_open_date [13:07:54]req_shift_open_date done [13:07:54]produce_requested_data done [13:07:54]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73015,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:07:54]process_action_free close_receipt [13:07:54]json_value_free [13:07:54]json_value_free done [13:07:54]process_json_proto returns [13:07:54]Send response to host [13:07:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73015,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:07:54]free response buf [13:07:54]execute_script done [13:07:54]execute_script returns [13:07:54]free content buf [13:07:54]Sock 10.Close socket [13:07:54]Sock 10.Thread stoped [13:07:55]Connected sock=7 [13:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C1 BF 07 01 BF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 27 81 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 37 1D 01 00 35 04 06 00 47 C8 EF 27 B6 E4 2B 7B 08 B3 4E 4D F9 5B [13:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 45 6E 47 00 79 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 37 1D 01 00 F4 03 04 00 DF 2B 23 67 B6 04 01 00 00 C2 87 82 2E 33 EA 2D 39 [13:07:55]CommunicateWithHost err = 0 [13:07:55]CheckOFDResponse [13:07:55]1017 (14) - 77093643461234 [13:07:55]1041 (16) - 0000000000874662 [13:07:55]1040 (4) - 73015 [13:07:55]1012 (4) - 31.10.2024 07:03 [13:07:55]1206 (1) - 0 [13:07:55]OFD Sender: Remove packet 73015 [13:07:55]ProducePacketName [13:07:55]name=ofd_packets/00073015 [13:07:55]NVStorageDeleteData [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:16]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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]recv_with_timeout no data received [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:53]recv_with_timeout no data received [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:15]accept exits with 9 [13:12:15]New connection [13:12:15]New thread 3067309412 created [13:12:15]Thread 3067166052 joined [13:12:15]Waiting for new connection... [13:12:15] Sock 9.Parse request [13:12:15]Sock 9.Check first char [13:12:15]Sock 9.First char is OK [13:12:15]request: POST /json_proto HTTP/1.0 [13:12:15]Method: POST [13:12:15]URL: /json_proto [13:12:15]Method is POST - this is cgi request [13:12:15]url: /json_proto [13:12:15]query_string will be loaded in cgi processing [13:12:15]execute_cgi json_proto POST (null) [13:12:15]execute_cgi path=json_proto method=POST [13:12:15]POST find Content-Length [13:12:15]Host: 172.17.43.195:8080 [13:12:15]Content-Length: 791 [13:12:15]Content-Type: application/json [13:12:15] [13:12:15]POST finish read [13:12:15]Found Content-Length = 791 [13:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:15]execute_script... [13:12: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)952617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:15]POST & json_proto [13:12:15]process_json_proto [13:12:15]json parsed OK: [13:12:15]protocol is kg_v1.0 [13:12:15]action value=close_receipt [13:12:15]process_action close_receipt [13:12:15]cmd_close_receipt [13:12:15]MH_GetDate [13:12:15]Write to MH i2c: F0 00 00 9B 00 8A [13:12:15]Write i2c OK [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: F0 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: F0 09 00 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: F0 09 00 9B 00 00 2F 82 23 67 74 2C AD 66 81 [13:12:15]GetLastDocTimeStamp 1730380071 [13:12:15]current date 1730380335 [13:12:15]FM_GetShiftState [13:12:15]SAM_PROTO_GetShiftState [13:12:15]wFMCommunicate request_size=4 [13:12:15]MH_SAM_APDU [13:12:15]CAPDU: 80 13 01 00 [13:12:15]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [13:12:15]Write i2c OK [13:12:15]MH_I2C_Read... [13:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:15]Read from MH i2c: E2 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: E2 0E 00 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C2 [13:12:15]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:12:15]wFMCommunicate OK [13:12:15]SAM_PROTO_GetShiftState done [13:12:15]FM_GetShiftState done [13:12:15]opened in 1730333258 [13:12:15]opened+sec_in_day 1730419658 [13:12:15]quantity*price = 0 [13:12:15]sum+1 = 1 [13:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 91 31.10.2024 13:12 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73016 ФПД: 231373759891492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131215&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73016&fm=231373759891492&tin=02508201610067®Number=0000000000091644&sum=0 [13:12:16]StoreToDocumentArchive [13:12:16]shift 557 fd 73016 [13:12:16]save to /storage/0557/doc_00073016 [13:12:16]save last doc name /storage/0557/doc_00073016 to /storage/kkm_last_doc_name [13:12:16]save OK [13:12:16]Clear old archive folders... [13:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:16]tlvbuf is 014EDEA0 [13:12:16]SAM_PROTO_ClearQueue [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 09 00 00 [13:12:16]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]SAM_PROTO_ClearQueue done [13:12:16]KKMCreateOFDPacket [13:12:16]OFDProtocolAddRootSTLVToBuf [13:12:16]FM_MakeSignedData [13:12:16]FM_MakeSignedData [13:12:16]SAM_PROTO_SignData [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 01 02 [13:12:16]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]wFMCommunicate request_size=255 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 2F 82 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 38 1D 01 00 35 04 06 00 D2 [13:12:16]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2F 82 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 38 1D 01 00 35 04 06 00 D2 00 00 6F [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]OFD Sender: No OFD packet to send [13:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]wFMCommunicate request_size=10 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 02 02 05 6E E6 C4 C8 24 [13:12:16]Write to MH i2c: E2 0D 00 AC 00 80 0D 02 02 05 00 6E E6 C4 C8 24 00 00 34 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 03 02 [13:12:16]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 0B 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 0B 00 AD 00 00 C0 4C 39 1B B2 86 3B 2C 90 00 28 [13:12:16]RAPDU: C0 4C 39 1B B2 86 3B 2C 90 00 [13:12:16]wFMCommunicate OK [13:12:16]SAM_PROTO_SignData done [13:12:16]FM_MakeSignedData done [13:12:16]CreateOFDProtocolMessage [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 11 00 00 [13:12:16]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:17]Read from MH i2c: E2 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 17 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [13:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:12:17]wFMCommunicate OK [13:12:17]CreateOFDProtocolMessage done [13:12:17]OFDSenderStorePacket 73016 [13:12:17]StoreOFDPacket docnum=73016 [13:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C1 F2 07 01 08 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 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2F 82 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 38 1D 01 00 35 04 06 00 D2 6E E6 C4 C8 24 C0 4C 39 1B B2 86 3B 2C [13:12:17]CheckFolder [13:12:17]dirname=/storage/ofd_packets [13:12:17]CheckFolder done [13:12:17]ProducePacketName [13:12:17]name=ofd_packets/00073016 [13:12:17]NVStorageSaveData ofd_packets/00073016 [13:12:17]File name is /storage/ofd_packets/00073016 [13:12:17]Write 301 bytes [13:12:17]NVStorageSaveData done [13:12:17]OFDSenderStorePacket done [13:12:17]KKMCreateOFDPacket done [13:12:17]NVStorageSaveData kkm_last_timestamp [13:12:17]File name is /storage/kkm_last_timestamp [13:12:17]Write 4 bytes [13:12:17]NVStorageSaveData done [13:12:17]ExternCall_PrintAddStr [13:12:17]wPrintStart [13:12:17]Write to MH i2c: 01 00 00 AF 00 AF [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [13:12:17]RasterBufferAndPrint [13:12:17]line Счет N : (1)952617 [13:12:17]line ИНН: 02508201610067 [13:12:17]line Контрольно-Кассовый Чек [13:12:17]line ПРОДАЖА [13:12:17]line ТРК (МРК, ГНК) : 63 [13:12:17]line Товар: 2710124130 [13:12:17]line Аи-92-К-5 [13:12:17]line 7.480 * 0.00 [13:12:17]line = 0.00 [13:12:17]line НДС 12% НСП 1% [13:12:17]line > о реализуемом товаре [13:12:17]line ИТОГО: 0.00 [13:12:17]line НСП 1% : 0.00 [13:12:17]line НДС 12% : 0.00 [13:12:17]line Наличными: 0.00 [13:12:17]line Безнал.: 0.00 [13:12:17]line Место: АЗС № 113 "Партнер Нефть" [13:12:17]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:12:17]line СНО: Общий режим [13:12:17]line Чек 91 31.10.2024 13:12 [13:12:17]line Смена: 557 ФФД: 1.0 [13:12:17]line ЗНМ: 0300000087 [13:12:17]line РНМ: 0000000000091644 [13:12:17]line Версия ККМ: 001 [13:12:17]line Талоны: Топливная Карта [13:12:17]line 03047 [13:12:17]line ФМ: 0000000000874662 [13:12:17]line ФД: 73016 [13:12:17]line ФПД: 231373759891492 [13:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131215&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73016&fm=231373759891492&tin=02508201610067®Number=0000000000091644&sum=0 [13:12:17]written 0, free lines is 4095 [13:12:17]OFD Sender: Processing packet 73016 [packets to send 279, broken 278] [13:12:17]ProducePacketName [13:12:17]name=ofd_packets/00073016 [13:12:17]OFD Sender: To server: pG, [13:12:17]CommunicateWithHost lk.salyk.kg:30040 [13:12:17]ConnectInit lk.salyk.kg [13:12:17]Write to MH i2c: 01 00 00 D9 00 D9 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 D8 0C C4 [13:12:17]RasterBufferAndPrint [13:12:17]line [13:12:17]line [13:12:17]line [13:12:17]line [13:12:17]line [13:12:17]written 0, free lines is 3294 [13:12:17]MH_Cut [13:12:17]Write to MH i2c: D1 01 00 E0 00 01 B2 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: D1 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: D1 01 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: D1 01 00 E0 00 00 B1 [13:12:17]Write to MH i2c: 01 00 00 E1 00 E1 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:18]*** Cut start [13:12:18]*** Partial cut [13:12:18]*** CUTSNS_PIN = 1 [13:12:18]*** CUTSNS_PIN = 0 [13:12:18]*** Brake cut motor [13:12:19]Connected sock=7 [13:12:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C1 F2 07 01 08 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 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2F 82 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 38 1D 01 00 35 04 06 00 D2 6E E6 C4 C8 24 C0 4C 39 1B B2 86 3B 2C [13:12:19]Read from MH i2c: 01 [13:12:19]MH_I2C_Read... [13:12:19]*** Stop cut motor [13:12:19]*** Cut end [13:12:19]Read from MH i2c: 01 07 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 FF 0F F6 [13:12:19]process_action close_receipt done [13:12:19]requested_data is exist [13:12:19]produce_requested_data [13:12:19]requested_item fm.sn is exist - process it [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 11 00 00 [13:12:19]Write to MH i2c: E2 08 00 E2 00 80 11 00 00 00 00 00 00 5C [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 17 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 17 00 E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B0 [13:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:12:19]wFMCommunicate OK [13:12:19]requested_item fd.num is exist - process it [13:12:19]SAM_PROTO_GetFieldsCounters [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 13 00 00 [13:12:19]Write to MH i2c: E2 08 00 E3 00 80 13 00 00 00 00 00 00 5F [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 62 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 62 00 E3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 38 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [13:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 38 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_GetFieldsCounters done [13:12:19]requested_item shift.num is exist - process it [13:12:19]requested_item shift.opened is exist - process it [13:12:19]req_shift_opened [13:12:19]FM_GetShiftState [13:12:19]SAM_PROTO_GetShiftState [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 13 01 00 [13:12:19]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0A [13:12:19]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_GetShiftState done [13:12:19]FM_GetShiftState done [13:12:19]req_shift_opened done [13:12:19]requested_item shift.open_date is exist - process it [13:12:19]req_shift_open_date [13:12:19]req_shift_open_date done [13:12:19]produce_requested_data done [13:12:19]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73016,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:12:19]process_action_free close_receipt [13:12:19]json_value_free [13:12:19]json_value_free done [13:12:19]process_json_proto returns [13:12:19]Send response to host [13:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73016,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:12:19]free response buf [13:12:19]execute_script done [13:12:19]execute_script returns [13:12:19]free content buf [13:12:19]Sock 9.Close socket [13:12:19]Sock 9.Thread stoped [13:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 31 3E 47 00 2B 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 38 1D 01 00 F4 03 04 00 E7 2C 23 67 B6 04 01 00 00 87 6F F0 FC 0B 95 FF AA [13:12:19]CommunicateWithHost err = 0 [13:12:19]CheckOFDResponse [13:12:19]1017 (14) - 77093643461234 [13:12:19]1041 (16) - 0000000000874662 [13:12:19]1040 (4) - 73016 [13:12:19]1012 (4) - 31.10.2024 07:08 [13:12:19]1206 (1) - 0 [13:12:19]OFD Sender: Remove packet 73016 [13:12:19]ProducePacketName [13:12:19]name=ofd_packets/00073016 [13:12:19]NVStorageDeleteData [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:02]recv_with_timeout no data received [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:27]recv_with_timeout no data received [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:44]recv_with_timeout no data received [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:01]recv_with_timeout no data received [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:17]recv_with_timeout no data received [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:04]recv_with_timeout no data received [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:02]recv_with_timeout no data received [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:33]recv_with_timeout no data received [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:01]recv_with_timeout no data received [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:23]recv_with_timeout no data received [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:02]recv_with_timeout no data received [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]accept exits with 10 [13:18:25]New connection [13:18:25]New thread 3067166052 created [13:18:25]Thread 3067309412 joined [13:18:25]Waiting for new connection... [13:18:25] Sock 10.Parse request [13:18:25]Sock 10.Check first char [13:18:25]Sock 10.First char is OK [13:18:25]request: POST /json_proto HTTP/1.0 [13:18:25]Method: POST [13:18:25]URL: /json_proto [13:18:25]Method is POST - this is cgi request [13:18:25]url: /json_proto [13:18:25]query_string will be loaded in cgi processing [13:18:25]execute_cgi json_proto POST (null) [13:18:25]execute_cgi path=json_proto method=POST [13:18:25]POST find Content-Length [13:18:25]Host: 172.17.43.195:8080 [13:18:25]Content-Length: 663 [13:18:25]Content-Type: application/json [13:18:25] [13:18:25]POST finish read [13:18:25]Found Content-Length = 663 [13:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:25]execute_script... [13:18: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)952618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:25]POST & json_proto [13:18:25]process_json_proto [13:18:25]json parsed OK: [13:18:25]protocol is kg_v1.0 [13:18:25]action value=close_receipt [13:18:25]process_action close_receipt [13:18:25]cmd_close_receipt [13:18:25]MH_GetDate [13:18:25]Write to MH i2c: F0 00 00 E5 00 D4 [13:18:25]Write i2c OK [13:18:25]MH_I2C_Read... [13:18:25]Read from MH i2c: F0 [13:18:25]MH_I2C_Read... [13:18:25]Read from MH i2c: F0 09 00 [13:18:25]MH_I2C_Read... [13:18:25]Read from MH i2c: F0 09 00 E5 00 00 A1 83 23 67 74 2C AD 66 3E [13:18:25]GetLastDocTimeStamp 1730380335 [13:18:25]current date 1730380705 [13:18:25]FM_GetShiftState [13:18:25]SAM_PROTO_GetShiftState [13:18:25]wFMCommunicate request_size=4 [13:18:25]MH_SAM_APDU [13:18:25]CAPDU: 80 13 01 00 [13:18:25]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [13:18:25]Write i2c OK [13:18:25]MH_I2C_Read... [13:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:25]Read from MH i2c: E2 [13:18:25]MH_I2C_Read... [13:18:25]Read from MH i2c: E2 0E 00 [13:18:25]MH_I2C_Read... [13:18:25]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0C [13:18:25]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:18:25]wFMCommunicate OK [13:18:25]SAM_PROTO_GetShiftState done [13:18:25]FM_GetShiftState done [13:18:25]opened in 1730333258 [13:18:25]opened+sec_in_day 1730419658 [13:18:25]quantity*price = 100000 [13:18:25]sum+1 = 100002 [13:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 92 31.10.2024 13:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73017 ФПД: 78438427895418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131825&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73017&fm=78438427895418&tin=02508201610067®Number=0000000000091644&sum=100000 [13:18:26]StoreToDocumentArchive [13:18:26]shift 557 fd 73017 [13:18:26]save to /storage/0557/doc_00073017 [13:18:26]save last doc name /storage/0557/doc_00073017 to /storage/kkm_last_doc_name [13:18:26]save OK [13:18:26]Clear old archive folders... [13:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:18:26]tlvbuf is 014EC850 [13:18:26]SAM_PROTO_ClearQueue [13:18:26]wFMCommunicate request_size=4 [13:18:26]MH_SAM_APDU [13:18:26]CAPDU: 80 09 00 00 [13:18:26]Write to MH i2c: E2 08 00 F3 00 80 09 00 00 00 00 00 00 65 [13:18:26]Write i2c OK [13:18:26]MH_I2C_Read... [13:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:26]Read from MH i2c: E2 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 03 00 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [13:18:26]RAPDU: 90 00 [13:18:26]wFMCommunicate OK [13:18:26]SAM_PROTO_ClearQueue done [13:18:26]KKMCreateOFDPacket [13:18:26]OFDProtocolAddRootSTLVToBuf [13:18:26]FM_MakeSignedData [13:18:26]FM_MakeSignedData [13:18:26]SAM_PROTO_SignData [13:18:26]wFMCommunicate request_size=4 [13:18:26]MH_SAM_APDU [13:18:26]CAPDU: 80 0D 01 02 [13:18:26]Write to MH i2c: E2 08 00 F4 00 80 0D 01 02 00 00 00 00 6D [13:18:26]Write i2c OK [13:18:26]MH_I2C_Read... [13:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:26]Read from MH i2c: E2 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 03 00 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [13:18:26]RAPDU: 90 00 [13:18:26]wFMCommunicate OK [13:18:26]wFMCommunicate request_size=253 [13:18:26]MH_SAM_APDU [13:18:26]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A1 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 39 1D 01 00 35 04 06 00 47 56 DE A1 A6 7A [13:18:26]Write to MH i2c: E2 00 01 F5 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A1 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 39 1D 01 00 35 04 06 00 47 56 DE A1 A6 7A 00 00 66 [13:18:26]Write i2c OK [13:18:26]MH_I2C_Read... [13:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:26]Read from MH i2c: E2 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 03 00 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [13:18:26]RAPDU: 90 00 [13:18:26]wFMCommunicate OK [13:18:26]wFMCommunicate request_size=4 [13:18:26]MH_SAM_APDU [13:18:26]CAPDU: 80 0D 03 02 [13:18:26]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [13:18:26]Write i2c OK [13:18:26]MH_I2C_Read... [13:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:26]Read from MH i2c: E2 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 0B 00 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 0B 00 F6 00 00 F0 BB 97 5F D9 AA EC 1F 90 00 A1 [13:18:26]RAPDU: F0 BB 97 5F D9 AA EC 1F 90 00 [13:18:26]wFMCommunicate OK [13:18:26]SAM_PROTO_SignData done [13:18:26]FM_MakeSignedData done [13:18:26]CreateOFDProtocolMessage [13:18:26]wFMCommunicate request_size=4 [13:18:26]MH_SAM_APDU [13:18:26]CAPDU: 80 11 00 00 [13:18:26]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [13:18:26]Write i2c OK [13:18:26]MH_I2C_Read... [13:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:26]Read from MH i2c: E2 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 17 00 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [13:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:18:26]wFMCommunicate OK [13:18:26]CreateOFDProtocolMessage done [13:18:26]OFDSenderStorePacket 73017 [13:18:26]StoreOFDPacket docnum=73017 [13:18:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 B1 3E 00 01 F6 4D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A1 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 39 1D 01 00 35 04 06 00 47 56 DE A1 A6 7A F0 BB 97 5F D9 AA EC 1F [13:18:26]CheckFolder [13:18:26]dirname=/storage/ofd_packets [13:18:26]CheckFolder done [13:18:26]ProducePacketName [13:18:26]name=ofd_packets/00073017 [13:18:26]NVStorageSaveData ofd_packets/00073017 [13:18:26]File name is /storage/ofd_packets/00073017 [13:18:26]Write 294 bytes [13:18:26]NVStorageSaveData done [13:18:26]OFDSenderStorePacket done [13:18:26]KKMCreateOFDPacket done [13:18:26]NVStorageSaveData kkm_last_timestamp [13:18:26]File name is /storage/kkm_last_timestamp [13:18:26]Write 4 bytes [13:18:26]NVStorageSaveData done [13:18:26]ExternCall_PrintAddStr [13:18:26]wPrintStart [13:18:26]Write to MH i2c: 01 00 00 F8 00 F8 [13:18:26]Write i2c OK [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: 01 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: 01 07 00 [13:18:26]MH_I2C_Read... [13:18:26]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [13:18:26]RasterBufferAndPrint [13:18:26]line Счет N : (1)952618 [13:18:26]line ИНН: 02508201610067 [13:18:26]line Контрольно-Кассовый Чек [13:18:26]line ПРОДАЖА [13:18:26]line ТРК (МРК, ГНК) : 51 [13:18:26]line Товар: 50.50.0 [13:18:26]line Super 92 [13:18:26]line 14.620 * 68.40 [13:18:26]line = 1000.01 [13:18:26]line НДС 12% НСП 1% [13:18:26]line > о реализуемом товаре [13:18:26]line ОКРУГЛЕНИЕ: -0.01 [13:18:26]line ИТОГО: 1000.00 [13:18:26]line Внесено: 1000.00 [13:18:26]line СДАЧА: 0.00 [13:18:26]line НСП 1% : 8.85 [13:18:26]line НДС 12% : 106.20 [13:18:26]line Наличными: 1000.00 [13:18:26]line Безнал.: 0.00 [13:18:26]line Место: АЗС № 113 "Партнер Нефть" [13:18:26]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:18:26]line СНО: Общий режим [13:18:26]line Чек 92 31.10.2024 13:18 [13:18:26]line Смена: 557 ФФД: 1.0 [13:18:26]line ЗНМ: 0300000087 [13:18:26]line РНМ: 0000000000091644 [13:18:26]line Версия ККМ: 001 [13:18:26]line ФМ: 0000000000874662 [13:18:26]line ФД: 73017 [13:18:26]line ФПД: 78438427895418 [13:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131825&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73017&fm=78438427895418&tin=02508201610067®Number=0000000000091644&sum=100000 [13:18:27]OFD Sender: Processing packet 73017 [packets to send 279, broken 278] [13:18:27]ProducePacketName [13:18:27]name=ofd_packets/00073017 [13:18:27]OFD Sender: To server: pG, [13:18:27]CommunicateWithHost lk.salyk.kg:30040 [13:18:27]ConnectInit lk.salyk.kg [13:18:27]written 0, free lines is 4095 [13:18:27]Write to MH i2c: 01 00 00 23 01 24 [13:18:27]Write i2c OK [13:18:27]MH_I2C_Read... [13:18:27]Read from MH i2c: 01 [13:18:27]MH_I2C_Read... [13:18:27]Read from MH i2c: 01 07 00 [13:18:27]MH_I2C_Read... [13:18:27]Read from MH i2c: 01 07 00 23 01 00 00 00 00 00 D3 0C 0A [13:18:27]RasterBufferAndPrint [13:18:27]line [13:18:27]line [13:18:27]line [13:18:27]line [13:18:27]line [13:18:27]written 0, free lines is 3289 [13:18:27]MH_Cut [13:18:27]Write to MH i2c: D1 01 00 2A 01 01 FD [13:18:27]Write i2c OK [13:18:27]MH_I2C_Read... [13:18:27]Read from MH i2c: D1 [13:18:27]MH_I2C_Read... [13:18:27]Read from MH i2c: D1 01 00 [13:18:27]MH_I2C_Read... [13:18:27]Read from MH i2c: D1 01 00 2A 01 00 FC [13:18:27]Write to MH i2c: 01 00 00 2B 01 2C [13:18:27]Write i2c OK [13:18:27]MH_I2C_Read... [13:18:27]Connected sock=9 [13:18:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 B1 3E 00 01 F6 4D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A1 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 39 1D 01 00 35 04 06 00 47 56 DE A1 A6 7A F0 BB 97 5F D9 AA EC 1F [13:18:28]*** Cut start [13:18:28]*** Partial cut [13:18:28]*** CUTSNS_PIN = 1 [13:18:28]*** CUTSNS_PIN = 0 [13:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E6 67 47 00 3F 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 39 1D 01 00 F4 03 04 00 58 2E 23 67 B6 04 01 00 00 56 3E CB D9 23 96 AD FE [13:18:28]CommunicateWithHost err = 0 [13:18:28]CheckOFDResponse [13:18:28]1017 (14) - 77093643461234 [13:18:28]1041 (16) - 0000000000874662 [13:18:28]1040 (4) - 73017 [13:18:28]1012 (4) - 31.10.2024 07:14 [13:18:28]1206 (1) - 0 [13:18:28]OFD Sender: Remove packet 73017 [13:18:28]ProducePacketName [13:18:28]name=ofd_packets/00073017 [13:18:28]NVStorageDeleteData [13:18:28]*** Brake cut motor [13:18:28]Read from MH i2c: 01 [13:18:28]MH_I2C_Read... [13:18:28]*** Stop cut motor [13:18:28]*** Cut end [13:18:28]Read from MH i2c: 01 07 00 [13:18:28]MH_I2C_Read... [13:18:28]Read from MH i2c: 01 07 00 2B 01 00 00 00 00 00 FF 0F 41 [13:18:28]process_action close_receipt done [13:18:28]requested_data is exist [13:18:28]produce_requested_data [13:18:28]requested_item fm.sn is exist - process it [13:18:28]wFMCommunicate request_size=4 [13:18:28]MH_SAM_APDU [13:18:28]CAPDU: 80 11 00 00 [13:18:28]Write to MH i2c: E2 08 00 2C 01 80 11 00 00 00 00 00 00 A7 [13:18:28]Write i2c OK [13:18:28]MH_I2C_Read... [13:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:29]Read from MH i2c: E2 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: E2 17 00 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: E2 17 00 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FB [13:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:18:29]wFMCommunicate OK [13:18:29]requested_item fd.num is exist - process it [13:18:29]SAM_PROTO_GetFieldsCounters [13:18:29]wFMCommunicate request_size=4 [13:18:29]MH_SAM_APDU [13:18:29]CAPDU: 80 13 00 00 [13:18:29]Write to MH i2c: E2 08 00 2D 01 80 13 00 00 00 00 00 00 AA [13:18:29]Write i2c OK [13:18:29]MH_I2C_Read... [13:18:29]OFD Sender: No OFD packet to send [13:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:29]Read from MH i2c: E2 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: E2 62 00 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: E2 62 00 2D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 39 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [13:18:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 39 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:29]wFMCommunicate OK [13:18:29]SAM_PROTO_GetFieldsCounters done [13:18:29]requested_item shift.num is exist - process it [13:18:29]requested_item shift.opened is exist - process it [13:18:29]req_shift_opened [13:18:29]FM_GetShiftState [13:18:29]SAM_PROTO_GetShiftState [13:18:29]wFMCommunicate request_size=4 [13:18:29]MH_SAM_APDU [13:18:29]CAPDU: 80 13 01 00 [13:18:29]Write to MH i2c: E2 08 00 2E 01 80 13 01 00 00 00 00 00 AC [13:18:29]Write i2c OK [13:18:29]MH_I2C_Read... [13:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:29]Read from MH i2c: E2 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: E2 0E 00 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: E2 0E 00 2E 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 55 [13:18:29]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:18:29]wFMCommunicate OK [13:18:29]SAM_PROTO_GetShiftState done [13:18:29]FM_GetShiftState done [13:18:29]req_shift_opened done [13:18:29]requested_item shift.open_date is exist - process it [13:18:29]req_shift_open_date [13:18:29]req_shift_open_date done [13:18:29]produce_requested_data done [13:18:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73017,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:18:29]process_action_free close_receipt [13:18:29]json_value_free [13:18:29]json_value_free done [13:18:29]process_json_proto returns [13:18:29]Send response to host [13:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73017,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:18:29]free response buf [13:18:29]execute_script done [13:18:29]execute_script returns [13:18:29]free content buf [13:18:29]Sock 10.Close socket [13:18:29]Sock 10.Thread stoped [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:43]recv_with_timeout no data received [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:58]recv_with_timeout no data received [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:15]recv_with_timeout no data received [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:03]recv_with_timeout no data received [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:40]recv_with_timeout no data received [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:15]recv_with_timeout no data received [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:44]recv_with_timeout no data received [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:02]recv_with_timeout no data received [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:11]accept exits with 7 [13:22:11]New connection [13:22:11]New thread 3067309412 created [13:22:11]Thread 3067166052 joined [13:22:11]Waiting for new connection... [13:22:11] Sock 7.Parse request [13:22:11]Sock 7.Check first char [13:22:11]Sock 7.First char is OK [13:22:11]request: POST /json_proto HTTP/1.0 [13:22:11]Method: POST [13:22:11]URL: /json_proto [13:22:11]Method is POST - this is cgi request [13:22:11]url: /json_proto [13:22:11]query_string will be loaded in cgi processing [13:22:11]execute_cgi json_proto POST (null) [13:22:11]execute_cgi path=json_proto method=POST [13:22:11]POST find Content-Length [13:22:11]Host: 172.17.43.195:8080 [13:22:11]Content-Length: 754 [13:22:11]Content-Type: application/json [13:22:11] [13:22:11]POST finish read [13:22:11]Found Content-Length = 754 [13:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30056883", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:11]execute_script... [13:22:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30056883", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:11]POST & json_proto [13:22:11]process_json_proto [13:22:11]json parsed OK: [13:22:11]protocol is kg_v1.0 [13:22:11]action value=close_receipt [13:22:11]process_action close_receipt [13:22:11]cmd_close_receipt [13:22:11]MH_GetDate [13:22:11]Write to MH i2c: F0 00 00 2F 01 1F [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: F0 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: F0 09 00 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: F0 09 00 2F 01 00 84 84 23 67 74 2C AD 66 6D [13:22:11]GetLastDocTimeStamp 1730380705 [13:22:11]current date 1730380932 [13:22:11]FM_GetShiftState [13:22:11]SAM_PROTO_GetShiftState [13:22:11]wFMCommunicate request_size=4 [13:22:11]MH_SAM_APDU [13:22:11]CAPDU: 80 13 01 00 [13:22:11]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:11]Read from MH i2c: E2 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: E2 0E 00 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 57 [13:22:11]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:22:11]wFMCommunicate OK [13:22:11]SAM_PROTO_GetShiftState done [13:22:11]FM_GetShiftState done [13:22:11]opened in 1730333258 [13:22:11]opened+sec_in_day 1730419658 [13:22:11]quantity*price = 0 [13:22:11]sum+1 = 1 [13:22:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 93 31.10.2024 13:22 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30056883 ФМ: 0000000000874662 ФД: 73018 ФПД: 210211400906326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T132212&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73018&fm=210211400906326&tin=02508201610067®Number=0000000000091644&sum=0 [13:22:13]StoreToDocumentArchive [13:22:13]shift 557 fd 73018 [13:22:13]save to /storage/0557/doc_00073018 [13:22:13]save last doc name /storage/0557/doc_00073018 to /storage/kkm_last_doc_name [13:22:13]save OK [13:22:13]Clear old archive folders... [13:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:13]tlvbuf is 014FF050 [13:22:13]SAM_PROTO_ClearQueue [13:22:13]wFMCommunicate request_size=4 [13:22:13]MH_SAM_APDU [13:22:13]CAPDU: 80 09 00 00 [13:22:13]Write to MH i2c: E2 08 00 3D 01 80 09 00 00 00 00 00 00 B0 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 03 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [13:22:13]RAPDU: 90 00 [13:22:13]wFMCommunicate OK [13:22:13]SAM_PROTO_ClearQueue done [13:22:13]KKMCreateOFDPacket [13:22:13]OFDProtocolAddRootSTLVToBuf [13:22:13]FM_MakeSignedData [13:22:13]FM_MakeSignedData [13:22:13]SAM_PROTO_SignData [13:22:13]wFMCommunicate request_size=4 [13:22:13]MH_SAM_APDU [13:22:13]CAPDU: 80 0D 01 02 [13:22:13]Write to MH i2c: E2 08 00 3E 01 80 0D 01 02 00 00 00 00 B8 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 03 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [13:22:13]RAPDU: 90 00 [13:22:13]wFMCommunicate OK [13:22:13]wFMCommunicate request_size=255 [13:22:13]MH_SAM_APDU [13:22:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 84 84 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3A 1D 01 00 35 04 06 00 BF [13:22:13]Write to MH i2c: E2 02 01 3F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 84 84 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3A 1D 01 00 35 04 06 00 BF 00 00 39 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 03 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [13:22:13]RAPDU: 90 00 [13:22:13]wFMCommunicate OK [13:22:13]wFMCommunicate request_size=10 [13:22:13]MH_SAM_APDU [13:22:13]CAPDU: 80 0D 02 02 05 2F A7 E0 F6 56 [13:22:13]Write to MH i2c: E2 0D 00 40 01 80 0D 02 02 05 00 2F A7 E0 F6 56 00 00 C7 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 03 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [13:22:13]RAPDU: 90 00 [13:22:13]wFMCommunicate OK [13:22:13]wFMCommunicate request_size=4 [13:22:13]MH_SAM_APDU [13:22:13]CAPDU: 80 0D 03 02 [13:22:13]Write to MH i2c: E2 08 00 41 01 80 0D 03 02 00 00 00 00 BD [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 0B 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 0B 00 41 01 00 15 ED FD FC 64 6A D8 1B 90 00 7A [13:22:13]RAPDU: 15 ED FD FC 64 6A D8 1B 90 00 [13:22:13]wFMCommunicate OK [13:22:13]SAM_PROTO_SignData done [13:22:13]FM_MakeSignedData done [13:22:13]CreateOFDProtocolMessage [13:22:13]wFMCommunicate request_size=4 [13:22:13]MH_SAM_APDU [13:22:13]CAPDU: 80 11 00 00 [13:22:13]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 17 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [13:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:22:13]wFMCommunicate OK [13:22:13]CreateOFDProtocolMessage done [13:22:13]OFDSenderStorePacket 73018 [13:22:13]StoreOFDPacket docnum=73018 [13:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 98 0B 07 01 2B 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 84 84 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3A 1D 01 00 35 04 06 00 BF 2F A7 E0 F6 56 15 ED FD FC 64 6A D8 1B [13:22:13]CheckFolder [13:22:13]dirname=/storage/ofd_packets [13:22:13]CheckFolder done [13:22:13]ProducePacketName [13:22:13]name=ofd_packets/00073018 [13:22:13]NVStorageSaveData ofd_packets/00073018 [13:22:13]File name is /storage/ofd_packets/00073018 [13:22:13]Write 301 bytes [13:22:13]NVStorageSaveData done [13:22:13]OFDSenderStorePacket done [13:22:13]KKMCreateOFDPacket done [13:22:13]NVStorageSaveData kkm_last_timestamp [13:22:13]File name is /storage/kkm_last_timestamp [13:22:13]Write 4 bytes [13:22:13]NVStorageSaveData done [13:22:13]ExternCall_PrintAddStr [13:22:13]wPrintStart [13:22:13]Write to MH i2c: 01 00 00 43 01 44 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: 01 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: 01 07 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [13:22:13]RasterBufferAndPrint [13:22:13]line Счет N : (1)952619 [13:22:13]line ИНН: 02508201610067 [13:22:13]line Контрольно-Кассовый Чек [13:22:13]line ПРОДАЖА [13:22:13]line ТРК (МРК, ГНК) : 62 [13:22:13]line Товар: 2710124500 [13:22:13]line Аи-95-К-3 [13:22:13]line 35.000 * 0.00 [13:22:13]line = 0.00 [13:22:13]line НДС 12% НСП 1% [13:22:13]line > о реализуемом товаре [13:22:13]line ИТОГО: 0.00 [13:22:13]line НСП 1% : 0.00 [13:22:13]line НДС 12% : 0.00 [13:22:13]line Наличными: 0.00 [13:22:13]line Безнал.: 0.00 [13:22:13]line Место: АЗС № 113 "Партнер Нефть" [13:22:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:22:13]line СНО: Общий режим [13:22:13]line Чек 93 31.10.2024 13:22 [13:22:13]line Смена: 557 ФФД: 1.0 [13:22:13]line ЗНМ: 0300000087 [13:22:13]line РНМ: 0000000000091644 [13:22:13]line Версия ККМ: 001 [13:22:13]line Талоны: ТК ГПНА Online [13:22:13]line 30056883 [13:22:13]line ФМ: 0000000000874662 [13:22:13]line ФД: 73018 [13:22:13]line ФПД: 210211400906326 [13:22:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T132212&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73018&fm=210211400906326&tin=02508201610067®Number=0000000000091644&sum=0 [13:22:13]written 0, free lines is 4095 [13:22:13]OFD Sender: Processing packet 73018 [packets to send 279, broken 278] [13:22:13]ProducePacketName [13:22:13]name=ofd_packets/00073018 [13:22:13]OFD Sender: To server: pG, [13:22:13]CommunicateWithHost lk.salyk.kg:30040 [13:22:13]ConnectInit lk.salyk.kg [13:22:13]Write to MH i2c: 01 00 00 6D 01 6E [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: 01 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: 01 07 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 D9 0C 5A [13:22:13]RasterBufferAndPrint [13:22:13]line [13:22:13]line [13:22:14]line [13:22:14]line [13:22:14]line [13:22:14]written 0, free lines is 3296 [13:22:14]MH_Cut [13:22:14]Write to MH i2c: D1 01 00 74 01 01 47 [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: D1 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: D1 01 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: D1 01 00 74 01 00 46 [13:22:14]Write to MH i2c: 01 00 00 75 01 76 [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]Connected sock=9 [13:22:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 98 0B 07 01 2B 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 84 84 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3A 1D 01 00 35 04 06 00 BF 2F A7 E0 F6 56 15 ED FD FC 64 6A D8 1B [13:22:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 04 EF 47 00 7D 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3A 1D 01 00 F4 03 04 00 3A 2F 23 67 B6 04 01 00 00 C0 CA D3 87 12 A2 39 02 [13:22:14]CommunicateWithHost err = 0 [13:22:14]CheckOFDResponse [13:22:14]1017 (14) - 77093643461234 [13:22:14]1041 (16) - 0000000000874662 [13:22:14]1040 (4) - 73018 [13:22:14]1012 (4) - 31.10.2024 07:18 [13:22:14]1206 (1) - 0 [13:22:14]OFD Sender: Remove packet 73018 [13:22:14]ProducePacketName [13:22:14]name=ofd_packets/00073018 [13:22:14]NVStorageDeleteData [13:22:14]*** Cut start [13:22:14]*** Partial cut [13:22:14]*** CUTSNS_PIN = 1 [13:22:14]*** CUTSNS_PIN = 0 [13:22:15]*** Brake cut motor [13:22:15]OFD Sender: No OFD packet to send [13:22:15]Read from MH i2c: 01 [13:22:15]MH_I2C_Read... [13:22:15]*** Stop cut motor [13:22:15]*** Cut end [13:22:15]Read from MH i2c: 01 07 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: 01 07 00 75 01 00 00 00 00 00 FF 0F 8B [13:22:15]process_action close_receipt done [13:22:15]requested_data is exist [13:22:15]produce_requested_data [13:22:15]requested_item fm.sn is exist - process it [13:22:15]wFMCommunicate request_size=4 [13:22:15]MH_SAM_APDU [13:22:15]CAPDU: 80 11 00 00 [13:22:15]Write to MH i2c: E2 08 00 76 01 80 11 00 00 00 00 00 00 F1 [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:15]Read from MH i2c: E2 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 17 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 17 00 76 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 45 [13:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:22:15]wFMCommunicate OK [13:22:15]requested_item fd.num is exist - process it [13:22:15]SAM_PROTO_GetFieldsCounters [13:22:15]wFMCommunicate request_size=4 [13:22:15]MH_SAM_APDU [13:22:15]CAPDU: 80 13 00 00 [13:22:15]Write to MH i2c: E2 08 00 77 01 80 13 00 00 00 00 00 00 F4 [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:15]Read from MH i2c: E2 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 62 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 62 00 77 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [13:22:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:15]wFMCommunicate OK [13:22:15]SAM_PROTO_GetFieldsCounters done [13:22:15]requested_item shift.num is exist - process it [13:22:15]requested_item shift.opened is exist - process it [13:22:15]req_shift_opened [13:22:15]FM_GetShiftState [13:22:15]SAM_PROTO_GetShiftState [13:22:15]wFMCommunicate request_size=4 [13:22:15]MH_SAM_APDU [13:22:15]CAPDU: 80 13 01 00 [13:22:15]Write to MH i2c: E2 08 00 78 01 80 13 01 00 00 00 00 00 F6 [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:15]Read from MH i2c: E2 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 0E 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 0E 00 78 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 9F [13:22:15]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:22:15]wFMCommunicate OK [13:22:15]SAM_PROTO_GetShiftState done [13:22:15]FM_GetShiftState done [13:22:15]req_shift_opened done [13:22:15]requested_item shift.open_date is exist - process it [13:22:15]req_shift_open_date [13:22:15]req_shift_open_date done [13:22:15]produce_requested_data done [13:22:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73018,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:22:15]process_action_free close_receipt [13:22:15]json_value_free [13:22:15]json_value_free done [13:22:15]process_json_proto returns [13:22:15]Send response to host [13:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73018,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:22:15]free response buf [13:22:15]execute_script done [13:22:15]execute_script returns [13:22:15]free content buf [13:22:15]Sock 7.Close socket [13:22:15]Sock 7.Thread stoped [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:44]recv_with_timeout no data received [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:46]accept exits with 10 [13:23:46]New connection [13:23:46]New thread 3067166052 created [13:23:46]Thread 3067309412 joined [13:23:46]Waiting for new connection... [13:23:46] Sock 10.Parse request [13:23:46]Sock 10.Check first char [13:23:46]Sock 10.First char is OK [13:23:46]request: POST /json_proto HTTP/1.0 [13:23:46]Method: POST [13:23:46]URL: /json_proto [13:23:46]Method is POST - this is cgi request [13:23:46]url: /json_proto [13:23:46]query_string will be loaded in cgi processing [13:23:46]execute_cgi json_proto POST (null) [13:23:46]execute_cgi path=json_proto method=POST [13:23:46]POST find Content-Length [13:23:46]Host: 172.17.43.195:8080 [13:23:46]Content-Length: 792 [13:23:46]Content-Type: application/json [13:23:46] [13:23:46]POST finish read [13:23:46]Found Content-Length = 792 [13:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:46]execute_script... [13:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:46]POST & json_proto [13:23:46]process_json_proto [13:23:46]json parsed OK: [13:23:46]protocol is kg_v1.0 [13:23:46]action value=close_receipt [13:23:46]process_action close_receipt [13:23:46]cmd_close_receipt [13:23:46]MH_GetDate [13:23:46]Write to MH i2c: F0 00 00 79 01 69 [13:23:46]Write i2c OK [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: F0 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: F0 09 00 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: F0 09 00 79 01 00 E3 84 23 67 74 2C AD 66 16 [13:23:46]GetLastDocTimeStamp 1730380932 [13:23:46]current date 1730381027 [13:23:46]FM_GetShiftState [13:23:46]SAM_PROTO_GetShiftState [13:23:46]wFMCommunicate request_size=4 [13:23:46]MH_SAM_APDU [13:23:46]CAPDU: 80 13 01 00 [13:23:46]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [13:23:46]Write i2c OK [13:23:46]MH_I2C_Read... [13:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:46]Read from MH i2c: E2 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 0E 00 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A1 [13:23:46]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:23:46]wFMCommunicate OK [13:23:46]SAM_PROTO_GetShiftState done [13:23:46]FM_GetShiftState done [13:23:46]opened in 1730333258 [13:23:46]opened+sec_in_day 1730419658 [13:23:46]quantity*price = 0 [13:23:46]sum+1 = 1 [13:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 94 31.10.2024 13:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 73019 ФПД: 46880245800921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T132347&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73019&fm=46880245800921&tin=02508201610067®Number=0000000000091644&sum=0 [13:23:47]StoreToDocumentArchive [13:23:47]shift 557 fd 73019 [13:23:47]save to /storage/0557/doc_00073019 [13:23:47]save last doc name /storage/0557/doc_00073019 to /storage/kkm_last_doc_name [13:23:47]save OK [13:23:47]Clear old archive folders... [13:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:47]tlvbuf is 014EE880 [13:23:47]SAM_PROTO_ClearQueue [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 09 00 00 [13:23:47]Write to MH i2c: E2 08 00 87 01 80 09 00 00 00 00 00 00 FA [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [13:23:47]RAPDU: 90 00 [13:23:47]wFMCommunicate OK [13:23:47]SAM_PROTO_ClearQueue done [13:23:47]KKMCreateOFDPacket [13:23:47]OFDProtocolAddRootSTLVToBuf [13:23:47]FM_MakeSignedData [13:23:47]FM_MakeSignedData [13:23:47]SAM_PROTO_SignData [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 0D 01 02 [13:23:47]Write to MH i2c: E2 08 00 88 01 80 0D 01 02 00 00 00 00 02 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [13:23:47]RAPDU: 90 00 [13:23:47]wFMCommunicate OK [13:23:47]wFMCommunicate request_size=255 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 E3 84 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1D 01 00 35 04 06 00 2A [13:23:47]Write to MH i2c: E2 02 01 89 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 E3 84 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1D 01 00 35 04 06 00 2A 00 00 44 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]wFMCommunicate request_size=10 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 0D 02 02 05 A3 28 65 DF D9 [13:23:48]Write to MH i2c: E2 0D 00 8A 01 80 0D 02 02 05 00 A3 28 65 DF D9 00 00 F7 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 0D 03 02 [13:23:48]Write to MH i2c: E2 08 00 8B 01 80 0D 03 02 00 00 00 00 07 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0B 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0B 00 8B 01 00 86 F1 83 AA 12 93 41 E4 90 00 76 [13:23:48]RAPDU: 86 F1 83 AA 12 93 41 E4 90 00 [13:23:48]wFMCommunicate OK [13:23:48]SAM_PROTO_SignData done [13:23:48]FM_MakeSignedData done [13:23:48]CreateOFDProtocolMessage [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 11 00 00 [13:23:48]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 17 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [13:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:23:48]wFMCommunicate OK [13:23:48]CreateOFDProtocolMessage done [13:23:48]OFDSenderStorePacket 73019 [13:23:48]StoreOFDPacket docnum=73019 [13:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 07 B0 07 01 D8 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 E3 84 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1D 01 00 35 04 06 00 2A A3 28 65 DF D9 86 F1 83 AA 12 93 41 E4 [13:23:48]CheckFolder [13:23:48]dirname=/storage/ofd_packets [13:23:48]CheckFolder done [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00073019 [13:23:48]NVStorageSaveData ofd_packets/00073019 [13:23:48]File name is /storage/ofd_packets/00073019 [13:23:48]Write 301 bytes [13:23:48]NVStorageSaveData done [13:23:48]OFDSenderStorePacket done [13:23:48]KKMCreateOFDPacket done [13:23:48]NVStorageSaveData kkm_last_timestamp [13:23:48]File name is /storage/kkm_last_timestamp [13:23:48]Write 4 bytes [13:23:48]NVStorageSaveData done [13:23:48]ExternCall_PrintAddStr [13:23:48]wPrintStart [13:23:48]Write to MH i2c: 01 00 00 8D 01 8E [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [13:23:48]RasterBufferAndPrint [13:23:48]line Счет N : (1)952620 [13:23:48]line ИНН: 02508201610067 [13:23:48]line Контрольно-Кассовый Чек [13:23:48]line ПРОДАЖА [13:23:48]line ТРК (МРК, ГНК) : 42 [13:23:48]line Товар: 2710124130 [13:23:48]line Аи-92-К-5 [13:23:48]line 10.000 * 0.00 [13:23:48]line = 0.00 [13:23:48]line НДС 12% НСП 1% [13:23:48]line > о реализуемом товаре [13:23:48]line ИТОГО: 0.00 [13:23:48]line НСП 1% : 0.00 [13:23:48]line НДС 12% : 0.00 [13:23:48]line Наличными: 0.00 [13:23:48]line Безнал.: 0.00 [13:23:48]line Место: АЗС № 113 "Партнер Нефть" [13:23:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:23:48]line СНО: Общий режим [13:23:48]line Чек 94 31.10.2024 13:23 [13:23:48]line Смена: 557 ФФД: 1.0 [13:23:48]line ЗНМ: 0300000087 [13:23:48]line РНМ: 0000000000091644 [13:23:48]line Версия ККМ: 001 [13:23:48]line Талоны: Топливная Карта [13:23:48]line 02645 [13:23:48]line ФМ: 0000000000874662 [13:23:48]line ФД: 73019 [13:23:48]line ФПД: 46880245800921 [13:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T132347&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73019&fm=46880245800921&tin=02508201610067®Number=0000000000091644&sum=0 [13:23:48]written 0, free lines is 4095 [13:23:48]OFD Sender: Processing packet 73019 [packets to send 279, broken 278] [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00073019 [13:23:48]OFD Sender: To server: pG, [13:23:48]CommunicateWithHost lk.salyk.kg:30040 [13:23:48]ConnectInit lk.salyk.kg [13:23:48]Write to MH i2c: 01 00 00 B7 01 B8 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 B7 01 00 00 00 00 00 DA 0C A5 [13:23:48]RasterBufferAndPrint [13:23:48]line [13:23:48]line [13:23:48]line [13:23:48]line [13:23:48]line [13:23:48]written 0, free lines is 3296 [13:23:48]MH_Cut [13:23:48]Write to MH i2c: D1 01 00 BE 01 01 91 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: D1 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: D1 01 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: D1 01 00 BE 01 00 90 [13:23:48]Write to MH i2c: 01 00 00 BF 01 C0 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:49]Connected sock=9 [13:23:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 07 B0 07 01 D8 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 E3 84 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1D 01 00 35 04 06 00 2A A3 28 65 DF D9 86 F1 83 AA 12 93 41 E4 [13:23:49]*** Cut start [13:23:49]*** Partial cut [13:23:49]*** CUTSNS_PIN = 1 [13:23:49]*** CUTSNS_PIN = 0 [13:23:49]*** Brake cut motor [13:23:50]Read from MH i2c: 01 [13:23:50]MH_I2C_Read... [13:23:50]*** Stop cut motor [13:23:50]*** Cut end [13:23:50]Read from MH i2c: 01 07 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 07 00 BF 01 00 00 00 00 00 FF 0F D5 [13:23:50]process_action close_receipt done [13:23:50]requested_data is exist [13:23:50]produce_requested_data [13:23:50]requested_item fm.sn is exist - process it [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 11 00 00 [13:23:50]Write to MH i2c: E2 08 00 C0 01 80 11 00 00 00 00 00 00 3B [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 17 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 17 00 C0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8F [13:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:23:50]wFMCommunicate OK [13:23:50]requested_item fd.num is exist - process it [13:23:50]SAM_PROTO_GetFieldsCounters [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 13 00 00 [13:23:50]Write to MH i2c: E2 08 00 C1 01 80 13 00 00 00 00 00 00 3E [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 62 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 62 00 C1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [13:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetFieldsCounters done [13:23:50]requested_item shift.num is exist - process it [13:23:50]requested_item shift.opened is exist - process it [13:23:50]req_shift_opened [13:23:50]FM_GetShiftState [13:23:50]SAM_PROTO_GetShiftState [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 13 01 00 [13:23:50]Write to MH i2c: E2 08 00 C2 01 80 13 01 00 00 00 00 00 40 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 C2 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E9 [13:23:50]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetShiftState done [13:23:50]FM_GetShiftState done [13:23:50]req_shift_opened done [13:23:50]requested_item shift.open_date is exist - process it [13:23:50]req_shift_open_date [13:23:50]req_shift_open_date done [13:23:50]produce_requested_data done [13:23:50]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73019,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:23:50]process_action_free close_receipt [13:23:50]json_value_free [13:23:50]json_value_free done [13:23:50]process_json_proto returns [13:23:50]Send response to host [13:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73019,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:23:50]free response buf [13:23:50]execute_script done [13:23:50]execute_script returns [13:23:50]free content buf [13:23:50]Sock 10.Close socket [13:23:50]Sock 10.Thread stoped [13:23:54]recv_with_timeout no data received [13:23:54]CommunicateWithHost answer receiving error [13:23:54]CommunicateWithHost err = -3 [13:23:54]OFD Sender: Server communicate error [13:23:59]OFD Sender: Processing packet 73019 [packets to send 279, broken 278] [13:23:59]ProducePacketName [13:23:59]name=ofd_packets/00073019 [13:23:59]OFD Sender: To server: pG, [13:23:59]CommunicateWithHost lk.salyk.kg:30040 [13:23:59]ConnectInit lk.salyk.kg [13:23:59]Connected sock=9 [13:23:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 07 B0 07 01 D8 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 E3 84 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1D 01 00 35 04 06 00 2A A3 28 65 DF D9 86 F1 83 AA 12 93 41 E4 [13:24:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 78 14 47 00 9C 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1D 01 00 F4 03 04 00 A3 2F 23 67 B6 04 01 00 00 34 18 13 7A 4C C2 0B 66 [13:24:00]CommunicateWithHost err = 0 [13:24:00]CheckOFDResponse [13:24:00]1017 (14) - 77093643461234 [13:24:00]1041 (16) - 0000000000874662 [13:24:00]1040 (4) - 73019 [13:24:00]1012 (4) - 31.10.2024 07:20 [13:24:00]1206 (1) - 0 [13:24:00]OFD Sender: Remove packet 73019 [13:24:00]ProducePacketName [13:24:00]name=ofd_packets/00073019 [13:24:00]NVStorageDeleteData [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:18]recv_with_timeout no data received [13:24:21]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:49]ConnectInit Can't connect to host [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [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:29]ConnectInit Can't connect to host [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:33]recv_with_timeout no data received [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:45]recv_with_timeout no data received [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:56]recv_with_timeout no data received [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:13]accept exits with 7 [13:38:13]New connection [13:38:13]New thread 3067309412 created [13:38:13]Thread 3067166052 joined [13:38:13]Waiting for new connection... [13:38:13] Sock 7.Parse request [13:38:13]Sock 7.Check first char [13:38:13]Sock 7.First char is OK [13:38:13]request: POST /json_proto HTTP/1.0 [13:38:13]Method: POST [13:38:13]URL: /json_proto [13:38:13]Method is POST - this is cgi request [13:38:13]url: /json_proto [13:38:13]query_string will be loaded in cgi processing [13:38:13]execute_cgi json_proto POST (null) [13:38:13]execute_cgi path=json_proto method=POST [13:38:13]POST find Content-Length [13:38:13]Host: 172.17.43.195:8080 [13:38:13]Content-Length: 215 [13:38:13]Content-Type: application/json [13:38:13] [13:38:13]POST finish read [13:38:13]Found Content-Length = 215 [13:38:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:13]execute_script... [13:38:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:13]POST & json_proto [13:38:13]process_json_proto [13:38:13]json parsed OK: [13:38:13]protocol is kg_v1.0 [13:38:13]action value=get_value [13:38:13]process_action get_value [13:38:13]cmd_get_value [13:38:13]process_action get_value done [13:38:13]requested_data is exist [13:38:13]produce_requested_data [13:38:13]requested_item kkm.sn is exist - process it [13:38:13]requested_item kkm.ver is exist - process it [13:38:13]requested_item fm.sn is exist - process it [13:38:13]wFMCommunicate request_size=4 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 11 00 00 [13:38:13]Write to MH i2c: E2 08 00 C3 01 80 11 00 00 00 00 00 00 3E [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:14]Read from MH i2c: E2 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: E2 17 00 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: E2 17 00 C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [13:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:38:14]wFMCommunicate OK [13:38:14]requested_item fd.num is exist - process it [13:38:14]SAM_PROTO_GetFieldsCounters [13:38:14]wFMCommunicate request_size=4 [13:38:14]MH_SAM_APDU [13:38:14]CAPDU: 80 13 00 00 [13:38:14]Write to MH i2c: E2 08 00 C4 01 80 13 00 00 00 00 00 00 41 [13:38:14]Write i2c OK [13:38:14]MH_I2C_Read... [13:38:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:14]Read from MH i2c: E2 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: E2 62 00 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: E2 62 00 C4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [13:38:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:14]wFMCommunicate OK [13:38:14]SAM_PROTO_GetFieldsCounters done [13:38:14]requested_item shift.num is exist - process it [13:38:14]requested_item shift.opened is exist - process it [13:38:14]req_shift_opened [13:38:14]FM_GetShiftState [13:38:14]SAM_PROTO_GetShiftState [13:38:14]wFMCommunicate request_size=4 [13:38:14]MH_SAM_APDU [13:38:14]CAPDU: 80 13 01 00 [13:38:14]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [13:38:14]Write i2c OK [13:38:14]MH_I2C_Read... [13:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:14]Read from MH i2c: E2 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: E2 0E 00 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 EC [13:38:14]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:38:14]wFMCommunicate OK [13:38:14]SAM_PROTO_GetShiftState done [13:38:14]FM_GetShiftState done [13:38:14]req_shift_opened done [13:38:14]requested_item shift.open_date is exist - process it [13:38:14]req_shift_open_date [13:38:14]req_shift_open_date done [13:38:14]produce_requested_data done [13:38:14]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73019,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:38:14]process_action_free get_value [13:38:14]json_value_free [13:38:14]json_value_free done [13:38:14]process_json_proto returns [13:38:14]Send response to host [13:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73019,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:38:14]free response buf [13:38:14]execute_script done [13:38:14]execute_script returns [13:38:14]free content buf [13:38:14]Sock 7.Close socket [13:38:14]Sock 7.Thread stoped [13:38:14]accept exits with 9 [13:38:14]New connection [13:38:14]New thread 3067166052 created [13:38:14]Thread 3067309412 joined [13:38:14]Waiting for new connection... [13:38:14] Sock 9.Parse request [13:38:14]Sock 9.Check first char [13:38:14]Sock 9.First char is OK [13:38:14]request: POST /json_proto HTTP/1.0 [13:38:14]Method: POST [13:38:14]URL: /json_proto [13:38:14]Method is POST - this is cgi request [13:38:14]url: /json_proto [13:38:14]query_string will be loaded in cgi processing [13:38:14]execute_cgi json_proto POST (null) [13:38:14]execute_cgi path=json_proto method=POST [13:38:14]POST find Content-Length [13:38:14]Host: 172.17.43.195:8080 [13:38:14]Content-Length: 331 [13:38:14]Content-Type: application/json [13:38:14] [13:38:14]POST finish read [13:38:14]Found Content-Length = 331 [13:38:14]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" ] } } [13:38:14]execute_script... [13:38:14]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" ] } } [13:38:14]POST & json_proto [13:38:14]process_json_proto [13:38:14]json parsed OK: [13:38:14]protocol is kg_v1.0 [13:38:14]action value=get_value [13:38:14]process_action get_value [13:38:14]cmd_get_value [13:38:14]process_action get_value done [13:38:14]requested_data is exist [13:38:14]produce_requested_data [13:38:14]requested_item fm.sale.total is exist - process it [13:38:14]SAM_PROTO_GetFMData [13:38:14]wFMCommunicate request_size=4 [13:38:14]MH_SAM_APDU [13:38:14]CAPDU: 80 13 03 00 [13:38:14]Write to MH i2c: E2 08 00 C6 01 80 13 03 00 00 00 00 00 46 [13:38:14]Write i2c OK [13:38:14]MH_I2C_Read... [13:38:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:38:14]Read from MH i2c: E2 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: E2 FD 00 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: E2 FD 00 C6 01 00 C4 04 85 04 C0 04 6E 04 04 00 E1 18 01 00 69 04 A3 00 6F 04 04 00 F1 17 01 00 B1 04 05 00 CE 5B 6D A4 01 70 04 05 00 74 78 D2 58 01 72 04 04 00 5A E3 9A 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0C 7B A8 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE A2 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 35 [13:38:14]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 E1 18 01 00 69 04 A3 00 6F 04 04 00 F1 17 01 00 B1 04 05 00 CE 5B 6D A4 01 70 04 05 00 74 78 D2 58 01 72 04 04 00 5A E3 9A 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0C 7B A8 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE A2 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [13:38:14]wFMCommunicate OK [13:38:14]wFMCommunicate request_size=4 [13:38:14]MH_SAM_APDU [13:38:14]CAPDU: 80 17 00 00 [13:38:14]Write to MH i2c: E2 08 00 C7 01 80 17 00 00 00 00 00 00 48 [13:38:14]Write i2c OK [13:38:14]MH_I2C_Read... [13:38:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:15]Read from MH i2c: E2 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 FD 00 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 FD 00 C7 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 C8 [13:38:15]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [13:38:15]wFMCommunicate OK [13:38:15]wFMCommunicate request_size=4 [13:38:15]MH_SAM_APDU [13:38:15]CAPDU: 80 17 00 00 [13:38:15]Write to MH i2c: E2 08 00 C8 01 80 17 00 00 00 00 00 00 49 [13:38:15]Write i2c OK [13:38:15]MH_I2C_Read... [13:38:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:15]Read from MH i2c: E2 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 FD 00 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 FD 00 C8 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 5E [13:38:15]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [13:38:15]wFMCommunicate OK [13:38:15]wFMCommunicate request_size=4 [13:38:15]MH_SAM_APDU [13:38:15]CAPDU: 80 17 00 00 [13:38:15]Write to MH i2c: E2 08 00 C9 01 80 17 00 00 00 00 00 00 4A [13:38:15]Write i2c OK [13:38:15]MH_I2C_Read... [13:38:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:15]Read from MH i2c: E2 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 FD 00 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 FD 00 C9 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 C2 [13:38:15]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:38:15]wFMCommunicate OK [13:38:15]wFMCommunicate request_size=4 [13:38:15]MH_SAM_APDU [13:38:15]CAPDU: 80 17 00 00 [13:38:15]Write to MH i2c: E2 08 00 CA 01 80 17 00 00 00 00 00 00 4B [13:38:15]Write i2c OK [13:38:15]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 E1 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 E1 00 CA 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 39 [13:38:16]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:38:16]wFMCommunicate OK [13:38:16]SAM_PROTO_GetFMData done [13:38:16]requested_item fm.sale_refund.total is exist - process it [13:38:16]requested_item fm.buy.total is exist - process it [13:38:16]requested_item shift.sale.total is exist - process it [13:38:16]SAM_PROTO_GetShiftData [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 13 02 00 [13:38:16]Write to MH i2c: E2 08 00 CB 01 80 13 02 00 00 00 00 00 4A [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 FD 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 FD 00 CB 01 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 15 EF 56 70 04 03 00 40 6F 2D 72 04 03 00 D5 7F 29 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 B1 3B 09 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 F6 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 29 [13:38:16]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 15 EF 56 70 04 03 00 40 6F 2D 72 04 03 00 D5 7F 29 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 B1 3B 09 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 F6 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [13:38:16]wFMCommunicate OK [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 17 00 00 [13:38:16]Write to MH i2c: E2 08 00 CC 01 80 17 00 00 00 00 00 00 4D [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 FD 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 FD 00 CC 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 6F [13:38:16]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 [13:38:16]wFMCommunicate OK [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 17 00 00 [13:38:16]Write to MH i2c: E2 08 00 CD 01 80 17 00 00 00 00 00 00 4E [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 FD 00 [13:38:16]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 FD 00 CD 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 05 [13:38:17]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 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 17 00 00 [13:38:17]Write to MH i2c: E2 08 00 CE 01 80 17 00 00 00 00 00 00 4F [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 FD 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 FD 00 CE 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 C1 [13:38:17]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 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 17 00 00 [13:38:17]Write to MH i2c: E2 08 00 CF 01 80 17 00 00 00 00 00 00 50 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 CB 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 CB 00 CF 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 39 [13:38:17]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 [13:38:17]wFMCommunicate OK [13:38:17]SAM_PROTO_GetShiftData done [13:38:17]requested_item shift.sale.total_cash is exist - process it [13:38:17]requested_item shift.sale_refund.total is exist - process it [13:38:17]requested_item shift.sale_refund.total_cash is exist - process it [13:38:17]requested_item shift.buy.total is exist - process it [13:38:17]requested_item shift.buy.total_cash is exist - process it [13:38:17]produce_requested_data done [13:38:17]produce_requested_data return {"fm.sale.total":70535976.46,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":56973.01,"shift.sale.total_cash":29776.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} [13:38:17]process_action_free get_value [13:38:17]json_value_free [13:38:17]json_value_free done [13:38:17]process_json_proto returns [13:38:17]Send response to host [13:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70535976.46,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":56973.01,"shift.sale.total_cash":29776.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}}} [13:38:17]free response buf [13:38:17]execute_script done [13:38:17]execute_script returns [13:38:17]free content buf [13:38:17]Sock 9.Close socket [13:38:17]Sock 9.Thread stoped [13:38:17]accept exits with 7 [13:38:17]New connection [13:38:17]New thread 3067309412 created [13:38:17]Thread 3067166052 joined [13:38:17]Waiting for new connection... [13:38:17] Sock 7.Parse request [13:38:17]Sock 7.Check first char [13:38:17]Sock 7.First char is OK [13:38:17]request: POST /json_proto HTTP/1.0 [13:38:17]Method: POST [13:38:17]URL: /json_proto [13:38:17]Method is POST - this is cgi request [13:38:17]url: /json_proto [13:38:17]query_string will be loaded in cgi processing [13:38:17]execute_cgi json_proto POST (null) [13:38:17]execute_cgi path=json_proto method=POST [13:38:17]POST find Content-Length [13:38:17]Host: 172.17.43.195:8080 [13:38:17]Content-Length: 331 [13:38:17]Content-Type: application/json [13:38:17] [13:38:17]POST finish read [13:38:17]Found Content-Length = 331 [13:38: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" ] } } [13:38:17]execute_script... [13:38: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" ] } } [13:38:17]POST & json_proto [13:38:17]process_json_proto [13:38:17]json parsed OK: [13:38:17]protocol is kg_v1.0 [13:38:17]action value=get_value [13:38:17]process_action get_value [13:38:17]cmd_get_value [13:38:17]process_action get_value done [13:38:17]requested_data is exist [13:38:17]produce_requested_data [13:38:17]requested_item fm.sale.total is exist - process it [13:38:17]SAM_PROTO_GetFMData [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 13 03 00 [13:38:17]Write to MH i2c: E2 08 00 D0 01 80 13 03 00 00 00 00 00 50 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]OFD Sender: No OFD packet to send [13:38:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:38:18]Read from MH i2c: E2 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 FD 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 FD 00 D0 01 00 C4 04 85 04 C0 04 6E 04 04 00 E1 18 01 00 69 04 A3 00 6F 04 04 00 F1 17 01 00 B1 04 05 00 CE 5B 6D A4 01 70 04 05 00 74 78 D2 58 01 72 04 04 00 5A E3 9A 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0C 7B A8 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE A2 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 3F [13:38:18]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 E1 18 01 00 69 04 A3 00 6F 04 04 00 F1 17 01 00 B1 04 05 00 CE 5B 6D A4 01 70 04 05 00 74 78 D2 58 01 72 04 04 00 5A E3 9A 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0C 7B A8 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE A2 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [13:38:18]wFMCommunicate OK [13:38:18]wFMCommunicate request_size=4 [13:38:18]MH_SAM_APDU [13:38:18]CAPDU: 80 17 00 00 [13:38:18]Write to MH i2c: E2 08 00 D1 01 80 17 00 00 00 00 00 00 52 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:18]Read from MH i2c: E2 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 FD 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 FD 00 D1 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 D2 [13:38:18]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [13:38:18]wFMCommunicate OK [13:38:18]wFMCommunicate request_size=4 [13:38:18]MH_SAM_APDU [13:38:18]CAPDU: 80 17 00 00 [13:38:18]Write to MH i2c: E2 08 00 D2 01 80 17 00 00 00 00 00 00 53 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:18]Read from MH i2c: E2 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 FD 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 FD 00 D2 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 68 [13:38:18]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [13:38:18]wFMCommunicate OK [13:38:18]wFMCommunicate request_size=4 [13:38:18]MH_SAM_APDU [13:38:18]CAPDU: 80 17 00 00 [13:38:18]Write to MH i2c: E2 08 00 D3 01 80 17 00 00 00 00 00 00 54 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 FD 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 FD 00 D3 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 CC [13:38:19]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:38:19]wFMCommunicate OK [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 17 00 00 [13:38:19]Write to MH i2c: E2 08 00 D4 01 80 17 00 00 00 00 00 00 55 [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 E1 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 E1 00 D4 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 43 [13:38:19]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:38:19]wFMCommunicate OK [13:38:19]SAM_PROTO_GetFMData done [13:38:19]requested_item fm.sale_refund.total is exist - process it [13:38:19]requested_item fm.buy.total is exist - process it [13:38:19]requested_item shift.sale.total is exist - process it [13:38:19]SAM_PROTO_GetShiftData [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 13 02 00 [13:38:19]Write to MH i2c: E2 08 00 D5 01 80 13 02 00 00 00 00 00 54 [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 FD 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 FD 00 D5 01 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 15 EF 56 70 04 03 00 40 6F 2D 72 04 03 00 D5 7F 29 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 B1 3B 09 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 F6 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 33 [13:38:19]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 15 EF 56 70 04 03 00 40 6F 2D 72 04 03 00 D5 7F 29 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 B1 3B 09 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 F6 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [13:38:20]wFMCommunicate OK [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 17 00 00 [13:38:20]Write to MH i2c: E2 08 00 D6 01 80 17 00 00 00 00 00 00 57 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 FD 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 FD 00 D6 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 79 [13:38:20]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 [13:38:20]wFMCommunicate OK [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 17 00 00 [13:38:20]Write to MH i2c: E2 08 00 D7 01 80 17 00 00 00 00 00 00 58 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 FD 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 FD 00 D7 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 0F [13:38:20]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 [13:38:20]wFMCommunicate OK [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 17 00 00 [13:38:20]Write to MH i2c: E2 08 00 D8 01 80 17 00 00 00 00 00 00 59 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 FD 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 FD 00 D8 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 CB [13:38:21]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 [13:38:21]wFMCommunicate OK [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 17 00 00 [13:38:21]Write to MH i2c: E2 08 00 D9 01 80 17 00 00 00 00 00 00 5A [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]recv_with_timeout no data received [13:38:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 CB 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 CB 00 D9 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 43 [13:38:21]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 [13:38:21]wFMCommunicate OK [13:38:21]SAM_PROTO_GetShiftData done [13:38:21]requested_item shift.sale.total_cash is exist - process it [13:38:21]requested_item shift.sale_refund.total is exist - process it [13:38:21]requested_item shift.sale_refund.total_cash is exist - process it [13:38:21]requested_item shift.buy.total is exist - process it [13:38:21]requested_item shift.buy.total_cash is exist - process it [13:38:21]produce_requested_data done [13:38:21]produce_requested_data return {"fm.sale.total":70535976.46,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":56973.01,"shift.sale.total_cash":29776.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} [13:38:21]process_action_free get_value [13:38:21]json_value_free [13:38:21]json_value_free done [13:38:21]process_json_proto returns [13:38:21]Send response to host [13:38:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70535976.46,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":56973.01,"shift.sale.total_cash":29776.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}}} [13:38:21]free response buf [13:38:21]execute_script done [13:38:21]execute_script returns [13:38:21]free content buf [13:38:21]Sock 7.Close socket [13:38:21]Sock 7.Thread stoped [13:38:21]accept exits with 9 [13:38:21]New connection [13:38:21]New thread 3067166052 created [13:38:21]Thread 3067309412 joined [13:38:21]Waiting for new connection... [13:38:21] Sock 9.Parse request [13:38:21]Sock 9.Check first char [13:38:21]Sock 9.First char is OK [13:38:21]request: POST /json_proto HTTP/1.0 [13:38:21]Method: POST [13:38:21]URL: /json_proto [13:38:21]Method is POST - this is cgi request [13:38:21]url: /json_proto [13:38:21]query_string will be loaded in cgi processing [13:38:21]execute_cgi json_proto POST (null) [13:38:21]execute_cgi path=json_proto method=POST [13:38:21]POST find Content-Length [13:38:21]Host: 172.17.43.195:8080 [13:38:21]Content-Length: 257 [13:38:21]Content-Type: application/json [13:38:21] [13:38:21]POST finish read [13:38:21]Found Content-Length = 257 [13:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:21]execute_script... [13:38:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:21]POST & json_proto [13:38:21]process_json_proto [13:38:21]json parsed OK: [13:38:21]protocol is kg_v1.0 [13:38:21]action value=x_report [13:38:21]process_action x_report [13:38:21]cmd_x_report [13:38:21]MH_GetDate [13:38:21]Write to MH i2c: F0 00 00 DA 01 CA [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: F0 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: F0 09 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: F0 09 00 DA 01 00 4E 88 23 67 74 2C AD 66 E6 [13:38:21]GetLastDocTimeStamp 1730381027 [13:38:21]current date 1730381902 [13:38:21]FM_GetShiftState [13:38:21]SAM_PROTO_GetShiftState [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 13 01 00 [13:38:21]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 0E 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 02 [13:38:21]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:38:21]wFMCommunicate OK [13:38:21]SAM_PROTO_GetShiftState done [13:38:21]FM_GetShiftState done [13:38:21]KKMCreateXReportDocument [13:38:21]Load OK [13:38:21]Malloc new data [13:38:21]MH_GetDate [13:38:21]Write to MH i2c: F0 00 00 DC 01 CC [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: F0 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: F0 09 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: F0 09 00 DC 01 00 4E 88 23 67 74 2C AD 66 E8 [13:38:21]Malloc new data [13:38:21]Malloc new data [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 11 00 00 [13:38:21]Write to MH i2c: E2 08 00 DD 01 80 11 00 00 00 00 00 00 58 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 17 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 17 00 DD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AC [13:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:38:21]wFMCommunicate OK [13:38:21]SAM_PROTO_GetFieldsCounters [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 13 00 00 [13:38:21]Write to MH i2c: E2 08 00 DE 01 80 13 00 00 00 00 00 00 5B [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 62 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 62 00 DE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [13:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:22]wFMCommunicate OK [13:38:22]SAM_PROTO_GetFieldsCounters done [13:38:22]Malloc new data [13:38:22]Malloc new data [13:38:22]Malloc new data [13:38:22]KKMCreateXReportDocument OK [13:38:22]KKMSetXReportData OK [13:38:22]KKMPrepareXReportFMData [13:38:22]SAM_PROTO_GetShiftData [13:38:22]wFMCommunicate request_size=4 [13:38:22]MH_SAM_APDU [13:38:22]CAPDU: 80 13 02 00 [13:38:22]Write to MH i2c: E2 08 00 DF 01 80 13 02 00 00 00 00 00 5E [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:38:22]Read from MH i2c: E2 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 FD 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 FD 00 DF 01 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 15 EF 56 70 04 03 00 40 6F 2D 72 04 03 00 D5 7F 29 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 B1 3B 09 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 F6 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 3D [13:38:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 15 EF 56 70 04 03 00 40 6F 2D 72 04 03 00 D5 7F 29 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 B1 3B 09 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 F6 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [13:38:22]wFMCommunicate OK [13:38:22]wFMCommunicate request_size=4 [13:38:22]MH_SAM_APDU [13:38:22]CAPDU: 80 17 00 00 [13:38:22]Write to MH i2c: E2 08 00 E0 01 80 17 00 00 00 00 00 00 61 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:22]Read from MH i2c: E2 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 FD 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 FD 00 E0 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 83 [13:38:23]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 OFD Sender: No OFD packet to send [13:38:23]03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 [13:38:23]wFMCommunicate OK [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 17 00 00 [13:38:23]Write to MH i2c: E2 08 00 E1 01 80 17 00 00 00 00 00 00 62 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 FD 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 FD 00 E1 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 19 [13:38:23]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 [13:38:23]wFMCommunicate OK [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 17 00 00 [13:38:23]Write to MH i2c: E2 08 00 E2 01 80 17 00 00 00 00 00 00 63 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 FD 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 FD 00 E2 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 D5 [13:38:24]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 [13:38:24]wFMCommunicate OK [13:38:24]wFMCommunicate request_size=4 [13:38:24]MH_SAM_APDU [13:38:24]CAPDU: 80 17 00 00 [13:38:24]Write to MH i2c: E2 08 00 E3 01 80 17 00 00 00 00 00 00 64 [13:38:24]Write i2c OK [13:38:24]MH_I2C_Read... [13:38:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:38:24]Read from MH i2c: E2 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 CB 00 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 CB 00 E3 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4D [13:38:24]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 [13:38:24]wFMCommunicate OK [13:38:24]SAM_PROTO_GetShiftData done [13:38:24]1194 (1194) - счетчики итогов смены [13:38:24] 1134 (4) - 94 - количество чеков со всеми признаками расчетов [13:38:24] 1129 (155) - счетчики операций «приход» [13:38:24] 1135 (4) - 94 - количество чеков по признаку расчетов [13:38:24] 1201 (3) - 56973.01 - общая итоговая сумма в чеках [13:38:24] 1136 (3) - 29776.00 - итоговая сумма в чеках наличными [13:38:24] 1138 (3) - 27197.01 - итоговая сумма в чеках безналичными [13:38:24] 1024 (122) - суммы налогов [13:38:24] 1006 (9) - суммы НДС [13:38:24] 1010 (1) - 0% - код ставки НДС [13:38:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:38:24] 1006 (12) - суммы НДС [13:38:24] 1010 (1) - 12% - код ставки НДС [13:38:24] 1011 (3) - 6051.05 - сумма НДС по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 0% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (11) - суммы НСП [13:38:24] 1014 (1) - 1% - код ставки НСП [13:38:24] 1015 (2) - 504.22 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 2% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 3% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 5% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 0,50% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 1,50% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1130 (141) - счетчики операций «возврат прихода» [13:38:24] 1135 (4) - 0 - количество чеков по признаку расчетов [13:38:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:38:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:38:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:38:24] 1024 (117) - суммы налогов [13:38:24] 1006 (9) - суммы НДС [13:38:24] 1010 (1) - 0% - код ставки НДС [13:38:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:38:24] 1006 (9) - суммы НДС [13:38:24] 1010 (1) - 12% - код ставки НДС [13:38:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 0% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 1% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 2% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 3% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 5% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 0,50% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 1,50% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1131 (141) - счетчики операций «расход» [13:38:24] 1135 (4) - 0 - количество чеков по признаку расчетов [13:38:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:38:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:38:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:38:24] 1024 (117) - суммы налогов [13:38:24] 1006 (9) - суммы НДС [13:38:24] 1010 (1) - 0% - код ставки НДС [13:38:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:38:24] 1006 (9) - суммы НДС [13:38:24] 1010 (1) - 12% - код ставки НДС [13:38:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 0% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 1% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 2% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 3% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 5% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 0,50% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 1,50% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1132 (141) - счетчики операций «возврат расхода» [13:38:24] 1135 (4) - 0 - количество чеков по признаку расчетов [13:38:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:38:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:38:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:38:24] 1024 (117) - суммы налогов [13:38:24] 1006 (9) - суммы НДС [13:38:24] 1010 (1) - 0% - код ставки НДС [13:38:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:38:24] 1006 (9) - суммы НДС [13:38:24] 1010 (1) - 12% - код ставки НДС [13:38:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 0% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 1% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 2% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 3% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 5% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 0,50% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1007 (9) - суммы НСП [13:38:24] 1014 (1) - 1,50% - код ставки НСП [13:38:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:38:24] 1133 (588) - - счетчики коррекции - не используются [13:38:24]SetTLVBufToDocument [13:38:24]Processing tag 1194 (04AA) [13:38:24]Load OK [13:38:24]SetTLVBufToDocument [13:38:24]Processing tag 1134 (046E) [13:38:24]Malloc new data [13:38:24]Processing tag 1129 (0469) [13:38:24]Load OK [13:38:24]SetTLVBufToDocument [13:38:24]Processing tag 1135 (046F) [13:38:24]Malloc new data [13:38:24]Processing tag 1201 (04B1) [13:38:24]Malloc new data [13:38:24]Processing tag 1136 (0470) [13:38:24]Malloc new data [13:38:24]Processing tag 1138 (0472) [13:38:24]Malloc new data [13:38:24]Processing tag 1024 (0400) [13:38:24]Load OK [13:38:24]SetTLVBufToDocument [13:38:24]Processing tag 1006 (03EE) [13:38:24]Load OK [13:38:24]SetTLVBufToDocument [13:38:24]Processing tag 1010 (03F2) [13:38:24]Malloc new data [13:38:24]Processing tag 1011 (03F3) [13:38:24]Malloc new data [13:38:24]SetTLVBufToDocument err=0 [13:38:24]Processing tag 1006 (03EE) [13:38:24]Load OK [13:38:24]SetTLVBufToDocument [13:38:24]Processing tag 1010 (03F2) [13:38:24]Malloc new data [13:38:24]Processing tag 1011 (03F3) [13:38:24]Malloc new data [13:38:24]SetTLVBufToDocument err=0 [13:38:24]Processing tag 1007 (03EF) [13:38:24]Load OK [13:38:24]SetTLVBufToDocument [13:38:24]Processing tag 1014 (03F6) [13:38:24]Malloc new data [13:38:24]Processing tag 1015 (03F7) [13:38:24]Malloc new data [13:38:24]SetTLVBufToDocument err=0 [13:38:24]Processing tag 1007 (03EF) [13:38:24]Load OK [13:38:24]SetTLVBufToDocument [13:38:24]Processing tag 1014 (03F6) [13:38:24]Malloc new data [13:38:24]Processing tag 1015 (03F7) [13:38:24]Malloc new data [13:38:24]SetTLVBufToDocument err=0 [13:38:24]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]SetTLVBufToDocument err=0 [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1130 (046A) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1135 (046F) [13:38:25]Malloc new data [13:38:25]Processing tag 1201 (04B1) [13:38:25]Malloc new data [13:38:25]Processing tag 1136 (0470) [13:38:25]Malloc new data [13:38:25]Processing tag 1138 (0472) [13:38:25]Malloc new data [13:38:25]Processing tag 1024 (0400) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1006 (03EE) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1010 (03F2) [13:38:25]Malloc new data [13:38:25]Processing tag 1011 (03F3) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1006 (03EE) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1010 (03F2) [13:38:25]Malloc new data [13:38:25]Processing tag 1011 (03F3) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]SetTLVBufToDocument err=0 [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1131 (046B) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1135 (046F) [13:38:25]Malloc new data [13:38:25]Processing tag 1201 (04B1) [13:38:25]Malloc new data [13:38:25]Processing tag 1136 (0470) [13:38:25]Malloc new data [13:38:25]Processing tag 1138 (0472) [13:38:25]Malloc new data [13:38:25]Processing tag 1024 (0400) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1006 (03EE) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1010 (03F2) [13:38:25]Malloc new data [13:38:25]Processing tag 1011 (03F3) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1006 (03EE) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1010 (03F2) [13:38:25]Malloc new data [13:38:25]Processing tag 1011 (03F3) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]SetTLVBufToDocument err=0 [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1132 (046C) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1135 (046F) [13:38:25]Malloc new data [13:38:25]Processing tag 1201 (04B1) [13:38:25]Malloc new data [13:38:25]Processing tag 1136 (0470) [13:38:25]Malloc new data [13:38:25]Processing tag 1138 (0472) [13:38:25]Malloc new data [13:38:25]Processing tag 1024 (0400) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1006 (03EE) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1010 (03F2) [13:38:25]Malloc new data [13:38:25]Processing tag 1011 (03F3) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1006 (03EE) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1010 (03F2) [13:38:25]Malloc new data [13:38:25]Processing tag 1011 (03F3) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1007 (03EF) [13:38:25]Load OK [13:38:25]SetTLVBufToDocument [13:38:25]Processing tag 1014 (03F6) [13:38:25]Malloc new data [13:38:25]Processing tag 1015 (03F7) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]SetTLVBufToDocument err=0 [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Processing tag 1133 (046D) [13:38:25]Malloc new data [13:38:25]SetTLVBufToDocument err=0 [13:38:25]SetTLVBufToDocument err=0 [13:38:25]Malloc new data [13:38:25]SAM_PROTO_GetFMData [13:38:25]wFMCommunicate request_size=4 [13:38:25]MH_SAM_APDU [13:38:25]CAPDU: 80 13 03 00 [13:38:25]Write to MH i2c: E2 08 00 E4 01 80 13 03 00 00 00 00 00 64 [13:38:25]Write i2c OK [13:38:25]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 FD 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 FD 00 E4 01 00 C4 04 85 04 C0 04 6E 04 04 00 E1 18 01 00 69 04 A3 00 6F 04 04 00 F1 17 01 00 B1 04 05 00 CE 5B 6D A4 01 70 04 05 00 74 78 D2 58 01 72 04 04 00 5A E3 9A 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0C 7B A8 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE A2 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 53 [13:38:26]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 E1 18 01 00 69 04 A3 00 6F 04 04 00 F1 17 01 00 B1 04 05 00 CE 5B 6D A4 01 70 04 05 00 74 78 D2 58 01 72 04 04 00 5A E3 9A 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0C 7B A8 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE A2 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [13:38:26]wFMCommunicate OK [13:38:26]wFMCommunicate request_size=4 [13:38:26]MH_SAM_APDU [13:38:26]CAPDU: 80 17 00 00 [13:38:26]Write to MH i2c: E2 08 00 E5 01 80 17 00 00 00 00 00 00 66 [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 FD 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 FD 00 E5 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 E6 [13:38:27]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [13:38:27]wFMCommunicate OK [13:38:27]wFMCommunicate request_size=4 [13:38:27]MH_SAM_APDU [13:38:27]CAPDU: 80 17 00 00 [13:38:27]Write to MH i2c: E2 08 00 E6 01 80 17 00 00 00 00 00 00 67 [13:38:27]Write i2c OK [13:38:27]MH_I2C_Read... [13:38:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:27]Read from MH i2c: E2 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: E2 FD 00 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: E2 FD 00 E6 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 7C [13:38:27]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [13:38:27]wFMCommunicate OK [13:38:27]wFMCommunicate request_size=4 [13:38:27]MH_SAM_APDU [13:38:27]CAPDU: 80 17 00 00 [13:38:27]Write to MH i2c: E2 08 00 E7 01 80 17 00 00 00 00 00 00 68 [13:38:27]Write i2c OK [13:38:27]MH_I2C_Read... [13:38:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:27]Read from MH i2c: E2 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: E2 FD 00 [13:38:27]MH_I2C_Read... [13:38:28]Read from MH i2c: E2 FD 00 E7 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 E0 [13:38:28]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [13:38:28]00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:38:28]wFMCommunicate OK [13:38:28]wFMCommunicate request_size=4 [13:38:28]MH_SAM_APDU [13:38:28]CAPDU: 80 17 00 00 [13:38:28]Write to MH i2c: E2 08 00 E8 01 80 17 00 00 00 00 00 00 69 [13:38:28]Write i2c OK [13:38:28]MH_I2C_Read... [13:38:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [13:38:28]Read from MH i2c: E2 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: E2 E1 00 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: E2 E1 00 E8 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 57 [13:38:28]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:38:28]wFMCommunicate OK [13:38:28]SAM_PROTO_GetFMData done [13:38:28]FM_GetFMData:85 04 C0 04 6E 04 04 00 E1 18 01 00 69 04 A3 00 6F 04 04 00 F1 17 01 00 B1 04 05 00 CE 5B 6D A4 01 70 04 05 00 74 78 D2 58 01 72 04 04 00 5A E3 9A 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0C 7B A8 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE A2 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:38:29]oper:6F 04 04 00 F1 17 01 00 B1 04 05 00 CE 5B 6D A4 01 70 04 05 00 74 78 D2 58 01 72 04 04 00 5A E3 9A 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0C 7B A8 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE A2 B8 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 [13:38:29]total:CE 5B 6D A4 01 [13:38:29]Malloc new data [13:38:29]oper:6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:38:29]total:BC 6D FE 04 [13:38:29]Malloc new data [13:38:29]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 [13:38:29]total: [13:38:29]Malloc new data [13:38:29]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 [13:38:29]total: [13:38:29]Malloc new data [13:38:29]KKMPrepareXReportFMData err=0 [13:38:29]Х отчет ИНН: 02508201610067 Кассир: Эргешова З. 31.10.2024 13:38 Смена: 522 РНМ: 0000000000091644 ЗНМ: 0300000087 СНО: Общий режим Всего чеков: 94 ИТОГИ ПРИХОД Чеков: 94 Общий итог: 56973.01 Итого наличными: 29776.00 Итого безнал.: 27197.01 НДС 0% : 0.00 НДС 12% : 6051.05 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 504.22 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 29776.00 НС Приход: 70535976.46 НС Возвр.Прихода: 837831.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874662 [13:38:29]StoreToDocumentArchive [13:38:29]MH_GetDate [13:38:29]Write to MH i2c: F0 00 00 E9 01 D9 [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: F0 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: F0 09 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: F0 09 00 E9 01 00 56 88 23 67 74 2C AD 66 FD [13:38:29]shift 522 fd 1730381910 [13:38:29]Create dir for shift 0522 [13:38:29]save to /storage/0522/doc_1730381910 [13:38:29]save last doc name /storage/0522/doc_1730381910 to /storage/kkm_last_doc_name [13:38:29]save OK [13:38:29]Clear old archive folders... [13:38:29]NVStorageSaveData kkm_last_timestamp [13:38:29]File name is /storage/kkm_last_timestamp [13:38:29]Write 4 bytes [13:38:29]NVStorageSaveData done [13:38:29]ExternCall_PrintAddStr [13:38:29]wPrintStart [13:38:29]Write to MH i2c: 01 00 00 EA 01 EB [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: 01 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: 01 07 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [13:38:29]RasterBufferAndPrint [13:38:29]line Х отчет [13:38:29]line ИНН: 02508201610067 [13:38:29]line Кассир: Эргешова З. [13:38:29]line 31.10.2024 13:38 [13:38:29]line Смена: 522 [13:38:29]line РНМ: 0000000000091644 [13:38:29]line ЗНМ: 0300000087 [13:38:29]line СНО: Общий режим [13:38:29]line Всего чеков: 94 [13:38:29]line ИТОГИ ПРИХОД [13:38:29]line Чеков: 94 [13:38:29]line Общий итог: 56973.01 [13:38:29]line Итого наличными: 29776.00 [13:38:29]line Итого безнал.: 27197.01 [13:38:29]line НДС 0% : 0.00 [13:38:29]line НДС 12% : 6051.05 [13:38:29]line НСП 0% : 0.00 [13:38:29]line НСП 1,50% : 0.00 [13:38:29]line НСП 0,50% : 0.00 [13:38:29]line НСП 5% : 0.00 [13:38:29]line НСП 3% : 0.00 [13:38:29]line НСП 2% : 0.00 [13:38:29]line НСП 1% : 504.22 [13:38:29]line ИТОГИ ВОЗВРАТ ПРИХОДА [13:38:29]line Чеков: 0 [13:38:29]line Общий итог: 0.00 [13:38:29]line Итого наличными: 0.00 [13:38:29]line Итого безнал.: 0.00 [13:38:29]line НДС 0% : 0.00 [13:38:30]line НДС 12% : 0.00 [13:38:30]line НСП 0% : 0.00 [13:38:30]line НСП 1,50% : 0.00 [13:38:30]line НСП 0,50% : 0.00 [13:38:30]line НСП 5% : 0.00 [13:38:30]line НСП 3% : 0.00 [13:38:30]line НСП 2% : 0.00 [13:38:30]line НСП 1% : 0.00 [13:38:30]line ИТОГИ РАСХОД [13:38:30]line Чеков: 0 [13:38:30]line Общий итог: 0.00 [13:38:30]line Итого наличными: 0.00 [13:38:30]line Итого безнал.: 0.00 [13:38:30]line НДС 0% : 0.00 [13:38:30]line НДС 12% : 0.00 [13:38:30]line НСП 0% : 0.00 [13:38:30]line НСП 1,50% : 0.00 [13:38:30]line НСП 0,50% : 0.00 [13:38:30]line НСП 5% : 0.00 [13:38:30]line НСП 3% : 0.00 [13:38:30]line НСП 2% : 0.00 [13:38:30]line НСП 1% : 0.00 [13:38:30]line ИТОГИ ВОЗВРАТ РАСХОДА [13:38:30]line Чеков: 0 [13:38:30]line Общий итог: 0.00 [13:38:30]line Итого наличными: 0.00 [13:38:30]line Итого безнал.: 0.00 [13:38:30]line НДС 0% : 0.00 [13:38:30]line НДС 12% : 0.00 [13:38:30]line НСП 0% : 0.00 [13:38:30]line НСП 1,50% : 0.00 [13:38:30]line НСП 0,50% : 0.00 [13:38:30]line НСП 5% : 0.00 [13:38:30]line НСП 3% : 0.00 [13:38:30]line НСП 2% : 0.00 [13:38:30]line НСП 1% : 0.00 [13:38:30]line Сумма внесений: 0.00 [13:38:30]line Сумма выплат: 0.00 [13:38:30]line Нал. в кассе: 29776.00 [13:38:30]line НС Приход: 70535976.46 [13:38:30]line НС Возвр.Прихода: 837831.00 [13:38:30]line НС Расход: 0.00 [13:38:30]line НС Возвр.Расхода: 0.00 [13:38:30]line ФМ: 0000000000874662 [13:38:30]written 0, free lines is 4095 [13:38:30]Write to MH i2c: 01 00 00 35 02 37 [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: 01 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: 01 07 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: 01 07 00 35 02 00 00 00 00 00 A3 0A EB [13:38:30]RasterBufferAndPrint [13:38:30]line [13:38:30]line [13:38:30]line [13:38:30]line [13:38:30]line [13:38:30]written 0, free lines is 2759 [13:38:30]MH_Cut [13:38:30]Write to MH i2c: D1 01 00 3C 02 01 10 [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: D1 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: D1 01 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: D1 01 00 3C 02 00 0F [13:38:30]Write to MH i2c: 01 00 00 3D 02 3F [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:31]*** Cut start [13:38:31]*** Partial cut [13:38:31]*** CUTSNS_PIN = 1 [13:38:31]*** CUTSNS_PIN = 0 [13:38:32]*** Brake cut motor [13:38:32]Read from MH i2c: 01 [13:38:32]MH_I2C_Read... [13:38:32]*** Stop cut motor [13:38:32]*** Cut end [13:38:32]Read from MH i2c: 01 07 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [13:38:32]process_action x_report done [13:38:32]requested_data is exist [13:38:32]produce_requested_data [13:38:32]requested_item fd.num is exist - process it [13:38:32]SAM_PROTO_GetFieldsCounters [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 13 00 00 [13:38:32]Write to MH i2c: E2 08 00 3E 02 80 13 00 00 00 00 00 00 BC [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 62 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 62 00 3E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [13:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:32]wFMCommunicate OK [13:38:32]SAM_PROTO_GetFieldsCounters done [13:38:32]requested_item shift.num is exist - process it [13:38:32]requested_item shift.opened is exist - process it [13:38:32]req_shift_opened [13:38:32]FM_GetShiftState [13:38:32]SAM_PROTO_GetShiftState [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 13 01 00 [13:38:32]Write to MH i2c: E2 08 00 3F 02 80 13 01 00 00 00 00 00 BE [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 0E 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 0E 00 3F 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 67 [13:38:32]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:38:32]wFMCommunicate OK [13:38:32]SAM_PROTO_GetShiftState done [13:38:32]FM_GetShiftState done [13:38:32]req_shift_opened done [13:38:32]requested_item shift.open_date is exist - process it [13:38:32]req_shift_open_date [13:38:32]req_shift_open_date done [13:38:32]produce_requested_data done [13:38:32]produce_requested_data return {"fd.num":73019,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:38:32]process_action_free x_report [13:38:32]json_value_free [13:38:32]json_value_free done [13:38:32]process_json_proto returns [13:38:32]Send response to host [13:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":73019,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:38:32]free response buf [13:38:32]execute_script done [13:38:32]execute_script returns [13:38:32]free content buf [13:38:32]Sock 9.Close socket [13:38:32]Sock 9.Thread stoped [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:41]recv_with_timeout no data received [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:56]recv_with_timeout no data received [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:07]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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:38]recv_with_timeout no data received [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:49]recv_with_timeout no data received [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:08]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:52]accept exits with 7 [13:41:52]New connection [13:41:52]New thread 3067309412 created [13:41:52]Thread 3067166052 joined [13:41:52]Waiting for new connection... [13:41:52] Sock 7.Parse request [13:41:52]Sock 7.Check first char [13:41:52]Sock 7.First char is OK [13:41:52]request: POST /json_proto HTTP/1.0 [13:41:52]Method: POST [13:41:52]URL: /json_proto [13:41:52]Method is POST - this is cgi request [13:41:52]url: /json_proto [13:41:52]query_string will be loaded in cgi processing [13:41:52]execute_cgi json_proto POST (null) [13:41:52]execute_cgi path=json_proto method=POST [13:41:52]POST find Content-Length [13:41:52]Host: 172.17.43.195:8080 [13:41:52]Content-Length: 663 [13:41:52]Content-Type: application/json [13:41:52] [13:41:52]POST finish read [13:41:52]Found Content-Length = 663 [13:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 20.470, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:52]execute_script... [13:41: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)952621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 20.470, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:52]POST & json_proto [13:41:52]process_json_proto [13:41:52]json parsed OK: [13:41:52]protocol is kg_v1.0 [13:41:52]action value=close_receipt [13:41:52]process_action close_receipt [13:41:52]cmd_close_receipt [13:41:52]MH_GetDate [13:41:52]Write to MH i2c: F0 00 00 40 02 31 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: F0 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: F0 09 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: F0 09 00 40 02 00 21 89 23 67 74 2C AD 66 21 [13:41:52]GetLastDocTimeStamp 1730381902 [13:41:52]current date 1730382113 [13:41:52]FM_GetShiftState [13:41:52]SAM_PROTO_GetShiftState [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 13 01 00 [13:41:52]Write to MH i2c: E2 08 00 41 02 80 13 01 00 00 00 00 00 C0 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0E 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0E 00 41 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 69 [13:41:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:41:52]wFMCommunicate OK [13:41:52]SAM_PROTO_GetShiftState done [13:41:52]FM_GetShiftState done [13:41:52]opened in 1730333258 [13:41:52]opened+sec_in_day 1730419658 [13:41:52]quantity*price = 140014 [13:41:52]sum+1 = 140016 [13:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 95 31.10.2024 13:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73020 ФПД: 87968629048165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T134153&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73020&fm=87968629048165&tin=02508201610067®Number=0000000000091644&sum=140000 [13:41:53]StoreToDocumentArchive [13:41:53]shift 557 fd 73020 [13:41:53]save to /storage/0557/doc_00073020 [13:41:53]save last doc name /storage/0557/doc_00073020 to /storage/kkm_last_doc_name [13:41:53]save OK [13:41:53]Clear old archive folders... [13:41:53]Remove dir /storage/0522 [13:41:53]opendir ok [13:41:53]file . [13:41:53]file .. [13:41:53]file doc_1730381910 [13:41:53]remove file /storage/0522/doc_1730381910 [13:41:53]remove dir /storage/0522 [13:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:41:53]tlvbuf is 015027B0 [13:41:53]SAM_PROTO_ClearQueue [13:41:53]wFMCommunicate request_size=4 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 09 00 00 [13:41:53]Write to MH i2c: E2 08 00 4E 02 80 09 00 00 00 00 00 00 C2 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 4E 02 00 90 00 C4 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]SAM_PROTO_ClearQueue done [13:41:54]KKMCreateOFDPacket [13:41:54]OFDProtocolAddRootSTLVToBuf [13:41:54]FM_MakeSignedData [13:41:54]FM_MakeSignedData [13:41:54]SAM_PROTO_SignData [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 01 02 [13:41:54]Write to MH i2c: E2 08 00 4F 02 80 0D 01 02 00 00 00 00 CA [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 4F 02 00 90 00 C5 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]wFMCommunicate request_size=253 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 21 89 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3C 1D 01 00 35 04 06 00 50 01 CA E2 C3 65 [13:41:54]Write to MH i2c: E2 00 01 50 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 21 89 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3C 1D 01 00 35 04 06 00 50 01 CA E2 C3 65 00 00 DA [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 50 02 00 90 00 C6 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 03 02 [13:41:54]Write to MH i2c: E2 08 00 51 02 80 0D 03 02 00 00 00 00 CE [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 0B 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 0B 00 51 02 00 47 42 DE 56 55 4F 80 B9 90 00 69 [13:41:54]RAPDU: 47 42 DE 56 55 4F 80 B9 90 00 [13:41:54]wFMCommunicate OK [13:41:54]SAM_PROTO_SignData done [13:41:54]FM_MakeSignedData done [13:41:54]CreateOFDProtocolMessage [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 11 00 00 [13:41:54]Write to MH i2c: E2 08 00 52 02 80 11 00 00 00 00 00 00 CE [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 17 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 17 00 52 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 22 [13:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:41:54]wFMCommunicate OK [13:41:54]CreateOFDProtocolMessage done [13:41:54]OFDSenderStorePacket 73020 [13:41:54]StoreOFDPacket docnum=73020 [13:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 90 16 00 01 14 7C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 21 89 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3C 1D 01 00 35 04 06 00 50 01 CA E2 C3 65 47 42 DE 56 55 4F 80 B9 [13:41:54]CheckFolder [13:41:54]dirname=/storage/ofd_packets [13:41:54]CheckFolder done [13:41:54]ProducePacketName [13:41:54]name=ofd_packets/00073020 [13:41:54]NVStorageSaveData ofd_packets/00073020 [13:41:54]File name is /storage/ofd_packets/00073020 [13:41:54]Write 294 bytes [13:41:54]NVStorageSaveData done [13:41:54]OFDSenderStorePacket done [13:41:54]KKMCreateOFDPacket done [13:41:54]NVStorageSaveData kkm_last_timestamp [13:41:54]File name is /storage/kkm_last_timestamp [13:41:54]Write 4 bytes [13:41:54]NVStorageSaveData done [13:41:54]ExternCall_PrintAddStr [13:41:54]wPrintStart [13:41:54]Write to MH i2c: 01 00 00 53 02 55 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 07 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 07 00 53 02 00 00 00 00 00 FF 0F 6A [13:41:54]RasterBufferAndPrint [13:41:54]line Счет N : (1)952621 [13:41:54]line ИНН: 02508201610067 [13:41:54]line Контрольно-Кассовый Чек [13:41:54]line ПРОДАЖА [13:41:54]line ТРК (МРК, ГНК) : 51 [13:41:54]line Товар: 50.50.0 [13:41:54]line Super 92 [13:41:54]line 20.470 * 68.40 [13:41:54]line = 1400.15 [13:41:54]line НДС 12% НСП 1% [13:41:54]line > о реализуемом товаре [13:41:54]line ОКРУГЛЕНИЕ: -0.15 [13:41:54]line ИТОГО: 1400.00 [13:41:54]line Внесено: 1400.00 [13:41:54]line СДАЧА: 0.00 [13:41:54]line НСП 1% : 12.39 [13:41:54]line НДС 12% : 148.69 [13:41:54]line Наличными: 1400.00 [13:41:54]line Безнал.: 0.00 [13:41:54]line Место: АЗС № 113 "Партнер Нефть" [13:41:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:41:54]line СНО: Общий режим [13:41:54]line Чек 95 31.10.2024 13:41 [13:41:54]line Смена: 557 ФФД: 1.0 [13:41:54]line ЗНМ: 0300000087 [13:41:54]line РНМ: 0000000000091644 [13:41:54]line Версия ККМ: 001 [13:41:54]line ФМ: 0000000000874662 [13:41:54]line ФД: 73020 [13:41:54]line ФПД: 87968629048165 [13:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T134153&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73020&fm=87968629048165&tin=02508201610067®Number=0000000000091644&sum=140000 [13:41:54]OFD Sender: Processing packet 73020 [packets to send 279, broken 278] [13:41:54]ProducePacketName [13:41:54]name=ofd_packets/00073020 [13:41:54]OFD Sender: To server: pG, [13:41:54]CommunicateWithHost lk.salyk.kg:30040 [13:41:54]ConnectInit lk.salyk.kg [13:41:54]written 0, free lines is 4095 [13:41:55]Write to MH i2c: 01 00 00 7E 02 80 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 07 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 07 00 7E 02 00 00 00 00 00 D7 0C 6A [13:41:55]RasterBufferAndPrint [13:41:55]line [13:41:55]line [13:41:55]line [13:41:55]line [13:41:55]line [13:41:55]written 0, free lines is 3294 [13:41:55]MH_Cut [13:41:55]Write to MH i2c: D1 01 00 85 02 01 59 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: D1 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: D1 01 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: D1 01 00 85 02 00 58 [13:41:55]Write to MH i2c: 01 00 00 86 02 88 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:56]*** Cut start [13:41:56]*** Partial cut [13:41:56]*** CUTSNS_PIN = 1 [13:41:56]*** CUTSNS_PIN = 0 [13:41:56]Connected sock=10 [13:41:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 90 16 00 01 14 7C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 21 89 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3C 1D 01 00 35 04 06 00 50 01 CA E2 C3 65 47 42 DE 56 55 4F 80 B9 [13:41:56]*** Brake cut motor [13:41:56]Read from MH i2c: 01 [13:41:56]MH_I2C_Read... [13:41:56]*** Stop cut motor [13:41:56]*** Cut end [13:41:56]Read from MH i2c: 01 07 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [13:41:56]process_action close_receipt done [13:41:56]requested_data is exist [13:41:56]produce_requested_data [13:41:56]requested_item fm.sn is exist - process it [13:41:56]wFMCommunicate request_size=4 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 11 00 00 [13:41:56]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:56]Read from MH i2c: E2 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 17 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 57 [13:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:41:56]wFMCommunicate OK [13:41:56]requested_item fd.num is exist - process it [13:41:56]SAM_PROTO_GetFieldsCounters [13:41:56]wFMCommunicate request_size=4 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 13 00 00 [13:41:56]Write to MH i2c: E2 08 00 88 02 80 13 00 00 00 00 00 00 06 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:56]Read from MH i2c: E2 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 62 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 62 00 88 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [13:41:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:56]wFMCommunicate OK [13:41:56]SAM_PROTO_GetFieldsCounters done [13:41:56]requested_item shift.num is exist - process it [13:41:56]requested_item shift.opened is exist - process it [13:41:56]req_shift_opened [13:41:56]FM_GetShiftState [13:41:56]SAM_PROTO_GetShiftState [13:41:56]wFMCommunicate request_size=4 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 13 01 00 [13:41:56]Write to MH i2c: E2 08 00 89 02 80 13 01 00 00 00 00 00 08 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:56]Read from MH i2c: E2 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 0E 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 0E 00 89 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B1 [13:41:56]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:41:56]wFMCommunicate OK [13:41:56]SAM_PROTO_GetShiftState done [13:41:56]FM_GetShiftState done [13:41:56]req_shift_opened done [13:41:56]requested_item shift.open_date is exist - process it [13:41:56]req_shift_open_date [13:41:56]req_shift_open_date done [13:41:56]produce_requested_data done [13:41:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73020,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:41:56]process_action_free close_receipt [13:41:56]json_value_free [13:41:56]json_value_free done [13:41:56]process_json_proto returns [13:41:56]Send response to host [13:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73020,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:41:56]free response buf [13:41:56]execute_script done [13:41:56]execute_script returns [13:41:56]free content buf [13:41:56]Sock 7.Close socket [13:41:56]Sock 7.Thread stoped [13:41:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CF 4B 47 00 FE B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3C 1D 01 00 F4 03 04 00 D9 33 23 67 B6 04 01 00 00 58 A8 53 05 DC 95 5F E1 [13:41:57]CommunicateWithHost err = 0 [13:41:57]CheckOFDResponse [13:41:57]1017 (14) - 77093643461234 [13:41:57]1041 (16) - 0000000000874662 [13:41:57]1040 (4) - 73020 [13:41:57]1012 (4) - 31.10.2024 07:38 [13:41:57]1206 (1) - 0 [13:41:57]OFD Sender: Remove packet 73020 [13:41:57]ProducePacketName [13:41:57]name=ofd_packets/00073020 [13:41:57]NVStorageDeleteData [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:10]recv_with_timeout no data received [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43: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:46]recv_with_timeout no data received [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:15]recv_with_timeout no data received [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]recv_with_timeout no data received [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:35]recv_with_timeout no data received [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:45]recv_with_timeout no data received [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:11]recv_with_timeout no data received [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:30]recv_with_timeout no data received [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]recv_with_timeout no data received [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:50]recv_with_timeout no data received [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:23]recv_with_timeout no data received [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:44]recv_with_timeout no data received [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:05]accept exits with 9 [13:55:05]New connection [13:55:05]New thread 3067166052 created [13:55:05]Thread 3067309412 joined [13:55:05]Waiting for new connection... [13:55:05] Sock 9.Parse request [13:55:05]Sock 9.Check first char [13:55:05]Sock 9.First char is OK [13:55:05]request: POST /json_proto HTTP/1.0 [13:55:05]Method: POST [13:55:05]URL: /json_proto [13:55:05]Method is POST - this is cgi request [13:55:05]url: /json_proto [13:55:05]query_string will be loaded in cgi processing [13:55:05]execute_cgi json_proto POST (null) [13:55:05]execute_cgi path=json_proto method=POST [13:55:05]POST find Content-Length [13:55:05]Host: 172.17.43.195:8080 [13:55:05]Content-Length: 804 [13:55:05]Content-Type: application/json [13:55:05] [13:55:05]POST finish read [13:55:05]Found Content-Length = 804 [13:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4198046-047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:05]execute_script... [13:55:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4198046-047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:05]POST & json_proto [13:55:05]process_json_proto [13:55:05]json parsed OK: [13:55:05]protocol is kg_v1.0 [13:55:05]action value=close_receipt [13:55:05]process_action close_receipt [13:55:05]cmd_close_receipt [13:55:05]MH_GetDate [13:55:05]Write to MH i2c: F0 00 00 8A 02 7B [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: F0 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: F0 09 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: F0 09 00 8A 02 00 3A 8C 23 67 74 2C AD 66 87 [13:55:05]GetLastDocTimeStamp 1730382113 [13:55:05]current date 1730382906 [13:55:05]FM_GetShiftState [13:55:05]SAM_PROTO_GetShiftState [13:55:05]wFMCommunicate request_size=4 [13:55:05]MH_SAM_APDU [13:55:05]CAPDU: 80 13 01 00 [13:55:05]Write to MH i2c: E2 08 00 8B 02 80 13 01 00 00 00 00 00 0A [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:05]Read from MH i2c: E2 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: E2 0E 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: E2 0E 00 8B 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B3 [13:55:05]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:55:05]wFMCommunicate OK [13:55:05]SAM_PROTO_GetShiftState done [13:55:05]FM_GetShiftState done [13:55:05]opened in 1730333258 [13:55:05]opened+sec_in_day 1730419658 [13:55:05]quantity*price = 0 [13:55:05]sum+1 = 1 [13:55:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 96 31.10.2024 13:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4198046-047 ФМ: 0000000000874662 ФД: 73021 ФПД: 212718609564806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T135506&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73021&fm=212718609564806&tin=02508201610067®Number=0000000000091644&sum=0 [13:55:06]StoreToDocumentArchive [13:55:06]shift 557 fd 73021 [13:55:06]save to /storage/0557/doc_00073021 [13:55:06]save last doc name /storage/0557/doc_00073021 to /storage/kkm_last_doc_name [13:55:06]save OK [13:55:06]Clear old archive folders... [13:55:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:06]tlvbuf is 014ED200 [13:55:06]SAM_PROTO_ClearQueue [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 09 00 00 [13:55:06]Write to MH i2c: E2 08 00 98 02 80 09 00 00 00 00 00 00 0C [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 03 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 03 00 98 02 00 90 00 0E [13:55:06]RAPDU: 90 00 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_ClearQueue done [13:55:06]KKMCreateOFDPacket [13:55:06]OFDProtocolAddRootSTLVToBuf [13:55:06]FM_MakeSignedData [13:55:06]FM_MakeSignedData [13:55:06]SAM_PROTO_SignData [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 0D 01 02 [13:55:06]Write to MH i2c: E2 08 00 99 02 80 0D 01 02 00 00 00 00 14 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 03 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 03 00 99 02 00 90 00 0F [13:55:06]RAPDU: 90 00 [13:55:06]wFMCommunicate OK [13:55:06]wFMCommunicate request_size=255 [13:55:06]MH_SAM_APDU [13:55: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 3A 8C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3D 1D 01 00 35 04 06 00 C1 [13:55:06]Write to MH i2c: E2 02 01 9A 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 3A 8C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3D 1D 01 00 35 04 06 00 C1 00 00 87 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 9A 02 00 90 00 10 [13:55:07]RAPDU: 90 00 [13:55:07]wFMCommunicate OK [13:55:07]wFMCommunicate request_size=10 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 0D 02 02 05 77 69 29 04 86 [13:55:07]Write to MH i2c: E2 0D 00 9B 02 80 0D 02 02 05 00 77 69 29 04 86 00 00 B4 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 9B 02 00 90 00 11 [13:55:07]RAPDU: 90 00 [13:55:07]wFMCommunicate OK [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 0D 03 02 [13:55:07]Write to MH i2c: E2 08 00 9C 02 80 0D 03 02 00 00 00 00 19 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 0B 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 0B 00 9C 02 00 6F 80 13 E0 27 85 EA E3 90 00 75 [13:55:07]RAPDU: 6F 80 13 E0 27 85 EA E3 90 00 [13:55:07]wFMCommunicate OK [13:55:07]SAM_PROTO_SignData done [13:55:07]FM_MakeSignedData done [13:55:07]CreateOFDProtocolMessage [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 11 00 00 [13:55:07]Write to MH i2c: E2 08 00 9D 02 80 11 00 00 00 00 00 00 19 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 17 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 17 00 9D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6D [13:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:55:07]wFMCommunicate OK [13:55:07]CreateOFDProtocolMessage done [13:55:07]OFDSenderStorePacket 73021 [13:55:07]StoreOFDPacket docnum=73021 [13:55:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4C 45 07 01 5B 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 3A 8C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3D 1D 01 00 35 04 06 00 C1 77 69 29 04 86 6F 80 13 E0 27 85 EA E3 [13:55:07]CheckFolder [13:55:07]dirname=/storage/ofd_packets [13:55:07]CheckFolder done [13:55:07]ProducePacketName [13:55:07]name=ofd_packets/00073021 [13:55:07]NVStorageSaveData ofd_packets/00073021 [13:55:07]File name is /storage/ofd_packets/00073021 [13:55:07]Write 301 bytes [13:55:07]NVStorageSaveData done [13:55:07]OFDSenderStorePacket done [13:55:07]KKMCreateOFDPacket done [13:55:07]NVStorageSaveData kkm_last_timestamp [13:55:07]File name is /storage/kkm_last_timestamp [13:55:07]Write 4 bytes [13:55:07]NVStorageSaveData done [13:55:07]OFD Sender: Processing packet 73021 [packets to send 279, broken 278] [13:55:07]ProducePacketName [13:55:07]name=ofd_packets/00073021 [13:55:07]OFD Sender: To server: pG, [13:55:07]CommunicateWithHost lk.salyk.kg:30040 [13:55:07]ConnectInit lk.salyk.kg [13:55:07]ExternCall_PrintAddStr [13:55:07]wPrintStart [13:55:07]Write to MH i2c: 01 00 00 9E 02 A0 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 07 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 07 00 9E 02 00 00 00 00 00 FF 0F B5 [13:55:07]RasterBufferAndPrint [13:55:07]line Счет N : (1)952623 [13:55:07]line ИНН: 02508201610067 [13:55:07]line Контрольно-Кассовый Чек [13:55:07]line ПРОДАЖА [13:55:07]line ТРК (МРК, ГНК) : 53 [13:55:07]line Товар: 2710124130 [13:55:07]line Аи-92-К-5 [13:55:07]line 20.000 * 0.00 [13:55:07]line = 0.00 [13:55:07]line НДС 12% НСП 1% [13:55:07]line > о реализуемом товаре [13:55:07]line ИТОГО: 0.00 [13:55:07]line НСП 1% : 0.00 [13:55:07]line НДС 12% : 0.00 [13:55:07]line Наличными: 0.00 [13:55:07]line Безнал.: 0.00 [13:55:07]line Место: АЗС № 113 "Партнер Нефть" [13:55:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:55:07]line СНО: Общий режим [13:55:07]line Чек 96 31.10.2024 13:55 [13:55:07]line Смена: 557 ФФД: 1.0 [13:55:07]line ЗНМ: 0300000087 [13:55:07]line РНМ: 0000000000091644 [13:55:07]line Версия ККМ: 001 [13:55:07]line Талоны: Топливные Талоны [13:55:07]line 4198046-047 [13:55:07]line ФМ: 0000000000874662 [13:55:07]line ФД: 73021 [13:55:07]line ФПД: 212718609564806 [13:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T135506&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73021&fm=212718609564806&tin=02508201610067®Number=0000000000091644&sum=0 [13:55:07]written 0, free lines is 4095 [13:55:08]Write to MH i2c: 01 00 00 C8 02 CA [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 07 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 07 00 C8 02 00 00 00 00 00 DD 0C BA [13:55:08]RasterBufferAndPrint [13:55:08]line [13:55:08]line [13:55:08]line [13:55:08]line [13:55:08]line [13:55:08]written 0, free lines is 3299 [13:55:08]MH_Cut [13:55:08]Write to MH i2c: D1 01 00 CF 02 01 A3 [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: D1 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: D1 01 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: D1 01 00 CF 02 00 A2 [13:55:08]Write to MH i2c: 01 00 00 D0 02 D2 [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]Connected sock=11 [13:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4C 45 07 01 5B 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 3A 8C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3D 1D 01 00 35 04 06 00 C1 77 69 29 04 86 6F 80 13 E0 27 85 EA E3 [13:55:08]*** Cut start [13:55:08]*** Partial cut [13:55:08]*** CUTSNS_PIN = 1 [13:55:08]*** CUTSNS_PIN = 0 [13:55:09]*** Brake cut motor [13:55:09]Read from MH i2c: 01 [13:55:09]MH_I2C_Read... [13:55:09]*** Stop cut motor [13:55:09]*** Cut end [13:55:09]Read from MH i2c: 01 07 00 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 FF 0F E7 [13:55:09]process_action close_receipt done [13:55:09]requested_data is exist [13:55:09]produce_requested_data [13:55:09]requested_item fm.sn is exist - process it [13:55:09]wFMCommunicate request_size=4 [13:55:09]MH_SAM_APDU [13:55:09]CAPDU: 80 11 00 00 [13:55:09]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [13:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A8 BF 47 00 FB C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3D 1D 01 00 F4 03 04 00 F0 36 23 67 B6 04 01 00 00 06 4F 6F 24 72 46 87 42 [13:55:09]CommunicateWithHost err = 0 [13:55:09]CheckOFDResponse [13:55:09]1017 (14) - 77093643461234 [13:55:09]1041 (16) - 0000000000874662 [13:55:09]1040 (4) - 73021 [13:55:09]1012 (4) - 31.10.2024 07:51 [13:55:09]1206 (1) - 0 [13:55:09]OFD Sender: Remove packet 73021 [13:55:09]ProducePacketName [13:55:09]name=ofd_packets/00073021 [13:55:09]NVStorageDeleteData [13:55:09]Write i2c OK [13:55:09]MH_I2C_Read... [13:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:09]Read from MH i2c: E2 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: E2 17 00 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A1 [13:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:55:09]wFMCommunicate OK [13:55:09]requested_item fd.num is exist - process it [13:55:09]SAM_PROTO_GetFieldsCounters [13:55:09]wFMCommunicate request_size=4 [13:55:09]MH_SAM_APDU [13:55:09]CAPDU: 80 13 00 00 [13:55:09]Write to MH i2c: E2 08 00 D2 02 80 13 00 00 00 00 00 00 50 [13:55:09]Write i2c OK [13:55:09]MH_I2C_Read... [13:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:09]Read from MH i2c: E2 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: E2 62 00 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: E2 62 00 D2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [13:55:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:09]wFMCommunicate OK [13:55:09]SAM_PROTO_GetFieldsCounters done [13:55:09]requested_item shift.num is exist - process it [13:55:09]requested_item shift.opened is exist - process it [13:55:09]req_shift_opened [13:55:09]FM_GetShiftState [13:55:09]SAM_PROTO_GetShiftState [13:55:09]wFMCommunicate request_size=4 [13:55:09]MH_SAM_APDU [13:55:09]CAPDU: 80 13 01 00 [13:55:09]Write to MH i2c: E2 08 00 D3 02 80 13 01 00 00 00 00 00 52 [13:55:09]Write i2c OK [13:55:09]MH_I2C_Read... [13:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:09]Read from MH i2c: E2 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: E2 0E 00 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: E2 0E 00 D3 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 FB [13:55:09]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:55:09]wFMCommunicate OK [13:55:09]SAM_PROTO_GetShiftState done [13:55:09]FM_GetShiftState done [13:55:09]req_shift_opened done [13:55:09]requested_item shift.open_date is exist - process it [13:55:09]req_shift_open_date [13:55:09]req_shift_open_date done [13:55:09]produce_requested_data done [13:55:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73021,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:55:09]process_action_free close_receipt [13:55:09]json_value_free [13:55:09]json_value_free done [13:55:09]process_json_proto returns [13:55:09]Send response to host [13:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73021,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:55:09]free response buf [13:55:09]execute_script done [13:55:09]execute_script returns [13:55:09]free content buf [13:55:09]Sock 9.Close socket [13:55:09]Sock 9.Thread stoped [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:17]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:07]accept exits with 10 [13:57:07]New connection [13:57:07]New thread 3067309412 created [13:57:07]Thread 3067166052 joined [13:57:07]Waiting for new connection... [13:57:07] Sock 10.Parse request [13:57:07]Sock 10.Check first char [13:57:07]Sock 10.First char is OK [13:57:07]request: POST /json_proto HTTP/1.0 [13:57:07]Method: POST [13:57:07]URL: /json_proto [13:57:07]Method is POST - this is cgi request [13:57:07]url: /json_proto [13:57:07]query_string will be loaded in cgi processing [13:57:07]execute_cgi json_proto POST (null) [13:57:07]execute_cgi path=json_proto method=POST [13:57:07]POST find Content-Length [13:57:07]Host: 172.17.43.195:8080 [13:57:07]Content-Length: 685 [13:57:07]Content-Type: application/json [13:57:07] [13:57:07]POST finish read [13:57:07]Found Content-Length = 685 [13:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 35.720, "sum" : 1389.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1389.00, "payments": [ { "type": 0, "sum" : 1389.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:07]execute_script... [13:57:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 35.720, "sum" : 1389.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1389.00, "payments": [ { "type": 0, "sum" : 1389.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:07]POST & json_proto [13:57:07]process_json_proto [13:57:07]json parsed OK: [13:57:07]protocol is kg_v1.0 [13:57:07]action value=close_receipt [13:57:07]process_action close_receipt [13:57:07]cmd_close_receipt [13:57:07]MH_GetDate [13:57:07]Write to MH i2c: F0 00 00 D4 02 C5 [13:57:07]Write i2c OK [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: F0 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: F0 09 00 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: F0 09 00 D4 02 00 B4 8C 23 67 74 2C AD 66 4B [13:57:07]GetLastDocTimeStamp 1730382906 [13:57:07]current date 1730383028 [13:57:07]FM_GetShiftState [13:57:07]SAM_PROTO_GetShiftState [13:57:07]wFMCommunicate request_size=4 [13:57:07]MH_SAM_APDU [13:57:07]CAPDU: 80 13 01 00 [13:57:07]Write to MH i2c: E2 08 00 D5 02 80 13 01 00 00 00 00 00 54 [13:57:07]Write i2c OK [13:57:07]MH_I2C_Read... [13:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:07]Read from MH i2c: E2 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: E2 0E 00 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: E2 0E 00 D5 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 FD [13:57:07]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:57:07]wFMCommunicate OK [13:57:07]SAM_PROTO_GetShiftState done [13:57:07]FM_GetShiftState done [13:57:07]opened in 1730333258 [13:57:07]opened+sec_in_day 1730419658 [13:57:07]quantity*price = 138950 [13:57:07]sum+1 = 138952 [13:57:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1389.00 Внесено: 1500.00 СДАЧА: 111.00 НСП 1% : 12.30 НДС 12% : 147.56 Наличными: 1389.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 97 31.10.2024 13:57 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73022 ФПД: 190143831247023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T135708&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73022&fm=190143831247023&tin=02508201610067®Number=0000000000091644&sum=138900 [13:57:09]StoreToDocumentArchive [13:57:09]shift 557 fd 73022 [13:57:09]save to /storage/0557/doc_00073022 [13:57:09]save last doc name /storage/0557/doc_00073022 to /storage/kkm_last_doc_name [13:57:09]save OK [13:57:09]Clear old archive folders... [13:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:57:09]tlvbuf is 014F0340 [13:57:09]SAM_PROTO_ClearQueue [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 09 00 00 [13:57:09]Write to MH i2c: E2 08 00 E2 02 80 09 00 00 00 00 00 00 56 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 E2 02 00 90 00 58 [13:57:09]RAPDU: 90 00 [13:57:09]wFMCommunicate OK [13:57:09]SAM_PROTO_ClearQueue done [13:57:09]KKMCreateOFDPacket [13:57:09]OFDProtocolAddRootSTLVToBuf [13:57:09]FM_MakeSignedData [13:57:09]FM_MakeSignedData [13:57:09]SAM_PROTO_SignData [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 0D 01 02 [13:57:09]Write to MH i2c: E2 08 00 E3 02 80 0D 01 02 00 00 00 00 5E [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 E3 02 00 90 00 59 [13:57:09]RAPDU: 90 00 [13:57:09]wFMCommunicate OK [13:57:09]wFMCommunicate request_size=255 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 88 8B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 1E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 39 00 00 00 00 07 04 06 00 94 1E 02 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 B4 8C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3E 1D 01 00 35 04 06 00 AC EF [13:57:09]Write to MH i2c: E2 02 01 E4 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 88 8B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 1E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 39 00 00 00 00 07 04 06 00 94 1E 02 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 B4 8C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3E 1D 01 00 35 04 06 00 AC EF 00 00 B0 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [13:57:09]RAPDU: 90 00 [13:57:09]wFMCommunicate OK [13:57:09]wFMCommunicate request_size=9 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 0D 02 02 04 4F 84 88 AF [13:57:09]Write to MH i2c: E2 0C 00 E5 02 80 0D 02 02 04 00 4F 84 88 AF 00 00 73 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [13:57:09]RAPDU: 90 00 [13:57:09]wFMCommunicate OK [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 0D 03 02 [13:57:09]Write to MH i2c: E2 08 00 E6 02 80 0D 03 02 00 00 00 00 63 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0B 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0B 00 E6 02 00 42 70 65 2D 13 78 CC 16 90 00 15 [13:57:09]RAPDU: 42 70 65 2D 13 78 CC 16 90 00 [13:57:09]wFMCommunicate OK [13:57:09]SAM_PROTO_SignData done [13:57:09]FM_MakeSignedData done [13:57:09]CreateOFDProtocolMessage [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 11 00 00 [13:57:09]Write to MH i2c: E2 08 00 E7 02 80 11 00 00 00 00 00 00 63 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 17 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 17 00 E7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B7 [13:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:57:09]wFMCommunicate OK [13:57:09]CreateOFDProtocolMessage done [13:57:09]OFDSenderStorePacket 73022 [13:57:09]StoreOFDPacket docnum=73022 [13:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 A0 FD 06 01 9B 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 88 8B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 1E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 39 00 00 00 00 07 04 06 00 94 1E 02 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 B4 8C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3E 1D 01 00 35 04 06 00 AC EF 4F 84 88 AF 42 70 65 2D 13 78 CC 16 [13:57:09]CheckFolder [13:57:09]dirname=/storage/ofd_packets [13:57:09]CheckFolder done [13:57:09]ProducePacketName [13:57:09]name=ofd_packets/00073022 [13:57:09]NVStorageSaveData ofd_packets/00073022 [13:57:09]File name is /storage/ofd_packets/00073022 [13:57:09]Write 300 bytes [13:57:09]NVStorageSaveData done [13:57:09]OFDSenderStorePacket done [13:57:09]KKMCreateOFDPacket done [13:57:09]NVStorageSaveData kkm_last_timestamp [13:57:09]File name is /storage/kkm_last_timestamp [13:57:09]Write 4 bytes [13:57:09]NVStorageSaveData done [13:57:09]ExternCall_PrintAddStr [13:57:09]wPrintStart [13:57:09]Write to MH i2c: 01 00 00 E8 02 EA [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 FF 0F FF [13:57:09]RasterBufferAndPrint [13:57:09]line Счет N : (1)952622 [13:57:09]line ИНН: 02508201610067 [13:57:09]line Контрольно-Кассовый Чек [13:57:09]line ПРОДАЖА [13:57:09]line ТРК (МРК, ГНК) : 71 [13:57:09]line Товар: 2711190000 [13:57:09]line ГАЗ-К-3 [13:57:09]line 35.720 * 38.90 [13:57:09]line = 1389.51 [13:57:09]line НДС 12% НСП 1% [13:57:09]line > о реализуемом товаре [13:57:09]line ОКРУГЛЕНИЕ: -0.51 [13:57:09]line ИТОГО: 1389.00 [13:57:09]line Внесено: 1500.00 [13:57:09]line СДАЧА: 111.00 [13:57:09]line НСП 1% : 12.30 [13:57:09]line НДС 12% : 147.56 [13:57:09]line Наличными: 1389.00 [13:57:09]line Безнал.: 0.00 [13:57:09]line Место: АЗС № 113 "Партнер Нефть" [13:57:09]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:57:09]line СНО: Общий режим [13:57:09]line Чек 97 31.10.2024 13:57 [13:57:09]line Смена: 557 ФФД: 1.0 [13:57:09]line ЗНМ: 0300000087 [13:57:09]line РНМ: 0000000000091644 [13:57:09]line Версия ККМ: 001 [13:57:09]line ФМ: 0000000000874662 [13:57:09]line ФД: 73022 [13:57:09]line ФПД: 190143831247023 [13:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T135708&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73022&fm=190143831247023&tin=02508201610067®Number=0000000000091644&sum=138900 [13:57:09]written 0, free lines is 4095 [13:57:09]OFD Sender: Processing packet 73022 [packets to send 279, broken 278] [13:57:09]ProducePacketName [13:57:09]name=ofd_packets/00073022 [13:57:09]OFD Sender: To server: pG, [13:57:09]CommunicateWithHost lk.salyk.kg:30040 [13:57:09]ConnectInit lk.salyk.kg [13:57:10]Write to MH i2c: 01 00 00 13 03 16 [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: 01 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: 01 07 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: 01 07 00 13 03 00 00 00 00 00 D4 0C FD [13:57:10]RasterBufferAndPrint [13:57:10]line [13:57:10]line [13:57:10]line [13:57:10]line [13:57:10]line [13:57:10]written 0, free lines is 3292 [13:57:10]MH_Cut [13:57:10]Write to MH i2c: D1 01 00 1A 03 01 EF [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: D1 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: D1 01 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: D1 01 00 1A 03 00 EE [13:57:10]Write to MH i2c: 01 00 00 1B 03 1E [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]*** Cut start [13:57:10]*** Partial cut [13:57:10]*** CUTSNS_PIN = 1 [13:57:10]*** CUTSNS_PIN = 0 [13:57:11]*** Brake cut motor [13:57:11]Read from MH i2c: 01 [13:57:11]MH_I2C_Read... [13:57:11]*** Stop cut motor [13:57:11]Read from MH i2c: 01 07 00 [13:57:11]MH_I2C_Read... [13:57:11]*** Cut end [13:57:11]Read from MH i2c: 01 07 00 1B 03 00 00 00 00 00 FF 0F 33 [13:57:11]process_action close_receipt done [13:57:11]requested_data is exist [13:57:11]produce_requested_data [13:57:11]requested_item fm.sn is exist - process it [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 11 00 00 [13:57:11]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 17 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 ED [13:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:57:11]wFMCommunicate OK [13:57:11]requested_item fd.num is exist - process it [13:57:11]SAM_PROTO_GetFieldsCounters [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 13 00 00 [13:57:11]Write to MH i2c: E2 08 00 1D 03 80 13 00 00 00 00 00 00 9C [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 62 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 62 00 1D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [13:57:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:11]wFMCommunicate OK [13:57:11]SAM_PROTO_GetFieldsCounters done [13:57:11]requested_item shift.num is exist - process it [13:57:11]requested_item shift.opened is exist - process it [13:57:11]req_shift_opened [13:57:11]FM_GetShiftState [13:57:11]SAM_PROTO_GetShiftState [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 13 01 00 [13:57:11]Write to MH i2c: E2 08 00 1E 03 80 13 01 00 00 00 00 00 9E [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 0E 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 0E 00 1E 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 47 [13:57:11]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [13:57:11]wFMCommunicate OK [13:57:11]SAM_PROTO_GetShiftState done [13:57:11]FM_GetShiftState done [13:57:11]req_shift_opened done [13:57:11]requested_item shift.open_date is exist - process it [13:57:11]req_shift_open_date [13:57:11]req_shift_open_date done [13:57:11]produce_requested_data done [13:57:11]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73022,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [13:57:11]process_action_free close_receipt [13:57:11]json_value_free [13:57:11]json_value_free done [13:57:11]process_json_proto returns [13:57:11]Send response to host [13:57:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73022,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [13:57:11]free response buf [13:57:11]execute_script done [13:57:11]execute_script returns [13:57:11]free content buf [13:57:11]Sock 10.Close socket [13:57:11]Sock 10.Thread stoped [13:57:33]recv_with_timeout no data received [13:59:23]ConnectInit Can't connect to host [13:59:23]CommunicateWithHost connect error [13:59:23]CommunicateWithHost err = -1 [13:59:23]OFD Sender: Server communicate error [13:59:28]OFD Sender: Processing packet 73022 [packets to send 279, broken 278] [13:59:28]ProducePacketName [13:59:28]name=ofd_packets/00073022 [13:59:28]OFD Sender: To server: pG, [13:59:28]CommunicateWithHost lk.salyk.kg:30040 [13:59:28]ConnectInit lk.salyk.kg [13:59:31]Connected sock=9 [13:59:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 A0 FD 06 01 9B 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 88 8B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 1E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 39 00 00 00 00 07 04 06 00 94 1E 02 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 B4 8C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3E 1D 01 00 35 04 06 00 AC EF 4F 84 88 AF 42 70 65 2D 13 78 CC 16 [13:59:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FB 61 47 00 94 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 34 36 36 32 10 04 04 00 3E 1D 01 00 F4 03 04 00 F7 37 23 67 B6 04 01 00 00 68 FD 86 7B 2F AD 96 4B [13:59:31]CommunicateWithHost err = 0 [13:59:31]CheckOFDResponse [13:59:31]1017 (14) - 77093643461234 [13:59:31]1041 (16) - 0000000000874662 [13:59:31]1040 (4) - 73022 [13:59:31]1012 (4) - 31.10.2024 07:55 [13:59:31]1206 (1) - 0 [13:59:31]OFD Sender: Remove packet 73022 [13:59:31]ProducePacketName [13:59:31]name=ofd_packets/00073022 [13:59:31]NVStorageDeleteData [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]recv_with_timeout no data received [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:26]recv_with_timeout no data received [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:33]recv_with_timeout no data received [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:36]recv_with_timeout no data received [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:47]recv_with_timeout no data received [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:04]recv_with_timeout no data received [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:12]accept exits with 7 [14:03:12]New connection [14:03:12]New thread 3067166052 created [14:03:12]Thread 3067309412 joined [14:03:12]Waiting for new connection... [14:03:12] Sock 7.Parse request [14:03:12]Sock 7.Check first char [14:03:12]Sock 7.First char is OK [14:03:12]request: POST /json_proto HTTP/1.0 [14:03:12]Method: POST [14:03:12]URL: /json_proto [14:03:12]Method is POST - this is cgi request [14:03:12]url: /json_proto [14:03:12]query_string will be loaded in cgi processing [14:03:12]execute_cgi json_proto POST (null) [14:03:12]execute_cgi path=json_proto method=POST [14:03:12]POST find Content-Length [14:03:12]Host: 172.17.43.195:8080 [14:03:12]Content-Length: 659 [14:03:12]Content-Type: application/json [14:03:12] [14:03:12]POST finish read [14:03:12]Found Content-Length = 659 [14:03:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:12]execute_script... [14:03: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)952624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:12]POST & json_proto [14:03:12]process_json_proto [14:03:12]json parsed OK: [14:03:12]protocol is kg_v1.0 [14:03:12]action value=close_receipt [14:03:12]process_action close_receipt [14:03:12]cmd_close_receipt [14:03:12]MH_GetDate [14:03:12]Write to MH i2c: F0 00 00 1F 03 11 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: F0 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: F0 09 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: F0 09 00 1F 03 00 21 8E 23 67 74 2C AD 66 06 [14:03:12]GetLastDocTimeStamp 1730383028 [14:03:12]current date 1730383393 [14:03:12]FM_GetShiftState [14:03:12]SAM_PROTO_GetShiftState [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 13 01 00 [14:03:12]Write to MH i2c: E2 08 00 20 03 80 13 01 00 00 00 00 00 A0 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 0E 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 0E 00 20 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 49 [14:03:12]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:03:12]wFMCommunicate OK [14:03:12]SAM_PROTO_GetShiftState done [14:03:12]FM_GetShiftState done [14:03:12]opened in 1730333258 [14:03:12]opened+sec_in_day 1730419658 [14:03:12]quantity*price = 70041 [14:03:12]sum+1 = 70043 [14:03:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 98 31.10.2024 14:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73023 ФПД: 32519604702838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140313&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73023&fm=32519604702838&tin=02508201610067®Number=0000000000091644&sum=70000 [14:03:13]StoreToDocumentArchive [14:03:13]shift 557 fd 73023 [14:03:13]save to /storage/0557/doc_00073023 [14:03:13]save last doc name /storage/0557/doc_00073023 to /storage/kkm_last_doc_name [14:03:13]save OK [14:03:13]Clear old archive folders... [14:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:03:13]tlvbuf is 014EADA0 [14:03:13]SAM_PROTO_ClearQueue [14:03:13]wFMCommunicate request_size=4 [14:03:13]MH_SAM_APDU [14:03:13]CAPDU: 80 09 00 00 [14:03:13]Write to MH i2c: E2 08 00 2D 03 80 09 00 00 00 00 00 00 A2 [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:14]Read from MH i2c: E2 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 03 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 03 00 2D 03 00 90 00 A4 [14:03:14]RAPDU: 90 00 [14:03:14]wFMCommunicate OK [14:03:14]SAM_PROTO_ClearQueue done [14:03:14]KKMCreateOFDPacket [14:03:14]OFDProtocolAddRootSTLVToBuf [14:03:14]FM_MakeSignedData [14:03:14]FM_MakeSignedData [14:03:14]SAM_PROTO_SignData [14:03:14]wFMCommunicate request_size=4 [14:03:14]MH_SAM_APDU [14:03:14]CAPDU: 80 0D 01 02 [14:03:14]Write to MH i2c: E2 08 00 2E 03 80 0D 01 02 00 00 00 00 AA [14:03:14]Write i2c OK [14:03:14]MH_I2C_Read... [14:03:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:14]Read from MH i2c: E2 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 03 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 03 00 2E 03 00 90 00 A5 [14:03:14]RAPDU: 90 00 [14:03:14]wFMCommunicate OK [14:03:14]wFMCommunicate request_size=253 [14:03:14]MH_SAM_APDU [14:03:14]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 21 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1D 01 00 35 04 06 00 1D 93 8F 7C 8E 76 [14:03:14]Write to MH i2c: E2 00 01 2F 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 21 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1D 01 00 35 04 06 00 1D 93 8F 7C 8E 76 00 00 46 [14:03:14]Write i2c OK [14:03:14]MH_I2C_Read... [14:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:14]Read from MH i2c: E2 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 03 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 03 00 2F 03 00 90 00 A6 [14:03:14]RAPDU: 90 00 [14:03:14]wFMCommunicate OK [14:03:14]wFMCommunicate request_size=4 [14:03:14]MH_SAM_APDU [14:03:14]CAPDU: 80 0D 03 02 [14:03:14]Write to MH i2c: E2 08 00 30 03 80 0D 03 02 00 00 00 00 AE [14:03:14]Write i2c OK [14:03:14]MH_I2C_Read... [14:03:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:14]Read from MH i2c: E2 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 0B 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 0B 00 30 03 00 C8 73 9B 8F D5 D1 E0 DE 90 00 78 [14:03:14]RAPDU: C8 73 9B 8F D5 D1 E0 DE 90 00 [14:03:14]wFMCommunicate OK [14:03:14]SAM_PROTO_SignData done [14:03:14]FM_MakeSignedData done [14:03:14]CreateOFDProtocolMessage [14:03:14]wFMCommunicate request_size=4 [14:03:14]MH_SAM_APDU [14:03:14]CAPDU: 80 11 00 00 [14:03:14]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [14:03:14]Write i2c OK [14:03:14]MH_I2C_Read... [14:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:14]Read from MH i2c: E2 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 17 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 02 [14:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:03:14]wFMCommunicate OK [14:03:14]CreateOFDProtocolMessage done [14:03:14]OFDSenderStorePacket 73023 [14:03:14]StoreOFDPacket docnum=73023 [14:03:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 6E B2 00 01 BD 00 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 21 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1D 01 00 35 04 06 00 1D 93 8F 7C 8E 76 C8 73 9B 8F D5 D1 E0 DE [14:03:14]CheckFolder [14:03:14]dirname=/storage/ofd_packets [14:03:14]CheckFolder done [14:03:14]ProducePacketName [14:03:14]name=ofd_packets/00073023 [14:03:14]NVStorageSaveData ofd_packets/00073023 [14:03:14]File name is /storage/ofd_packets/00073023 [14:03:14]Write 294 bytes [14:03:14]NVStorageSaveData done [14:03:14]OFDSenderStorePacket done [14:03:14]KKMCreateOFDPacket done [14:03:14]NVStorageSaveData kkm_last_timestamp [14:03:14]File name is /storage/kkm_last_timestamp [14:03:14]Write 4 bytes [14:03:14]NVStorageSaveData done [14:03:14]ExternCall_PrintAddStr [14:03:14]wPrintStart [14:03:14]Write to MH i2c: 01 00 00 32 03 35 [14:03:14]Write i2c OK [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: 01 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: 01 07 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 FF 0F 4A [14:03:14]RasterBufferAndPrint [14:03:14]line Счет N : (1)952624 [14:03:14]line ИНН: 02508201610067 [14:03:14]line Контрольно-Кассовый Чек [14:03:14]line ПРОДАЖА [14:03:14]line ТРК (МРК, ГНК) : 51 [14:03:14]line Товар: 50.50.0 [14:03:14]line Super 92 [14:03:14]line 10.240 * 68.40 [14:03:14]line = 700.42 [14:03:14]line НДС 12% НСП 1% [14:03:14]line > о реализуемом товаре [14:03:14]line ОКРУГЛЕНИЕ: -0.42 [14:03:14]line ИТОГО: 700.00 [14:03:14]line Внесено: 700.00 [14:03:14]line СДАЧА: 0.00 [14:03:14]line НСП 1% : 6.20 [14:03:14]line НДС 12% : 74.38 [14:03:14]line Наличными: 700.00 [14:03:14]line Безнал.: 0.00 [14:03:14]line Место: АЗС № 113 "Партнер Нефть" [14:03:14]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:03:14]line СНО: Общий режим [14:03:14]line Чек 98 31.10.2024 14:03 [14:03:14]line Смена: 557 ФФД: 1.0 [14:03:14]line ЗНМ: 0300000087 [14:03:14]line РНМ: 0000000000091644 [14:03:14]line Версия ККМ: 001 [14:03:14]line ФМ: 0000000000874662 [14:03:14]line ФД: 73023 [14:03:14]line ФПД: 32519604702838 [14:03:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140313&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73023&fm=32519604702838&tin=02508201610067®Number=0000000000091644&sum=70000 [14:03:14]OFD Sender: Processing packet 73023 [packets to send 279, broken 278] [14:03:14]ProducePacketName [14:03:14]name=ofd_packets/00073023 [14:03:14]OFD Sender: To server: pG, [14:03:14]CommunicateWithHost lk.salyk.kg:30040 [14:03:14]ConnectInit lk.salyk.kg [14:03:14]written 0, free lines is 4095 [14:03:15]Write to MH i2c: 01 00 00 5D 03 60 [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: 01 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: 01 07 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 D0 0C 43 [14:03:15]RasterBufferAndPrint [14:03:15]line [14:03:15]line [14:03:15]line [14:03:15]line [14:03:15]line [14:03:15]written 0, free lines is 3288 [14:03:15]MH_Cut [14:03:15]Write to MH i2c: D1 01 00 64 03 01 39 [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: D1 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: D1 01 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: D1 01 00 64 03 00 38 [14:03:15]Write to MH i2c: 01 00 00 65 03 68 [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]Connected sock=10 [14:03:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 6E B2 00 01 BD 00 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 21 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1D 01 00 35 04 06 00 1D 93 8F 7C 8E 76 C8 73 9B 8F D5 D1 E0 DE [14:03:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F8 0D 47 00 F3 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1D 01 00 F4 03 04 00 D7 38 23 67 B6 04 01 00 00 FB AA D1 D0 42 9D 8C FF [14:03:15]CommunicateWithHost err = 0 [14:03:15]CheckOFDResponse [14:03:15]1017 (14) - 77093643461234 [14:03:15]1041 (16) - 0000000000874662 [14:03:15]1040 (4) - 73023 [14:03:15]1012 (4) - 31.10.2024 07:59 [14:03:15]1206 (1) - 0 [14:03:15]OFD Sender: Remove packet 73023 [14:03:15]ProducePacketName [14:03:15]name=ofd_packets/00073023 [14:03:15]NVStorageDeleteData [14:03:16]*** Cut start [14:03:16]*** Partial cut [14:03:16]*** CUTSNS_PIN = 1 [14:03:16]*** CUTSNS_PIN = 0 [14:03:16]*** Brake cut motor [14:03:16]OFD Sender: No OFD packet to send [14:03:16]Read from MH i2c: 01 [14:03:16]MH_I2C_Read... [14:03:16]*** Stop cut motor [14:03:16]*** Cut end [14:03:16]Read from MH i2c: 01 07 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: 01 07 00 65 03 00 00 00 00 00 FF 0F 7D [14:03:16]process_action close_receipt done [14:03:16]requested_data is exist [14:03:16]produce_requested_data [14:03:16]requested_item fm.sn is exist - process it [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 11 00 00 [14:03:16]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 17 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 37 [14:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:03:16]wFMCommunicate OK [14:03:16]requested_item fd.num is exist - process it [14:03:16]SAM_PROTO_GetFieldsCounters [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 13 00 00 [14:03:16]Write to MH i2c: E2 08 00 67 03 80 13 00 00 00 00 00 00 E6 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 62 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 62 00 67 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3F 1D 01 00 0E 04 04 00 2D 02 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 B9 [14:03:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3F 1D 01 00 0E 04 04 00 2D 02 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 [14:03:16]wFMCommunicate OK [14:03:16]SAM_PROTO_GetFieldsCounters done [14:03:16]requested_item shift.num is exist - process it [14:03:16]requested_item shift.opened is exist - process it [14:03:16]req_shift_opened [14:03:16]FM_GetShiftState [14:03:16]SAM_PROTO_GetShiftState [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 13 01 00 [14:03:16]Write to MH i2c: E2 08 00 68 03 80 13 01 00 00 00 00 00 E8 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:16]Read from MH i2c: E2 0E 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 0E 00 68 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 91 [14:03:16]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:03:16]wFMCommunicate OK [14:03:16]SAM_PROTO_GetShiftState done [14:03:16]FM_GetShiftState done [14:03:16]req_shift_opened done [14:03:16]requested_item shift.open_date is exist - process it [14:03:16]req_shift_open_date [14:03:16]req_shift_open_date done [14:03:16]produce_requested_data done [14:03:16]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73023,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:03:16]process_action_free close_receipt [14:03:16]json_value_free [14:03:16]json_value_free done [14:03:16]process_json_proto returns [14:03:16]Send response to host [14:03:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73023,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:03:16]free response buf [14:03:16]execute_script done [14:03:16]execute_script returns [14:03:16]free content buf [14:03:16]Sock 7.Close socket [14:03:16]Sock 7.Thread stoped [14:03:21]OFD Sender: No OFD packet to send [14:03:24]recv_with_timeout no data received [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:38]recv_with_timeout no data received [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]recv_with_timeout no data received [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:51]OFD Sender: No OFD packet to send [14:07:52]recv_with_timeout no data received [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:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:33]accept exits with 9 [14:08:33]New connection [14:08:33]New thread 3067309412 created [14:08:33]Thread 3067166052 joined [14:08:33]Waiting for new connection... [14:08:33] Sock 9.Parse request [14:08:33]Sock 9.Check first char [14:08:33]Sock 9.First char is OK [14:08:33]request: POST /json_proto HTTP/1.0 [14:08:33]Method: POST [14:08:33]URL: /json_proto [14:08:33]Method is POST - this is cgi request [14:08:33]url: /json_proto [14:08:33]query_string will be loaded in cgi processing [14:08:33]execute_cgi json_proto POST (null) [14:08:33]execute_cgi path=json_proto method=POST [14:08:33]POST find Content-Length [14:08:33]Host: 172.17.43.195:8080 [14:08:33]Content-Length: 677 [14:08:33]Content-Type: application/json [14:08:33] [14:08:33]POST finish read [14:08:33]Found Content-Length = 677 [14:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:33]execute_script... [14:08: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)952625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:33]POST & json_proto [14:08:33]process_json_proto [14:08:33]json parsed OK: [14:08:33]protocol is kg_v1.0 [14:08:33]action value=close_receipt [14:08:33]process_action close_receipt [14:08:33]cmd_close_receipt [14:08:33]MH_GetDate [14:08:33]Write to MH i2c: F0 00 00 69 03 5B [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: F0 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: F0 09 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: F0 09 00 69 03 00 62 8F 23 67 74 2C AD 66 92 [14:08:33]GetLastDocTimeStamp 1730383393 [14:08:33]current date 1730383714 [14:08:33]FM_GetShiftState [14:08:33]SAM_PROTO_GetShiftState [14:08:33]wFMCommunicate request_size=4 [14:08:33]MH_SAM_APDU [14:08:33]CAPDU: 80 13 01 00 [14:08:33]Write to MH i2c: E2 08 00 6A 03 80 13 01 00 00 00 00 00 EA [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0E 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0E 00 6A 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 93 [14:08:33]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:08:33]wFMCommunicate OK [14:08:33]SAM_PROTO_GetShiftState done [14:08:33]FM_GetShiftState done [14:08:33]opened in 1730333258 [14:08:33]opened+sec_in_day 1730419658 [14:08:33]quantity*price = 10035 [14:08:33]sum+1 = 10036 [14:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 99 31.10.2024 14:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73024 ФПД: 27216176869405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140834&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73024&fm=27216176869405&tin=02508201610067®Number=0000000000091644&sum=10000 [14:08:34]StoreToDocumentArchive [14:08:34]shift 557 fd 73024 [14:08:34]save to /storage/0557/doc_00073024 [14:08:34]save last doc name /storage/0557/doc_00073024 to /storage/kkm_last_doc_name [14:08:34]save OK [14:08:34]Clear old archive folders... [14:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:34]tlvbuf is 014EB8D0 [14:08:34]SAM_PROTO_ClearQueue [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 09 00 00 [14:08:34]Write to MH i2c: E2 08 00 77 03 80 09 00 00 00 00 00 00 EC [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 77 03 00 90 00 EE [14:08:34]RAPDU: 90 00 [14:08:34]wFMCommunicate OK [14:08:34]SAM_PROTO_ClearQueue done [14:08:34]KKMCreateOFDPacket [14:08:34]OFDProtocolAddRootSTLVToBuf [14:08:34]FM_MakeSignedData [14:08:34]FM_MakeSignedData [14:08:34]SAM_PROTO_SignData [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 0D 01 02 [14:08:34]Write to MH i2c: E2 08 00 78 03 80 0D 01 02 00 00 00 00 F4 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 78 03 00 90 00 EF [14:08:34]RAPDU: 90 00 [14:08:34]wFMCommunicate OK [14:08:34]wFMCommunicate request_size=255 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 8F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 40 1D 01 00 35 04 06 00 18 [14:08:34]Write to MH i2c: E2 02 01 79 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 8F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 40 1D 01 00 35 04 06 00 18 00 00 ED [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 79 03 00 90 00 F0 [14:08:34]RAPDU: 90 00 [14:08:34]wFMCommunicate OK [14:08:34]wFMCommunicate request_size=10 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 0D 02 02 05 C0 C2 8D F0 1D [14:08:34]Write to MH i2c: E2 0D 00 7A 03 80 0D 02 02 05 00 C0 C2 8D F0 1D 00 00 1D [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [14:08:34]RAPDU: 90 00 [14:08:34]wFMCommunicate OK [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 0D 03 02 [14:08:34]Write to MH i2c: E2 08 00 7B 03 80 0D 03 02 00 00 00 00 F9 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 0B 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 0B 00 7B 03 00 28 AD AC 57 52 5B C2 AD 90 00 EE [14:08:34]RAPDU: 28 AD AC 57 52 5B C2 AD 90 00 [14:08:34]wFMCommunicate OK [14:08:34]SAM_PROTO_SignData done [14:08:34]FM_MakeSignedData done [14:08:34]CreateOFDProtocolMessage [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 11 00 00 [14:08:34]Write to MH i2c: E2 08 00 7C 03 80 11 00 00 00 00 00 00 F9 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 17 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 17 00 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 4D [14:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:08:34]wFMCommunicate OK [14:08:34]CreateOFDProtocolMessage done [14:08:34]OFDSenderStorePacket 73024 [14:08:34]StoreOFDPacket docnum=73024 [14:08:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 34 67 07 01 B5 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 8F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 40 1D 01 00 35 04 06 00 18 C0 C2 8D F0 1D 28 AD AC 57 52 5B C2 AD [14:08:34]CheckFolder [14:08:34]dirname=/storage/ofd_packets [14:08:34]CheckFolder done [14:08:34]ProducePacketName [14:08:34]name=ofd_packets/00073024 [14:08:34]NVStorageSaveData ofd_packets/00073024 [14:08:34]File name is /storage/ofd_packets/00073024 [14:08:34]Write 301 bytes [14:08:34]NVStorageSaveData done [14:08:34]OFDSenderStorePacket done [14:08:34]KKMCreateOFDPacket done [14:08:34]NVStorageSaveData kkm_last_timestamp [14:08:34]File name is /storage/kkm_last_timestamp [14:08:34]Write 4 bytes [14:08:34]NVStorageSaveData done [14:08:34]ExternCall_PrintAddStr [14:08:34]wPrintStart [14:08:34]Write to MH i2c: 01 00 00 7D 03 80 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: 01 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: 01 07 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 FF 0F 95 [14:08:34]RasterBufferAndPrint [14:08:34]line Счет N : (1)952625 [14:08:34]line ИНН: 02508201610067 [14:08:34]line Контрольно-Кассовый Чек [14:08:34]line ПРОДАЖА [14:08:34]line ТРК (МРК, ГНК) : 42 [14:08:34]line Товар: 2710124130 [14:08:34]line Аи-92-К-5 [14:08:34]line 1.500 * 66.90 [14:08:34]line = 100.35 [14:08:34]line НДС 12% НСП 1% [14:08:34]line > о реализуемом товаре [14:08:34]line ОКРУГЛЕНИЕ: -0.35 [14:08:34]line ИТОГО: 100.00 [14:08:34]line Внесено: 100.00 [14:08:34]line СДАЧА: 0.00 [14:08:34]line НСП 1% : 0.89 [14:08:34]line НДС 12% : 10.66 [14:08:34]line Наличными: 100.00 [14:08:34]line Безнал.: 0.00 [14:08:34]line Место: АЗС № 113 "Партнер Нефть" [14:08:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:08:34]line СНО: Общий режим [14:08:34]line Чек 99 31.10.2024 14:08 [14:08:34]line Смена: 557 ФФД: 1.0 [14:08:34]line ЗНМ: 0300000087 [14:08:34]line РНМ: 0000000000091644 [14:08:34]line Версия ККМ: 001 [14:08:34]line ФМ: 0000000000874662 [14:08:34]line ФД: 73024 [14:08:34]line ФПД: 27216176869405 [14:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140834&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73024&fm=27216176869405&tin=02508201610067®Number=0000000000091644&sum=10000 [14:08:34]written 0, free lines is 4095 [14:08:35]OFD Sender: Processing packet 73024 [packets to send 279, broken 278] [14:08:35]ProducePacketName [14:08:35]name=ofd_packets/00073024 [14:08:35]OFD Sender: To server: pG, [14:08:35]CommunicateWithHost lk.salyk.kg:30040 [14:08:35]ConnectInit lk.salyk.kg [14:08:35]Write to MH i2c: 01 00 00 A8 03 AB [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 07 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 CC 0C 8A [14:08:35]RasterBufferAndPrint [14:08:35]line [14:08:35]line [14:08:35]line [14:08:35]line [14:08:35]line [14:08:35]written 0, free lines is 3282 [14:08:35]MH_Cut [14:08:35]Write to MH i2c: D1 01 00 AF 03 01 84 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: D1 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: D1 01 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: D1 01 00 AF 03 00 83 [14:08:35]Write to MH i2c: 01 00 00 B0 03 B3 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:36]*** Cut start [14:08:36]*** Partial cut [14:08:36]*** CUTSNS_PIN = 1 [14:08:36]*** CUTSNS_PIN = 0 [14:08:36]*** Brake cut motor [14:08:36]Connected sock=6 [14:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 34 67 07 01 B5 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 8F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 40 1D 01 00 35 04 06 00 18 C0 C2 8D F0 1D 28 AD AC 57 52 5B C2 AD [14:08:36]Read from MH i2c: 01 [14:08:36]MH_I2C_Read... [14:08:36]*** Stop cut motor [14:08:36]*** Cut end [14:08:36]Read from MH i2c: 01 07 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 07 00 B0 03 00 00 00 00 00 FF 0F C8 [14:08:36]process_action close_receipt done [14:08:36]requested_data is exist [14:08:36]produce_requested_data [14:08:36]requested_item fm.sn is exist - process it [14:08:36]wFMCommunicate request_size=4 [14:08:36]MH_SAM_APDU [14:08:36]CAPDU: 80 11 00 00 [14:08:36]Write to MH i2c: E2 08 00 B1 03 80 11 00 00 00 00 00 00 2E [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:36]Read from MH i2c: E2 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 17 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 17 00 B1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 82 [14:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:08:36]wFMCommunicate OK [14:08:36]requested_item fd.num is exist - process it [14:08:36]SAM_PROTO_GetFieldsCounters [14:08:36]wFMCommunicate request_size=4 [14:08:36]MH_SAM_APDU [14:08:36]CAPDU: 80 13 00 00 [14:08:36]Write to MH i2c: E2 08 00 B2 03 80 13 00 00 00 00 00 00 31 [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 62 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 62 00 B2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 40 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [14:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 40 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:37]wFMCommunicate OK [14:08:37]SAM_PROTO_GetFieldsCounters done [14:08:37]requested_item shift.num is exist - process it [14:08:37]requested_item shift.opened is exist - process it [14:08:37]req_shift_opened [14:08:37]FM_GetShiftState [14:08:37]SAM_PROTO_GetShiftState [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 13 01 00 [14:08:37]Write to MH i2c: E2 08 00 B3 03 80 13 01 00 00 00 00 00 33 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0E 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0E 00 B3 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 DC [14:08:37]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:08:37]wFMCommunicate OK [14:08:37]SAM_PROTO_GetShiftState done [14:08:37]FM_GetShiftState done [14:08:37]req_shift_opened done [14:08:37]requested_item shift.open_date is exist - process it [14:08:37]req_shift_open_date [14:08:37]req_shift_open_date done [14:08:37]produce_requested_data done [14:08:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73024,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:08:37]process_action_free close_receipt [14:08:37]json_value_free [14:08:37]json_value_free done [14:08:37]process_json_proto returns [14:08:37]Send response to host [14:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73024,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:08:37]free response buf [14:08:37]execute_script done [14:08:37]execute_script returns [14:08:37]free content buf [14:08:37]Sock 9.Close socket [14:08:37]Sock 9.Thread stoped [14:08:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 96 44 47 00 C9 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 40 1D 01 00 F4 03 04 00 19 3A 23 67 B6 04 01 00 00 ED 15 22 55 CD A4 FA C8 [14:08:37]CommunicateWithHost err = 0 [14:08:37]CheckOFDResponse [14:08:37]1017 (14) - 77093643461234 [14:08:37]1041 (16) - 0000000000874662 [14:08:37]1040 (4) - 73024 [14:08:37]1012 (4) - 31.10.2024 08:04 [14:08:37]1206 (1) - 0 [14:08:37]OFD Sender: Remove packet 73024 [14:08:37]ProducePacketName [14:08:37]name=ofd_packets/00073024 [14:08:37]NVStorageDeleteData [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:08:59]recv_with_timeout no data received [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:48]recv_with_timeout no data received [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:51]recv_with_timeout no data received [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:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:44]recv_with_timeout no data received [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:03]recv_with_timeout no data received [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]accept exits with 10 [14:12:58]New connection [14:12:58]New thread 3067166052 created [14:12:58]Thread 3067309412 joined [14:12:58]Waiting for new connection... [14:12:58] Sock 10.Parse request [14:12:58]Sock 10.Check first char [14:12:58]Sock 10.First char is OK [14:12:58]request: POST /json_proto HTTP/1.0 [14:12:58]Method: POST [14:12:58]URL: /json_proto [14:12:58]Method is POST - this is cgi request [14:12:58]url: /json_proto [14:12:58]query_string will be loaded in cgi processing [14:12:58]execute_cgi json_proto POST (null) [14:12:58]execute_cgi path=json_proto method=POST [14:12:58]POST find Content-Length [14:12:58]Host: 172.17.43.195:8080 [14:12:58]Content-Length: 800 [14:12:58]Content-Type: application/json [14:12:58] [14:12:58]POST finish read [14:12:58]Found Content-Length = 800 [14:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:58]execute_script... [14:12:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:58]POST & json_proto [14:12:58]process_json_proto [14:12:58]json parsed OK: [14:12:58]protocol is kg_v1.0 [14:12:58]action value=close_receipt [14:12:58]process_action close_receipt [14:12:58]cmd_close_receipt [14:12:58]MH_GetDate [14:12:58]Write to MH i2c: F0 00 00 B4 03 A6 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: F0 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: F0 09 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: F0 09 00 B4 03 00 6A 90 23 67 74 2C AD 66 E6 [14:12:58]GetLastDocTimeStamp 1730383714 [14:12:58]current date 1730383978 [14:12:58]FM_GetShiftState [14:12:58]SAM_PROTO_GetShiftState [14:12:58]wFMCommunicate request_size=4 [14:12:58]MH_SAM_APDU [14:12:58]CAPDU: 80 13 01 00 [14:12:58]Write to MH i2c: E2 08 00 B5 03 80 13 01 00 00 00 00 00 35 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:58]Read from MH i2c: E2 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: E2 0E 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: E2 0E 00 B5 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 DE [14:12:58]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:12:58]wFMCommunicate OK [14:12:58]SAM_PROTO_GetShiftState done [14:12:58]FM_GetShiftState done [14:12:58]opened in 1730333258 [14:12:58]opened+sec_in_day 1730419658 [14:12:58]quantity*price = 50041 [14:12:58]sum+1 = 50042 [14:12:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 100 31.10.2024 14:12 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73025 ФПД: 165606026380163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141258&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73025&fm=165606026380163&tin=02508201610067®Number=0000000000091644&sum=50041 [14:12:59]StoreToDocumentArchive [14:12:59]shift 557 fd 73025 [14:12:59]save to /storage/0557/doc_00073025 [14:12:59]save last doc name /storage/0557/doc_00073025 to /storage/kkm_last_doc_name [14:12:59]save OK [14:12:59]Clear old archive folders... [14:12:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:59]tlvbuf is 015040E0 [14:12:59]SAM_PROTO_ClearQueue [14:12:59]wFMCommunicate request_size=4 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 09 00 00 [14:12:59]Write to MH i2c: E2 08 00 C2 03 80 09 00 00 00 00 00 00 37 [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 03 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 03 00 C2 03 00 90 00 39 [14:12:59]RAPDU: 90 00 [14:12:59]wFMCommunicate OK [14:12:59]SAM_PROTO_ClearQueue done [14:12:59]KKMCreateOFDPacket [14:12:59]OFDProtocolAddRootSTLVToBuf [14:12:59]FM_MakeSignedData [14:12:59]FM_MakeSignedData [14:12:59]SAM_PROTO_SignData [14:12:59]wFMCommunicate request_size=4 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 0D 01 02 [14:12:59]Write to MH i2c: E2 08 00 C3 03 80 0D 01 02 00 00 00 00 3F [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 03 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 03 00 C3 03 00 90 00 3A [14:12:59]RAPDU: 90 00 [14:12:59]wFMCommunicate OK [14:12:59]wFMCommunicate request_size=255 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 6A 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1D 01 00 35 04 06 00 96 [14:12:59]Write to MH i2c: E2 02 01 C4 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 6A 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1D 01 00 35 04 06 00 96 00 00 2C [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 03 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [14:12:59]RAPDU: 90 00 [14:12:59]wFMCommunicate OK [14:12:59]wFMCommunicate request_size=10 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 0D 02 02 05 9E 28 60 03 83 [14:12:59]Write to MH i2c: E2 0D 00 C5 03 80 0D 02 02 05 00 9E 28 60 03 83 00 00 F8 [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 03 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [14:12:59]RAPDU: 90 00 [14:12:59]wFMCommunicate OK [14:12:59]wFMCommunicate request_size=4 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 0D 03 02 [14:12:59]Write to MH i2c: E2 08 00 C6 03 80 0D 03 02 00 00 00 00 44 [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 0B 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 0B 00 C6 03 00 62 9C 92 75 C3 77 A8 DB 90 00 07 [14:12:59]RAPDU: 62 9C 92 75 C3 77 A8 DB 90 00 [14:12:59]wFMCommunicate OK [14:12:59]SAM_PROTO_SignData done [14:12:59]FM_MakeSignedData done [14:12:59]CreateOFDProtocolMessage [14:12:59]wFMCommunicate request_size=4 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 11 00 00 [14:12:59]Write to MH i2c: E2 08 00 C7 03 80 11 00 00 00 00 00 00 44 [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 17 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 17 00 C7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 98 [14:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:12:59]wFMCommunicate OK [14:12:59]CreateOFDProtocolMessage done [14:12:59]OFDSenderStorePacket 73025 [14:12:59]StoreOFDPacket docnum=73025 [14:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 20 85 07 01 3E CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 6A 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1D 01 00 35 04 06 00 96 9E 28 60 03 83 62 9C 92 75 C3 77 A8 DB [14:12:59]CheckFolder [14:12:59]dirname=/storage/ofd_packets [14:12:59]CheckFolder done [14:12:59]ProducePacketName [14:12:59]name=ofd_packets/00073025 [14:12:59]NVStorageSaveData ofd_packets/00073025 [14:12:59]File name is /storage/ofd_packets/00073025 [14:12:59]Write 301 bytes [14:12:59]NVStorageSaveData done [14:12:59]OFDSenderStorePacket done [14:12:59]KKMCreateOFDPacket done [14:12:59]NVStorageSaveData kkm_last_timestamp [14:12:59]File name is /storage/kkm_last_timestamp [14:12:59]Write 4 bytes [14:12:59]NVStorageSaveData done [14:12:59]ExternCall_PrintAddStr [14:12:59]wPrintStart [14:12:59]Write to MH i2c: 01 00 00 C8 03 CB [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: 01 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: 01 07 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: 01 07 00 C8 03 00 00 00 00 00 FF 0F E0 [14:12:59]RasterBufferAndPrint [14:12:59]line Счет N : (1)952626 [14:12:59]line ИНН: 02508201610067 [14:12:59]line Контрольно-Кассовый Чек [14:12:59]line ПРОДАЖА [14:12:59]line ТРК (МРК, ГНК) : 53 [14:12:59]line Товар: 2710124130 [14:12:59]line Аи-92-К-5 [14:12:59]line 7.480 * 66.90 [14:12:59]line = 500.41 [14:12:59]line НДС 12% НСП 1% [14:12:59]line > о реализуемом товаре [14:12:59]line ИТОГО: 500.41 [14:12:59]line НСП 1% : 4.43 [14:12:59]line НДС 12% : 53.14 [14:12:59]line Наличными: 0.00 [14:12:59]line Безнал.: 500.41 [14:12:59]line Место: АЗС № 113 "Партнер Нефть" [14:12:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:12:59]line СНО: Общий режим [14:12:59]line Чек 100 31.10.2024 14:12 [14:12:59]line Смена: 557 ФФД: 1.0 [14:12:59]line ЗНМ: 0300000087 [14:12:59]line РНМ: 0000000000091644 [14:12:59]line Версия ККМ: 001 [14:12:59]line Платежная система: O! деньги [14:12:59]line ФМ: 0000000000874662 [14:12:59]line ФД: 73025 [14:12:59]line ФПД: 165606026380163 [14:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141258&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73025&fm=165606026380163&tin=02508201610067®Number=0000000000091644&sum=50041 [14:12:59]written 0, free lines is 4095 [14:12:59]OFD Sender: Processing packet 73025 [packets to send 279, broken 278] [14:12:59]ProducePacketName [14:12:59]name=ofd_packets/00073025 [14:12:59]OFD Sender: To server: pG, [14:12:59]CommunicateWithHost lk.salyk.kg:30040 [14:12:59]ConnectInit lk.salyk.kg [14:13:00]Write to MH i2c: 01 00 00 F2 03 F5 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: 01 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: 01 07 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 DE 0C E6 [14:13:00]RasterBufferAndPrint [14:13:00]line [14:13:00]line [14:13:00]line [14:13:00]line [14:13:00]line [14:13:00]written 0, free lines is 3300 [14:13:00]MH_Cut [14:13:00]Write to MH i2c: D1 01 00 F9 03 01 CE [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: D1 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: D1 01 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: D1 01 00 F9 03 00 CD [14:13:00]Write to MH i2c: 01 00 00 FA 03 FD [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** Cut start [14:13:00]*** Partial cut [14:13:00]*** CUTSNS_PIN = 1 [14:13:01]*** CUTSNS_PIN = 0 [14:13:01]*** Brake cut motor [14:13:01]Read from MH i2c: 01 [14:13:01]MH_I2C_Read... [14:13:01]*** Stop cut motor [14:13:01]*** Cut end [14:13:01]Read from MH i2c: 01 07 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [14:13:01]process_action close_receipt done [14:13:01]requested_data is exist [14:13:01]produce_requested_data [14:13:01]requested_item fm.sn is exist - process it [14:13:01]wFMCommunicate request_size=4 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 11 00 00 [14:13:01]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 17 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 17 00 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CC [14:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:13:01]wFMCommunicate OK [14:13:01]requested_item fd.num is exist - process it [14:13:01]SAM_PROTO_GetFieldsCounters [14:13:01]wFMCommunicate request_size=4 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 13 00 00 [14:13:01]Write to MH i2c: E2 08 00 FC 03 80 13 00 00 00 00 00 00 7B [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 62 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 62 00 FC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 41 1D 01 00 0E 04 04 00 2D 02 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 56 [14:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 41 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:01]wFMCommunicate OK [14:13:01]SAM_PROTO_GetFieldsCounters done [14:13:01]requested_item shift.num is exist - process it [14:13:01]requested_item shift.opened is exist - process it [14:13:01]req_shift_opened [14:13:01]FM_GetShiftState [14:13:01]SAM_PROTO_GetShiftState [14:13:01]wFMCommunicate request_size=4 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 13 01 00 [14:13:01]Write to MH i2c: E2 08 00 FD 03 80 13 01 00 00 00 00 00 7D [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 0E 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 0E 00 FD 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 26 [14:13:01]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:13:01]wFMCommunicate OK [14:13:01]SAM_PROTO_GetShiftState done [14:13:01]FM_GetShiftState done [14:13:01]req_shift_opened done [14:13:01]requested_item shift.open_date is exist - process it [14:13:01]req_shift_open_date [14:13:01]req_shift_open_date done [14:13:01]produce_requested_data done [14:13:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73025,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:13:01]process_action_free close_receipt [14:13:01]json_value_free [14:13:01]json_value_free done [14:13:01]process_json_proto returns [14:13:01]Send response to host [14:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73025,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:13:01]free response buf [14:13:01]execute_script done [14:13:01]execute_script returns [14:13:01]free content buf [14:13:01]Sock 10.Close socket [14:13:01]Sock 10.Thread stoped [14:13:02]recv_with_timeout no data received [14:13:04]accept exits with 9 [14:13:04]New connection [14:13:04]New thread 3067309412 created [14:13:04]Thread 3067166052 joined [14:13:04]Waiting for new connection... [14:13:04] Sock 9.Parse request [14:13:04]Sock 9.Check first char [14:13:04]Sock 9.First char is OK [14:13:04]request: POST /json_proto HTTP/1.0 [14:13:04]Method: POST [14:13:04]URL: /json_proto [14:13:04]Method is POST - this is cgi request [14:13:04]url: /json_proto [14:13:04]query_string will be loaded in cgi processing [14:13:04]execute_cgi json_proto POST (null) [14:13:04]execute_cgi path=json_proto method=POST [14:13:04]POST find Content-Length [14:13:04]Host: 172.17.43.195:8080 [14:13:04]Content-Length: 677 [14:13:04]Content-Type: application/json [14:13:04] [14:13:04]POST finish read [14:13:04]Found Content-Length = 677 [14:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:04]execute_script... [14:13: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)952628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:04]POST & json_proto [14:13:04]process_json_proto [14:13:04]json parsed OK: [14:13:04]protocol is kg_v1.0 [14:13:04]action value=close_receipt [14:13:04]process_action close_receipt [14:13:04]cmd_close_receipt [14:13:04]MH_GetDate [14:13:04]Write to MH i2c: F0 00 00 FE 03 F0 [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: F0 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: F0 09 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: F0 09 00 FE 03 00 71 90 23 67 74 2C AD 66 37 [14:13:04]GetLastDocTimeStamp 1730383978 [14:13:04]current date 1730383985 [14:13:04]FM_GetShiftState [14:13:04]SAM_PROTO_GetShiftState [14:13:04]wFMCommunicate request_size=4 [14:13:04]MH_SAM_APDU [14:13:04]CAPDU: 80 13 01 00 [14:13:04]Write to MH i2c: E2 08 00 FF 03 80 13 01 00 00 00 00 00 7F [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:04]Read from MH i2c: E2 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 0E 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 0E 00 FF 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 28 [14:13:04]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:13:04]wFMCommunicate OK [14:13:04]SAM_PROTO_GetShiftState done [14:13:04]FM_GetShiftState done [14:13:04]opened in 1730333258 [14:13:04]opened+sec_in_day 1730419658 [14:13:04]quantity*price = 50010 [14:13:04]sum+1 = 50012 [14:13:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 101 31.10.2024 14:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73026 ФПД: 83748290937608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141305&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73026&fm=83748290937608&tin=02508201610067®Number=0000000000091644&sum=50000 [14:13:05]StoreToDocumentArchive [14:13:05]shift 557 fd 73026 [14:13:05]save to /storage/0557/doc_00073026 [14:13:05]save last doc name /storage/0557/doc_00073026 to /storage/kkm_last_doc_name [14:13:05]save OK [14:13:05]Clear old archive folders... [14:13:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:05]tlvbuf is 014FB7F0 [14:13:05]SAM_PROTO_ClearQueue [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 09 00 00 [14:13:05]Write to MH i2c: E2 08 00 0C 04 80 09 00 00 00 00 00 00 82 [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 0C 04 00 90 00 84 [14:13:05]RAPDU: 90 00 [14:13:05]wFMCommunicate OK [14:13:05]SAM_PROTO_ClearQueue done [14:13:05]KKMCreateOFDPacket [14:13:05]OFDProtocolAddRootSTLVToBuf [14:13:05]FM_MakeSignedData [14:13:05]FM_MakeSignedData [14:13:05]SAM_PROTO_SignData [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 0D 01 02 [14:13:05]Write to MH i2c: E2 08 00 0D 04 80 0D 01 02 00 00 00 00 8A [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]Connected sock=11 [14:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 20 85 07 01 3E CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 Read from MH i2c: 00 E2 00 [14:13:05]EB MH_I2C_Read... [14:13:05]03 Read from MH i2c: 26 E2 00 03 EF 00 03 [14:13:05]0F MH_I2C_Read... [14:13:05]00 F6 Read from MH i2c: 03 E2 01 03 00 00 01 0D F7 04 03 06 00 00 90 BB 00 85 01 [14:13:05]00 RAPDU: 00 90 00 00 00 [14:13:05]EE wFMCommunicate OK [14:13:05]03 wFMCommunicate request_size=255 [14:13:05]0F MH_SAM_APDU [14:13:05]00 CAPDU: F2 80 03 0D 02 01 02 00 FA 01 03 F3 00 03 FB 06 00 00 1E C2 04 14 01 00 00 00 01 00 23 00 04 4D 07 00 04 8A 06 04 00 0A 00 00 00 00 00 32 00 37 00 31 39 30 04 31 06 00 32 79 34 C3 35 00 30 00 30 00 06 00 04 1F 0C 04 00 02 D0 90 00 D0 01 B8 00 2D 12 39 04 35 04 2D 00 D0 64 9A 2D 00 33 00 FF 03 08 00 00 F4 03 03 04 54 00 1A 6A 00 90 00 23 00 67 00 0E 00 04 37 04 04 00 2D 06 02 00 00 FC 00 1C 00 B9 00 04 00 01 00 00 13 01 04 0D 06 04 00 10 5B 00 30 30 C3 30 00 30 00 30 00 30 00 30 30 F2 30 03 30 01 00 30 39 01 31 F6 36 03 34 01 34 00 11 01 04 BC 10 04 00 01 30 00 30 01 30 30 FC 30 03 30 06 30 00 30 50 30 C3 30 00 38 00 37 00 34 00 36 EB 36 32 03 10 26 04 00 04 EF 00 03 41 0F 1D 00 01 F6 00 03 35 01 04 00 06 01 00 F7 96 03 9E 06 28 00 60 BB 03 01 83 00 62 00 9C 00 92 00 75 EE C3 77 03 A8 0F DB 00 [14:13:05]F2 *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:05]03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 71 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1D 01 00 35 04 06 00 4C [14:13:05]Write to MH i2c: E2 02 01 0E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 71 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1D 01 00 35 04 06 00 4C 00 00 BA [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [14:13:05]RAPDU: 90 00 [14:13:05]wFMCommunicate OK [14:13:05]wFMCommunicate request_size=10 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 0D 02 02 05 2B 2B 21 C3 08 [14:13:05]Write to MH i2c: E2 0D 00 0F 04 80 0D 02 02 05 00 2B 2B 21 C3 08 00 00 D9 [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:06]Read from MH i2c: E2 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 03 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [14:13:06]RAPDU: 90 00 [14:13:06]wFMCommunicate OK [14:13:06]wFMCommunicate request_size=4 [14:13:06]MH_SAM_APDU [14:13:06]CAPDU: 80 0D 03 02 [14:13:06]Write to MH i2c: E2 08 00 10 04 80 0D 03 02 00 00 00 00 8F [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:06]Read from MH i2c: E2 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 0B 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 0B 00 10 04 00 27 AB D0 EE E4 B0 82 2F 90 00 65 [14:13:06]RAPDU: 27 AB D0 EE E4 B0 82 2F 90 00 [14:13:06]wFMCommunicate OK [14:13:06]SAM_PROTO_SignData done [14:13:06]FM_MakeSignedData done [14:13:06]CreateOFDProtocolMessage [14:13:06]wFMCommunicate request_size=4 [14:13:06]MH_SAM_APDU [14:13:06]CAPDU: 80 11 00 00 [14:13:06]Write to MH i2c: E2 08 00 11 04 80 11 00 00 00 00 00 00 8F [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:06]Read from MH i2c: E2 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 17 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 17 00 11 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E3 [14:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:13:06]wFMCommunicate OK [14:13:06]CreateOFDProtocolMessage done [14:13:06]OFDSenderStorePacket 73026 [14:13:06]StoreOFDPacket docnum=73026 [14:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 77 A0 07 01 1A 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 71 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1D 01 00 35 04 06 00 4C 2B 2B 21 C3 08 27 AB D0 EE E4 B0 82 2F [14:13:06]CheckFolder [14:13:06]dirname=/storage/ofd_packets [14:13:06]CheckFolder done [14:13:06]ProducePacketName [14:13:06]name=ofd_packets/00073026 [14:13:06]NVStorageSaveData ofd_packets/00073026 [14:13:06]File name is /storage/ofd_packets/00073026 [14:13:06]Write 301 bytes [14:13:06]NVStorageSaveData done [14:13:06]OFDSenderStorePacket done [14:13:06]KKMCreateOFDPacket done [14:13:06]NVStorageSaveData kkm_last_timestamp [14:13:06]File name is /storage/kkm_last_timestamp [14:13:06]Write 4 bytes [14:13:06]NVStorageSaveData done [14:13:06]ExternCall_PrintAddStr [14:13:06]wPrintStart [14:13:06]Write to MH i2c: 01 00 00 12 04 16 [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 07 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 FF 0F 2B [14:13:06]RasterBufferAndPrint [14:13:06]line Счет N : (1)952628 [14:13:06]line ИНН: 02508201610067 [14:13:06]line Контрольно-Кассовый Чек [14:13:06]line ПРОДАЖА [14:13:06]line ТРК (МРК, ГНК) : 31 [14:13:06]line Товар: 2710124500 [14:13:06]line Аи-95-К-3 [14:13:06]line 6.740 * 74.20 [14:13:06]line = 500.11 [14:13:06]line НДС 12% НСП 1% [14:13:06]line > о реализуемом товаре [14:13:06]line ОКРУГЛЕНИЕ: -0.11 [14:13:06]line ИТОГО: 500.00 [14:13:06]line Внесено: 500.00 [14:13:06]line СДАЧА: 0.00 [14:13:06]line НСП 1% : 4.43 [14:13:06]line НДС 12% : 53.11 [14:13:06]line Наличными: 500.00 [14:13:06]line Безнал.: 0.00 [14:13:06]line Место: АЗС № 113 "Партнер Нефть" [14:13:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:13:06]line СНО: Общий режим [14:13:06]line Чек 101 31.10.2024 14:13 [14:13:06]line Смена: 557 ФФД: 1.0 [14:13:06]line ЗНМ: 0300000087 [14:13:06]line РНМ: 0000000000091644 [14:13:06]line Версия ККМ: 001 [14:13:06]line ФМ: 0000000000874662 [14:13:06]line ФД: 73026 [14:13:06]line ФПД: 83748290937608 [14:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141305&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73026&fm=83748290937608&tin=02508201610067®Number=0000000000091644&sum=50000 [14:13:06]written 0, free lines is 4095 [14:13:06]Write to MH i2c: 01 00 00 3D 04 41 [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 07 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 D4 0C 28 [14:13:06]RasterBufferAndPrint [14:13:06]line [14:13:06]line [14:13:06]line [14:13:06]line [14:13:06]line [14:13:06]written 0, free lines is 3298 [14:13:06]MH_Cut [14:13:06]Write to MH i2c: D1 01 00 44 04 01 1A [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: D1 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: D1 01 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: D1 01 00 44 04 00 19 [14:13:06]Write to MH i2c: 01 00 00 45 04 49 [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:07]*** Cut start [14:13:07]*** Partial cut [14:13:07]*** CUTSNS_PIN = 1 [14:13:07]*** CUTSNS_PIN = 0 [14:13:07]*** Brake cut motor [14:13:08]Read from MH i2c: 01 [14:13:08]MH_I2C_Read... [14:13:08]*** Stop cut motor [14:13:08]*** Cut end [14:13:08]Read from MH i2c: 01 07 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 FF 0F 5E [14:13:08]process_action close_receipt done [14:13:08]requested_data is exist [14:13:08]produce_requested_data [14:13:08]requested_item fm.sn is exist - process it [14:13:08]wFMCommunicate request_size=4 [14:13:08]MH_SAM_APDU [14:13:08]CAPDU: 80 11 00 00 [14:13:08]Write to MH i2c: E2 08 00 46 04 80 11 00 00 00 00 00 00 C4 [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:08]Read from MH i2c: E2 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 17 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 17 00 46 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 18 [14:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:13:08]wFMCommunicate OK [14:13:08]requested_item fd.num is exist - process it [14:13:08]SAM_PROTO_GetFieldsCounters [14:13:08]wFMCommunicate request_size=4 [14:13:08]MH_SAM_APDU [14:13:08]CAPDU: 80 13 00 00 [14:13:08]Write to MH i2c: E2 08 00 47 04 80 13 00 00 00 00 00 00 C7 [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:08]Read from MH i2c: E2 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 62 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 62 00 47 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 42 1D 01 00 0E 04 04 00 2D 02 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 A6 [14:13:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 42 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:08]wFMCommunicate OK [14:13:08]SAM_PROTO_GetFieldsCounters done [14:13:08]requested_item shift.num is exist - process it [14:13:08]requested_item shift.opened is exist - process it [14:13:08]req_shift_opened [14:13:08]FM_GetShiftState [14:13:08]SAM_PROTO_GetShiftState [14:13:08]wFMCommunicate request_size=4 [14:13:08]MH_SAM_APDU [14:13:08]CAPDU: 80 13 01 00 [14:13:08]Write to MH i2c: E2 08 00 48 04 80 13 01 00 00 00 00 00 C9 [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:08]Read from MH i2c: E2 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 0E 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 0E 00 48 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 72 [14:13:08]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:13:08]wFMCommunicate OK [14:13:08]SAM_PROTO_GetShiftState done [14:13:08]FM_GetShiftState done [14:13:08]req_shift_opened done [14:13:08]requested_item shift.open_date is exist - process it [14:13:08]req_shift_open_date [14:13:08]req_shift_open_date done [14:13:08]produce_requested_data done [14:13:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73026,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:13:08]process_action_free close_receipt [14:13:08]json_value_free [14:13:08]json_value_free done [14:13:08]process_json_proto returns [14:13:08]Send response to host [14:13:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73026,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:13:08]free response buf [14:13:08]execute_script done [14:13:08]execute_script returns [14:13:08]free content buf [14:13:08]Sock 9.Close socket [14:13:08]Sock 9.Thread stoped [14:13:10]recv_with_timeout no data received [14:13:10]CommunicateWithHost answer receiving error [14:13:10]CommunicateWithHost err = -3 [14:13:10]OFD Sender: Server communicate error [14:13:10]OFD Sender: Processing packet 73025 [packets to send 280, broken 278] [14:13:10]ProducePacketName [14:13:10]name=ofd_packets/00073025 [14:13:10]OFD Sender: To server: pG, [14:13:10]CommunicateWithHost lk.salyk.kg:30040 [14:13:10]ConnectInit lk.salyk.kg [14:13:15]ConnectInit Can't take IP for lk.salyk.kg [14:13:15]CommunicateWithHost connect error [14:13:15]CommunicateWithHost err = -1 [14:13:15]OFD Sender: Server communicate error [14:13:20]OFD Sender: Processing packet 73025 [packets to send 280, broken 278] [14:13:20]ProducePacketName [14:13:20]name=ofd_packets/00073025 [14:13:20]OFD Sender: To server: pG, [14:13:20]CommunicateWithHost lk.salyk.kg:30040 [14:13:20]ConnectInit lk.salyk.kg [14:13:25]ConnectInit Can't take IP for lk.salyk.kg [14:13:25]CommunicateWithHost connect error [14:13:25]CommunicateWithHost err = -1 [14:13:25]OFD Sender: Server communicate error [14:13:30]OFD Sender: Processing packet 73025 [packets to send 280, broken 278] [14:13:30]ProducePacketName [14:13:30]name=ofd_packets/00073025 [14:13:30]OFD Sender: To server: pG, [14:13:30]CommunicateWithHost lk.salyk.kg:30040 [14:13:30]ConnectInit lk.salyk.kg [14:13:35]ConnectInit Can't take IP for lk.salyk.kg [14:13:35]CommunicateWithHost connect error [14:13:35]CommunicateWithHost err = -1 [14:13:35]OFD Sender: Server communicate error [14:13:40]OFD Sender: Processing packet 73025 [packets to send 280, broken 278] [14:13:40]ProducePacketName [14:13:40]name=ofd_packets/00073025 [14:13:40]OFD Sender: To server: pG, [14:13:40]CommunicateWithHost lk.salyk.kg:30040 [14:13:40]ConnectInit lk.salyk.kg [14:13:41]Connected sock=9 [14:13:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 20 85 07 01 3E CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 6A 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1D 01 00 35 04 06 00 96 9E 28 60 03 83 62 9C 92 75 C3 77 A8 DB [14:13:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4A FE 47 00 2D 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1D 01 00 F4 03 04 00 49 3B 23 67 B6 04 01 00 00 8D FC 38 4F 46 39 CE 0E [14:13:41]CommunicateWithHost err = 0 [14:13:41]CheckOFDResponse [14:13:41]1017 (14) - 77093643461234 [14:13:41]1041 (16) - 0000000000874662 [14:13:41]1040 (4) - 73025 [14:13:41]1012 (4) - 31.10.2024 08:09 [14:13:41]1206 (1) - 0 [14:13:41]OFD Sender: Remove packet 73025 [14:13:41]ProducePacketName [14:13:41]name=ofd_packets/00073025 [14:13:41]NVStorageDeleteData [14:13:42]OFD Sender: Processing packet 73026 [packets to send 279, broken 278] [14:13:42]ProducePacketName [14:13:42]name=ofd_packets/00073026 [14:13:42]OFD Sender: To server: pG, [14:13:42]CommunicateWithHost lk.salyk.kg:30040 [14:13:42]ConnectInit lk.salyk.kg [14:13:45]Connected sock=9 [14:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 77 A0 07 01 1A 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 71 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1D 01 00 35 04 06 00 4C 2B 2B 21 C3 08 27 AB D0 EE E4 B0 82 2F [14:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E7 4E 47 00 30 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1D 01 00 F4 03 04 00 4D 3B 23 67 B6 04 01 00 00 B8 7E B6 61 3E AD 11 F9 [14:13:45]CommunicateWithHost err = 0 [14:13:45]CheckOFDResponse [14:13:45]1017 (14) - 77093643461234 [14:13:45]1041 (16) - 0000000000874662 [14:13:45]1040 (4) - 73026 [14:13:45]1012 (4) - 31.10.2024 08:09 [14:13:45]1206 (1) - 0 [14:13:45]OFD Sender: Remove packet 73026 [14:13:45]ProducePacketName [14:13:45]name=ofd_packets/00073026 [14:13:45]NVStorageDeleteData [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:13:57]recv_with_timeout no data received [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]recv_with_timeout no data received [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:54]recv_with_timeout no data received [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:47]accept exits with 7 [14:16:47]New connection [14:16:47]New thread 3067166052 created [14:16:47]Thread 3067309412 joined [14:16:47]Waiting for new connection... [14:16:47] Sock 7.Parse request [14:16:47]Sock 7.Check first char [14:16:47]Sock 7.First char is OK [14:16:47]request: POST /json_proto HTTP/1.0 [14:16:47]Method: POST [14:16:47]URL: /json_proto [14:16:47]Method is POST - this is cgi request [14:16:47]url: /json_proto [14:16:47]query_string will be loaded in cgi processing [14:16:47]execute_cgi json_proto POST (null) [14:16:47]execute_cgi path=json_proto method=POST [14:16:47]POST find Content-Length [14:16:47]Host: 172.17.43.195:8080 [14:16:47]Content-Length: 685 [14:16:47]Content-Type: application/json [14:16:47] [14:16:47]POST finish read [14:16:47]Found Content-Length = 685 [14:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 55.260, "sum" : 2149.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2149.00, "payments": [ { "type": 0, "sum" : 2149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:47]execute_script... [14:16:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 55.260, "sum" : 2149.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2149.00, "payments": [ { "type": 0, "sum" : 2149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:47]POST & json_proto [14:16:47]process_json_proto [14:16:47]json parsed OK: [14:16:47]protocol is kg_v1.0 [14:16:47]action value=close_receipt [14:16:47]process_action close_receipt [14:16:47]cmd_close_receipt [14:16:47]MH_GetDate [14:16:47]Write to MH i2c: F0 00 00 49 04 3C [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: F0 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: F0 09 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: F0 09 00 49 04 00 50 91 23 67 74 2C AD 66 63 [14:16:47]GetLastDocTimeStamp 1730383985 [14:16:47]current date 1730384208 [14:16:47]FM_GetShiftState [14:16:47]SAM_PROTO_GetShiftState [14:16:47]wFMCommunicate request_size=4 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 13 01 00 [14:16:47]Write to MH i2c: E2 08 00 4A 04 80 13 01 00 00 00 00 00 CB [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 0E 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 0E 00 4A 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 74 [14:16:47]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:16:47]wFMCommunicate OK [14:16:47]SAM_PROTO_GetShiftState done [14:16:47]FM_GetShiftState done [14:16:47]opened in 1730333258 [14:16:47]opened+sec_in_day 1730419658 [14:16:47]quantity*price = 214961 [14:16:47]sum+1 = 214962 [14:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 2149.00 Внесено: 3000.00 СДАЧА: 851.00 НСП 1% : 19.02 НДС 12% : 228.28 Наличными: 2149.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 102 31.10.2024 14:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73027 ФПД: 117834149884400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141648&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73027&fm=117834149884400&tin=02508201610067®Number=0000000000091644&sum=214900 [14:16:48]StoreToDocumentArchive [14:16:48]shift 557 fd 73027 [14:16:48]save to /storage/0557/doc_00073027 [14:16:48]save last doc name /storage/0557/doc_00073027 to /storage/kkm_last_doc_name [14:16:48]save OK [14:16:48]Clear old archive folders... [14:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:16:48]tlvbuf is 0153AB20 [14:16:48]SAM_PROTO_ClearQueue [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 09 00 00 [14:16:48]Write to MH i2c: E2 08 00 57 04 80 09 00 00 00 00 00 00 CD [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 57 04 00 90 00 CF [14:16:48]RAPDU: 90 00 [14:16:48]wFMCommunicate OK [14:16:48]SAM_PROTO_ClearQueue done [14:16:48]KKMCreateOFDPacket [14:16:48]OFDProtocolAddRootSTLVToBuf [14:16:48]FM_MakeSignedData [14:16:48]FM_MakeSignedData [14:16:48]SAM_PROTO_SignData [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 0D 01 02 [14:16:48]Write to MH i2c: E2 08 00 58 04 80 0D 01 02 00 00 00 00 D5 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 58 04 00 90 00 D0 [14:16:48]RAPDU: 90 00 [14:16:48]wFMCommunicate OK [14:16:48]wFMCommunicate request_size=255 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC D7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 47 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 47 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 59 00 00 00 00 07 04 06 00 74 47 03 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 50 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1D 01 00 35 04 06 00 6B 2B [14:16:48]Write to MH i2c: E2 02 01 59 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC D7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 47 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 47 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 59 00 00 00 00 07 04 06 00 74 47 03 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 50 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1D 01 00 35 04 06 00 6B 2B 00 00 E0 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 59 04 00 90 00 D1 [14:16:48]RAPDU: 90 00 [14:16:48]wFMCommunicate OK [14:16:48]wFMCommunicate request_size=9 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 0D 02 02 04 66 A5 71 F0 [14:16:48]Write to MH i2c: E2 0C 00 5A 04 80 0D 02 02 04 00 66 A5 71 F0 00 00 4C [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 5A 04 00 90 00 D2 [14:16:48]RAPDU: 90 00 [14:16:48]wFMCommunicate OK [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 0D 03 02 [14:16:48]Write to MH i2c: E2 08 00 5B 04 80 0D 03 02 00 00 00 00 DA [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 0B 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 0B 00 5B 04 00 18 BB FF C5 CA D9 E3 A3 90 00 9B [14:16:48]RAPDU: 18 BB FF C5 CA D9 E3 A3 90 00 [14:16:48]wFMCommunicate OK [14:16:48]SAM_PROTO_SignData done [14:16:48]FM_MakeSignedData done [14:16:48]CreateOFDProtocolMessage [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 11 00 00 [14:16:48]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 17 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2E [14:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:16:49]wFMCommunicate OK [14:16:49]CreateOFDProtocolMessage done [14:16:49]OFDSenderStorePacket 73027 [14:16:49]StoreOFDPacket docnum=73027 [14:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 57 C0 06 01 D9 DC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC D7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 47 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 47 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 59 00 00 00 00 07 04 06 00 74 47 03 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 50 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1D 01 00 35 04 06 00 6B 2B 66 A5 71 F0 18 BB FF C5 CA D9 E3 A3 [14:16:49]CheckFolder [14:16:49]dirname=/storage/ofd_packets [14:16:49]CheckFolder done [14:16:49]ProducePacketName [14:16:49]name=ofd_packets/00073027 [14:16:49]NVStorageSaveData ofd_packets/00073027 [14:16:49]File name is /storage/ofd_packets/00073027 [14:16:49]Write 300 bytes [14:16:49]NVStorageSaveData done [14:16:49]OFDSenderStorePacket done [14:16:49]KKMCreateOFDPacket done [14:16:49]NVStorageSaveData kkm_last_timestamp [14:16:49]File name is /storage/kkm_last_timestamp [14:16:49]Write 4 bytes [14:16:49]NVStorageSaveData done [14:16:49]ExternCall_PrintAddStr [14:16:49]wPrintStart [14:16:49]Write to MH i2c: 01 00 00 5D 04 61 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 FF 0F 76 [14:16:49]RasterBufferAndPrint [14:16:49]line Счет N : (1)952627 [14:16:49]line ИНН: 02508201610067 [14:16:49]line Контрольно-Кассовый Чек [14:16:49]line ПРОДАЖА [14:16:49]line ТРК (МРК, ГНК) : 71 [14:16:49]line Товар: 2711190000 [14:16:49]line ГАЗ-К-3 [14:16:49]line 55.260 * 38.90 [14:16:49]line = 2149.61 [14:16:49]line НДС 12% НСП 1% [14:16:49]line > о реализуемом товаре [14:16:49]line ОКРУГЛЕНИЕ: -0.61 [14:16:49]line ИТОГО: 2149.00 [14:16:49]line Внесено: 3000.00 [14:16:49]line СДАЧА: 851.00 [14:16:49]line НСП 1% : 19.02 [14:16:49]line НДС 12% : 228.28 [14:16:49]line Наличными: 2149.00 [14:16:49]line Безнал.: 0.00 [14:16:49]line Место: АЗС № 113 "Партнер Нефть" [14:16:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:16:49]line СНО: Общий режим [14:16:49]line Чек 102 31.10.2024 14:16 [14:16:49]line Смена: 557 ФФД: 1.0 [14:16:49]line ЗНМ: 0300000087 [14:16:49]line РНМ: 0000000000091644 [14:16:49]line Версия ККМ: 001 [14:16:49]line ФМ: 0000000000874662 [14:16:49]line ФД: 73027 [14:16:49]line ФПД: 117834149884400 [14:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141648&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73027&fm=117834149884400&tin=02508201610067®Number=0000000000091644&sum=214900 [14:16:49]written 0, free lines is 4095 [14:16:49]OFD Sender: Processing packet 73027 [packets to send 279, broken 278] [14:16:49]ProducePacketName [14:16:49]name=ofd_packets/00073027 [14:16:49]OFD Sender: To server: pG, [14:16:49]CommunicateWithHost lk.salyk.kg:30040 [14:16:49]ConnectInit lk.salyk.kg [14:16:49]Write to MH i2c: 01 00 00 88 04 8C [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 C9 0C 68 [14:16:49]RasterBufferAndPrint [14:16:49]line [14:16:49]line [14:16:49]line [14:16:49]line [14:16:49]line [14:16:49]written 0, free lines is 3280 [14:16:49]MH_Cut [14:16:49]Write to MH i2c: D1 01 00 8F 04 01 65 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: D1 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: D1 01 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: D1 01 00 8F 04 00 64 [14:16:49]Write to MH i2c: 01 00 00 90 04 94 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:50]*** Cut start [14:16:50]*** Partial cut [14:16:50]*** CUTSNS_PIN = 1 [14:16:50]*** CUTSNS_PIN = 0 [14:16:50]Connected sock=10 [14:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 57 C0 06 01 D9 DC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC D7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 47 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 47 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 59 00 00 00 00 07 04 06 00 74 47 03 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 50 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1D 01 00 35 04 06 00 6B 2B 66 A5 71 F0 18 BB FF C5 CA D9 E3 A3 [14:16:50]*** Brake cut motor [14:16:50]Read from MH i2c: 01 [14:16:50]MH_I2C_Read... [14:16:50]*** Stop cut motor [14:16:50]*** Cut end [14:16:50]Read from MH i2c: 01 07 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: 01 07 00 90 04 00 00 00 00 00 FF 0F A9 [14:16:50]process_action close_receipt done [14:16:50]requested_data is exist [14:16:50]produce_requested_data [14:16:50]requested_item fm.sn is exist - process it [14:16:50]wFMCommunicate request_size=4 [14:16:50]MH_SAM_APDU [14:16:50]CAPDU: 80 11 00 00 [14:16:50]Write to MH i2c: E2 08 00 91 04 80 11 00 00 00 00 00 00 0F [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:50]Read from MH i2c: E2 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 17 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 17 00 91 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 63 [14:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:16:50]wFMCommunicate OK [14:16:50]requested_item fd.num is exist - process it [14:16:50]SAM_PROTO_GetFieldsCounters [14:16:50]wFMCommunicate request_size=4 [14:16:50]MH_SAM_APDU [14:16:50]CAPDU: 80 13 00 00 [14:16:50]Write to MH i2c: E2 08 00 92 04 80 13 00 00 00 00 00 00 12 [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:51]Read from MH i2c: E2 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 62 00 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 62 00 92 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 43 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [14:16:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 43 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:51]wFMCommunicate OK [14:16:51]SAM_PROTO_GetFieldsCounters done [14:16:51]requested_item shift.num is exist - process it [14:16:51]requested_item shift.opened is exist - process it [14:16:51]req_shift_opened [14:16:51]FM_GetShiftState [14:16:51]SAM_PROTO_GetShiftState [14:16:51]wFMCommunicate request_size=4 [14:16:51]MH_SAM_APDU [14:16:51]CAPDU: 80 13 01 00 [14:16:51]Write to MH i2c: E2 08 00 93 04 80 13 01 00 00 00 00 00 14 [14:16:51]Write i2c OK [14:16:51]MH_I2C_Read... [14:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:51]Read from MH i2c: E2 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 0E 00 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 0E 00 93 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 BD [14:16:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:16:51]wFMCommunicate OK [14:16:51]SAM_PROTO_GetShiftState done [14:16:51]FM_GetShiftState done [14:16:51]req_shift_opened done [14:16:51]requested_item shift.open_date is exist - process it [14:16:51]req_shift_open_date [14:16:51]req_shift_open_date done [14:16:51]produce_requested_data done [14:16:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73027,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:16:51]process_action_free close_receipt [14:16:51]json_value_free [14:16:51]json_value_free done [14:16:51]process_json_proto returns [14:16:51]Send response to host [14:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73027,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:16:51]free response buf [14:16:51]execute_script done [14:16:51]execute_script returns [14:16:51]free content buf [14:16:51]Sock 7.Close socket [14:16:51]Sock 7.Thread stoped [14:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 34 F2 47 00 2A 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1D 01 00 F4 03 04 00 07 3C 23 67 B6 04 01 00 00 AD CE C2 65 E1 D2 79 63 [14:16:51]CommunicateWithHost err = 0 [14:16:51]CheckOFDResponse [14:16:51]1017 (14) - 77093643461234 [14:16:51]1041 (16) - 0000000000874662 [14:16:51]1040 (4) - 73027 [14:16:51]1012 (4) - 31.10.2024 08:12 [14:16:51]1206 (1) - 0 [14:16:51]OFD Sender: Remove packet 73027 [14:16:51]ProducePacketName [14:16:51]name=ofd_packets/00073027 [14:16:51]NVStorageDeleteData [14:16:51]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:16]recv_with_timeout no data received [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:27]recv_with_timeout no data received [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:02]recv_with_timeout no data received [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]recv_with_timeout no data received [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:41]recv_with_timeout no data received [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:17]recv_with_timeout no data received [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:43]recv_with_timeout no data received [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:44]recv_with_timeout no data received [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:55]recv_with_timeout no data received [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:53]recv_with_timeout no data received [14:26:58]OFD Sender: No OFD packet to send [14:26:58]accept exits with 9 [14:26:58]New connection [14:26:58]New thread 3067309412 created [14:26:58]Thread 3067166052 joined [14:26:58]Waiting for new connection... [14:26:58] Sock 9.Parse request [14:26:58]Sock 9.Check first char [14:26:58]Sock 9.First char is OK [14:26:58]request: POST /json_proto HTTP/1.0 [14:26:58]Method: POST [14:26:58]URL: /json_proto [14:26:58]Method is POST - this is cgi request [14:26:58]url: /json_proto [14:26:58]query_string will be loaded in cgi processing [14:26:58]execute_cgi json_proto POST (null) [14:26:58]execute_cgi path=json_proto method=POST [14:26:58]POST find Content-Length [14:26:58]Host: 172.17.43.195:8080 [14:26:58]Content-Length: 816 [14:26:58]Content-Type: application/json [14:26:58] [14:26:58]POST finish read [14:26:58]Found Content-Length = 816 [14:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:58]execute_script... [14:26:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:58]POST & json_proto [14:26:58]process_json_proto [14:26:58]json parsed OK: [14:26:58]protocol is kg_v1.0 [14:26:58]action value=close_receipt [14:26:58]process_action close_receipt [14:26:58]cmd_close_receipt [14:26:58]MH_GetDate [14:26:58]Write to MH i2c: F0 00 00 94 04 87 [14:26:58]Write i2c OK [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: F0 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: F0 09 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: F0 09 00 94 04 00 B3 93 23 67 74 2C AD 66 13 [14:26:58]GetLastDocTimeStamp 1730384208 [14:26:58]current date 1730384819 [14:26:58]FM_GetShiftState [14:26:58]SAM_PROTO_GetShiftState [14:26:58]wFMCommunicate request_size=4 [14:26:58]MH_SAM_APDU [14:26:58]CAPDU: 80 13 01 00 [14:26:58]Write to MH i2c: E2 08 00 95 04 80 13 01 00 00 00 00 00 16 [14:26:58]Write i2c OK [14:26:58]MH_I2C_Read... [14:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:58]Read from MH i2c: E2 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 0E 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 0E 00 95 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 BF [14:26:58]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:26:58]wFMCommunicate OK [14:26:58]SAM_PROTO_GetShiftState done [14:26:58]FM_GetShiftState done [14:26:58]opened in 1730333258 [14:26:58]opened+sec_in_day 1730419658 [14:26:58]quantity*price = 50041 [14:26:58]sum+1 = 50042 [14:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 103 31.10.2024 14:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 73028 ФПД: 57216925081137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T142659&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73028&fm=57216925081137&tin=02508201610067®Number=0000000000091644&sum=50041 [14:26:59]StoreToDocumentArchive [14:26:59]shift 557 fd 73028 [14:26:59]save to /storage/0557/doc_00073028 [14:26:59]save last doc name /storage/0557/doc_00073028 to /storage/kkm_last_doc_name [14:26:59]save OK [14:26:59]Clear old archive folders... [14:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:59]tlvbuf is 015033B0 [14:26:59]SAM_PROTO_ClearQueue [14:26:59]wFMCommunicate request_size=4 [14:26:59]MH_SAM_APDU [14:26:59]CAPDU: 80 09 00 00 [14:26:59]Write to MH i2c: E2 08 00 A2 04 80 09 00 00 00 00 00 00 18 [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 A2 04 00 90 00 1A [14:27:00]RAPDU: 90 00 [14:27:00]wFMCommunicate OK [14:27:00]SAM_PROTO_ClearQueue done [14:27:00]KKMCreateOFDPacket [14:27:00]OFDProtocolAddRootSTLVToBuf [14:27:00]FM_MakeSignedData [14:27:00]FM_MakeSignedData [14:27:00]SAM_PROTO_SignData [14:27:00]wFMCommunicate request_size=4 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 0D 01 02 [14:27:00]Write to MH i2c: E2 08 00 A3 04 80 0D 01 02 00 00 00 00 20 [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 A3 04 00 90 00 1B [14:27:00]RAPDU: 90 00 [14:27:00]wFMCommunicate OK [14:27:00]wFMCommunicate request_size=255 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B3 93 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1D 01 00 35 04 06 00 34 [14:27:00]Write to MH i2c: E2 02 01 A4 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B3 93 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1D 01 00 35 04 06 00 34 00 00 FD [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 A4 04 00 90 00 1C [14:27:00]RAPDU: 90 00 [14:27:00]wFMCommunicate OK [14:27:00]wFMCommunicate request_size=10 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 0D 02 02 05 09 DA 7E 9E 31 [14:27:00]Write to MH i2c: E2 0D 00 A5 04 80 0D 02 02 05 00 09 DA 7E 9E 31 00 00 5D [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 A5 04 00 90 00 1D [14:27:00]RAPDU: 90 00 [14:27:00]wFMCommunicate OK [14:27:00]wFMCommunicate request_size=4 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 0D 03 02 [14:27:00]Write to MH i2c: E2 08 00 A6 04 80 0D 03 02 00 00 00 00 25 [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 0B 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 0B 00 A6 04 00 A4 0C 31 02 4E D9 CE 9A 90 00 98 [14:27:00]RAPDU: A4 0C 31 02 4E D9 CE 9A 90 00 [14:27:00]wFMCommunicate OK [14:27:00]SAM_PROTO_SignData done [14:27:00]FM_MakeSignedData done [14:27:00]CreateOFDProtocolMessage [14:27:00]wFMCommunicate request_size=4 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 11 00 00 [14:27:00]Write to MH i2c: E2 08 00 A7 04 80 11 00 00 00 00 00 00 25 [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 17 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 17 00 A7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 79 [14:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:27:00]wFMCommunicate OK [14:27:00]CreateOFDProtocolMessage done [14:27:00]OFDSenderStorePacket 73028 [14:27:00]StoreOFDPacket docnum=73028 [14:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0A 3F 07 01 07 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B3 93 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1D 01 00 35 04 06 00 34 09 DA 7E 9E 31 A4 0C 31 02 4E D9 CE 9A [14:27:00]CheckFolder [14:27:00]dirname=/storage/ofd_packets [14:27:00]CheckFolder done [14:27:00]ProducePacketName [14:27:00]name=ofd_packets/00073028 [14:27:00]NVStorageSaveData ofd_packets/00073028 [14:27:00]File name is /storage/ofd_packets/00073028 [14:27:00]Write 301 bytes [14:27:00]NVStorageSaveData done [14:27:00]OFDSenderStorePacket done [14:27:00]KKMCreateOFDPacket done [14:27:00]NVStorageSaveData kkm_last_timestamp [14:27:00]File name is /storage/kkm_last_timestamp [14:27:00]Write 4 bytes [14:27:00]NVStorageSaveData done [14:27:00]ExternCall_PrintAddStr [14:27:00]wPrintStart [14:27:00]Write to MH i2c: 01 00 00 A8 04 AC [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: 01 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: 01 07 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [14:27:00]RasterBufferAndPrint [14:27:00]line Счет N : (1)952629 [14:27:00]line ИНН: 02508201610067 [14:27:00]line Контрольно-Кассовый Чек [14:27:00]line ПРОДАЖА [14:27:00]line ТРК (МРК, ГНК) : 53 [14:27:00]line Товар: 2710124130 [14:27:00]line Аи-92-К-5 [14:27:00]line 7.480 * 66.90 [14:27:00]line = 500.41 [14:27:00]line НДС 12% НСП 1% [14:27:00]line > о реализуемом товаре [14:27:00]line ИТОГО: 500.41 [14:27:00]line НСП 1% : 4.43 [14:27:00]line НДС 12% : 53.14 [14:27:00]line Наличными: 0.00 [14:27:00]line Безнал.: 500.41 [14:27:00]line Место: АЗС № 113 "Партнер Нефть" [14:27:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:27:00]line СНО: Общий режим [14:27:00]line Чек 103 31.10.2024 14:26 [14:27:00]line Смена: 557 ФФД: 1.0 [14:27:00]line ЗНМ: 0300000087 [14:27:00]line РНМ: 0000000000091644 [14:27:00]line Версия ККМ: 001 [14:27:00]line Платежная система: Бакай банк [14:27:00]line ФМ: 0000000000874662 [14:27:00]line ФД: 73028 [14:27:00]line ФПД: 57216925081137 [14:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T142659&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73028&fm=57216925081137&tin=02508201610067®Number=0000000000091644&sum=50041 [14:27:00]OFD Sender: Processing packet 73028 [packets to send 279, broken 278] [14:27:00]ProducePacketName [14:27:00]name=ofd_packets/00073028 [14:27:00]OFD Sender: To server: pG, [14:27:00]CommunicateWithHost lk.salyk.kg:30040 [14:27:00]ConnectInit lk.salyk.kg [14:27:00]written 0, free lines is 4095 [14:27:01]Write to MH i2c: 01 00 00 D2 04 D6 [14:27:01]Write i2c OK [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: 01 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: 01 07 00 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 DB 0C C4 [14:27:01]RasterBufferAndPrint [14:27:01]line [14:27:01]line [14:27:01]line [14:27:01]line [14:27:01]line [14:27:01]written 0, free lines is 3297 [14:27:01]MH_Cut [14:27:01]Write to MH i2c: D1 01 00 D9 04 01 AF [14:27:01]Write i2c OK [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: D1 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: D1 01 00 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: D1 01 00 D9 04 00 AE [14:27:01]Write to MH i2c: 01 00 00 DA 04 DE [14:27:01]Write i2c OK [14:27:01]MH_I2C_Read... [14:27:01]Connected sock=11 [14:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0A 3F 07 01 07 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B3 93 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1D 01 00 35 04 06 00 34 09 DA 7E 9E 31 A4 0C 31 02 4E D9 CE 9A [14:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 00 11 47 00 B1 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1D 01 00 F4 03 04 00 69 3E 23 67 B6 04 01 00 00 A8 66 F8 04 43 B1 EB 9A [14:27:01]CommunicateWithHost err = 0 [14:27:01]CheckOFDResponse [14:27:01]1017 (14) - 77093643461234 [14:27:01]1041 (16) - 0000000000874662 [14:27:01]1040 (4) - 73028 [14:27:01]1012 (4) - 31.10.2024 08:23 [14:27:01]1206 (1) - 0 [14:27:01]OFD Sender: Remove packet 73028 [14:27:01]ProducePacketName [14:27:01]name=ofd_packets/00073028 [14:27:01]NVStorageDeleteData [14:27:02]*** Cut start [14:27:02]*** Partial cut [14:27:02]*** CUTSNS_PIN = 1 [14:27:02]*** CUTSNS_PIN = 0 [14:27:02]OFD Sender: No OFD packet to send [14:27:02]*** Brake cut motor [14:27:02]Read from MH i2c: 01 [14:27:02]MH_I2C_Read... [14:27:02]*** Stop cut motor [14:27:02]*** Cut end [14:27:02]Read from MH i2c: 01 07 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: 01 07 00 DA 04 00 00 00 00 00 FF 0F F3 [14:27:02]process_action close_receipt done [14:27:02]requested_data is exist [14:27:02]produce_requested_data [14:27:02]requested_item fm.sn is exist - process it [14:27:02]wFMCommunicate request_size=4 [14:27:02]MH_SAM_APDU [14:27:02]CAPDU: 80 11 00 00 [14:27:02]Write to MH i2c: E2 08 00 DB 04 80 11 00 00 00 00 00 00 59 [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:02]Read from MH i2c: E2 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 17 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 17 00 DB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AD [14:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:27:02]wFMCommunicate OK [14:27:02]requested_item fd.num is exist - process it [14:27:02]SAM_PROTO_GetFieldsCounters [14:27:02]wFMCommunicate request_size=4 [14:27:02]MH_SAM_APDU [14:27:02]CAPDU: 80 13 00 00 [14:27:02]Write to MH i2c: E2 08 00 DC 04 80 13 00 00 00 00 00 00 5C [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:02]Read from MH i2c: E2 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 62 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 62 00 DC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 44 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [14:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 44 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:02]wFMCommunicate OK [14:27:02]SAM_PROTO_GetFieldsCounters done [14:27:02]requested_item shift.num is exist - process it [14:27:02]requested_item shift.opened is exist - process it [14:27:02]req_shift_opened [14:27:02]FM_GetShiftState [14:27:02]SAM_PROTO_GetShiftState [14:27:02]wFMCommunicate request_size=4 [14:27:02]MH_SAM_APDU [14:27:02]CAPDU: 80 13 01 00 [14:27:02]Write to MH i2c: E2 08 00 DD 04 80 13 01 00 00 00 00 00 5E [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:02]Read from MH i2c: E2 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 0E 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 0E 00 DD 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 07 [14:27:02]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:27:02]wFMCommunicate OK [14:27:02]SAM_PROTO_GetShiftState done [14:27:02]FM_GetShiftState done [14:27:02]req_shift_opened done [14:27:02]requested_item shift.open_date is exist - process it [14:27:02]req_shift_open_date [14:27:02]req_shift_open_date done [14:27:02]produce_requested_data done [14:27:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73028,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:27:02]process_action_free close_receipt [14:27:02]json_value_free [14:27:02]json_value_free done [14:27:02]process_json_proto returns [14:27:02]Send response to host [14:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73028,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:27:02]free response buf [14:27:02]execute_script done [14:27:02]execute_script returns [14:27:02]free content buf [14:27:02]Sock 9.Close socket [14:27:02]Sock 9.Thread stoped [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:18]recv_with_timeout no data received [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:35]recv_with_timeout no data received [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:20]recv_with_timeout no data received [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]accept exits with 7 [14:31:57]New connection [14:31:57]New thread 3067166052 created [14:31:57]Thread 3067309412 joined [14:31:57]Waiting for new connection... [14:31:57] Sock 7.Parse request [14:31:57]Sock 7.Check first char [14:31:57]Sock 7.First char is OK [14:31:57]request: POST /json_proto HTTP/1.0 [14:31:57]Method: POST [14:31:57]URL: /json_proto [14:31:57]Method is POST - this is cgi request [14:31:57]url: /json_proto [14:31:57]query_string will be loaded in cgi processing [14:31:57]execute_cgi json_proto POST (null) [14:31:57]execute_cgi path=json_proto method=POST [14:31:57]POST find Content-Length [14:31:57]Host: 172.17.43.195:8080 [14:31:57]Content-Length: 685 [14:31:57]Content-Type: application/json [14:31:57] [14:31:57]POST finish read [14:31:57]Found Content-Length = 685 [14:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:57]execute_script... [14:31: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)952630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:57]POST & json_proto [14:31:57]process_json_proto [14:31:57]json parsed OK: [14:31:57]protocol is kg_v1.0 [14:31:57]action value=close_receipt [14:31:57]process_action close_receipt [14:31:57]cmd_close_receipt [14:31:57]MH_GetDate [14:31:57]Write to MH i2c: F0 00 00 DE 04 D1 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: F0 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: F0 09 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: F0 09 00 DE 04 00 DE 94 23 67 74 2C AD 66 89 [14:31:57]GetLastDocTimeStamp 1730384819 [14:31:57]current date 1730385118 [14:31:57]FM_GetShiftState [14:31:57]SAM_PROTO_GetShiftState [14:31:57]wFMCommunicate request_size=4 [14:31:57]MH_SAM_APDU [14:31:57]CAPDU: 80 13 01 00 [14:31:57]Write to MH i2c: E2 08 00 DF 04 80 13 01 00 00 00 00 00 60 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0E 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0E 00 DF 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 09 [14:31:57]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:31:57]wFMCommunicate OK [14:31:57]SAM_PROTO_GetShiftState done [14:31:57]FM_GetShiftState done [14:31:57]opened in 1730333258 [14:31:57]opened+sec_in_day 1730419658 [14:31:57]quantity*price = 100011 [14:31:57]sum+1 = 100013 [14:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 104 31.10.2024 14:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73029 ФПД: 100194523862463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T143158&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73029&fm=100194523862463&tin=02508201610067®Number=0000000000091644&sum=100000 [14:31:58]StoreToDocumentArchive [14:31:58]shift 557 fd 73029 [14:31:58]save to /storage/0557/doc_00073029 [14:31:58]save last doc name /storage/0557/doc_00073029 to /storage/kkm_last_doc_name [14:31:58]save OK [14:31:58]Clear old archive folders... [14:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:31:58]tlvbuf is 01551270 [14:31:58]SAM_PROTO_ClearQueue [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 09 00 00 [14:31:58]Write to MH i2c: E2 08 00 EC 04 80 09 00 00 00 00 00 00 62 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 EC 04 00 90 00 64 [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_ClearQueue done [14:31:58]KKMCreateOFDPacket [14:31:58]OFDProtocolAddRootSTLVToBuf [14:31:58]FM_MakeSignedData [14:31:58]FM_MakeSignedData [14:31:58]SAM_PROTO_SignData [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 01 02 [14:31:58]Write to MH i2c: E2 08 00 ED 04 80 0D 01 02 00 00 00 00 6A [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 ED 04 00 90 00 65 [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]wFMCommunicate request_size=255 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DE 94 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1D 01 00 35 04 06 00 5B 20 [14:31:58]Write to MH i2c: E2 02 01 EE 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DE 94 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1D 01 00 35 04 06 00 5B 20 00 00 3C [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:59]Read from MH i2c: E2 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 03 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 03 00 EE 04 00 90 00 66 [14:31:59]RAPDU: 90 00 [14:31:59]wFMCommunicate OK [14:31:59]wFMCommunicate request_size=9 [14:31:59]MH_SAM_APDU [14:31:59]CAPDU: 80 0D 02 02 04 5B 00 D5 BF [14:31:59]Write to MH i2c: E2 0C 00 EF 04 80 0D 02 02 04 00 5B 00 D5 BF 00 00 64 [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:59]Read from MH i2c: E2 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 03 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 03 00 EF 04 00 90 00 67 [14:31:59]RAPDU: 90 00 [14:31:59]wFMCommunicate OK [14:31:59]wFMCommunicate request_size=4 [14:31:59]MH_SAM_APDU [14:31:59]CAPDU: 80 0D 03 02 [14:31:59]Write to MH i2c: E2 08 00 F0 04 80 0D 03 02 00 00 00 00 6F [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:59]Read from MH i2c: E2 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 0B 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 0B 00 F0 04 00 0A 57 FD C0 2A E5 82 06 90 00 25 [14:31:59]RAPDU: 0A 57 FD C0 2A E5 82 06 90 00 [14:31:59]wFMCommunicate OK [14:31:59]SAM_PROTO_SignData done [14:31:59]FM_MakeSignedData done [14:31:59]CreateOFDProtocolMessage [14:31:59]wFMCommunicate request_size=4 [14:31:59]MH_SAM_APDU [14:31:59]CAPDU: 80 11 00 00 [14:31:59]Write to MH i2c: E2 08 00 F1 04 80 11 00 00 00 00 00 00 6F [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:59]Read from MH i2c: E2 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 17 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 17 00 F1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C3 [14:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:31:59]wFMCommunicate OK [14:31:59]CreateOFDProtocolMessage done [14:31:59]OFDSenderStorePacket 73029 [14:31:59]StoreOFDPacket docnum=73029 [14:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C8 72 06 01 DC C3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DE 94 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1D 01 00 35 04 06 00 5B 20 5B 00 D5 BF 0A 57 FD C0 2A E5 82 06 [14:31:59]CheckFolder [14:31:59]dirname=/storage/ofd_packets [14:31:59]CheckFolder done [14:31:59]ProducePacketName [14:31:59]name=ofd_packets/00073029 [14:31:59]NVStorageSaveData ofd_packets/00073029 [14:31:59]File name is /storage/ofd_packets/00073029 [14:31:59]Write 300 bytes [14:31:59]NVStorageSaveData done [14:31:59]OFDSenderStorePacket done [14:31:59]KKMCreateOFDPacket done [14:31:59]NVStorageSaveData kkm_last_timestamp [14:31:59]File name is /storage/kkm_last_timestamp [14:31:59]Write 4 bytes [14:31:59]NVStorageSaveData done [14:31:59]ExternCall_PrintAddStr [14:31:59]wPrintStart [14:31:59]Write to MH i2c: 01 00 00 F2 04 F6 [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 07 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 07 00 F2 04 00 00 00 00 00 FF 0F 0B [14:31:59]RasterBufferAndPrint [14:31:59]line Счет N : (1)952630 [14:31:59]line ИНН: 02508201610067 [14:31:59]line Контрольно-Кассовый Чек [14:31:59]line ПРОДАЖА [14:31:59]line ТРК (МРК, ГНК) : 71 [14:31:59]line Товар: 2711190000 [14:31:59]line ГАЗ-К-3 [14:31:59]line 25.710 * 38.90 [14:31:59]line = 1000.12 [14:31:59]line НДС 12% НСП 1% [14:31:59]line > о реализуемом товаре [14:31:59]line ОКРУГЛЕНИЕ: -0.12 [14:31:59]line ИТОГО: 1000.00 [14:31:59]line Внесено: 1000.00 [14:31:59]line СДАЧА: 0.00 [14:31:59]line НСП 1% : 8.85 [14:31:59]line НДС 12% : 106.21 [14:31:59]line Наличными: 1000.00 [14:31:59]line Безнал.: 0.00 [14:31:59]line Место: АЗС № 113 "Партнер Нефть" [14:31:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:31:59]line СНО: Общий режим [14:31:59]line Чек 104 31.10.2024 14:31 [14:31:59]line Смена: 557 ФФД: 1.0 [14:31:59]line ЗНМ: 0300000087 [14:31:59]line РНМ: 0000000000091644 [14:31:59]line Версия ККМ: 001 [14:31:59]line ФМ: 0000000000874662 [14:31:59]line ФД: 73029 [14:31:59]line ФПД: 100194523862463 [14:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T143158&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73029&fm=100194523862463&tin=02508201610067®Number=0000000000091644&sum=100000 [14:31:59]written 0, free lines is 4095 [14:31:59]OFD Sender: Processing packet 73029 [packets to send 279, broken 278] [14:31:59]ProducePacketName [14:31:59]name=ofd_packets/00073029 [14:31:59]OFD Sender: To server: pG, [14:31:59]CommunicateWithHost lk.salyk.kg:30040 [14:31:59]ConnectInit lk.salyk.kg [14:31:59]Connected sock=10 [14:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C8 72 06 01 DC C3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DE 94 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1D 01 00 35 04 06 00 5B 20 5B 00 D5 BF 0A 57 FD C0 2A E5 82 06 [14:31:59]Write to MH i2c: 01 00 00 1D 05 22 [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 07 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 07 00 1D 05 00 00 00 00 00 DD 0C 12 [14:31:59]RasterBufferAndPrint [14:31:59]line [14:31:59]line [14:31:59]line [14:31:59]line [14:31:59]line [14:31:59]written 0, free lines is 3299 [14:31:59]MH_Cut [14:31:59]Write to MH i2c: D1 01 00 24 05 01 FB [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: D1 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: D1 01 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: D1 01 00 24 05 00 FA [14:31:59]Write to MH i2c: 01 00 00 25 05 2A [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CD 46 47 00 37 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1D 01 00 F4 03 04 00 93 3F 23 67 B6 04 01 00 00 B6 42 B6 16 7B FF 8A D1 [14:32:00]CommunicateWithHost err = 0 [14:32:00]CheckOFDResponse [14:32:00]1017 (14) - 77093643461234 [14:32:00]1041 (16) - 0000000000874662 [14:32:00]1040 (4) - 73029 [14:32:00]1012 (4) - 31.10.2024 08:28 [14:32:00]1206 (1) - 0 [14:32:00]OFD Sender: Remove packet 73029 [14:32:00]ProducePacketName [14:32:00]name=ofd_packets/00073029 [14:32:00]NVStorageDeleteData [14:32:00]*** Cut start [14:32:00]*** Partial cut [14:32:00]*** CUTSNS_PIN = 1 [14:32:00]*** CUTSNS_PIN = 0 [14:32:00]OFD Sender: No OFD packet to send [14:32:00]*** Brake cut motor [14:32:01]Read from MH i2c: 01 [14:32:01]MH_I2C_Read... [14:32:01]*** Stop cut motor [14:32:01]*** Cut end [14:32:01]Read from MH i2c: 01 07 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: 01 07 00 25 05 00 00 00 00 00 FF 0F 3F [14:32:01]process_action close_receipt done [14:32:01]requested_data is exist [14:32:01]produce_requested_data [14:32:01]requested_item fm.sn is exist - process it [14:32:01]wFMCommunicate request_size=4 [14:32:01]MH_SAM_APDU [14:32:01]CAPDU: 80 11 00 00 [14:32:01]Write to MH i2c: E2 08 00 26 05 80 11 00 00 00 00 00 00 A5 [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:01]Read from MH i2c: E2 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 17 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 17 00 26 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F9 [14:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:32:01]wFMCommunicate OK [14:32:01]requested_item fd.num is exist - process it [14:32:01]SAM_PROTO_GetFieldsCounters [14:32:01]wFMCommunicate request_size=4 [14:32:01]MH_SAM_APDU [14:32:01]CAPDU: 80 13 00 00 [14:32:01]Write to MH i2c: E2 08 00 27 05 80 13 00 00 00 00 00 00 A8 [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:01]Read from MH i2c: E2 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 62 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 62 00 27 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 45 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [14:32:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 45 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:01]wFMCommunicate OK [14:32:01]SAM_PROTO_GetFieldsCounters done [14:32:01]requested_item shift.num is exist - process it [14:32:01]requested_item shift.opened is exist - process it [14:32:01]req_shift_opened [14:32:01]FM_GetShiftState [14:32:01]SAM_PROTO_GetShiftState [14:32:01]wFMCommunicate request_size=4 [14:32:01]MH_SAM_APDU [14:32:01]CAPDU: 80 13 01 00 [14:32:01]Write to MH i2c: E2 08 00 28 05 80 13 01 00 00 00 00 00 AA [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:01]Read from MH i2c: E2 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 0E 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 0E 00 28 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 53 [14:32:01]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:32:01]wFMCommunicate OK [14:32:01]SAM_PROTO_GetShiftState done [14:32:01]FM_GetShiftState done [14:32:01]req_shift_opened done [14:32:01]requested_item shift.open_date is exist - process it [14:32:01]req_shift_open_date [14:32:01]req_shift_open_date done [14:32:01]produce_requested_data done [14:32:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73029,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:32:01]process_action_free close_receipt [14:32:01]json_value_free [14:32:01]json_value_free done [14:32:01]process_json_proto returns [14:32:01]Send response to host [14:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73029,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:32:01]free response buf [14:32:01]execute_script done [14:32:01]execute_script returns [14:32:01]free content buf [14:32:01]Sock 7.Close socket [14:32:01]Sock 7.Thread stoped [14:32:05]OFD Sender: No OFD packet to send [14:32:05]recv_with_timeout no data received [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:01]recv_with_timeout no data received [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:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:42]recv_with_timeout no data received [14:34:46]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:08]recv_with_timeout no data received [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:24]recv_with_timeout no data received [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:19]recv_with_timeout no data received [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:08]recv_with_timeout no data received [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:18]recv_with_timeout no data received [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:34]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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:47]accept exits with 9 [14:40:47]New connection [14:40:47]New thread 3067309412 created [14:40:47]Thread 3067166052 joined [14:40:47]Waiting for new connection... [14:40:47] Sock 9.Parse request [14:40:47]Sock 9.Check first char [14:40:47]Sock 9.First char is OK [14:40:47]request: POST /json_proto HTTP/1.0 [14:40:47]Method: POST [14:40:47]URL: /json_proto [14:40:47]Method is POST - this is cgi request [14:40:47]url: /json_proto [14:40:47]query_string will be loaded in cgi processing [14:40:47]execute_cgi json_proto POST (null) [14:40:47]execute_cgi path=json_proto method=POST [14:40:47]POST find Content-Length [14:40:47]Host: 172.17.43.195:8080 [14:40:47]Content-Length: 658 [14:40:47]Content-Type: application/json [14:40:47] [14:40:47]POST finish read [14:40:47]Found Content-Length = 658 [14:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:47]execute_script... [14:40:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:47]POST & json_proto [14:40:47]process_json_proto [14:40:47]json parsed OK: [14:40:47]protocol is kg_v1.0 [14:40:47]action value=close_receipt [14:40:47]process_action close_receipt [14:40:47]cmd_close_receipt [14:40:47]MH_GetDate [14:40:47]Write to MH i2c: F0 00 00 29 05 1D [14:40:47]Write i2c OK [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: F0 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: F0 09 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: F0 09 00 29 05 00 F0 96 23 67 74 2C AD 66 E9 [14:40:47]GetLastDocTimeStamp 1730385118 [14:40:47]current date 1730385648 [14:40:47]FM_GetShiftState [14:40:47]SAM_PROTO_GetShiftState [14:40:47]wFMCommunicate request_size=4 [14:40:47]MH_SAM_APDU [14:40:47]CAPDU: 80 13 01 00 [14:40:47]Write to MH i2c: E2 08 00 2A 05 80 13 01 00 00 00 00 00 AC [14:40:47]Write i2c OK [14:40:47]MH_I2C_Read... [14:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:47]Read from MH i2c: E2 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 0E 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 0E 00 2A 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 55 [14:40:47]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:40:47]wFMCommunicate OK [14:40:47]SAM_PROTO_GetShiftState done [14:40:47]FM_GetShiftState done [14:40:47]opened in 1730333258 [14:40:47]opened+sec_in_day 1730419658 [14:40:47]quantity*price = 40014 [14:40:47]sum+1 = 40015 [14:40:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 105 31.10.2024 14:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73030 ФПД: 168473723198570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144048&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73030&fm=168473723198570&tin=02508201610067®Number=0000000000091644&sum=40000 [14:40:48]StoreToDocumentArchive [14:40:48]shift 557 fd 73030 [14:40:48]save to /storage/0557/doc_00073030 [14:40:48]save last doc name /storage/0557/doc_00073030 to /storage/kkm_last_doc_name [14:40:48]save OK [14:40:48]Clear old archive folders... [14:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:40:48]tlvbuf is 015338C0 [14:40:48]SAM_PROTO_ClearQueue [14:40:48]wFMCommunicate request_size=4 [14:40:48]MH_SAM_APDU [14:40:48]CAPDU: 80 09 00 00 [14:40:48]Write to MH i2c: E2 08 00 37 05 80 09 00 00 00 00 00 00 AE [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:48]Read from MH i2c: E2 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 03 00 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 03 00 37 05 00 90 00 B0 [14:40:48]RAPDU: 90 00 [14:40:48]wFMCommunicate OK [14:40:48]SAM_PROTO_ClearQueue done [14:40:48]KKMCreateOFDPacket [14:40:48]OFDProtocolAddRootSTLVToBuf [14:40:48]FM_MakeSignedData [14:40:48]FM_MakeSignedData [14:40:48]SAM_PROTO_SignData [14:40:48]wFMCommunicate request_size=4 [14:40:48]MH_SAM_APDU [14:40:48]CAPDU: 80 0D 01 02 [14:40:48]Write to MH i2c: E2 08 00 38 05 80 0D 01 02 00 00 00 00 B6 [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:48]Read from MH i2c: E2 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 03 00 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 03 00 38 05 00 90 00 B1 [14:40:48]RAPDU: 90 00 [14:40:48]wFMCommunicate OK [14:40:48]wFMCommunicate request_size=253 [14:40:48]MH_SAM_APDU [14:40:48]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 69 00 00 00 F4 03 04 00 F0 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1D 01 00 35 04 06 00 99 39 D8 6C DC 6A [14:40:48]Write to MH i2c: E2 00 01 39 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 69 00 00 00 F4 03 04 00 F0 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1D 01 00 35 04 06 00 99 39 D8 6C DC 6A 00 00 01 [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:48]Read from MH i2c: E2 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 03 00 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 03 00 39 05 00 90 00 B2 [14:40:48]RAPDU: 90 00 [14:40:48]wFMCommunicate OK [14:40:48]wFMCommunicate request_size=4 [14:40:48]MH_SAM_APDU [14:40:48]CAPDU: 80 0D 03 02 [14:40:48]Write to MH i2c: E2 08 00 3A 05 80 0D 03 02 00 00 00 00 BA [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:48]Read from MH i2c: E2 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 0B 00 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 0B 00 3A 05 00 AE 3B 40 55 D0 DC 18 C5 90 00 C2 [14:40:48]RAPDU: AE 3B 40 55 D0 DC 18 C5 90 00 [14:40:48]wFMCommunicate OK [14:40:48]SAM_PROTO_SignData done [14:40:48]FM_MakeSignedData done [14:40:48]CreateOFDProtocolMessage [14:40:48]wFMCommunicate request_size=4 [14:40:48]MH_SAM_APDU [14:40:48]CAPDU: 80 11 00 00 [14:40:48]Write to MH i2c: E2 08 00 3B 05 80 11 00 00 00 00 00 00 BA [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:48]Read from MH i2c: E2 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 17 00 [14:40:48]MH_I2C_Read... [14:40:48]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 34 36 36 32 90 00 0E [14:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:40:48]wFMCommunicate OK [14:40:48]CreateOFDProtocolMessage done [14:40:48]OFDSenderStorePacket 73030 [14:40:48]StoreOFDPacket docnum=73030 [14:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 5D 24 00 01 D3 CA 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 69 00 00 00 F4 03 04 00 F0 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1D 01 00 35 04 06 00 99 39 D8 6C DC 6A AE 3B 40 55 D0 DC 18 C5 [14:40:48]CheckFolder [14:40:48]dirname=/storage/ofd_packets [14:40:48]CheckFolder done [14:40:48]ProducePacketName [14:40:48]name=ofd_packets/00073030 [14:40:48]NVStorageSaveData ofd_packets/00073030 [14:40:48]File name is /storage/ofd_packets/00073030 [14:40:48]Write 294 bytes [14:40:48]NVStorageSaveData done [14:40:48]OFDSenderStorePacket done [14:40:48]KKMCreateOFDPacket done [14:40:48]NVStorageSaveData kkm_last_timestamp [14:40:48]File name is /storage/kkm_last_timestamp [14:40:48]Write 4 bytes [14:40:48]NVStorageSaveData done [14:40:48]ExternCall_PrintAddStr [14:40:48]wPrintStart [14:40:48]Write to MH i2c: 01 00 00 3C 05 41 [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: 01 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: 01 07 00 [14:40:48]MH_I2C_Read... [14:40:49]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 FF 0F 56 [14:40:49]RasterBufferAndPrint [14:40:49]line Счет N : (1)952632 [14:40:49]line ИНН: 02508201610067 [14:40:49]line Контрольно-Кассовый Чек [14:40:49]line ПРОДАЖА [14:40:49]line ТРК (МРК, ГНК) : 51 [14:40:49]line Товар: 50.50.0 [14:40:49]line Super 92 [14:40:49]line 5.850 * 68.40 [14:40:49]line = 400.14 [14:40:49]line НДС 12% НСП 1% [14:40:49]line > о реализуемом товаре [14:40:49]line ОКРУГЛЕНИЕ: -0.14 [14:40:49]line ИТОГО: 400.00 [14:40:49]line Внесено: 400.00 [14:40:49]line СДАЧА: 0.00 [14:40:49]line НСП 1% : 3.54 [14:40:49]line НДС 12% : 42.49 [14:40:49]line Наличными: 400.00 [14:40:49]line Безнал.: 0.00 [14:40:49]line Место: АЗС № 113 "Партнер Нефть" [14:40:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:40:49]line СНО: Общий режим [14:40:49]line Чек 105 31.10.2024 14:40 [14:40:49]line Смена: 557 ФФД: 1.0 [14:40:49]line ЗНМ: 0300000087 [14:40:49]line РНМ: 0000000000091644 [14:40:49]line Версия ККМ: 001 [14:40:49]line ФМ: 0000000000874662 [14:40:49]line ФД: 73030 [14:40:49]line ФПД: 168473723198570 [14:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144048&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73030&fm=168473723198570&tin=02508201610067®Number=0000000000091644&sum=40000 [14:40:49]OFD Sender: Processing packet 73030 [packets to send 279, broken 278] [14:40:49]ProducePacketName [14:40:49]name=ofd_packets/00073030 [14:40:49]OFD Sender: To server: pG, [14:40:49]CommunicateWithHost lk.salyk.kg:30040 [14:40:49]ConnectInit lk.salyk.kg [14:40:49]written 0, free lines is 4095 [14:40:49]Write to MH i2c: 01 00 00 67 05 6C [14:40:49]Write i2c OK [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: 01 [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: 01 07 00 [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: 01 07 00 67 05 00 00 00 00 00 D5 0C 54 [14:40:49]RasterBufferAndPrint [14:40:49]line [14:40:49]line [14:40:49]line [14:40:49]line [14:40:49]line [14:40:49]written 0, free lines is 3292 [14:40:49]MH_Cut [14:40:49]Write to MH i2c: D1 01 00 6E 05 01 45 [14:40:49]Write i2c OK [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: D1 [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: D1 01 00 [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: D1 01 00 6E 05 00 44 [14:40:49]Write to MH i2c: 01 00 00 6F 05 74 [14:40:49]Write i2c OK [14:40:49]MH_I2C_Read... [14:40:50]*** Cut start [14:40:50]*** Partial cut [14:40:50]*** CUTSNS_PIN = 1 [14:40:50]*** CUTSNS_PIN = 0 [14:40:50]*** Brake cut motor [14:40:51]Connected sock=10 [14:40:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 5D 24 00 01 D3 CA 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 69 00 00 00 F4 03 04 00 F0 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1D 01 00 35 04 06 00 99 39 D8 6C DC 6A AE 3B 40 55 D0 DC 18 C5 [14:40:51]Read from MH i2c: 01 [14:40:51]*** Stop cut motor [14:40:51]*** Cut end [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 FF 0F 89 [14:40:51]process_action close_receipt done [14:40:51]requested_data is exist [14:40:51]produce_requested_data [14:40:51]requested_item fm.sn is exist - process it [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 11 00 00 [14:40:51]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 17 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 43 [14:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:40:51]wFMCommunicate OK [14:40:51]requested_item fd.num is exist - process it [14:40:51]SAM_PROTO_GetFieldsCounters [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 13 00 00 [14:40:51]Write to MH i2c: E2 08 00 71 05 80 13 00 00 00 00 00 00 F2 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 62 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 62 00 71 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 46 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [14:40:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 46 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:51]wFMCommunicate OK [14:40:51]SAM_PROTO_GetFieldsCounters done [14:40:51]requested_item shift.num is exist - process it [14:40:51]requested_item shift.opened is exist - process it [14:40:51]req_shift_opened [14:40:51]FM_GetShiftState [14:40:51]SAM_PROTO_GetShiftState [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 13 01 00 [14:40:51]Write to MH i2c: E2 08 00 72 05 80 13 01 00 00 00 00 00 F4 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 0E 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 0E 00 72 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 9D [14:40:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:40:51]wFMCommunicate OK [14:40:51]SAM_PROTO_GetShiftState done [14:40:51]FM_GetShiftState done [14:40:51]req_shift_opened done [14:40:51]requested_item shift.open_date is exist - process it [14:40:51]req_shift_open_date [14:40:51]req_shift_open_date done [14:40:51]produce_requested_data done [14:40:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73030,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:40:51]process_action_free close_receipt [14:40:51]json_value_free [14:40:51]json_value_free done [14:40:51]process_json_proto returns [14:40:51]Send response to host [14:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73030,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:40:51]free response buf [14:40:51]execute_script done [14:40:51]execute_script returns [14:40:51]free content buf [14:40:51]Sock 9.Close socket [14:40:51]Sock 9.Thread stoped [14:40:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2E 7E 47 00 5A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1D 01 00 F4 03 04 00 A7 41 23 67 B6 04 01 00 00 DC 3E 6F C3 83 6D 80 B4 [14:40:51]CommunicateWithHost err = 0 [14:40:51]CheckOFDResponse [14:40:51]1017 (14) - 77093643461234 [14:40:51]1041 (16) - 0000000000874662 [14:40:51]1040 (4) - 73030 [14:40:51]1012 (4) - 31.10.2024 08:36 [14:40:51]1206 (1) - 0 [14:40:51]OFD Sender: Remove packet 73030 [14:40:51]ProducePacketName [14:40:51]name=ofd_packets/00073030 [14:40:51]NVStorageDeleteData [14:40:52]OFD Sender: No OFD packet to send [14:40:56]recv_with_timeout no data received [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:16]recv_with_timeout no data received [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:33]accept exits with 7 [14:42:33]New connection [14:42:33]New thread 3067166052 created [14:42:33]Thread 3067309412 joined [14:42:33]Waiting for new connection... [14:42:33] Sock 7.Parse request [14:42:33]Sock 7.Check first char [14:42:33]Sock 7.First char is OK [14:42:33]request: POST /json_proto HTTP/1.0 [14:42:33]Method: POST [14:42:33]URL: /json_proto [14:42:33]Method is POST - this is cgi request [14:42:33]url: /json_proto [14:42:33]query_string will be loaded in cgi processing [14:42:33]execute_cgi json_proto POST (null) [14:42:33]execute_cgi path=json_proto method=POST [14:42:33]POST find Content-Length [14:42:33]Host: 172.17.43.195:8080 [14:42:33]Content-Length: 822 [14:42:33]Content-Type: application/json [14:42:33] [14:42:33]POST finish read [14:42:33]Found Content-Length = 822 [14:42:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.510, "sum" : 1614.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1614.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:33]execute_script... [14:42: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)952631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.510, "sum" : 1614.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1614.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:33]POST & json_proto [14:42:33]process_json_proto [14:42:33]json parsed OK: [14:42:33]protocol is kg_v1.0 [14:42:33]action value=close_receipt [14:42:33]process_action close_receipt [14:42:33]cmd_close_receipt [14:42:33]MH_GetDate [14:42:33]Write to MH i2c: F0 00 00 73 05 67 [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: F0 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: F0 09 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: F0 09 00 73 05 00 5A 97 23 67 74 2C AD 66 9E [14:42:33]GetLastDocTimeStamp 1730385648 [14:42:33]current date 1730385754 [14:42:33]FM_GetShiftState [14:42:33]SAM_PROTO_GetShiftState [14:42:33]wFMCommunicate request_size=4 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 13 01 00 [14:42:33]Write to MH i2c: E2 08 00 74 05 80 13 01 00 00 00 00 00 F6 [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 0E 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 0E 00 74 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 9F [14:42:33]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:42:33]wFMCommunicate OK [14:42:33]SAM_PROTO_GetShiftState done [14:42:33]FM_GetShiftState done [14:42:33]opened in 1730333258 [14:42:33]opened+sec_in_day 1730419658 [14:42:33]quantity*price = 161473 [14:42:33]sum+1 = 161475 [14:42:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1614.74 НСП 1% : 14.29 НДС 12% : 171.48 Наличными: 0.00 Безнал.: 1614.74 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 106 31.10.2024 14:42 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 73031 ФПД: 86584611179157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144234&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73031&fm=86584611179157&tin=02508201610067®Number=0000000000091644&sum=161474 [14:42:34]StoreToDocumentArchive [14:42:34]shift 557 fd 73031 [14:42:34]save to /storage/0557/doc_00073031 [14:42:34]save last doc name /storage/0557/doc_00073031 to /storage/kkm_last_doc_name [14:42:34]save OK [14:42:34]Clear old archive folders... [14:42:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:42:34]tlvbuf is 015354E0 [14:42:34]SAM_PROTO_ClearQueue [14:42:34]wFMCommunicate request_size=4 [14:42:34]MH_SAM_APDU [14:42:34]CAPDU: 80 09 00 00 [14:42:34]Write to MH i2c: E2 08 00 81 05 80 09 00 00 00 00 00 00 F8 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:34]Read from MH i2c: E2 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 81 05 00 90 00 FA [14:42:34]RAPDU: 90 00 [14:42:34]wFMCommunicate OK [14:42:34]SAM_PROTO_ClearQueue done [14:42:34]KKMCreateOFDPacket [14:42:34]OFDProtocolAddRootSTLVToBuf [14:42:34]FM_MakeSignedData [14:42:34]FM_MakeSignedData [14:42:34]SAM_PROTO_SignData [14:42:34]wFMCommunicate request_size=4 [14:42:34]MH_SAM_APDU [14:42:34]CAPDU: 80 0D 01 02 [14:42:34]Write to MH i2c: E2 08 00 82 05 80 0D 01 02 00 00 00 00 00 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:34]Read from MH i2c: E2 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [14:42:34]RAPDU: 90 00 [14:42:34]wFMCommunicate OK [14:42:34]wFMCommunicate request_size=255 [14:42:34]MH_SAM_APDU [14:42:34]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 26 A2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 76 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 76 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 5A 97 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1D 01 00 35 04 06 00 4E BF [14:42:34]Write to MH i2c: E2 02 01 83 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 26 A2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 76 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 76 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 5A 97 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1D 01 00 35 04 06 00 4E BF 00 00 C4 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:34]Read from MH i2c: E2 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [14:42:34]RAPDU: 90 00 [14:42:34]wFMCommunicate OK [14:42:34]wFMCommunicate request_size=9 [14:42:34]MH_SAM_APDU [14:42:34]CAPDU: 80 0D 02 02 04 8C FE 0A 95 [14:42:34]Write to MH i2c: E2 0C 00 84 05 80 0D 02 02 04 00 8C FE 0A 95 00 00 34 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:35]Read from MH i2c: E2 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 03 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 03 00 84 05 00 90 00 FD [14:42:35]RAPDU: 90 00 [14:42:35]wFMCommunicate OK [14:42:35]wFMCommunicate request_size=4 [14:42:35]MH_SAM_APDU [14:42:35]CAPDU: 80 0D 03 02 [14:42:35]Write to MH i2c: E2 08 00 85 05 80 0D 03 02 00 00 00 00 05 [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:35]Read from MH i2c: E2 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 0B 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 0B 00 85 05 00 15 8E 12 4B 76 24 48 4E 90 00 36 [14:42:35]RAPDU: 15 8E 12 4B 76 24 48 4E 90 00 [14:42:35]wFMCommunicate OK [14:42:35]SAM_PROTO_SignData done [14:42:35]FM_MakeSignedData done [14:42:35]CreateOFDProtocolMessage [14:42:35]wFMCommunicate request_size=4 [14:42:35]MH_SAM_APDU [14:42:35]CAPDU: 80 11 00 00 [14:42:35]Write to MH i2c: E2 08 00 86 05 80 11 00 00 00 00 00 00 05 [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:35]Read from MH i2c: E2 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 17 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 17 00 86 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 59 [14:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:42:35]wFMCommunicate OK [14:42:35]CreateOFDProtocolMessage done [14:42:35]OFDSenderStorePacket 73031 [14:42:35]StoreOFDPacket docnum=73031 [14:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 F8 28 06 01 BC 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 26 A2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 76 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 76 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 5A 97 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1D 01 00 35 04 06 00 4E BF 8C FE 0A 95 15 8E 12 4B 76 24 48 4E [14:42:35]CheckFolder [14:42:35]dirname=/storage/ofd_packets [14:42:35]CheckFolder done [14:42:35]ProducePacketName [14:42:35]name=ofd_packets/00073031 [14:42:35]NVStorageSaveData ofd_packets/00073031 [14:42:35]File name is /storage/ofd_packets/00073031 [14:42:35]Write 300 bytes [14:42:35]NVStorageSaveData done [14:42:35]OFDSenderStorePacket done [14:42:35]KKMCreateOFDPacket done [14:42:35]NVStorageSaveData kkm_last_timestamp [14:42:35]File name is /storage/kkm_last_timestamp [14:42:35]Write 4 bytes [14:42:35]NVStorageSaveData done [14:42:35]ExternCall_PrintAddStr [14:42:35]wPrintStart [14:42:35]Write to MH i2c: 01 00 00 87 05 8C [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: 01 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: 01 07 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: 01 07 00 87 05 00 00 00 00 00 FF 0F A1 [14:42:35]RasterBufferAndPrint [14:42:35]line Счет N : (1)952631 [14:42:35]line ИНН: 02508201610067 [14:42:35]line Контрольно-Кассовый Чек [14:42:35]line ПРОДАЖА [14:42:35]line ТРК (МРК, ГНК) : 71 [14:42:35]line Товар: 2711190000 [14:42:35]line ГАЗ-К-3 [14:42:35]line 41.510 * 38.90 [14:42:35]line = 1614.74 [14:42:35]line НДС 12% НСП 1% [14:42:35]line > о реализуемом товаре [14:42:35]line ИТОГО: 1614.74 [14:42:35]line НСП 1% : 14.29 [14:42:35]line НДС 12% : 171.48 [14:42:35]line Наличными: 0.00 [14:42:35]line Безнал.: 1614.74 [14:42:35]line Место: АЗС № 113 "Партнер Нефть" [14:42:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:42:35]line СНО: Общий режим [14:42:35]line Чек 106 31.10.2024 14:42 [14:42:35]line Смена: 557 ФФД: 1.0 [14:42:35]line ЗНМ: 0300000087 [14:42:35]line РНМ: 0000000000091644 [14:42:35]line Версия ККМ: 001 [14:42:35]line Платежная система: Бакай банк [14:42:35]line ФМ: 0000000000874662 [14:42:35]line ФД: 73031 [14:42:35]line ФПД: 86584611179157 [14:42:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144234&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73031&fm=86584611179157&tin=02508201610067®Number=0000000000091644&sum=161474 [14:42:35]written 0, free lines is 4095 [14:42:35]OFD Sender: Processing packet 73031 [packets to send 279, broken 278] [14:42:35]ProducePacketName [14:42:35]name=ofd_packets/00073031 [14:42:35]OFD Sender: To server: pG, [14:42:35]CommunicateWithHost lk.salyk.kg:30040 [14:42:35]ConnectInit lk.salyk.kg [14:42:35]Write to MH i2c: 01 00 00 B1 05 B6 [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: 01 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: 01 07 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 DD 0C A6 [14:42:35]RasterBufferAndPrint [14:42:35]line [14:42:35]line [14:42:35]line [14:42:35]line [14:42:35]line [14:42:35]written 0, free lines is 3300 [14:42:35]MH_Cut [14:42:35]Write to MH i2c: D1 01 00 B8 05 01 8F [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: D1 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: D1 01 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: D1 01 00 B8 05 00 8E [14:42:35]Write to MH i2c: 01 00 00 B9 05 BE [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:36]Connected sock=10 [14:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 F8 28 06 01 BC 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 26 A2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 76 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 76 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 5A 97 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1D 01 00 35 04 06 00 4E BF 8C FE 0A 95 15 8E 12 4B 76 24 48 4E [14:42:36]*** Cut start [14:42:36]*** Partial cut [14:42:36]*** CUTSNS_PIN = 1 [14:42:36]*** CUTSNS_PIN = 0 [14:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E3 C7 47 00 98 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1D 01 00 F4 03 04 00 10 42 23 67 B6 04 01 00 00 6E 99 89 67 01 AB 05 AA [14:42:36]CommunicateWithHost err = 0 [14:42:36]CheckOFDResponse [14:42:36]1017 (14) - 77093643461234 [14:42:36]1041 (16) - 0000000000874662 [14:42:36]1040 (4) - 73031 [14:42:36]1012 (4) - 31.10.2024 08:38 [14:42:36]1206 (1) - 0 [14:42:36]OFD Sender: Remove packet 73031 [14:42:36]ProducePacketName [14:42:36]name=ofd_packets/00073031 [14:42:36]NVStorageDeleteData [14:42:36]*** Brake cut motor [14:42:36]Read from MH i2c: 01 [14:42:36]MH_I2C_Read... [14:42:36]*** Stop cut motor [14:42:37]*** Cut end [14:42:37]Read from MH i2c: 01 07 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: 01 07 00 B9 05 00 00 00 00 00 FF 0F D3 [14:42:37]process_action close_receipt done [14:42:37]requested_data is exist [14:42:37]produce_requested_data [14:42:37]requested_item fm.sn is exist - process it [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 11 00 00 [14:42:37]Write to MH i2c: E2 08 00 BA 05 80 11 00 00 00 00 00 00 39 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 17 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 17 00 BA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8D [14:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:42:37]wFMCommunicate OK [14:42:37]requested_item fd.num is exist - process it [14:42:37]SAM_PROTO_GetFieldsCounters [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 13 00 00 [14:42:37]Write to MH i2c: E2 08 00 BB 05 80 13 00 00 00 00 00 00 3C [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]OFD Sender: No OFD packet to send [14:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 62 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 62 00 BB 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 47 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14:42:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 47 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:37]wFMCommunicate OK [14:42:37]SAM_PROTO_GetFieldsCounters done [14:42:37]requested_item shift.num is exist - process it [14:42:37]requested_item shift.opened is exist - process it [14:42:37]req_shift_opened [14:42:37]FM_GetShiftState [14:42:37]SAM_PROTO_GetShiftState [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 13 01 00 [14:42:37]Write to MH i2c: E2 08 00 BC 05 80 13 01 00 00 00 00 00 3E [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 0E 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 0E 00 BC 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E7 [14:42:37]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:42:37]wFMCommunicate OK [14:42:37]SAM_PROTO_GetShiftState done [14:42:37]FM_GetShiftState done [14:42:37]req_shift_opened done [14:42:37]requested_item shift.open_date is exist - process it [14:42:37]req_shift_open_date [14:42:37]req_shift_open_date done [14:42:37]produce_requested_data done [14:42:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73031,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:42:37]process_action_free close_receipt [14:42:37]json_value_free [14:42:37]json_value_free done [14:42:37]process_json_proto returns [14:42:37]Send response to host [14:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73031,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:42:37]free response buf [14:42:37]execute_script done [14:42:37]execute_script returns [14:42:37]free content buf [14:42:37]Sock 7.Close socket [14:42:37]Sock 7.Thread stoped [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43: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:20]accept exits with 9 [14:44:20]New connection [14:44:20]New thread 3067309412 created [14:44:20]Thread 3067166052 joined [14:44:20]Waiting for new connection... [14:44:20] Sock 9.Parse request [14:44:20]Sock 9.Check first char [14:44:20]Sock 9.First char is OK [14:44:20]request: POST /json_proto HTTP/1.0 [14:44:20]Method: POST [14:44:20]URL: /json_proto [14:44:20]Method is POST - this is cgi request [14:44:20]url: /json_proto [14:44:20]query_string will be loaded in cgi processing [14:44:20]execute_cgi json_proto POST (null) [14:44:20]execute_cgi path=json_proto method=POST [14:44:20]POST find Content-Length [14:44:20]Host: 172.17.43.195:8080 [14:44:20]Content-Length: 816 [14:44:20]Content-Type: application/json [14:44:20] [14:44:20]POST finish read [14:44:20]Found Content-Length = 816 [14:44:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.190, "sum" : 385.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 385.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:20]execute_script... [14:44:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.190, "sum" : 385.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 385.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:20]POST & json_proto [14:44:20]process_json_proto [14:44:20]json parsed OK: [14:44:20]protocol is kg_v1.0 [14:44:20]action value=close_receipt [14:44:20]process_action close_receipt [14:44:20]cmd_close_receipt [14:44:20]MH_GetDate [14:44:20]Write to MH i2c: F0 00 00 BD 05 B1 [14:44:20]Write i2c OK [14:44:20]MH_I2C_Read... [14:44:20]Read from MH i2c: F0 [14:44:20]MH_I2C_Read... [14:44:20]Read from MH i2c: F0 09 00 [14:44:20]MH_I2C_Read... [14:44:20]Read from MH i2c: F0 09 00 BD 05 00 C5 97 23 67 74 2C AD 66 53 [14:44:20]GetLastDocTimeStamp 1730385754 [14:44:20]current date 1730385861 [14:44:20]FM_GetShiftState [14:44:20]SAM_PROTO_GetShiftState [14:44:20]wFMCommunicate request_size=4 [14:44:20]MH_SAM_APDU [14:44:20]CAPDU: 80 13 01 00 [14:44:20]Write to MH i2c: E2 08 00 BE 05 80 13 01 00 00 00 00 00 40 [14:44:20]Write i2c OK [14:44:20]MH_I2C_Read... [14:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:20]Read from MH i2c: E2 [14:44:20]MH_I2C_Read... [14:44:20]Read from MH i2c: E2 0E 00 [14:44:20]MH_I2C_Read... [14:44:20]Read from MH i2c: E2 0E 00 BE 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E9 [14:44:20]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:44:20]wFMCommunicate OK [14:44:20]SAM_PROTO_GetShiftState done [14:44:20]FM_GetShiftState done [14:44:20]opened in 1730333258 [14:44:20]opened+sec_in_day 1730419658 [14:44:20]quantity*price = 38509 [14:44:20]sum+1 = 38511 [14:44:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 385.10 НСП 1% : 3.41 НДС 12% : 40.90 Наличными: 0.00 Безнал.: 385.10 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 107 31.10.2024 14:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 73032 ФПД: 139528393409676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144421&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73032&fm=139528393409676&tin=02508201610067®Number=0000000000091644&sum=38510 [14:44:21]StoreToDocumentArchive [14:44:21]shift 557 fd 73032 [14:44:21]save to /storage/0557/doc_00073032 [14:44:21]save last doc name /storage/0557/doc_00073032 to /storage/kkm_last_doc_name [14:44:21]save OK [14:44:21]Clear old archive folders... [14:44:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:21]tlvbuf is 015522D0 [14:44:21]SAM_PROTO_ClearQueue [14:44:21]wFMCommunicate request_size=4 [14:44:21]MH_SAM_APDU [14:44:21]CAPDU: 80 09 00 00 [14:44:21]Write to MH i2c: E2 08 00 CB 05 80 09 00 00 00 00 00 00 42 [14:44:21]Write i2c OK [14:44:21]MH_I2C_Read... [14:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:21]Read from MH i2c: E2 [14:44:21]MH_I2C_Read... [14:44:21]Read from MH i2c: E2 03 00 [14:44:21]MH_I2C_Read... [14:44:21]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [14:44:21]RAPDU: 90 00 [14:44:21]wFMCommunicate OK [14:44:21]SAM_PROTO_ClearQueue done [14:44:21]KKMCreateOFDPacket [14:44:21]OFDProtocolAddRootSTLVToBuf [14:44:21]FM_MakeSignedData [14:44:21]FM_MakeSignedData [14:44:21]SAM_PROTO_SignData [14:44:21]wFMCommunicate request_size=4 [14:44:21]MH_SAM_APDU [14:44:21]CAPDU: 80 0D 01 02 [14:44:21]Write to MH i2c: E2 08 00 CC 05 80 0D 01 02 00 00 00 00 4A [14:44:21]Write i2c OK [14:44:21]MH_I2C_Read... [14:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:21]Read from MH i2c: E2 [14:44:21]MH_I2C_Read... [14:44:21]Read from MH i2c: E2 03 00 [14:44:21]MH_I2C_Read... [14:44:21]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [14:44:21]RAPDU: 90 00 [14:44:21]wFMCommunicate OK [14:44:21]wFMCommunicate request_size=255 [14:44:21]MH_SAM_APDU [14:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6E 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 C5 97 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1D 01 00 35 04 06 00 7E [14:44:21]Write to MH i2c: E2 02 01 CD 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6E 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 C5 97 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1D 01 00 35 04 06 00 7E 00 00 97 [14:44:21]Write i2c OK [14:44:21]MH_I2C_Read... [14:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:22]Read from MH i2c: E2 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: E2 03 00 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: E2 03 00 CD 05 00 90 00 46 [14:44:22]RAPDU: 90 00 [14:44:22]wFMCommunicate OK [14:44:22]wFMCommunicate request_size=10 [14:44:22]MH_SAM_APDU [14:44:22]CAPDU: 80 0D 02 02 05 E6 7C 53 44 8C [14:44:22]Write to MH i2c: E2 0D 00 CE 05 80 0D 02 02 05 00 E6 7C 53 44 8C 00 00 DC [14:44:22]Write i2c OK [14:44:22]MH_I2C_Read... [14:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:22]Read from MH i2c: E2 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: E2 03 00 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: E2 03 00 CE 05 00 90 00 47 [14:44:22]RAPDU: 90 00 [14:44:22]wFMCommunicate OK [14:44:22]wFMCommunicate request_size=4 [14:44:22]MH_SAM_APDU [14:44:22]CAPDU: 80 0D 03 02 [14:44:22]Write to MH i2c: E2 08 00 CF 05 80 0D 03 02 00 00 00 00 4F [14:44:22]Write i2c OK [14:44:22]MH_I2C_Read... [14:44:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:22]Read from MH i2c: E2 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: E2 0B 00 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: E2 0B 00 CF 05 00 E3 9D A2 87 EA 95 D5 83 90 00 D0 [14:44:22]RAPDU: E3 9D A2 87 EA 95 D5 83 90 00 [14:44:22]wFMCommunicate OK [14:44:22]SAM_PROTO_SignData done [14:44:22]FM_MakeSignedData done [14:44:22]CreateOFDProtocolMessage [14:44:22]wFMCommunicate request_size=4 [14:44:22]MH_SAM_APDU [14:44:22]CAPDU: 80 11 00 00 [14:44:22]Write to MH i2c: E2 08 00 D0 05 80 11 00 00 00 00 00 00 4F [14:44:22]Write i2c OK [14:44:22]MH_I2C_Read... [14:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:22]Read from MH i2c: E2 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: E2 17 00 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: E2 17 00 D0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A3 [14:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:44:22]wFMCommunicate OK [14:44:22]CreateOFDProtocolMessage done [14:44:22]OFDSenderStorePacket 73032 [14:44:22]StoreOFDPacket docnum=73032 [14:44:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A2 02 07 01 1A 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6E 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 C5 97 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1D 01 00 35 04 06 00 7E E6 7C 53 44 8C E3 9D A2 87 EA 95 D5 83 [14:44:22]CheckFolder [14:44:22]dirname=/storage/ofd_packets [14:44:22]CheckFolder done [14:44:22]ProducePacketName [14:44:22]name=ofd_packets/00073032 [14:44:22]NVStorageSaveData ofd_packets/00073032 [14:44:22]File name is /storage/ofd_packets/00073032 [14:44:22]Write 301 bytes [14:44:22]NVStorageSaveData done [14:44:22]OFDSenderStorePacket done [14:44:22]KKMCreateOFDPacket done [14:44:22]NVStorageSaveData kkm_last_timestamp [14:44:22]File name is /storage/kkm_last_timestamp [14:44:22]Write 4 bytes [14:44:22]NVStorageSaveData done [14:44:22]ExternCall_PrintAddStr [14:44:22]wPrintStart [14:44:22]Write to MH i2c: 01 00 00 D1 05 D6 [14:44:22]Write i2c OK [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: 01 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: 01 07 00 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: 01 07 00 D1 05 00 00 00 00 00 FF 0F EB [14:44:22]RasterBufferAndPrint [14:44:22]line Счет N : (1)952633 [14:44:22]line ИНН: 02508201610067 [14:44:22]line Контрольно-Кассовый Чек [14:44:22]line ПРОДАЖА [14:44:22]line ТРК (МРК, ГНК) : 52 [14:44:22]line Товар: 2710124500 [14:44:22]line Аи-95-К-3 [14:44:22]line 5.190 * 74.20 [14:44:22]line = 385.10 [14:44:22]line НДС 12% НСП 1% [14:44:22]line > о реализуемом товаре [14:44:22]line ИТОГО: 385.10 [14:44:22]line НСП 1% : 3.41 [14:44:22]line НДС 12% : 40.90 [14:44:22]line Наличными: 0.00 [14:44:22]line Безнал.: 385.10 [14:44:22]line Место: АЗС № 113 "Партнер Нефть" [14:44:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:44:22]line СНО: Общий режим [14:44:22]line Чек 107 31.10.2024 14:44 [14:44:22]line Смена: 557 ФФД: 1.0 [14:44:22]line ЗНМ: 0300000087 [14:44:22]line РНМ: 0000000000091644 [14:44:22]line Версия ККМ: 001 [14:44:22]line Платежная система: Бакай банк [14:44:22]line ФМ: 0000000000874662 [14:44:22]line ФД: 73032 [14:44:22]line ФПД: 139528393409676 [14:44:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144421&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73032&fm=139528393409676&tin=02508201610067®Number=0000000000091644&sum=38510 [14:44:22]written 0, free lines is 4095 [14:44:22]OFD Sender: Processing packet 73032 [packets to send 279, broken 278] [14:44:22]ProducePacketName [14:44:22]name=ofd_packets/00073032 [14:44:22]OFD Sender: To server: pG, [14:44:22]CommunicateWithHost lk.salyk.kg:30040 [14:44:22]ConnectInit lk.salyk.kg [14:44:22]Write to MH i2c: 01 00 00 FB 05 00 [14:44:22]Write i2c OK [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: 01 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: 01 07 00 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: 01 07 00 FB 05 00 00 00 00 00 DE 0C F1 [14:44:22]RasterBufferAndPrint [14:44:22]line [14:44:22]line [14:44:22]line [14:44:22]line [14:44:22]line [14:44:22]written 0, free lines is 3300 [14:44:22]MH_Cut [14:44:22]Write to MH i2c: D1 01 00 02 06 01 DA [14:44:22]Write i2c OK [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: D1 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: D1 01 00 [14:44:22]MH_I2C_Read... [14:44:22]Read from MH i2c: D1 01 00 02 06 00 D9 [14:44:22]Write to MH i2c: 01 00 00 03 06 09 [14:44:22]Write i2c OK [14:44:22]MH_I2C_Read... [14:44:22]Connected sock=10 [14:44:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A2 02 07 01 1A 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6E 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 C5 97 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1D 01 00 35 04 06 00 7E E6 7C 53 44 8C E3 9D A2 87 EA 95 D5 83 [14:44:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F8 F8 47 00 75 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1D 01 00 F4 03 04 00 7B 42 23 67 B6 04 01 00 00 53 92 AF ED C3 8A 94 13 [14:44:23]CommunicateWithHost err = 0 [14:44:23]CheckOFDResponse [14:44:23]1017 (14) - 77093643461234 [14:44:23]1041 (16) - 0000000000874662 [14:44:23]1040 (4) - 73032 [14:44:23]1012 (4) - 31.10.2024 08:40 [14:44:23]1206 (1) - 0 [14:44:23]OFD Sender: Remove packet 73032 [14:44:23]ProducePacketName [14:44:23]name=ofd_packets/00073032 [14:44:23]NVStorageDeleteData [14:44:23]*** Cut start [14:44:23]*** Partial cut [14:44:23]*** CUTSNS_PIN = 1 [14:44:23]*** CUTSNS_PIN = 0 [14:44:23]OFD Sender: No OFD packet to send [14:44:23]*** Brake cut motor [14:44:24]Read from MH i2c: 01 [14:44:24]MH_I2C_Read... [14:44:24]*** Stop cut motor [14:44:24]*** Cut end [14:44:24]Read from MH i2c: 01 07 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: 01 07 00 03 06 00 00 00 00 00 FF 0F 1E [14:44:24]process_action close_receipt done [14:44:24]requested_data is exist [14:44:24]produce_requested_data [14:44:24]requested_item fm.sn is exist - process it [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 11 00 00 [14:44:24]Write to MH i2c: E2 08 00 04 06 80 11 00 00 00 00 00 00 84 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 17 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 17 00 04 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [14:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:44:24]wFMCommunicate OK [14:44:24]requested_item fd.num is exist - process it [14:44:24]SAM_PROTO_GetFieldsCounters [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 13 00 00 [14:44:24]Write to MH i2c: E2 08 00 05 06 80 13 00 00 00 00 00 00 87 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 62 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 62 00 05 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 48 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [14:44:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 48 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:24]wFMCommunicate OK [14:44:24]SAM_PROTO_GetFieldsCounters done [14:44:24]requested_item shift.num is exist - process it [14:44:24]requested_item shift.opened is exist - process it [14:44:24]req_shift_opened [14:44:24]FM_GetShiftState [14:44:24]SAM_PROTO_GetShiftState [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 13 01 00 [14:44:24]Write to MH i2c: E2 08 00 06 06 80 13 01 00 00 00 00 00 89 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 0E 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 0E 00 06 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 32 [14:44:24]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:44:24]wFMCommunicate OK [14:44:24]SAM_PROTO_GetShiftState done [14:44:24]FM_GetShiftState done [14:44:24]req_shift_opened done [14:44:24]requested_item shift.open_date is exist - process it [14:44:24]req_shift_open_date [14:44:24]req_shift_open_date done [14:44:24]produce_requested_data done [14:44:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73032,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:44:24]process_action_free close_receipt [14:44:24]json_value_free [14:44:24]json_value_free done [14:44:24]process_json_proto returns [14:44:24]Send response to host [14:44:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73032,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:44:24]free response buf [14:44:24]execute_script done [14:44:24]execute_script returns [14:44:24]free content buf [14:44:24]Sock 9.Close socket [14:44:24]Sock 9.Thread stoped [14:44:28]OFD Sender: No OFD packet to send [14:44:31]recv_with_timeout no data received [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:42]recv_with_timeout no data received [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:00]recv_with_timeout no data received [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:49]recv_with_timeout no data received [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:15]recv_with_timeout no data received [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:00]recv_with_timeout no data received [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]accept exits with 7 [14:47:28]New connection [14:47:28]New thread 3067166052 created [14:47:28]Thread 3067309412 joined [14:47:28]Waiting for new connection... [14:47:28] Sock 7.Parse request [14:47:28]Sock 7.Check first char [14:47:28]Sock 7.First char is OK [14:47:28]request: POST /json_proto HTTP/1.0 [14:47:28]Method: POST [14:47:28]URL: /json_proto [14:47:28]Method is POST - this is cgi request [14:47:28]url: /json_proto [14:47:28]query_string will be loaded in cgi processing [14:47:28]execute_cgi json_proto POST (null) [14:47:28]execute_cgi path=json_proto method=POST [14:47:28]POST find Content-Length [14:47:28]Host: 172.17.43.195:8080 [14:47:28]Content-Length: 685 [14:47:28]Content-Type: application/json [14:47:28] [14:47:28]POST finish read [14:47:28]Found Content-Length = 685 [14:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:28]execute_script... [14:47: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)952634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:28]POST & json_proto [14:47:28]process_json_proto [14:47:28]json parsed OK: [14:47:28]protocol is kg_v1.0 [14:47:28]action value=close_receipt [14:47:28]process_action close_receipt [14:47:28]cmd_close_receipt [14:47:28]MH_GetDate [14:47:28]Write to MH i2c: F0 00 00 07 06 FC [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: F0 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: F0 09 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: F0 09 00 07 06 00 81 98 23 67 74 2C AD 66 5B [14:47:28]GetLastDocTimeStamp 1730385861 [14:47:28]current date 1730386049 [14:47:28]FM_GetShiftState [14:47:28]SAM_PROTO_GetShiftState [14:47:28]wFMCommunicate request_size=4 [14:47:28]MH_SAM_APDU [14:47:28]CAPDU: 80 13 01 00 [14:47:28]Write to MH i2c: E2 08 00 08 06 80 13 01 00 00 00 00 00 8B [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:28]Read from MH i2c: E2 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 0E 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 0E 00 08 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 34 [14:47:28]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:47:28]wFMCommunicate OK [14:47:28]SAM_PROTO_GetShiftState done [14:47:28]FM_GetShiftState done [14:47:28]opened in 1730333258 [14:47:28]opened+sec_in_day 1730419658 [14:47:28]quantity*price = 150037 [14:47:28]sum+1 = 150038 [14:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 108 31.10.2024 14:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73033 ФПД: 106028418513370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144729&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73033&fm=106028418513370&tin=02508201610067®Number=0000000000091644&sum=150000 [14:47:29]StoreToDocumentArchive [14:47:29]shift 557 fd 73033 [14:47:29]save to /storage/0557/doc_00073033 [14:47:29]save last doc name /storage/0557/doc_00073033 to /storage/kkm_last_doc_name [14:47:29]save OK [14:47:29]Clear old archive folders... [14:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:47:29]tlvbuf is 01551070 [14:47:29]SAM_PROTO_ClearQueue [14:47:29]wFMCommunicate request_size=4 [14:47:29]MH_SAM_APDU [14:47:29]CAPDU: 80 09 00 00 [14:47:29]Write to MH i2c: E2 08 00 15 06 80 09 00 00 00 00 00 00 8D [14:47:29]Write i2c OK [14:47:29]MH_I2C_Read... [14:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:29]Read from MH i2c: E2 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 03 00 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [14:47:29]RAPDU: 90 00 [14:47:29]wFMCommunicate OK [14:47:29]SAM_PROTO_ClearQueue done [14:47:29]KKMCreateOFDPacket [14:47:29]OFDProtocolAddRootSTLVToBuf [14:47:29]FM_MakeSignedData [14:47:29]FM_MakeSignedData [14:47:29]SAM_PROTO_SignData [14:47:29]wFMCommunicate request_size=4 [14:47:29]MH_SAM_APDU [14:47:29]CAPDU: 80 0D 01 02 [14:47:29]Write to MH i2c: E2 08 00 16 06 80 0D 01 02 00 00 00 00 95 [14:47:29]Write i2c OK [14:47:29]MH_I2C_Read... [14:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:29]Read from MH i2c: E2 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 03 00 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 03 00 16 06 00 90 00 90 [14:47:29]RAPDU: 90 00 [14:47:29]wFMCommunicate OK [14:47:29]wFMCommunicate request_size=255 [14:47:29]MH_SAM_APDU [14:47:29]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 81 98 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1D 01 00 35 04 06 00 60 6E [14:47:29]Write to MH i2c: E2 02 01 17 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 81 98 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1D 01 00 35 04 06 00 60 6E 00 00 BF [14:47:29]Write i2c OK [14:47:29]MH_I2C_Read... [14:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:29]Read from MH i2c: E2 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 03 00 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [14:47:29]RAPDU: 90 00 [14:47:29]wFMCommunicate OK [14:47:29]wFMCommunicate request_size=9 [14:47:29]MH_SAM_APDU [14:47:29]CAPDU: 80 0D 02 02 04 AA 38 B9 DA [14:47:29]Write to MH i2c: E2 0C 00 18 06 80 0D 02 02 04 00 AA 38 B9 DA 00 00 15 [14:47:29]Write i2c OK [14:47:29]MH_I2C_Read... [14:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:30]Read from MH i2c: E2 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 18 06 00 90 00 92 [14:47:30]RAPDU: 90 00 [14:47:30]wFMCommunicate OK [14:47:30]wFMCommunicate request_size=4 [14:47:30]MH_SAM_APDU [14:47:30]CAPDU: 80 0D 03 02 [14:47:30]Write to MH i2c: E2 08 00 19 06 80 0D 03 02 00 00 00 00 9A [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:30]Read from MH i2c: E2 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 0B 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 0B 00 19 06 00 DE CE 49 24 9F 0C 98 76 90 00 6D [14:47:30]RAPDU: DE CE 49 24 9F 0C 98 76 90 00 [14:47:30]wFMCommunicate OK [14:47:30]SAM_PROTO_SignData done [14:47:30]FM_MakeSignedData done [14:47:30]CreateOFDProtocolMessage [14:47:30]wFMCommunicate request_size=4 [14:47:30]MH_SAM_APDU [14:47:30]CAPDU: 80 11 00 00 [14:47:30]Write to MH i2c: E2 08 00 1A 06 80 11 00 00 00 00 00 00 9A [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:30]Read from MH i2c: E2 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 17 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 17 00 1A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EE [14:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:47:30]wFMCommunicate OK [14:47:30]CreateOFDProtocolMessage done [14:47:30]OFDSenderStorePacket 73033 [14:47:30]StoreOFDPacket docnum=73033 [14:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 88 AE 06 01 3C 8B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 81 98 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1D 01 00 35 04 06 00 60 6E AA 38 B9 DA DE CE 49 24 9F 0C 98 76 [14:47:30]CheckFolder [14:47:30]dirname=/storage/ofd_packets [14:47:30]CheckFolder done [14:47:30]ProducePacketName [14:47:30]name=ofd_packets/00073033 [14:47:30]NVStorageSaveData ofd_packets/00073033 [14:47:30]File name is /storage/ofd_packets/00073033 [14:47:30]Write 300 bytes [14:47:30]NVStorageSaveData done [14:47:30]OFDSenderStorePacket done [14:47:30]KKMCreateOFDPacket done [14:47:30]NVStorageSaveData kkm_last_timestamp [14:47:30]File name is /storage/kkm_last_timestamp [14:47:30]Write 4 bytes [14:47:30]NVStorageSaveData done [14:47:30]ExternCall_PrintAddStr [14:47:30]wPrintStart [14:47:30]Write to MH i2c: 01 00 00 1B 06 21 [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: 01 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: 01 07 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: 01 07 00 1B 06 00 00 00 00 00 FF 0F 36 [14:47:30]RasterBufferAndPrint [14:47:30]line Счет N : (1)952634 [14:47:30]line ИНН: 02508201610067 [14:47:30]line Контрольно-Кассовый Чек [14:47:30]line ПРОДАЖА [14:47:30]line ТРК (МРК, ГНК) : 71 [14:47:30]line Товар: 2711190000 [14:47:30]line ГАЗ-К-3 [14:47:30]line 38.570 * 38.90 [14:47:30]line = 1500.37 [14:47:30]line НДС 12% НСП 1% [14:47:30]line > о реализуемом товаре [14:47:30]line ОКРУГЛЕНИЕ: -0.37 [14:47:30]line ИТОГО: 1500.00 [14:47:30]line Внесено: 1500.00 [14:47:30]line СДАЧА: 0.00 [14:47:30]line НСП 1% : 13.28 [14:47:30]line НДС 12% : 159.33 [14:47:30]line Наличными: 1500.00 [14:47:30]line Безнал.: 0.00 [14:47:30]line Место: АЗС № 113 "Партнер Нефть" [14:47:30]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:47:30]line СНО: Общий режим [14:47:30]line Чек 108 31.10.2024 14:47 [14:47:30]line Смена: 557 ФФД: 1.0 [14:47:30]line ЗНМ: 0300000087 [14:47:30]line РНМ: 0000000000091644 [14:47:30]line Версия ККМ: 001 [14:47:30]line ФМ: 0000000000874662 [14:47:30]line ФД: 73033 [14:47:30]line ФПД: 106028418513370 [14:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144729&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73033&fm=106028418513370&tin=02508201610067®Number=0000000000091644&sum=150000 [14:47:30]written 0, free lines is 4095 [14:47:30]OFD Sender: Processing packet 73033 [packets to send 279, broken 278] [14:47:30]ProducePacketName [14:47:30]name=ofd_packets/00073033 [14:47:30]OFD Sender: To server: pG, [14:47:30]CommunicateWithHost lk.salyk.kg:30040 [14:47:30]ConnectInit lk.salyk.kg [14:47:30]Write to MH i2c: 01 00 00 46 06 4C [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: 01 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: 01 07 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: 01 07 00 46 06 00 00 00 00 00 CD 0C 2C [14:47:30]RasterBufferAndPrint [14:47:30]line [14:47:30]line [14:47:30]line [14:47:30]line [14:47:30]line [14:47:30]Connected sock=9 [14:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 88 AE 06 01 3C 8B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 81 98 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1D 01 00 35 04 06 00 60 6E AA 38 B9 DA DE CE 49 24 9F 0C 98 76 [14:47:30]written 0, free lines is 3300 [14:47:30]MH_Cut [14:47:30]Write to MH i2c: D1 01 00 4D 06 01 25 [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: D1 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: D1 01 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: D1 01 00 4D 06 00 24 [14:47:30]Write to MH i2c: 01 00 00 4E 06 54 [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:31]*** Cut start [14:47:31]*** Partial cut [14:47:31]*** CUTSNS_PIN = 1 [14:47:31]*** CUTSNS_PIN = 0 [14:47:31]*** Brake cut motor [14:47:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8F 7A 47 00 93 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1D 01 00 F4 03 04 00 36 43 23 67 B6 04 01 00 00 5A DF 9D 78 54 94 76 26 [14:47:31]CommunicateWithHost err = 0 [14:47:31]CheckOFDResponse [14:47:31]1017 (14) - 77093643461234 [14:47:31]1041 (16) - 0000000000874662 [14:47:31]1040 (4) - 73033 [14:47:31]1012 (4) - 31.10.2024 08:43 [14:47:31]1206 (1) - 0 [14:47:31]OFD Sender: Remove packet 73033 [14:47:31]ProducePacketName [14:47:31]name=ofd_packets/00073033 [14:47:31]NVStorageDeleteData [14:47:31]Read from MH i2c: 01 [14:47:32]MH_I2C_Read... [14:47:32]*** Stop cut motor [14:47:32]*** Cut end [14:47:32]Read from MH i2c: 01 07 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 FF 0F 69 [14:47:32]process_action close_receipt done [14:47:32]requested_data is exist [14:47:32]produce_requested_data [14:47:32]requested_item fm.sn is exist - process it [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 11 00 00 [14:47:32]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 17 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 17 00 4F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 23 [14:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:47:32]wFMCommunicate OK [14:47:32]requested_item fd.num is exist - process it [14:47:32]SAM_PROTO_GetFieldsCounters [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 13 00 00 [14:47:32]Write to MH i2c: E2 08 00 50 06 80 13 00 00 00 00 00 00 D2 [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 62 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 62 00 50 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 49 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [14:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 49 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:32]wFMCommunicate OK [14:47:32]SAM_PROTO_GetFieldsCounters done [14:47:32]requested_item shift.num is exist - process it [14:47:32]requested_item shift.opened is exist - process it [14:47:32]req_shift_opened [14:47:32]FM_GetShiftState [14:47:32]SAM_PROTO_GetShiftState [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 13 01 00 [14:47:32]Write to MH i2c: E2 08 00 51 06 80 13 01 00 00 00 00 00 D4 [14:47:32]OFD Sender: No OFD packet to send [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 0E 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 0E 00 51 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 7D [14:47:32]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [14:47:32]wFMCommunicate OK [14:47:32]SAM_PROTO_GetShiftState done [14:47:32]FM_GetShiftState done [14:47:32]req_shift_opened done [14:47:32]requested_item shift.open_date is exist - process it [14:47:32]req_shift_open_date [14:47:32]req_shift_open_date done [14:47:32]produce_requested_data done [14:47:32]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73033,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [14:47:32]process_action_free close_receipt [14:47:32]json_value_free [14:47:32]json_value_free done [14:47:32]process_json_proto returns [14:47:32]Send response to host [14:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73033,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [14:47:32]free response buf [14:47:32]execute_script done [14:47:32]execute_script returns [14:47:32]free content buf [14:47:32]Sock 7.Close socket [14:47:32]Sock 7.Thread stoped [14:47:37]OFD Sender: No OFD packet to send [14:47:41]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:35]recv_with_timeout no data received [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:08]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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]recv_with_timeout no data received [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:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:34]recv_with_timeout no data received [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:44]recv_with_timeout no data received [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:39]recv_with_timeout no data received [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]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:17]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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:13]recv_with_timeout no data received [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:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 17 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 17 00 65 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 39 [14:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:59:58]wFMCommunicate OK [14:59:58]CreateOFDProtocolMessage done [14:59:58]OFDSenderStorePacket 73034 [14:59:58]StoreOFDPacket docnum=73034 [14:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 30 0C 07 01 2C B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6E 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1D 01 00 35 04 06 00 1D 4F 8F F2 F2 01 74 7E FD 5C DB 7D 75 BC [14:59:58]CheckFolder [14:59:58]dirname=/storage/ofd_packets [14:59:58]CheckFolder done [14:59:58]ProducePacketName [14:59:58]name=ofd_packets/00073034 [14:59:58]NVStorageSaveData ofd_packets/00073034 [14:59:58]File name is /storage/ofd_packets/00073034 [14:59:58]Write 301 bytes [14:59:58]NVStorageSaveData done [14:59:58]OFDSenderStorePacket done [14:59:58]KKMCreateOFDPacket done [14:59:58]NVStorageSaveData kkm_last_timestamp [14:59:58]File name is /storage/kkm_last_timestamp [14:59:58]Write 4 bytes [14:59:58]NVStorageSaveData done [14:59:58]ExternCall_PrintAddStr [14:59:58]wPrintStart [14:59:58]Write to MH i2c: 01 00 00 66 06 6C [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: 01 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: 01 07 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 FF 0F 81 [14:59:58]RasterBufferAndPrint [14:59:58]line Счет N : (1)952635 [14:59:58]line ИНН: 02508201610067 [14:59:58]line Контрольно-Кассовый Чек [14:59:58]line ПРОДАЖА [14:59:58]line ТРК (МРК, ГНК) : 53 [14:59:58]line Товар: 2710124130 [14:59:58]line Аи-92-К-5 [14:59:58]line 20.000 * 0.00 [14:59:58]line = 0.00 [14:59:58]line НДС 12% НСП 1% [14:59:58]line > о реализуемом товаре [14:59:58]line ИТОГО: 0.00 [14:59:58]line НСП 1% : 0.00 [14:59:58]line НДС 12% : 0.00 [14:59:58]line Наличными: 0.00 [14:59:58]line Безнал.: 0.00 [14:59:58]line Место: АЗС № 113 "Партнер Нефть" [14:59:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:59:58]line СНО: Общий режим [14:59:58]line Чек 109 31.10.2024 14:59 [14:59:58]line Смена: 557 ФФД: 1.0 [14:59:58]line ЗНМ: 0300000087 [14:59:58]line РНМ: 0000000000091644 [14:59:58]line Версия ККМ: 001 [14:59:58]line Талоны: Топливная Карта [14:59:58]line 03333 [14:59:58]line ФМ: 0000000000874662 [14:59:58]line ФД: 73034 [14:59:58]line ФПД: 32227554685441 [14:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T145958&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73034&fm=32227554685441&tin=02508201610067®Number=0000000000091644&sum=0 [14:59:59]OFD Sender: Processing packet 73034 [packets to send 279, broken 278] [14:59:59]ProducePacketName [14:59:59]name=ofd_packets/00073034 [14:59:59]OFD Sender: To server: pG, [14:59:59]CommunicateWithHost lk.salyk.kg:30040 [14:59:59]ConnectInit lk.salyk.kg [14:59:59]written 0, free lines is 4095 [14:59:59]Write to MH i2c: 01 00 00 90 06 96 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: 01 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: 01 07 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 E2 0C 8B [14:59:59]RasterBufferAndPrint [14:59:59]line [14:59:59]line [14:59:59]line [14:59:59]line [14:59:59]line [14:59:59]written 0, free lines is 3304 [14:59:59]MH_Cut [14:59:59]Write to MH i2c: D1 01 00 97 06 01 6F [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: D1 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: D1 01 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: D1 01 00 97 06 00 6E [14:59:59]Write to MH i2c: 01 00 00 98 06 9E [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]Connected sock=11 [14:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 30 0C 07 01 2C B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6E 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1D 01 00 35 04 06 00 1D 4F 8F F2 F2 01 74 7E FD 5C DB 7D 75 BC [15:00:00]*** Cut start [15:00:00]*** Partial cut [15:00:00]*** CUTSNS_PIN = 1 [15:00:00]*** CUTSNS_PIN = 0 [15:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 90 72 47 00 05 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1D 01 00 F4 03 04 00 24 46 23 67 B6 04 01 00 00 C9 A0 64 D2 B3 B9 F4 4F [15:00:00]CommunicateWithHost err = 0 [15:00:00]CheckOFDResponse [15:00:00]1017 (14) - 77093643461234 [15:00:00]1041 (16) - 0000000000874662 [15:00:00]1040 (4) - 73034 [15:00:00]1012 (4) - 31.10.2024 08:56 [15:00:00]1206 (1) - 0 [15:00:00]OFD Sender: Remove packet 73034 [15:00:00]ProducePacketName [15:00:00]name=ofd_packets/00073034 [15:00:00]NVStorageDeleteData [15:00:00]*** Brake cut motor [15:00:00]Read from MH i2c: 01 [15:00:00]MH_I2C_Read... [15:00:00]*** Stop cut motor [15:00:00]*** Cut end [15:00:00]Read from MH i2c: 01 07 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 FF 0F B3 [15:00:00]process_action close_receipt done [15:00:00]requested_data is exist [15:00:00]produce_requested_data [15:00:00]requested_item fm.sn is exist - process it [15:00:00]wFMCommunicate request_size=4 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 11 00 00 [15:00:00]Write to MH i2c: E2 08 00 99 06 80 11 00 00 00 00 00 00 19 [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]OFD Sender: No OFD packet to send [15:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:00]Read from MH i2c: E2 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 17 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 17 00 99 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6D [15:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:00:00]wFMCommunicate OK [15:00:00]requested_item fd.num is exist - process it [15:00:00]SAM_PROTO_GetFieldsCounters [15:00:00]wFMCommunicate request_size=4 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 13 00 00 [15:00:00]Write to MH i2c: E2 08 00 9A 06 80 13 00 00 00 00 00 00 1C [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:01]Read from MH i2c: E2 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 62 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 62 00 9A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [15:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:01]wFMCommunicate OK [15:00:01]SAM_PROTO_GetFieldsCounters done [15:00:01]requested_item shift.num is exist - process it [15:00:01]requested_item shift.opened is exist - process it [15:00:01]req_shift_opened [15:00:01]FM_GetShiftState [15:00:01]SAM_PROTO_GetShiftState [15:00:01]wFMCommunicate request_size=4 [15:00:01]MH_SAM_APDU [15:00:01]CAPDU: 80 13 01 00 [15:00:01]Write to MH i2c: E2 08 00 9B 06 80 13 01 00 00 00 00 00 1E [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:01]Read from MH i2c: E2 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 0E 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 0E 00 9B 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C7 [15:00:01]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:00:01]wFMCommunicate OK [15:00:01]SAM_PROTO_GetShiftState done [15:00:01]FM_GetShiftState done [15:00:01]req_shift_opened done [15:00:01]requested_item shift.open_date is exist - process it [15:00:01]req_shift_open_date [15:00:01]req_shift_open_date done [15:00:01]produce_requested_data done [15:00:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73034,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:00:01]process_action_free close_receipt [15:00:01]json_value_free [15:00:01]json_value_free done [15:00:01]process_json_proto returns [15:00:01]Send response to host [15:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73034,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:00:01]free response buf [15:00:01]execute_script done [15:00:01]execute_script returns [15:00:01]free content buf [15:00:01]Sock 10.Close socket [15:00:01]Sock 10.Thread stoped [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]ConnectInit Can't connect to host [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:29]ConnectInit Can't connect to host [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:23]accept exits with 9 [15:05:23]New connection [15:05:23]New thread 3067166052 created [15:05:23]Thread 3067309412 joined [15:05:23]Waiting for new connection... [15:05:23] Sock 9.Parse request [15:05:23]Sock 9.Check first char [15:05:23]Sock 9.First char is OK [15:05:23]request: POST /json_proto HTTP/1.0 [15:05:23]Method: POST [15:05:23]URL: /json_proto [15:05:23]Method is POST - this is cgi request [15:05:23]url: /json_proto [15:05:23]query_string will be loaded in cgi processing [15:05:23]execute_cgi json_proto POST (null) [15:05:23]execute_cgi path=json_proto method=POST [15:05:23]POST find Content-Length [15:05:23]Host: 172.17.43.195:8080 [15:05:23]Content-Length: 797 [15:05:23]Content-Type: application/json [15:05:23] [15:05:23]POST finish read [15:05:23]Found Content-Length = 797 [15:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.030, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:23]execute_script... [15:05:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.030, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:23]POST & json_proto [15:05:23]process_json_proto [15:05:23]json parsed OK: [15:05:23]protocol is kg_v1.0 [15:05:23]action value=close_receipt [15:05:23]process_action close_receipt [15:05:23]cmd_close_receipt [15:05:23]MH_GetDate [15:05:23]Write to MH i2c: F0 00 00 9C 06 91 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: F0 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: F0 09 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: F0 09 00 9C 06 00 B4 9C 23 67 74 2C AD 66 27 [15:05:23]GetLastDocTimeStamp 1730386798 [15:05:23]current date 1730387124 [15:05:23]FM_GetShiftState [15:05:23]SAM_PROTO_GetShiftState [15:05:23]wFMCommunicate request_size=4 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 13 01 00 [15:05:23]Write to MH i2c: E2 08 00 9D 06 80 13 01 00 00 00 00 00 20 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 0E 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 0E 00 9D 06 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C9 [15:05:23]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:05:23]wFMCommunicate OK [15:05:23]SAM_PROTO_GetShiftState done [15:05:23]FM_GetShiftState done [15:05:23]opened in 1730333258 [15:05:23]opened+sec_in_day 1730419658 [15:05:23]quantity*price = 0 [15:05:23]sum+1 = 1 [15:05:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 111 31.10.2024 15:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 73036 ФПД: 219627522882561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T150910&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73036&fm=219627522882561&tin=02508201610067®Number=0000000000091644&sum=0 [15:09:10]StoreToDocumentArchive [15:09:10]shift 557 fd 73036 [15:09:10]save to /storage/0557/doc_00073036 [15:09:10]save last doc name /storage/0557/doc_00073036 to /storage/kkm_last_doc_name [15:09:10]save OK [15:09:10]Clear old archive folders... [15:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:09:10]tlvbuf is 01E90920 [15:09:10]SAM_PROTO_ClearQueue [15:09:10]wFMCommunicate request_size=4 [15:09:10]MH_SAM_APDU [15:09:10]CAPDU: 80 09 00 00 [15:09:10]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:09:10]RAPDU: 90 00 [15:09:10]wFMCommunicate OK [15:09:10]SAM_PROTO_ClearQueue done [15:09:10]KKMCreateOFDPacket [15:09:10]OFDProtocolAddRootSTLVToBuf [15:09:10]FM_MakeSignedData [15:09:10]FM_MakeSignedData [15:09:10]SAM_PROTO_SignData [15:09:10]wFMCommunicate request_size=4 [15:09:10]MH_SAM_APDU [15:09:10]CAPDU: 80 0D 01 02 [15:09:10]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:09:11]RAPDU: 90 00 [15:09:11]wFMCommunicate OK [15:09:11]wFMCommunicate request_size=255 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 16 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 96 9D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1D 01 00 35 04 06 00 [15:09:11]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 16 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 96 9D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1D 01 00 35 04 06 00 00 00 F0 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:09:11]RAPDU: 90 00 [15:09:11]wFMCommunicate OK [15:09:11]wFMCommunicate request_size=11 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 0D 02 02 06 C7 C0 04 7B FC 01 [15:09:11]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 C7 C0 04 7B FC 01 00 00 B7 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:09:11]RAPDU: 90 00 [15:09:11]wFMCommunicate OK [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 0D 03 02 [15:09:11]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 0B 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 0B 00 2F 00 00 66 86 85 48 13 D9 90 13 90 00 F3 [15:09:11]RAPDU: 66 86 85 48 13 D9 90 13 90 00 [15:09:11]wFMCommunicate OK [15:09:11]SAM_PROTO_SignData done [15:09:11]FM_MakeSignedData done [15:09:11]CreateOFDProtocolMessage [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 11 00 00 [15:09:11]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 17 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [15:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:09:11]wFMCommunicate OK [15:09:11]CreateOFDProtocolMessage done [15:09:11]OFDSenderStorePacket 73036 [15:09:11]StoreOFDPacket docnum=73036 [15:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E9 7D 08 01 4E 57 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 16 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 96 9D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1D 01 00 35 04 06 00 C7 C0 04 7B FC 01 66 86 85 48 13 D9 90 13 [15:09:11]CheckFolder [15:09:11]dirname=/storage/ofd_packets [15:09:11]CheckFolder done [15:09:11]ProducePacketName [15:09:11]name=ofd_packets/00073036 [15:09:11]NVStorageSaveData ofd_packets/00073036 [15:09:11]File name is /storage/ofd_packets/00073036 [15:09:11]Write 302 bytes [15:09:11]NVStorageSaveData done [15:09:11]OFDSenderStorePacket done [15:09:11]KKMCreateOFDPacket done [15:09:11]NVStorageSaveData kkm_last_timestamp [15:09:11]File name is /storage/kkm_last_timestamp [15:09:11]Write 4 bytes [15:09:11]NVStorageSaveData done [15:09:11]ExternCall_PrintAddStr [15:09:11]wPrintStart [15:09:11]Write to MH i2c: 01 00 00 31 00 31 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: 01 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: 01 07 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [15:09:11]RasterBufferAndPrint [15:09:11]line Счет N : (1)952636 [15:09:11]line ИНН: 02508201610067 [15:09:11]line Контрольно-Кассовый Чек [15:09:11]line ПРОДАЖА [15:09:11]line ТРК (МРК, ГНК) : 33 [15:09:11]line Товар: 2710194210 [15:09:11]line ДТ(л)-К-5 [15:09:11]line 11.030 * 0.00 [15:09:11]line = 0.00 [15:09:11]line НДС 12% НСП 1% [15:09:11]line > о реализуемом товаре [15:09:11]line ИТОГО: 0.00 [15:09:11]line НСП 1% : 0.00 [15:09:11]line НДС 12% : 0.00 [15:09:11]line Наличными: 0.00 [15:09:11]line Безнал.: 0.00 [15:09:11]line Место: АЗС № 113 "Партнер Нефть" [15:09:11]OFD Sender: Processing packet 73036 [packets to send 279, broken 278] [15:09:11]ProducePacketName [15:09:11]name=ofd_packets/00073036 [15:09:11]OFD Sender: To server: pG, [15:09:11]CommunicateWithHost lk.salyk.kg:30040 [15:09:11]ConnectInit lk.salyk.kg [15:09:11]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:09:11]line СНО: Общий режим [15:09:11]line Чек 111 31.10.2024 15:09 [15:09:11]line Смена: 557 ФФД: 1.0 [15:09:11]line ЗНМ: 0300000087 [15:09:11]line РНМ: 0000000000091644 [15:09:11]line Версия ККМ: 001 [15:09:11]line Талоны: Топливная Карта [15:09:11]line 53623 [15:09:11]line ФМ: 0000000000874662 [15:09:11]line ФД: 73036 [15:09:11]line ФПД: 219627522882561 [15:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T150910&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73036&fm=219627522882561&tin=02508201610067®Number=0000000000091644&sum=0 [15:09:11]written 0, free lines is 4095 [15:09:12]Write to MH i2c: 01 00 00 5B 00 5B [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F1 0C 5F [15:09:12]RasterBufferAndPrint [15:09:12]line [15:09:12]line [15:09:12]line [15:09:12]line [15:09:12]line [15:09:12]written 0, free lines is 3335 [15:09:12]MH_Cut [15:09:12]Write to MH i2c: D1 01 00 62 00 01 34 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: D1 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: D1 01 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: D1 01 00 62 00 00 33 [15:09:12]Write to MH i2c: 01 00 00 63 00 63 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** Cut start [15:09:12]*** Partial cut [15:09:12]*** CUTSNS_PIN = 1 [15:09:12]*** CUTSNS_PIN = 0 [15:09:13]Connected sock=10 [15:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E9 7D 08 01 4E 57 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 16 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 *** Brake cut motor [15:09:13]03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 96 9D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1D 01 00 35 04 06 00 C7 C0 04 7B FC 01 66 86 85 48 13 D9 90 13 [15:09:13]Read from MH i2c: 01 [15:09:13]MH_I2C_Read... [15:09:13]*** Stop cut motor [15:09:13]Read from MH i2c: *** Cut end [15:09:13]01 07 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [15:09:13]process_action close_receipt done [15:09:13]requested_data is exist [15:09:13]produce_requested_data [15:09:13]requested_item fm.sn is exist - process it [15:09:13]wFMCommunicate request_size=4 [15:09:13]MH_SAM_APDU [15:09:13]CAPDU: 80 11 00 00 [15:09:13]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 17 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [15:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:09:13]wFMCommunicate OK [15:09:13]requested_item fd.num is exist - process it [15:09:13]SAM_PROTO_GetFieldsCounters [15:09:13]wFMCommunicate request_size=4 [15:09:13]MH_SAM_APDU [15:09:13]CAPDU: 80 13 00 00 [15:09:13]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 11 05 47 00 2B 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1D 01 00 F4 03 04 00 4D 48 23 67 B6 04 01 00 00 F1 79 C9 74 34 91 74 DF [15:09:13]CommunicateWithHost err = 0 [15:09:13]CheckOFDResponse [15:09:13]1017 (14) - 77093643461234 [15:09:13]1041 (16) - 0000000000874662 [15:09:13]1040 (4) - 73036 [15:09:13]1012 (4) - 31.10.2024 09:05 [15:09:13]1206 (1) - 0 [15:09:13]OFD Sender: Remove packet 73036 [15:09:13]ProducePacketName [15:09:13]name=ofd_packets/00073036 [15:09:13]NVStorageDeleteData [15:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 62 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [15:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:13]wFMCommunicate OK [15:09:13]SAM_PROTO_GetFieldsCounters done [15:09:13]requested_item shift.num is exist - process it [15:09:13]requested_item shift.opened is exist - process it [15:09:13]req_shift_opened [15:09:13]FM_GetShiftState [15:09:13]SAM_PROTO_GetShiftState [15:09:13]wFMCommunicate request_size=4 [15:09:13]MH_SAM_APDU [15:09:13]CAPDU: 80 13 01 00 [15:09:13]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 0E 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8C [15:09:13]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:09:13]wFMCommunicate OK [15:09:13]SAM_PROTO_GetShiftState done [15:09:13]FM_GetShiftState done [15:09:13]req_shift_opened done [15:09:13]requested_item shift.open_date is exist - process it [15:09:13]req_shift_open_date [15:09:13]req_shift_open_date done [15:09:13]produce_requested_data done [15:09:13]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73036,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:09:13]process_action_free close_receipt [15:09:13]json_value_free [15:09:13]json_value_free done [15:09:13]process_json_proto returns [15:09:13]Send response to host [15:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73036,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:09:13]free response buf [15:09:13]execute_script done [15:09:13]execute_script returns [15:09:13]free content buf [15:09:13]Sock 9.Close socket [15:09:13]Sock 9.Thread stoped [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:51]recv_with_timeout no data received [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:27]accept exits with 7 [15:10:27]New connection [15:10:27]New thread 3067006308 created [15:10:27]Thread 3067149668 joined [15:10:27]Waiting for new connection... [15:10:27] Sock 7.Parse request [15:10:27]Sock 7.Check first char [15:10:27]Sock 7.First char is OK [15:10:27]request: POST /json_proto HTTP/1.0 [15:10:27]Method: POST [15:10:27]URL: /json_proto [15:10:27]Method is POST - this is cgi request [15:10:27]url: /json_proto [15:10:27]query_string will be loaded in cgi processing [15:10:27]execute_cgi json_proto POST (null) [15:10:27]execute_cgi path=json_proto method=POST [15:10:27]POST find Content-Length [15:10:27]Host: 172.17.43.195:8080 [15:10:27]Content-Length: 808 [15:10:27]Content-Type: application/json [15:10:27] [15:10:27]POST finish read [15:10:27]Found Content-Length = 808 [15:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:27]execute_script... [15:10:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:27]POST & json_proto [15:10:27]process_json_proto [15:10:27]json parsed OK: [15:10:27]protocol is kg_v1.0 [15:10:27]action value=close_receipt [15:10:27]process_action close_receipt [15:10:27]cmd_close_receipt [15:10:27]MH_GetDate [15:10:27]Write to MH i2c: F0 00 00 67 00 56 [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: F0 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: F0 09 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: F0 09 00 67 00 00 E3 9D 23 67 74 2C AD 66 1C [15:10:27]GetLastDocTimeStamp 1730387350 [15:10:27]current date 1730387427 [15:10:27]FM_GetShiftState [15:10:27]SAM_PROTO_GetShiftState [15:10:27]wFMCommunicate request_size=4 [15:10:27]MH_SAM_APDU [15:10:27]CAPDU: 80 13 01 00 [15:10:27]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:27]Read from MH i2c: E2 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 0E 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8E [15:10:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:10:27]wFMCommunicate OK [15:10:27]SAM_PROTO_GetShiftState done [15:10:27]FM_GetShiftState done [15:10:27]opened in 1730333258 [15:10:27]opened+sec_in_day 1730419658 [15:10:27]quantity*price = 200025 [15:10:27]sum+1 = 200026 [15:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 112 31.10.2024 15:10 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73037 ФПД: 179879336903519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151027&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73037&fm=179879336903519&tin=02508201610067®Number=0000000000091644&sum=200025 [15:10:28]StoreToDocumentArchive [15:10:28]shift 557 fd 73037 [15:10:28]save to /storage/0557/doc_00073037 [15:10:28]save last doc name /storage/0557/doc_00073037 to /storage/kkm_last_doc_name [15:10:28]save OK [15:10:28]Clear old archive folders... [15:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:10:28]tlvbuf is 01E96820 [15:10:28]SAM_PROTO_ClearQueue [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 09 00 00 [15:10:28]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [15:10:28]RAPDU: 90 00 [15:10:28]wFMCommunicate OK [15:10:28]SAM_PROTO_ClearQueue done [15:10:28]KKMCreateOFDPacket [15:10:28]OFDProtocolAddRootSTLVToBuf [15:10:28]FM_MakeSignedData [15:10:28]FM_MakeSignedData [15:10:28]SAM_PROTO_SignData [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 0D 01 02 [15:10:28]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:10:28]RAPDU: 90 00 [15:10:28]wFMCommunicate OK [15:10:28]wFMCommunicate request_size=255 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E3 9D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4D 1D 01 00 35 04 06 00 [15:10:28]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E3 9D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4D 1D 01 00 35 04 06 00 00 00 90 [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:10:28]RAPDU: 90 00 [15:10:28]wFMCommunicate OK [15:10:28]wFMCommunicate request_size=11 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 0D 02 02 06 A3 99 6B FA 83 5F [15:10:28]Write to MH i2c: E2 0E 00 78 00 80 0D 02 02 06 00 A3 99 6B FA 83 5F 00 00 81 [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [15:10:28]RAPDU: 90 00 [15:10:28]wFMCommunicate OK [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 0D 03 02 [15:10:28]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0B 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0B 00 79 00 00 EF C3 66 BD AE B2 38 65 90 00 C7 [15:10:28]RAPDU: EF C3 66 BD AE B2 38 65 90 00 [15:10:28]wFMCommunicate OK [15:10:28]SAM_PROTO_SignData done [15:10:28]FM_MakeSignedData done [15:10:28]CreateOFDProtocolMessage [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 11 00 00 [15:10:28]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 17 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [15:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:10:28]wFMCommunicate OK [15:10:28]CreateOFDProtocolMessage done [15:10:28]OFDSenderStorePacket 73037 [15:10:28]StoreOFDPacket docnum=73037 [15:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F2 1D 08 01 16 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E3 9D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4D 1D 01 00 35 04 06 00 A3 99 6B FA 83 5F EF C3 66 BD AE B2 38 65 [15:10:28]CheckFolder [15:10:28]dirname=/storage/ofd_packets [15:10:28]CheckFolder done [15:10:28]ProducePacketName [15:10:28]name=ofd_packets/00073037 [15:10:28]NVStorageSaveData ofd_packets/00073037 [15:10:28]File name is /storage/ofd_packets/00073037 [15:10:28]Write 302 bytes [15:10:28]NVStorageSaveData done [15:10:28]OFDSenderStorePacket done [15:10:28]KKMCreateOFDPacket done [15:10:28]NVStorageSaveData kkm_last_timestamp [15:10:28]File name is /storage/kkm_last_timestamp [15:10:28]Write 4 bytes [15:10:28]NVStorageSaveData done [15:10:28]ExternCall_PrintAddStr [15:10:28]wPrintStart [15:10:28]Write to MH i2c: 01 00 00 7B 00 7B [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: 01 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: 01 07 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [15:10:28]RasterBufferAndPrint [15:10:28]line Счет N : (1)952637 [15:10:28]line ИНН: 02508201610067 [15:10:28]line Контрольно-Кассовый Чек [15:10:28]line ПРОДАЖА [15:10:28]line ТРК (МРК, ГНК) : 22 [15:10:28]line Товар: 2710194210 [15:10:28]line ДТ(л)-К-5 [15:10:28]line 26.250 * 76.20 [15:10:28]line = 2000.25 [15:10:28]line НДС 12% НСП 1% [15:10:28]line > о реализуемом товаре [15:10:28]line ИТОГО: 2000.25 [15:10:28]line НСП 1% : 17.70 [15:10:28]line НДС 12% : 212.42 [15:10:28]line Наличными: 0.00 [15:10:28]line Безнал.: 2000.25 [15:10:28]line Место: АЗС № 113 "Партнер Нефть" [15:10:28]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:10:28]line СНО: Общий режим [15:10:28]line Чек 112 31.10.2024 15:10 [15:10:28]line Смена: 557 ФФД: 1.0 [15:10:28]line ЗНМ: 0300000087 [15:10:28]line РНМ: 0000000000091644 [15:10:28]line Версия ККМ: 001 [15:10:28]line Платежная система: O! деньги [15:10:28]line ФМ: 0000000000874662 [15:10:28]line ФД: 73037 [15:10:28]line ФПД: 179879336903519 [15:10:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151027&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73037&fm=179879336903519&tin=02508201610067®Number=0000000000091644&sum=200025 [15:10:28]written 0, free lines is 4095 [15:10:28]OFD Sender: Processing packet 73037 [packets to send 279, broken 278] [15:10:28]ProducePacketName [15:10:28]name=ofd_packets/00073037 [15:10:28]OFD Sender: To server: pG, [15:10:28]CommunicateWithHost lk.salyk.kg:30040 [15:10:28]ConnectInit lk.salyk.kg [15:10:29]Connected sock=10 [15:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F2 1D 08 01 16 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E3 9D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4D 1D 01 00 35 04 06 00 A3 99 6B FA 83 5F EF C3 66 BD AE B2 38 65 [15:10:29]Write to MH i2c: 01 00 00 A5 00 A5 [15:10:29]Write i2c OK [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: 01 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: 01 07 00 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E5 0C 9D [15:10:29]RasterBufferAndPrint [15:10:29]line [15:10:29]line [15:10:29]line [15:10:29]line [15:10:29]line [15:10:29]written 0, free lines is 3308 [15:10:29]MH_Cut [15:10:29]Write to MH i2c: D1 01 00 AC 00 01 7E [15:10:29]Write i2c OK [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: D1 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: D1 01 00 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: D1 01 00 AC 00 00 7D [15:10:29]Write to MH i2c: 01 00 00 AD 00 AD [15:10:29]Write i2c OK [15:10:29]MH_I2C_Read... [15:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DE CA 47 00 3A 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 34 36 36 32 10 04 04 00 4D 1D 01 00 F4 03 04 00 99 48 23 67 B6 04 01 00 00 EF 99 CA 06 E6 D8 80 21 [15:10:29]CommunicateWithHost err = 0 [15:10:29]CheckOFDResponse [15:10:29]1017 (14) - 77093643461234 [15:10:29]1041 (16) - 0000000000874662 [15:10:29]1040 (4) - 73037 [15:10:29]1012 (4) - 31.10.2024 09:06 [15:10:29]1206 (1) - 0 [15:10:29]OFD Sender: Remove packet 73037 [15:10:29]ProducePacketName [15:10:29]name=ofd_packets/00073037 [15:10:29]NVStorageDeleteData [15:10:30]*** Cut start [15:10:30]*** Partial cut [15:10:30]*** CUTSNS_PIN = 1 [15:10:30]OFD Sender: No OFD packet to send [15:10:30]*** CUTSNS_PIN = 0 [15:10:30]*** Brake cut motor [15:10:30]Read from MH i2c: 01 [15:10:30]MH_I2C_Read... [15:10:30]*** Stop cut motor [15:10:30]*** Cut end [15:10:30]Read from MH i2c: 01 07 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [15:10:30]process_action close_receipt done [15:10:30]requested_data is exist [15:10:30]produce_requested_data [15:10:30]requested_item fm.sn is exist - process it [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 11 00 00 [15:10:30]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 17 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [15:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:10:30]wFMCommunicate OK [15:10:30]requested_item fd.num is exist - process it [15:10:30]SAM_PROTO_GetFieldsCounters [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 13 00 00 [15:10:30]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 62 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [15:10:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:30]wFMCommunicate OK [15:10:30]SAM_PROTO_GetFieldsCounters done [15:10:30]requested_item shift.num is exist - process it [15:10:30]requested_item shift.opened is exist - process it [15:10:30]req_shift_opened [15:10:30]FM_GetShiftState [15:10:30]SAM_PROTO_GetShiftState [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 13 01 00 [15:10:30]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:31]Read from MH i2c: E2 0E 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D6 [15:10:31]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:10:31]wFMCommunicate OK [15:10:31]SAM_PROTO_GetShiftState done [15:10:31]FM_GetShiftState done [15:10:31]req_shift_opened done [15:10:31]requested_item shift.open_date is exist - process it [15:10:31]req_shift_open_date [15:10:31]req_shift_open_date done [15:10:31]produce_requested_data done [15:10:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73037,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:10:31]process_action_free close_receipt [15:10:31]json_value_free [15:10:31]json_value_free done [15:10:31]process_json_proto returns [15:10:31]Send response to host [15:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73037,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:10:31]free response buf [15:10:31]execute_script done [15:10:31]execute_script returns [15:10:31]free content buf [15:10:31]Sock 7.Close socket [15:10:31]Sock 7.Thread stoped [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:07]accept exits with 9 [15:11:07]New connection [15:11:07]New thread 3067149668 created [15:11:07]Thread 3067006308 joined [15:11:07]Waiting for new connection... [15:11:07] Sock 9.Parse request [15:11:07]Sock 9.Check first char [15:11:07]Sock 9.First char is OK [15:11:07]request: POST /json_proto HTTP/1.0 [15:11:07]Method: POST [15:11:07]URL: /json_proto [15:11:07]Method is POST - this is cgi request [15:11:07]url: /json_proto [15:11:07]query_string will be loaded in cgi processing [15:11:07]execute_cgi json_proto POST (null) [15:11:07]execute_cgi path=json_proto method=POST [15:11:07]POST find Content-Length [15:11:07]Host: 172.17.43.195:8080 [15:11:07]Content-Length: 682 [15:11:07]Content-Type: application/json [15:11:07] [15:11:07]POST finish read [15:11:07]Found Content-Length = 682 [15:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:07]execute_script... [15:11:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:07]POST & json_proto [15:11:07]process_json_proto [15:11:07]json parsed OK: [15:11:07]protocol is kg_v1.0 [15:11:07]action value=close_receipt [15:11:07]process_action close_receipt [15:11:07]cmd_close_receipt [15:11:07]MH_GetDate [15:11:07]Write to MH i2c: F0 00 00 B1 00 A0 [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: F0 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: F0 09 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: F0 09 00 B1 00 00 0B 9E 23 67 74 2C AD 66 8F [15:11:07]GetLastDocTimeStamp 1730387427 [15:11:07]current date 1730387467 [15:11:07]FM_GetShiftState [15:11:07]SAM_PROTO_GetShiftState [15:11:07]wFMCommunicate request_size=4 [15:11:07]MH_SAM_APDU [15:11:07]CAPDU: 80 13 01 00 [15:11:07]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:07]Read from MH i2c: E2 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 0E 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D8 [15:11:07]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:11:07]wFMCommunicate OK [15:11:07]SAM_PROTO_GetShiftState done [15:11:07]FM_GetShiftState done [15:11:07]opened in 1730333258 [15:11:07]opened+sec_in_day 1730419658 [15:11:07]quantity*price = 50063 [15:11:07]sum+1 = 50064 [15:11:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 113 31.10.2024 15:11 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73038 ФПД: 166076236089446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151107&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73038&fm=166076236089446&tin=02508201610067®Number=0000000000091644&sum=50000 [15:11:08]StoreToDocumentArchive [15:11:08]shift 557 fd 73038 [15:11:08]save to /storage/0557/doc_00073038 [15:11:08]save last doc name /storage/0557/doc_00073038 to /storage/kkm_last_doc_name [15:11:08]save OK [15:11:08]Clear old archive folders... [15:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:11:08]tlvbuf is 01E963F0 [15:11:08]SAM_PROTO_ClearQueue [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 09 00 00 [15:11:08]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [15:11:08]RAPDU: 90 00 [15:11:08]wFMCommunicate OK [15:11:08]SAM_PROTO_ClearQueue done [15:11:08]KKMCreateOFDPacket [15:11:08]OFDProtocolAddRootSTLVToBuf [15:11:08]FM_MakeSignedData [15:11:08]FM_MakeSignedData [15:11:08]SAM_PROTO_SignData [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 0D 01 02 [15:11:08]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [15:11:08]RAPDU: 90 00 [15:11:08]wFMCommunicate OK [15:11:08]wFMCommunicate request_size=255 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 0B 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1D 01 00 35 04 06 00 [15:11:08]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 0B 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1D 01 00 35 04 06 00 00 00 6D [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [15:11:08]RAPDU: 90 00 [15:11:08]wFMCommunicate OK [15:11:08]wFMCommunicate request_size=11 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 0D 02 02 06 97 0B A3 0E C8 66 [15:11:08]Write to MH i2c: E2 0E 00 C2 00 80 0D 02 02 06 00 97 0B A3 0E C8 66 00 00 C9 [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [15:11:08]RAPDU: 90 00 [15:11:08]wFMCommunicate OK [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 0D 03 02 [15:11:08]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 0B 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 0B 00 C3 00 00 10 0E DA 23 87 CF D3 4B 90 00 CE [15:11:08]RAPDU: 10 0E DA 23 87 CF D3 4B 90 00 [15:11:08]wFMCommunicate OK [15:11:08]SAM_PROTO_SignData done [15:11:08]FM_MakeSignedData done [15:11:08]CreateOFDProtocolMessage [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 11 00 00 [15:11:08]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 17 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [15:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:11:09]wFMCommunicate OK [15:11:09]CreateOFDProtocolMessage done [15:11:09]OFDSenderStorePacket 73038 [15:11:09]StoreOFDPacket docnum=73038 [15:11:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1F 65 08 01 B9 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 0B 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1D 01 00 35 04 06 00 97 0B A3 0E C8 66 10 0E DA 23 87 CF D3 4B [15:11:09]CheckFolder [15:11:09]dirname=/storage/ofd_packets [15:11:09]CheckFolder done [15:11:09]ProducePacketName [15:11:09]name=ofd_packets/00073038 [15:11:09]NVStorageSaveData ofd_packets/00073038 [15:11:09]File name is /storage/ofd_packets/00073038 [15:11:09]Write 302 bytes [15:11:09]NVStorageSaveData done [15:11:09]OFDSenderStorePacket done [15:11:09]KKMCreateOFDPacket done [15:11:09]NVStorageSaveData kkm_last_timestamp [15:11:09]File name is /storage/kkm_last_timestamp [15:11:09]Write 4 bytes [15:11:09]NVStorageSaveData done [15:11:09]ExternCall_PrintAddStr [15:11:09]wPrintStart [15:11:09]Write to MH i2c: 01 00 00 C5 00 C5 [15:11:09]Write i2c OK [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 07 00 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [15:11:09]RasterBufferAndPrint [15:11:09]line Счет N : (1)952638 [15:11:09]line ИНН: 02508201610067 [15:11:09]line Контрольно-Кассовый Чек [15:11:09]line ПРОДАЖА [15:11:09]line ТРК (МРК, ГНК) : 22 [15:11:09]line Товар: 2710194210 [15:11:09]line ДТ(л)-К-5 [15:11:09]line 6.570 * 76.20 [15:11:09]line = 500.63 [15:11:09]line НДС 12% НСП 1% [15:11:09]line > о реализуемом товаре [15:11:09]line ОКРУГЛЕНИЕ: -0.63 [15:11:09]line ИТОГО: 500.00 [15:11:09]line Внесено: 500.00 [15:11:09]line СДАЧА: 0.00 [15:11:09]line НСП 1% : 4.43 [15:11:09]line НДС 12% : 53.16 [15:11:09]line Наличными: 500.00 [15:11:09]line Безнал.: 0.00 [15:11:09]line Место: АЗС № 113 "Партнер Нефть" [15:11:09]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:11:09]line СНО: Общий режим [15:11:09]line Чек 113 31.10.2024 15:11 [15:11:09]line Смена: 557 ФФД: 1.0 [15:11:09]line ЗНМ: 0300000087 [15:11:09]line РНМ: 0000000000091644 [15:11:09]line Версия ККМ: 001 [15:11:09]line ФМ: 0000000000874662 [15:11:09]line ФД: 73038 [15:11:09]line ФПД: 166076236089446 [15:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151107&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73038&fm=166076236089446&tin=02508201610067®Number=0000000000091644&sum=50000 [15:11:09]OFD Sender: Processing packet 73038 [packets to send 279, broken 278] [15:11:09]ProducePacketName [15:11:09]name=ofd_packets/00073038 [15:11:09]OFD Sender: To server: pG, [15:11:09]CommunicateWithHost lk.salyk.kg:30040 [15:11:09]ConnectInit lk.salyk.kg [15:11:09]written 0, free lines is 4095 [15:11:09]Write to MH i2c: 01 00 00 F0 00 F0 [15:11:09]Write i2c OK [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 07 00 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 D4 0C D7 [15:11:09]RasterBufferAndPrint [15:11:09]line [15:11:09]line [15:11:09]line [15:11:09]line [15:11:09]line [15:11:09]written 0, free lines is 3292 [15:11:09]MH_Cut [15:11:09]Write to MH i2c: D1 01 00 F7 00 01 C9 [15:11:09]Write i2c OK [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: D1 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: D1 01 00 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: D1 01 00 F7 00 00 C8 [15:11:09]Write to MH i2c: 01 00 00 F8 00 F8 [15:11:09]Write i2c OK [15:11:09]MH_I2C_Read... [15:11:10]*** Cut start [15:11:10]*** Partial cut [15:11:10]*** CUTSNS_PIN = 1 [15:11:10]*** CUTSNS_PIN = 0 [15:11:10]*** Brake cut motor [15:11:11]Connected sock=10 [15:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1F 65 08 01 B9 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 0B 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1D 01 00 35 04 06 00 97 0B A3 0E C8 66 10 0E DA 23 87 CF D3 4B [15:11:11]Read from MH i2c: 01 [15:11:11]MH_I2C_Read... [15:11:11]*** Stop cut motor [15:11:11]*** Cut end [15:11:11]Read from MH i2c: 01 07 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [15:11:11]process_action close_receipt done [15:11:11]requested_data is exist [15:11:11]produce_requested_data [15:11:11]requested_item fm.sn is exist - process it [15:11:11]wFMCommunicate request_size=4 [15:11:11]MH_SAM_APDU [15:11:11]CAPDU: 80 11 00 00 [15:11:11]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:11]Read from MH i2c: E2 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 17 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [15:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:11:11]wFMCommunicate OK [15:11:11]requested_item fd.num is exist - process it [15:11:11]SAM_PROTO_GetFieldsCounters [15:11:11]wFMCommunicate request_size=4 [15:11:11]MH_SAM_APDU [15:11:11]CAPDU: 80 13 00 00 [15:11:11]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:11]Read from MH i2c: E2 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 62 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [15:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:11]wFMCommunicate OK [15:11:11]SAM_PROTO_GetFieldsCounters done [15:11:11]requested_item shift.num is exist - process it [15:11:11]requested_item shift.opened is exist - process it [15:11:11]req_shift_opened [15:11:11]FM_GetShiftState [15:11:11]SAM_PROTO_GetShiftState [15:11:11]wFMCommunicate request_size=4 [15:11:11]MH_SAM_APDU [15:11:11]CAPDU: 80 13 01 00 [15:11:11]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:11]Read from MH i2c: E2 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 0E 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 21 [15:11:11]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:11:11]wFMCommunicate OK [15:11:11]SAM_PROTO_GetShiftState done [15:11:11]FM_GetShiftState done [15:11:11]req_shift_opened done [15:11:11]requested_item shift.open_date is exist - process it [15:11:11]req_shift_open_date [15:11:11]req_shift_open_date done [15:11:11]produce_requested_data done [15:11:11]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73038,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:11:11]process_action_free close_receipt [15:11:11]json_value_free [15:11:11]json_value_free done [15:11:11]process_json_proto returns [15:11:11]Send response to host [15:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73038,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:11:11]free response buf [15:11:11]execute_script done [15:11:11]execute_script returns [15:11:11]free content buf [15:11:11]Sock 9.Close socket [15:11:11]Sock 9.Thread stoped [15:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 39 78 47 00 6E 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1D 01 00 F4 03 04 00 C2 48 23 67 B6 04 01 00 00 D5 F1 6C 6A 84 53 A5 B8 [15:11:11]CommunicateWithHost err = 0 [15:11:11]CheckOFDResponse [15:11:11]1017 (14) - 77093643461234 [15:11:11]1041 (16) - 0000000000874662 [15:11:11]1040 (4) - 73038 [15:11:11]1012 (4) - 31.10.2024 09:07 [15:11:11]1206 (1) - 0 [15:11:11]OFD Sender: Remove packet 73038 [15:11:11]ProducePacketName [15:11:11]name=ofd_packets/00073038 [15:11:11]NVStorageDeleteData [15:11:11]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:23]recv_with_timeout no data received [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:36]recv_with_timeout no data received [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:32]recv_with_timeout no data received [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:52]recv_with_timeout no data received [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:03]recv_with_timeout no data received [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:26]accept exits with 7 [15:13:26]New connection [15:13:26]New thread 3067006308 created [15:13:26]Thread 3067149668 joined [15:13:26]Waiting for new connection... [15:13:26] Sock 7.Parse request [15:13:26]Sock 7.Check first char [15:13:26]Sock 7.First char is OK [15:13:26]request: POST /json_proto HTTP/1.0 [15:13:26]Method: POST [15:13:26]URL: /json_proto [15:13:26]Method is POST - this is cgi request [15:13:26]url: /json_proto [15:13:26]query_string will be loaded in cgi processing [15:13:26]execute_cgi json_proto POST (null) [15:13:26]execute_cgi path=json_proto method=POST [15:13:26]POST find Content-Length [15:13:26]Host: 172.17.43.195:8080 [15:13:26]Content-Length: 792 [15:13:26]Content-Type: application/json [15:13:26] [15:13:26]POST finish read [15:13:26]Found Content-Length = 792 [15:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:26]execute_script... [15: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 : (1)952639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:26]POST & json_proto [15:13:26]process_json_proto [15:13:26]json parsed OK: [15:13:26]protocol is kg_v1.0 [15:13:26]action value=close_receipt [15:13:26]process_action close_receipt [15:13:26]cmd_close_receipt [15:13:26]MH_GetDate [15:13:26]Write to MH i2c: F0 00 00 FC 00 EB [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: F0 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: F0 09 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: F0 09 00 FC 00 00 97 9E 23 67 74 2C AD 66 66 [15:13:26]GetLastDocTimeStamp 1730387467 [15:13:26]current date 1730387607 [15:13:26]FM_GetShiftState [15:13:26]SAM_PROTO_GetShiftState [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 13 01 00 [15:13:26]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 23 [15:13:26]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:13:26]wFMCommunicate OK [15:13:26]SAM_PROTO_GetShiftState done [15:13:26]FM_GetShiftState done [15:13:26]opened in 1730333258 [15:13:26]opened+sec_in_day 1730419658 [15:13:26]quantity*price = 0 [15:13:26]sum+1 = 1 [15:13:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 114 31.10.2024 15:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73039 ФПД: 7774579953287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151327&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73039&fm=7774579953287&tin=02508201610067®Number=0000000000091644&sum=0 [15:13:27]StoreToDocumentArchive [15:13:27]shift 557 fd 73039 [15:13:27]save to /storage/0557/doc_00073039 [15:13:27]save last doc name /storage/0557/doc_00073039 to /storage/kkm_last_doc_name [15:13:27]save OK [15:13:27]Clear old archive folders... [15:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:27]tlvbuf is 01E30DA0 [15:13:27]SAM_PROTO_ClearQueue [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 09 00 00 [15:13:27]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [15:13:27]RAPDU: 90 00 [15:13:27]wFMCommunicate OK [15:13:27]SAM_PROTO_ClearQueue done [15:13:27]KKMCreateOFDPacket [15:13:27]OFDProtocolAddRootSTLVToBuf [15:13:27]FM_MakeSignedData [15:13:27]FM_MakeSignedData [15:13:27]SAM_PROTO_SignData [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 0D 01 02 [15:13:27]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [15:13:27]RAPDU: 90 00 [15:13:27]wFMCommunicate OK [15:13:27]wFMCommunicate request_size=255 [15:13:27]MH_SAM_APDU [15:13: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 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 97 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1D 01 00 35 04 06 00 07 [15:13:27]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 97 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1D 01 00 35 04 06 00 07 00 00 71 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [15:13:28]RAPDU: 90 00 [15:13:28]wFMCommunicate OK [15:13:28]wFMCommunicate request_size=10 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 0D 02 02 05 12 29 13 8E 87 [15:13:28]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 12 29 13 8E 87 00 00 F5 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [15:13:28]RAPDU: 90 00 [15:13:28]wFMCommunicate OK [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 0D 03 02 [15:13:28]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 0B 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 0B 00 0E 01 00 A1 79 68 75 42 CF 44 E7 90 00 BE [15:13:28]RAPDU: A1 79 68 75 42 CF 44 E7 90 00 [15:13:28]wFMCommunicate OK [15:13:28]SAM_PROTO_SignData done [15:13:28]FM_MakeSignedData done [15:13:28]CreateOFDProtocolMessage [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 11 00 00 [15:13:28]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 17 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [15:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:13:28]wFMCommunicate OK [15:13:28]CreateOFDProtocolMessage done [15:13:28]OFDSenderStorePacket 73039 [15:13:28]StoreOFDPacket docnum=73039 [15:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F0 A0 07 01 50 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 97 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1D 01 00 35 04 06 00 07 12 29 13 8E 87 A1 79 68 75 42 CF 44 E7 [15:13:28]CheckFolder [15:13:28]dirname=/storage/ofd_packets [15:13:28]CheckFolder done [15:13:28]ProducePacketName [15:13:28]name=ofd_packets/00073039 [15:13:28]NVStorageSaveData ofd_packets/00073039 [15:13:28]File name is /storage/ofd_packets/00073039 [15:13:28]Write 301 bytes [15:13:28]NVStorageSaveData done [15:13:28]OFDSenderStorePacket done [15:13:28]KKMCreateOFDPacket done [15:13:28]NVStorageSaveData kkm_last_timestamp [15:13:28]File name is /storage/kkm_last_timestamp [15:13:28]Write 4 bytes [15:13:28]NVStorageSaveData done [15:13:28]ExternCall_PrintAddStr [15:13:28]wPrintStart [15:13:28]Write to MH i2c: 01 00 00 10 01 11 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [15:13:28]RasterBufferAndPrint [15:13:28]line Счет N : (1)952639 [15:13:28]line ИНН: 02508201610067 [15:13:28]line Контрольно-Кассовый Чек [15:13:28]line ПРОДАЖА [15:13:28]line ТРК (МРК, ГНК) : 42 [15:13:28]line Товар: 2710124130 [15:13:28]line Аи-92-К-5 [15:13:28]line 10.470 * 0.00 [15:13:28]line = 0.00 [15:13:28]line НДС 12% НСП 1% [15:13:28]line > о реализуемом товаре [15:13:28]line ИТОГО: 0.00 [15:13:28]line НСП 1% : 0.00 [15:13:28]line НДС 12% : 0.00 [15:13:28]line Наличными: 0.00 [15:13:28]line Безнал.: 0.00 [15:13:28]line Место: АЗС № 113 "Партнер Нефть" [15:13:28]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:13:28]line СНО: Общий режим [15:13:28]line Чек 114 31.10.2024 15:13 [15:13:28]line Смена: 557 ФФД: 1.0 [15:13:28]line ЗНМ: 0300000087 [15:13:28]line РНМ: 0000000000091644 [15:13:28]line Версия ККМ: 001 [15:13:28]line Талоны: Топливная Карта [15:13:28]line 03047 [15:13:28]line ФМ: 0000000000874662 [15:13:28]line ФД: 73039 [15:13:28]line ФПД: 7774579953287 [15:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151327&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73039&fm=7774579953287&tin=02508201610067®Number=0000000000091644&sum=0 [15:13:28]written 0, free lines is 4095 [15:13:28]OFD Sender: Processing packet 73039 [packets to send 279, broken 278] [15:13:28]ProducePacketName [15:13:28]name=ofd_packets/00073039 [15:13:28]OFD Sender: To server: pG, [15:13:28]CommunicateWithHost lk.salyk.kg:30040 [15:13:28]ConnectInit lk.salyk.kg [15:13:28]Write to MH i2c: 01 00 00 3A 01 3B [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 DD 0C 2B [15:13:28]RasterBufferAndPrint [15:13:28]line [15:13:28]line [15:13:28]line [15:13:28]line [15:13:28]line [15:13:28]written 0, free lines is 3299 [15:13:28]MH_Cut [15:13:28]Write to MH i2c: D1 01 00 41 01 01 14 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: D1 [15:13:28]MH_I2C_Read... [15:13:28]Connected sock=9 [15: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 34 36 36 32 0F 01 00 00 F0 A0 07 01 50 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 97 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1D 01 00 35 04 06 00 07 12 29 13 8E 87 A1 79 68 75 42 CF 44 E7 [15:13:28]Read from MH i2c: D1 01 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: D1 01 00 41 01 00 13 [15:13:28]Write to MH i2c: 01 00 00 42 01 43 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:29]*** Cut start [15:13:29]*** Partial cut [15:13:29]*** CUTSNS_PIN = 1 [15:13:29]*** CUTSNS_PIN = 0 [15:13:29]*** Brake cut motor [15:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DD 8E 47 00 24 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 34 36 36 32 10 04 04 00 4F 1D 01 00 F4 03 04 00 4C 49 23 67 B6 04 01 00 00 45 66 2D DD DF 3C 20 07 [15:13:29]CommunicateWithHost err = 0 [15:13:29]CheckOFDResponse [15:13:29]1017 (14) - 77093643461234 [15:13:29]1041 (16) - 0000000000874662 [15:13:29]1040 (4) - 73039 [15:13:29]1012 (4) - 31.10.2024 09:09 [15:13:29]1206 (1) - 0 [15:13:29]OFD Sender: Remove packet 73039 [15:13:29]ProducePacketName [15:13:29]name=ofd_packets/00073039 [15:13:29]NVStorageDeleteData [15:13:30]Read from MH i2c: 01 [15:13:30]MH_I2C_Read... [15:13:30]*** Stop cut motor [15:13:30]*** Cut end [15:13:30]Read from MH i2c: 01 07 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [15:13:30]process_action close_receipt done [15:13:30]requested_data is exist [15:13:30]produce_requested_data [15:13:30]requested_item fm.sn is exist - process it [15:13:30]wFMCommunicate request_size=4 [15:13:30]MH_SAM_APDU [15:13:30]CAPDU: 80 11 00 00 [15:13:30]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:30]Read from MH i2c: E2 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 17 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [15:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:13:30]wFMCommunicate OK [15:13:30]requested_item fd.num is exist - process it [15:13:30]SAM_PROTO_GetFieldsCounters [15:13:30]wFMCommunicate request_size=4 [15:13:30]MH_SAM_APDU [15:13:30]CAPDU: 80 13 00 00 [15:13:30]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:30]Read from MH i2c: E2 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 62 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [15: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:30]wFMCommunicate OK [15:13:30]SAM_PROTO_GetFieldsCounters done [15:13:30]requested_item shift.num is exist - process it [15:13:30]requested_item shift.opened is exist - process it [15:13:30]req_shift_opened [15:13:30]FM_GetShiftState [15:13:30]SAM_PROTO_GetShiftState [15:13:30]wFMCommunicate request_size=4 [15:13:30]MH_SAM_APDU [15:13:30]CAPDU: 80 13 01 00 [15:13:30]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:30]Read from MH i2c: E2 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 0E 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6C [15:13:30]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:13:30]wFMCommunicate OK [15:13:30]SAM_PROTO_GetShiftState done [15:13:30]FM_GetShiftState done [15:13:30]req_shift_opened done [15:13:30]requested_item shift.open_date is exist - process it [15:13:30]req_shift_open_date [15:13:30]req_shift_open_date done [15:13:30]produce_requested_data done [15:13:30]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73039,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:13:30]process_action_free close_receipt [15:13:30]json_value_free [15:13:30]json_value_free done [15:13:30]process_json_proto returns [15:13:30]Send response to host [15:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73039,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:13:30]free response buf [15:13:30]execute_script done [15:13:30]execute_script returns [15:13:30]free content buf [15:13:30]Sock 7.Close socket [15:13:30]Sock 7.Thread stoped [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:37]recv_with_timeout no data received [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:01]recv_with_timeout no data received [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:26]accept exits with 10 [15:14:26]New connection [15:14:26]New thread 3067149668 created [15:14:26]Thread 3067006308 joined [15:14:26]Waiting for new connection... [15:14:26] Sock 10.Parse request [15:14:26]Sock 10.Check first char [15:14:26]Sock 10.First char is OK [15:14:26]request: POST /json_proto HTTP/1.0 [15:14:26]Method: POST [15:14:26]URL: /json_proto [15:14:26]Method is POST - this is cgi request [15:14:26]url: /json_proto [15:14:26]query_string will be loaded in cgi processing [15:14:26]execute_cgi json_proto POST (null) [15:14:26]execute_cgi path=json_proto method=POST [15:14:26]POST find Content-Length [15:14:26]Host: 172.17.43.195:8080 [15:14:26]Content-Length: 754 [15:14:26]Content-Type: application/json [15:14:26] [15:14:26]POST finish read [15:14:26]Found Content-Length = 754 [15:14:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088928", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:26]execute_script... [15:14:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088928", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:26]POST & json_proto [15:14:26]process_json_proto [15:14:26]json parsed OK: [15:14:26]protocol is kg_v1.0 [15:14:26]action value=close_receipt [15:14:26]process_action close_receipt [15:14:26]cmd_close_receipt [15:14:26]MH_GetDate [15:14:26]Write to MH i2c: F0 00 00 46 01 36 [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: F0 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: F0 09 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: F0 09 00 46 01 00 D2 9E 23 67 74 2C AD 66 EC [15:14:26]GetLastDocTimeStamp 1730387607 [15:14:26]current date 1730387666 [15:14:26]FM_GetShiftState [15:14:26]SAM_PROTO_GetShiftState [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 13 01 00 [15:14:26]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 0E 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6E [15:14:26]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:14:26]wFMCommunicate OK [15:14:26]SAM_PROTO_GetShiftState done [15:14:26]FM_GetShiftState done [15:14:26]opened in 1730333258 [15:14:26]opened+sec_in_day 1730419658 [15:14:26]quantity*price = 0 [15:14:26]sum+1 = 1 [15:14:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 115 31.10.2024 15:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30088928 ФМ: 0000000000874662 ФД: 73040 ФПД: 123204991269363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151426&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73040&fm=123204991269363&tin=02508201610067®Number=0000000000091644&sum=0 [15:14:27]StoreToDocumentArchive [15:14:27]shift 557 fd 73040 [15:14:27]save to /storage/0557/doc_00073040 [15:14:27]save last doc name /storage/0557/doc_00073040 to /storage/kkm_last_doc_name [15:14:27]save OK [15:14:27]Clear old archive folders... [15:14:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:27]tlvbuf is 01E29F60 [15:14:27]SAM_PROTO_ClearQueue [15:14:27]wFMCommunicate request_size=4 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 09 00 00 [15:14:27]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 03 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [15:14:27]RAPDU: 90 00 [15:14:27]wFMCommunicate OK [15:14:27]SAM_PROTO_ClearQueue done [15:14:27]KKMCreateOFDPacket [15:14:27]OFDProtocolAddRootSTLVToBuf [15:14:27]FM_MakeSignedData [15:14:27]FM_MakeSignedData [15:14:27]SAM_PROTO_SignData [15:14:27]wFMCommunicate request_size=4 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 0D 01 02 [15:14:27]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 03 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [15:14:27]RAPDU: 90 00 [15:14:27]wFMCommunicate OK [15:14:27]wFMCommunicate request_size=255 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D2 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1D 01 00 35 04 06 00 70 [15:14:27]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D2 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1D 01 00 35 04 06 00 70 00 00 31 [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 03 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [15:14:27]RAPDU: 90 00 [15:14:27]wFMCommunicate OK [15:14:27]wFMCommunicate request_size=10 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 0D 02 02 05 0D E5 BD 39 F3 [15:14:27]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 0D E5 BD 39 F3 00 00 B7 [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 03 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [15:14:27]RAPDU: 90 00 [15:14:27]wFMCommunicate OK [15:14:27]wFMCommunicate request_size=4 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 0D 03 02 [15:14:27]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 0B 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 0B 00 58 01 00 9A 31 82 98 81 BF 7C 7D 90 00 F3 [15:14:27]RAPDU: 9A 31 82 98 81 BF 7C 7D 90 00 [15:14:27]wFMCommunicate OK [15:14:27]SAM_PROTO_SignData done [15:14:27]FM_MakeSignedData done [15:14:27]CreateOFDProtocolMessage [15:14:27]wFMCommunicate request_size=4 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 11 00 00 [15:14:27]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 17 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [15:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:14:27]wFMCommunicate OK [15:14:27]CreateOFDProtocolMessage done [15:14:27]OFDSenderStorePacket 73040 [15:14:27]StoreOFDPacket docnum=73040 [15:14:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F9 9F 07 01 95 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D2 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1D 01 00 35 04 06 00 70 0D E5 BD 39 F3 9A 31 82 98 81 BF 7C 7D [15:14:27]CheckFolder [15:14:27]dirname=/storage/ofd_packets [15:14:27]CheckFolder done [15:14:27]ProducePacketName [15:14:27]name=ofd_packets/00073040 [15:14:27]NVStorageSaveData ofd_packets/00073040 [15:14:27]File name is /storage/ofd_packets/00073040 [15:14:27]Write 301 bytes [15:14:27]NVStorageSaveData done [15:14:27]OFDSenderStorePacket done [15:14:27]KKMCreateOFDPacket done [15:14:27]NVStorageSaveData kkm_last_timestamp [15:14:27]File name is /storage/kkm_last_timestamp [15:14:27]Write 4 bytes [15:14:27]NVStorageSaveData done [15:14:27]ExternCall_PrintAddStr [15:14:27]wPrintStart [15:14:27]Write to MH i2c: 01 00 00 5A 01 5B [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: 01 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: 01 07 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [15:14:27]RasterBufferAndPrint [15:14:27]line Счет N : (1)952640 [15:14:27]line ИНН: 02508201610067 [15:14:27]line Контрольно-Кассовый Чек [15:14:27]line ПРОДАЖА [15:14:27]line ТРК (МРК, ГНК) : 62 [15:14:27]line Товар: 2710124500 [15:14:27]line Аи-95-К-3 [15:14:27]line 40.000 * 0.00 [15:14:27]line = 0.00 [15:14:27]line НДС 12% НСП 1% [15:14:27]line > о реализуемом товаре [15:14:27]line ИТОГО: 0.00 [15:14:27]line НСП 1% : 0.00 [15:14:27]line НДС 12% : 0.00 [15:14:27]line Наличными: 0.00 [15:14:27]line Безнал.: 0.00 [15:14:27]line Место: АЗС № 113 "Партнер Нефть" [15:14:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:14:27]line СНО: Общий режим [15:14:27]line Чек 115 31.10.2024 15:14 [15:14:27]line Смена: 557 ФФД: 1.0 [15:14:27]line ЗНМ: 0300000087 [15:14:27]line РНМ: 0000000000091644 [15:14:27]line Версия ККМ: 001 [15:14:27]line Талоны: ТК ГПНА Online [15:14:27]line 30088928 [15:14:27]line ФМ: 0000000000874662 [15:14:27]line ФД: 73040 [15:14:27]line ФПД: 123204991269363 [15:14:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151426&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73040&fm=123204991269363&tin=02508201610067®Number=0000000000091644&sum=0 [15:14:27]written 0, free lines is 4095 [15:14:27]OFD Sender: Processing packet 73040 [packets to send 279, broken 278] [15:14:27]ProducePacketName [15:14:27]name=ofd_packets/00073040 [15:14:27]OFD Sender: To server: pG, [15:14:27]CommunicateWithHost lk.salyk.kg:30040 [15:14:27]ConnectInit lk.salyk.kg [15:14:28]Write to MH i2c: 01 00 00 84 01 85 [15:14:28]Write i2c OK [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: 01 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: 01 07 00 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 E2 0C 7A [15:14:28]RasterBufferAndPrint [15:14:28]line [15:14:28]line [15:14:28]line [15:14:28]line [15:14:28]line [15:14:28]written 0, free lines is 3304 [15:14:28]MH_Cut [15:14:28]Write to MH i2c: D1 01 00 8B 01 01 5E [15:14:28]Write i2c OK [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: D1 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: D1 01 00 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: D1 01 00 8B 01 00 5D [15:14:28]Write to MH i2c: 01 00 00 8C 01 8D [15:14:28]Write i2c OK [15:14:28]MH_I2C_Read... [15:14:28]Connected sock=9 [15:14:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F9 9F 07 01 95 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D2 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1D 01 00 35 04 06 00 70 0D E5 BD 39 F3 9A 31 82 98 81 BF 7C 7D [15:14:29]*** Cut start [15:14:29]*** Partial cut [15:14:29]*** CUTSNS_PIN = 1 [15:14:29]*** CUTSNS_PIN = 0 [15:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 32 3D 47 00 1E 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1D 01 00 F4 03 04 00 88 49 23 67 B6 04 01 00 00 91 4F C4 7A AC DD 3C B7 [15:14:29]CommunicateWithHost err = 0 [15:14:29]CheckOFDResponse [15:14:29]1017 (14) - 77093643461234 [15:14:29]1041 (16) - 0000000000874662 [15:14:29]1040 (4) - 73040 [15:14:29]1012 (4) - 31.10.2024 09:10 [15:14:29]1206 (1) - 0 [15:14:29]OFD Sender: Remove packet 73040 [15:14:29]ProducePacketName [15:14:29]name=ofd_packets/00073040 [15:14:29]NVStorageDeleteData [15:14:29]*** Brake cut motor [15:14:29]Read from MH i2c: 01 [15:14:29]MH_I2C_Read... [15:14:29]*** Stop cut motor [15:14:29]*** Cut end [15:14:29]OFD Sender: No OFD packet to send [15:14:29]Read from MH i2c: 01 07 00 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [15:14:29]process_action close_receipt done [15:14:29]requested_data is exist [15:14:29]produce_requested_data [15:14:29]requested_item fm.sn is exist - process it [15:14:29]wFMCommunicate request_size=4 [15:14:29]MH_SAM_APDU [15:14:29]CAPDU: 80 11 00 00 [15:14:29]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [15:14:29]Write i2c OK [15:14:29]MH_I2C_Read... [15:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:29]Read from MH i2c: E2 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 17 00 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [15:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:14:29]wFMCommunicate OK [15:14:29]requested_item fd.num is exist - process it [15:14:29]SAM_PROTO_GetFieldsCounters [15:14:29]wFMCommunicate request_size=4 [15:14:29]MH_SAM_APDU [15:14:29]CAPDU: 80 13 00 00 [15:14:29]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [15:14:29]Write i2c OK [15:14:29]MH_I2C_Read... [15:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:29]Read from MH i2c: E2 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 62 00 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 50 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [15:14:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 50 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:29]wFMCommunicate OK [15:14:29]SAM_PROTO_GetFieldsCounters done [15:14:29]requested_item shift.num is exist - process it [15:14:29]requested_item shift.opened is exist - process it [15:14:29]req_shift_opened [15:14:29]FM_GetShiftState [15:14:29]SAM_PROTO_GetShiftState [15:14:29]wFMCommunicate request_size=4 [15:14:29]MH_SAM_APDU [15:14:29]CAPDU: 80 13 01 00 [15:14:29]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [15:14:29]Write i2c OK [15:14:29]MH_I2C_Read... [15:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:29]Read from MH i2c: E2 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 0E 00 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B6 [15:14:29]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:14:29]wFMCommunicate OK [15:14:29]SAM_PROTO_GetShiftState done [15:14:29]FM_GetShiftState done [15:14:29]req_shift_opened done [15:14:29]requested_item shift.open_date is exist - process it [15:14:29]req_shift_open_date [15:14:29]req_shift_open_date done [15:14:29]produce_requested_data done [15:14:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73040,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:14:29]process_action_free close_receipt [15:14:29]json_value_free [15:14:29]json_value_free done [15:14:29]process_json_proto returns [15:14:29]Send response to host [15:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73040,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:14:29]free response buf [15:14:29]execute_script done [15:14:29]execute_script returns [15:14:29]free content buf [15:14:29]Sock 10.Close socket [15:14:29]Sock 10.Thread stoped [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:51]recv_with_timeout no data received [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:42]recv_with_timeout no data received [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]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:14]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]recv_with_timeout no data received [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:05]recv_with_timeout no data received [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:07]recv_with_timeout no data received [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:41]recv_with_timeout no data received [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:09]accept exits with 7 [15:22:09]New connection [15:22:09]New thread 3067006308 created [15:22:09]Thread 3067149668 joined [15:22:09]Waiting for new connection... [15:22:09] Sock 7.Parse request [15:22:09]Sock 7.Check first char [15:22:09]Sock 7.First char is OK [15:22:09]request: POST /json_proto HTTP/1.0 [15:22:09]Method: POST [15:22:09]URL: /json_proto [15:22:09]Method is POST - this is cgi request [15:22:09]url: /json_proto [15:22:09]query_string will be loaded in cgi processing [15:22:09]execute_cgi json_proto POST (null) [15:22:09]execute_cgi path=json_proto method=POST [15:22:09]POST find Content-Length [15:22:09]Host: 172.17.43.195:8080 [15:22:09]Content-Length: 793 [15:22:09]Content-Type: application/json [15:22:09] [15:22:09]POST finish read [15:22:09]Found Content-Length = 793 [15:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:09]execute_script... [15:22:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:09]POST & json_proto [15:22:09]process_json_proto [15:22:09]json parsed OK: [15:22:09]protocol is kg_v1.0 [15:22:09]action value=close_receipt [15:22:09]process_action close_receipt [15:22:09]cmd_close_receipt [15:22:09]MH_GetDate [15:22:09]Write to MH i2c: F0 00 00 90 01 80 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: F0 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: F0 09 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: F0 09 00 90 01 00 A1 A0 23 67 74 2C AD 66 07 [15:22:09]GetLastDocTimeStamp 1730387666 [15:22:09]current date 1730388129 [15:22:09]FM_GetShiftState [15:22:09]SAM_PROTO_GetShiftState [15:22:09]wFMCommunicate request_size=4 [15:22:09]MH_SAM_APDU [15:22:09]CAPDU: 80 13 01 00 [15:22:09]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 0E 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B8 [15:22:09]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:22:09]wFMCommunicate OK [15:22:09]SAM_PROTO_GetShiftState done [15:22:09]FM_GetShiftState done [15:22:09]opened in 1730333258 [15:22:09]opened+sec_in_day 1730419658 [15:22:09]quantity*price = 0 [15:22:09]sum+1 = 1 [15:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 116 31.10.2024 15:22 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73041 ФПД: 18772060273451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152209&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73041&fm=18772060273451&tin=02508201610067®Number=0000000000091644&sum=0 [15:22:10]StoreToDocumentArchive [15:22:10]shift 557 fd 73041 [15:22:10]save to /storage/0557/doc_00073041 [15:22:10]save last doc name /storage/0557/doc_00073041 to /storage/kkm_last_doc_name [15:22:10]save OK [15:22:10]Clear old archive folders... [15:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:10]tlvbuf is 01E28630 [15:22:10]SAM_PROTO_ClearQueue [15:22:10]wFMCommunicate request_size=4 [15:22:10]MH_SAM_APDU [15:22:10]CAPDU: 80 09 00 00 [15:22:10]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 03 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [15:22:10]RAPDU: 90 00 [15:22:10]wFMCommunicate OK [15:22:10]SAM_PROTO_ClearQueue done [15:22:10]KKMCreateOFDPacket [15:22:10]OFDProtocolAddRootSTLVToBuf [15:22:10]FM_MakeSignedData [15:22:10]FM_MakeSignedData [15:22:10]SAM_PROTO_SignData [15:22:10]wFMCommunicate request_size=4 [15:22:10]MH_SAM_APDU [15:22:10]CAPDU: 80 0D 01 02 [15:22:10]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 03 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [15:22:10]RAPDU: 90 00 [15:22:10]wFMCommunicate OK [15:22:10]wFMCommunicate request_size=255 [15:22:10]MH_SAM_APDU [15:22: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 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A1 A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1D 01 00 35 04 06 00 11 [15:22:10]Write to MH i2c: E2 02 01 A0 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A1 A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1D 01 00 35 04 06 00 11 00 00 15 [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]OFD Sender: No OFD packet to send [15:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 03 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [15:22:10]RAPDU: 90 00 [15:22:10]wFMCommunicate OK [15:22:10]wFMCommunicate request_size=10 [15:22:10]MH_SAM_APDU [15:22:10]CAPDU: 80 0D 02 02 05 12 B5 FB FB 2B [15:22:10]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 12 B5 FB FB 2B 00 00 0E [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 03 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [15:22:10]RAPDU: 90 00 [15:22:10]wFMCommunicate OK [15:22:10]wFMCommunicate request_size=4 [15:22:10]MH_SAM_APDU [15:22:10]CAPDU: 80 0D 03 02 [15:22:10]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 0B 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 0B 00 A2 01 00 25 77 05 12 4D 46 B7 85 90 00 A1 [15:22:10]RAPDU: 25 77 05 12 4D 46 B7 85 90 00 [15:22:10]wFMCommunicate OK [15:22:10]SAM_PROTO_SignData done [15:22:10]FM_MakeSignedData done [15:22:10]CreateOFDProtocolMessage [15:22:10]wFMCommunicate request_size=4 [15:22:10]MH_SAM_APDU [15:22:10]CAPDU: 80 11 00 00 [15:22:10]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 17 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 72 [15:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:22:10]wFMCommunicate OK [15:22:10]CreateOFDProtocolMessage done [15:22:10]OFDSenderStorePacket 73041 [15:22:10]StoreOFDPacket docnum=73041 [15:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B0 45 07 01 B6 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A1 A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1D 01 00 35 04 06 00 11 12 B5 FB FB 2B 25 77 05 12 4D 46 B7 85 [15:22:10]CheckFolder [15:22:10]dirname=/storage/ofd_packets [15:22:10]CheckFolder done [15:22:10]ProducePacketName [15:22:10]name=ofd_packets/00073041 [15:22:10]NVStorageSaveData ofd_packets/00073041 [15:22:10]File name is /storage/ofd_packets/00073041 [15:22:10]Write 301 bytes [15:22:10]NVStorageSaveData done [15:22:10]OFDSenderStorePacket done [15:22:10]KKMCreateOFDPacket done [15:22:10]NVStorageSaveData kkm_last_timestamp [15:22:10]File name is /storage/kkm_last_timestamp [15:22:10]Write 4 bytes [15:22:10]NVStorageSaveData done [15:22:10]ExternCall_PrintAddStr [15:22:10]wPrintStart [15:22:10]Write to MH i2c: 01 00 00 A4 01 A5 [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 07 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [15:22:10]RasterBufferAndPrint [15:22:10]line Счет N : (1)952641 [15:22:10]line ИНН: 02508201610067 [15:22:10]line Контрольно-Кассовый Чек [15:22:10]line ПРОДАЖА [15:22:10]line ТРК (МРК, ГНК) : 53 [15:22:10]line Товар: 2710124130 [15:22:10]line Аи-92-К-5 [15:22:10]line 140.000 * 0.00 [15:22:10]line = 0.00 [15:22:10]line НДС 12% НСП 1% [15:22:10]line > о реализуемом товаре [15:22:10]line ИТОГО: 0.00 [15:22:10]line НСП 1% : 0.00 [15:22:10]line НДС 12% : 0.00 [15:22:10]line Наличными: 0.00 [15:22:10]line Безнал.: 0.00 [15:22:10]line Место: АЗС № 113 "Партнер Нефть" [15:22:10]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:22:10]line СНО: Общий режим [15:22:10]line Чек 116 31.10.2024 15:22 [15:22:10]line Смена: 557 ФФД: 1.0 [15:22:10]line ЗНМ: 0300000087 [15:22:10]line РНМ: 0000000000091644 [15:22:10]line Версия ККМ: 001 [15:22:10]line Талоны: Топливная Карта [15:22:10]line 03047 [15:22:10]line ФМ: 0000000000874662 [15:22:10]line ФД: 73041 [15:22:10]line ФПД: 18772060273451 [15:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152209&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73041&fm=18772060273451&tin=02508201610067®Number=0000000000091644&sum=0 [15:22:11]written 0, free lines is 4095 [15:22:11]OFD Sender: Processing packet 73041 [packets to send 279, broken 278] [15:22:11]ProducePacketName [15:22:11]name=ofd_packets/00073041 [15:22:11]OFD Sender: To server: pG, [15:22:11]CommunicateWithHost lk.salyk.kg:30040 [15:22:11]ConnectInit lk.salyk.kg [15:22:11]Write to MH i2c: 01 00 00 CE 01 CF [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: 01 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: 01 07 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 DE 0C C0 [15:22:11]RasterBufferAndPrint [15:22:11]line [15:22:11]line [15:22:11]line [15:22:11]line [15:22:11]line [15:22:11]written 0, free lines is 3300 [15:22:11]MH_Cut [15:22:11]Write to MH i2c: D1 01 00 D5 01 01 A8 [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: D1 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: D1 01 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: D1 01 00 D5 01 00 A7 [15:22:11]Write to MH i2c: 01 00 00 D6 01 D7 [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:12]*** Cut start [15:22:12]*** Partial cut [15:22:12]*** CUTSNS_PIN = 1 [15:22:12]*** CUTSNS_PIN = 0 [15:22:12]*** Brake cut motor [15:22:12]Connected sock=10 [15:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B0 45 07 01 B6 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A1 A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1D 01 00 35 04 06 00 11 12 B5 FB FB 2B 25 77 05 12 4D 46 B7 85 [15:22:13]Read from MH i2c: 01 [15:22:13]MH_I2C_Read... [15:22:13]*** Stop cut motor [15:22:13]*** Cut end [15:22:13]Read from MH i2c: 01 07 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [15:22:13]process_action close_receipt done [15:22:13]requested_data is exist [15:22:13]produce_requested_data [15:22:13]requested_item fm.sn is exist - process it [15:22:13]wFMCommunicate request_size=4 [15:22:13]MH_SAM_APDU [15:22:13]CAPDU: 80 11 00 00 [15:22:13]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:13]Read from MH i2c: E2 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 17 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [15:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:22:13]wFMCommunicate OK [15:22:13]requested_item fd.num is exist - process it [15:22:13]SAM_PROTO_GetFieldsCounters [15:22:13]wFMCommunicate request_size=4 [15:22:13]MH_SAM_APDU [15:22:13]CAPDU: 80 13 00 00 [15:22:13]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:13]Read from MH i2c: E2 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 62 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 62 00 D8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 51 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [15:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 51 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:13]wFMCommunicate OK [15:22:13]SAM_PROTO_GetFieldsCounters done [15:22:13]requested_item shift.num is exist - process it [15:22:13]requested_item shift.opened is exist - process it [15:22:13]req_shift_opened [15:22:13]FM_GetShiftState [15:22:13]SAM_PROTO_GetShiftState [15:22:13]wFMCommunicate request_size=4 [15:22:13]MH_SAM_APDU [15:22:13]CAPDU: 80 13 01 00 [15:22:13]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:13]Read from MH i2c: E2 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 0E 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 00 [15:22:13]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:22:13]wFMCommunicate OK [15:22:13]SAM_PROTO_GetShiftState done [15:22:13]FM_GetShiftState done [15:22:13]req_shift_opened done [15:22:13]requested_item shift.open_date is exist - process it [15:22:13]req_shift_open_date [15:22:13]req_shift_open_date done [15:22:13]produce_requested_data done [15:22:13]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73041,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:22:13]process_action_free close_receipt [15:22:13]json_value_free [15:22:13]json_value_free done [15:22:13]process_json_proto returns [15:22:13]Send response to host [15:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73041,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:22:13]free response buf [15:22:13]execute_script done [15:22:13]execute_script returns [15:22:13]free content buf [15:22:13]Sock 7.Close socket [15:22:13]Sock 7.Thread stoped [15:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 72 28 47 00 57 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1D 01 00 F4 03 04 00 58 4B 23 67 B6 04 01 00 00 1F AB FC A4 1E 7F E1 E4 [15:22:13]CommunicateWithHost err = 0 [15:22:13]CheckOFDResponse [15:22:13]1017 (14) - 77093643461234 [15:22:13]1041 (16) - 0000000000874662 [15:22:13]1040 (4) - 73041 [15:22:13]1012 (4) - 31.10.2024 09:18 [15:22:13]1206 (1) - 0 [15:22:13]OFD Sender: Remove packet 73041 [15:22:13]ProducePacketName [15:22:13]name=ofd_packets/00073041 [15:22:13]NVStorageDeleteData [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:35]accept exits with 9 [15:22:35]New connection [15:22:35]New thread 3067149668 created [15:22:35]Thread 3067006308 joined [15:22:35]Waiting for new connection... [15:22:35] Sock 9.Parse request [15:22:35]Sock 9.Check first char [15:22:35]Sock 9.First char is OK [15:22:35]request: POST /json_proto HTTP/1.0 [15:22:35]Method: POST [15:22:35]URL: /json_proto [15:22:35]Method is POST - this is cgi request [15:22:35]url: /json_proto [15:22:35]query_string will be loaded in cgi processing [15:22:35]execute_cgi json_proto POST (null) [15:22:35]execute_cgi path=json_proto method=POST [15:22:35]POST find Content-Length [15:22:35]Host: 172.17.43.195:8080 [15:22:35]Content-Length: 793 [15:22:35]Content-Type: application/json [15:22:35] [15:22:35]POST finish read [15:22:35]Found Content-Length = 793 [15:22:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:35]execute_script... [15:22:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:35]POST & json_proto [15:22:35]process_json_proto [15:22:35]json parsed OK: [15:22:35]protocol is kg_v1.0 [15:22:35]action value=close_receipt [15:22:35]process_action close_receipt [15:22:35]cmd_close_receipt [15:22:35]MH_GetDate [15:22:35]Write to MH i2c: F0 00 00 DA 01 CA [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: F0 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: F0 09 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: F0 09 00 DA 01 00 BC A0 23 67 74 2C AD 66 6C [15:22:35]GetLastDocTimeStamp 1730388129 [15:22:35]current date 1730388156 [15:22:35]FM_GetShiftState [15:22:35]SAM_PROTO_GetShiftState [15:22:35]wFMCommunicate request_size=4 [15:22:35]MH_SAM_APDU [15:22:35]CAPDU: 80 13 01 00 [15:22:35]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:35]Read from MH i2c: E2 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 0E 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 02 [15:22:35]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:22:35]wFMCommunicate OK [15:22:35]SAM_PROTO_GetShiftState done [15:22:35]FM_GetShiftState done [15:22:35]opened in 1730333258 [15:22:35]opened+sec_in_day 1730419658 [15:22:35]quantity*price = 0 [15:22:35]sum+1 = 1 [15:22:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 117 31.10.2024 15:22 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73042 ФПД: 56377971794980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152236&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73042&fm=56377971794980&tin=02508201610067®Number=0000000000091644&sum=0 [15:22:37]StoreToDocumentArchive [15:22:37]shift 557 fd 73042 [15:22:37]save to /storage/0557/doc_00073042 [15:22:37]save last doc name /storage/0557/doc_00073042 to /storage/kkm_last_doc_name [15:22:37]save OK [15:22:37]Clear old archive folders... [15:22:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:37]tlvbuf is 01E33D80 [15:22:37]SAM_PROTO_ClearQueue [15:22:37]wFMCommunicate request_size=4 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 09 00 00 [15:22:37]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 03 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [15:22:37]RAPDU: 90 00 [15:22:37]wFMCommunicate OK [15:22:37]SAM_PROTO_ClearQueue done [15:22:37]KKMCreateOFDPacket [15:22:37]OFDProtocolAddRootSTLVToBuf [15:22:37]FM_MakeSignedData [15:22:37]FM_MakeSignedData [15:22:37]SAM_PROTO_SignData [15:22:37]wFMCommunicate request_size=4 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 0D 01 02 [15:22:37]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 03 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [15:22:37]RAPDU: 90 00 [15:22:37]wFMCommunicate OK [15:22:37]wFMCommunicate request_size=255 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BC A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1D 01 00 35 04 06 00 33 [15:22:37]Write to MH i2c: E2 02 01 EA 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BC A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1D 01 00 35 04 06 00 33 00 00 9E [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 03 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [15:22:37]RAPDU: 90 00 [15:22:37]wFMCommunicate OK [15:22:37]wFMCommunicate request_size=10 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 0D 02 02 05 46 84 FB 64 24 [15:22:37]Write to MH i2c: E2 0D 00 EB 01 80 0D 02 02 05 00 46 84 FB 64 24 00 00 BD [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 03 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [15:22:37]RAPDU: 90 00 [15:22:37]wFMCommunicate OK [15:22:37]wFMCommunicate request_size=4 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 0D 03 02 [15:22:37]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 0B 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 0B 00 EC 01 00 89 A1 42 3E 72 39 D7 BE 90 00 53 [15:22:37]RAPDU: 89 A1 42 3E 72 39 D7 BE 90 00 [15:22:37]wFMCommunicate OK [15:22:37]SAM_PROTO_SignData done [15:22:37]FM_MakeSignedData done [15:22:37]CreateOFDProtocolMessage [15:22:37]wFMCommunicate request_size=4 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 11 00 00 [15:22:37]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 17 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BC [15:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:22:37]wFMCommunicate OK [15:22:37]CreateOFDProtocolMessage done [15:22:37]OFDSenderStorePacket 73042 [15:22:37]StoreOFDPacket docnum=73042 [15:22:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9A D1 07 01 EE 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BC A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1D 01 00 35 04 06 00 33 46 84 FB 64 24 89 A1 42 3E 72 39 D7 BE [15:22:37]CheckFolder [15:22:37]dirname=/storage/ofd_packets [15:22:37]CheckFolder done [15:22:37]ProducePacketName [15:22:37]name=ofd_packets/00073042 [15:22:37]NVStorageSaveData ofd_packets/00073042 [15:22:37]File name is /storage/ofd_packets/00073042 [15:22:37]Write 301 bytes [15:22:37]NVStorageSaveData done [15:22:37]OFDSenderStorePacket done [15:22:37]KKMCreateOFDPacket done [15:22:37]NVStorageSaveData kkm_last_timestamp [15:22:37]File name is /storage/kkm_last_timestamp [15:22:37]Write 4 bytes [15:22:37]NVStorageSaveData done [15:22:37]ExternCall_PrintAddStr [15:22:37]wPrintStart [15:22:37]Write to MH i2c: 01 00 00 EE 01 EF [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: 01 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: 01 07 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [15:22:37]RasterBufferAndPrint [15:22:37]line Счет N : (1)952642 [15:22:37]line ИНН: 02508201610067 [15:22:37]line Контрольно-Кассовый Чек [15:22:37]line ПРОДАЖА [15:22:37]line ТРК (МРК, ГНК) : 63 [15:22:37]line Товар: 2710124130 [15:22:37]line Аи-92-К-5 [15:22:37]line 140.000 * 0.00 [15:22:37]line = 0.00 [15:22:37]line НДС 12% НСП 1% [15:22:37]line > о реализуемом товаре [15:22:37]line ИТОГО: 0.00 [15:22:37]line НСП 1% : 0.00 [15:22:37]line НДС 12% : 0.00 [15:22:37]line Наличными: 0.00 [15:22:37]line Безнал.: 0.00 [15:22:37]line Место: АЗС № 113 "Партнер Нефть" [15:22:37]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:22:37]line СНО: Общий режим [15:22:37]line Чек 117 31.10.2024 15:22 [15:22:37]line Смена: 557 ФФД: 1.0 [15:22:37]line ЗНМ: 0300000087 [15:22:37]line РНМ: 0000000000091644 [15:22:37]line Версия ККМ: 001 [15:22:37]line Талоны: Топливная Карта [15:22:37]line 03047 [15:22:37]line ФМ: 0000000000874662 [15:22:37]line ФД: 73042 [15:22:37]line ФПД: 56377971794980 [15:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152236&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73042&fm=56377971794980&tin=02508201610067®Number=0000000000091644&sum=0 [15:22:37]OFD Sender: Processing packet 73042 [packets to send 279, broken 278] [15:22:37]ProducePacketName [15:22:37]name=ofd_packets/00073042 [15:22:37]OFD Sender: To server: pG, [15:22:37]CommunicateWithHost lk.salyk.kg:30040 [15:22:37]ConnectInit lk.salyk.kg [15:22:37]written 0, free lines is 4095 [15:22:38]Write to MH i2c: 01 00 00 18 02 1A [15:22:38]Write i2c OK [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: 01 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: 01 07 00 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 E1 0C 0E [15:22:38]RasterBufferAndPrint [15:22:38]line [15:22:38]line [15:22:38]line [15:22:38]line [15:22:38]line [15:22:38]written 0, free lines is 3303 [15:22:38]MH_Cut [15:22:38]Write to MH i2c: D1 01 00 1F 02 01 F3 [15:22:38]Write i2c OK [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: D1 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: D1 01 00 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: D1 01 00 1F 02 00 F2 [15:22:38]Write to MH i2c: 01 00 00 20 02 22 [15:22:38]Write i2c OK [15:22:38]MH_I2C_Read... [15:22:39]*** Cut start [15:22:39]*** Partial cut [15:22:39]*** CUTSNS_PIN = 1 [15:22:39]*** CUTSNS_PIN = 0 [15:22:39]*** Brake cut motor [15:22:39]Read from MH i2c: 01 [15:22:39]MH_I2C_Read... [15:22:39]*** Stop cut motor [15:22:39]*** Cut end [15:22:39]Read from MH i2c: 01 07 00 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [15:22:39]process_action close_receipt done [15:22:39]requested_data is exist [15:22:39]produce_requested_data [15:22:39]requested_item fm.sn is exist - process it [15:22:39]wFMCommunicate request_size=4 [15:22:39]MH_SAM_APDU [15:22:39]CAPDU: 80 11 00 00 [15:22:39]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [15:22:39]Write i2c OK [15:22:39]MH_I2C_Read... [15:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:39]Read from MH i2c: E2 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 17 00 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F1 [15:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:22:39]wFMCommunicate OK [15:22:39]requested_item fd.num is exist - process it [15:22:39]SAM_PROTO_GetFieldsCounters [15:22:39]wFMCommunicate request_size=4 [15:22:39]MH_SAM_APDU [15:22:39]CAPDU: 80 13 00 00 [15:22:39]Write to MH i2c: E2 08 00 22 02 80 13 00 00 00 00 00 00 A0 [15:22:39]Write i2c OK [15:22:39]MH_I2C_Read... [15:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:39]Read from MH i2c: E2 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 62 00 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 62 00 22 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 52 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [15:22:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 52 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:39]wFMCommunicate OK [15:22:39]SAM_PROTO_GetFieldsCounters done [15:22:39]requested_item shift.num is exist - process it [15:22:39]requested_item shift.opened is exist - process it [15:22:39]req_shift_opened [15:22:39]FM_GetShiftState [15:22:39]SAM_PROTO_GetShiftState [15:22:39]wFMCommunicate request_size=4 [15:22:39]MH_SAM_APDU [15:22:39]CAPDU: 80 13 01 00 [15:22:39]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [15:22:39]Write i2c OK [15:22:39]MH_I2C_Read... [15:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:39]Read from MH i2c: E2 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 0E 00 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4B [15:22:39]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:22:39]wFMCommunicate OK [15:22:39]SAM_PROTO_GetShiftState done [15:22:39]FM_GetShiftState done [15:22:39]req_shift_opened done [15:22:39]requested_item shift.open_date is exist - process it [15:22:39]req_shift_open_date [15:22:39]req_shift_open_date done [15:22:39]produce_requested_data done [15:22:39]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73042,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:22:39]process_action_free close_receipt [15:22:39]json_value_free [15:22:39]json_value_free done [15:22:39]process_json_proto returns [15:22:39]Send response to host [15:22:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73042,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:22:39]free response buf [15:22:39]execute_script done [15:22:39]execute_script returns [15:22:39]free content buf [15:22:39]Sock 9.Close socket [15:22:39]Sock 9.Thread stoped [15:22:41]Connected sock=11 [15:22:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9A D1 07 01 EE 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BC A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1D 01 00 35 04 06 00 33 46 84 FB 64 24 89 A1 42 3E 72 39 D7 BE [15:22:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 AB 47 00 5C 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 34 36 36 32 10 04 04 00 52 1D 01 00 F4 03 04 00 75 4B 23 67 B6 04 01 00 00 F7 1A 0C 59 41 DD A6 32 [15:22:41]CommunicateWithHost err = 0 [15:22:41]CheckOFDResponse [15:22:41]1017 (14) - 77093643461234 [15:22:41]1041 (16) - 0000000000874662 [15:22:41]1040 (4) - 73042 [15:22:41]1012 (4) - 31.10.2024 09:18 [15:22:41]1206 (1) - 0 [15:22:41]OFD Sender: Remove packet 73042 [15:22:41]ProducePacketName [15:22:41]name=ofd_packets/00073042 [15:22:41]NVStorageDeleteData [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:53]recv_with_timeout no data received [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:44]recv_with_timeout no data received [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:11]accept exits with 7 [15:24:11]New connection [15:24:11]New thread 3067006308 created [15:24:11]Thread 3067149668 joined [15:24:11]Waiting for new connection... [15:24:11] Sock 7.Parse request [15:24:11]Sock 7.Check first char [15:24:11]Sock 7.First char is OK [15:24:11]request: POST /json_proto HTTP/1.0 [15:24:11]Method: POST [15:24:11]URL: /json_proto [15:24:11]Method is POST - this is cgi request [15:24:11]url: /json_proto [15:24:11]query_string will be loaded in cgi processing [15:24:11]execute_cgi json_proto POST (null) [15:24:11]execute_cgi path=json_proto method=POST [15:24:11]POST find Content-Length [15:24:11]Host: 172.17.43.195:8080 [15:24:11]Content-Length: 806 [15:24:11]Content-Type: application/json [15:24:11] [15:24:11]POST finish read [15:24:11]Found Content-Length = 806 [15:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:11]execute_script... [15:24:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:11]POST & json_proto [15:24:11]process_json_proto [15:24:11]json parsed OK: [15:24:11]protocol is kg_v1.0 [15:24:11]action value=close_receipt [15:24:11]process_action close_receipt [15:24:11]cmd_close_receipt [15:24:11]MH_GetDate [15:24:11]Write to MH i2c: F0 00 00 24 02 15 [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 09 00 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 09 00 24 02 00 1C A1 23 67 74 2C AD 66 18 [15:24:11]GetLastDocTimeStamp 1730388156 [15:24:11]current date 1730388252 [15:24:11]FM_GetShiftState [15:24:11]SAM_PROTO_GetShiftState [15:24:11]wFMCommunicate request_size=4 [15:24:11]MH_SAM_APDU [15:24:11]CAPDU: 80 13 01 00 [15:24:11]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:11]Read from MH i2c: E2 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 0E 00 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4D [15:24:11]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:24:11]wFMCommunicate OK [15:24:11]SAM_PROTO_GetShiftState done [15:24:11]FM_GetShiftState done [15:24:11]opened in 1730333258 [15:24:11]opened+sec_in_day 1730419658 [15:24:11]quantity*price = 120006 [15:24:11]sum+1 = 120008 [15:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.07 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.07 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 118 31.10.2024 15:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73043 ФПД: 19323370153950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152412&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73043&fm=19323370153950&tin=02508201610067®Number=0000000000091644&sum=120007 [15:24:12]StoreToDocumentArchive [15:24:12]shift 557 fd 73043 [15:24:12]save to /storage/0557/doc_00073043 [15:24:12]save last doc name /storage/0557/doc_00073043 to /storage/kkm_last_doc_name [15:24:12]save OK [15:24:12]Clear old archive folders... [15:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:24:12]tlvbuf is 01E26710 [15:24:12]SAM_PROTO_ClearQueue [15:24:12]wFMCommunicate request_size=4 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 09 00 00 [15:24:12]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [15:24:12]RAPDU: 90 00 [15:24:12]wFMCommunicate OK [15:24:12]SAM_PROTO_ClearQueue done [15:24:12]KKMCreateOFDPacket [15:24:12]OFDProtocolAddRootSTLVToBuf [15:24:12]FM_MakeSignedData [15:24:12]FM_MakeSignedData [15:24:12]SAM_PROTO_SignData [15:24:12]wFMCommunicate request_size=4 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 0D 01 02 [15:24:12]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [15:24:12]RAPDU: 90 00 [15:24:12]wFMCommunicate OK [15:24:12]wFMCommunicate request_size=255 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1C A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1D 01 00 35 04 06 00 11 93 [15:24:12]Write to MH i2c: E2 02 01 34 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1C A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1D 01 00 35 04 06 00 11 93 00 00 90 [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]wFMCommunicate request_size=9 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 02 02 04 12 9D 27 DE [15:24:13]Write to MH i2c: E2 0C 00 35 02 80 0D 02 02 04 00 12 9D 27 DE 00 00 6D [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]wFMCommunicate request_size=4 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 03 02 [15:24:13]Write to MH i2c: E2 08 00 36 02 80 0D 03 02 00 00 00 00 B3 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 0B 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 0B 00 36 02 00 85 CE B7 3A 12 5F 8C 18 90 00 0D [15:24:13]RAPDU: 85 CE B7 3A 12 5F 8C 18 90 00 [15:24:13]wFMCommunicate OK [15:24:13]SAM_PROTO_SignData done [15:24:13]FM_MakeSignedData done [15:24:13]CreateOFDProtocolMessage [15:24:13]wFMCommunicate request_size=4 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 11 00 00 [15:24:13]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 17 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 07 [15:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:24:13]wFMCommunicate OK [15:24:13]CreateOFDProtocolMessage done [15:24:13]OFDSenderStorePacket 73043 [15:24:13]StoreOFDPacket docnum=73043 [15:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 24 8A 06 01 61 20 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1C A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1D 01 00 35 04 06 00 11 93 12 9D 27 DE 85 CE B7 3A 12 5F 8C 18 [15:24:13]CheckFolder [15:24:13]dirname=/storage/ofd_packets [15:24:13]CheckFolder done [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00073043 [15:24:13]NVStorageSaveData ofd_packets/00073043 [15:24:13]File name is /storage/ofd_packets/00073043 [15:24:13]Write 300 bytes [15:24:13]NVStorageSaveData done [15:24:13]OFDSenderStorePacket done [15:24:13]KKMCreateOFDPacket done [15:24:13]NVStorageSaveData kkm_last_timestamp [15:24:13]File name is /storage/kkm_last_timestamp [15:24:13]Write 4 bytes [15:24:13]NVStorageSaveData done [15:24:13]ExternCall_PrintAddStr [15:24:13]wPrintStart [15:24:13]Write to MH i2c: 01 00 00 38 02 3A [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [15:24:13]RasterBufferAndPrint [15:24:13]line Счет N : (1)952643 [15:24:13]line ИНН: 02508201610067 [15:24:13]line Контрольно-Кассовый Чек [15:24:13]line ПРОДАЖА [15:24:13]line ТРК (МРК, ГНК) : 71 [15:24:13]line Товар: 2711190000 [15:24:13]line ГАЗ-К-3 [15:24:13]line 30.850 * 38.90 [15:24:13]line = 1200.07 [15:24:13]line НДС 12% НСП 1% [15:24:13]line > о реализуемом товаре [15:24:13]line ИТОГО: 1200.07 [15:24:13]line НСП 1% : 10.62 [15:24:13]line НДС 12% : 127.44 [15:24:13]line Наличными: 0.00 [15:24:13]line Безнал.: 1200.07 [15:24:13]line Место: АЗС № 113 "Партнер Нефть" [15:24:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:24:13]line СНО: Общий режим [15:24:13]line Чек 118 31.10.2024 15:24 [15:24:13]line Смена: 557 ФФД: 1.0 [15:24:13]line ЗНМ: 0300000087 [15:24:13]line РНМ: 0000000000091644 [15:24:13]line Версия ККМ: 001 [15:24:13]line Платежная система: O! деньги [15:24:13]line ФМ: 0000000000874662 [15:24:13]line ФД: 73043 [15:24:13]line ФПД: 19323370153950 [15:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152412&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73043&fm=19323370153950&tin=02508201610067®Number=0000000000091644&sum=120007 [15:24:13]written 0, free lines is 4095 [15:24:13]OFD Sender: Processing packet 73043 [packets to send 279, broken 278] [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00073043 [15:24:13]OFD Sender: To server: pG, [15:24:13]CommunicateWithHost lk.salyk.kg:30040 [15:24:13]ConnectInit lk.salyk.kg [15:24:13]Write to MH i2c: 01 00 00 62 02 64 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 E1 0C 58 [15:24:13]RasterBufferAndPrint [15:24:13]line [15:24:13]line [15:24:13]line [15:24:13]line [15:24:13]line [15:24:13]written 0, free lines is 3303 [15:24:13]MH_Cut [15:24:13]Write to MH i2c: D1 01 00 69 02 01 3D [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: D1 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: D1 01 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: D1 01 00 69 02 00 3C [15:24:13]Write to MH i2c: 01 00 00 6A 02 6C [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:14]*** Cut start [15:24:14]*** Partial cut [15:24:14]*** CUTSNS_PIN = 1 [15:24:14]*** CUTSNS_PIN = 0 [15:24:14]*** Brake cut motor [15:24:15]Read from MH i2c: 01 [15:24:15]MH_I2C_Read... [15:24:15]*** Stop cut motor [15:24:15]*** Cut end [15:24:15]Read from MH i2c: 01 07 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [15:24:15]process_action close_receipt done [15:24:15]requested_data is exist [15:24:15]produce_requested_data [15:24:15]requested_item fm.sn is exist - process it [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 11 00 00 [15:24:15]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 17 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3B [15:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:24:15]wFMCommunicate OK [15:24:15]requested_item fd.num is exist - process it [15:24:15]SAM_PROTO_GetFieldsCounters [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 13 00 00 [15:24:15]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 62 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 62 00 6C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 53 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [15:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 53 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_GetFieldsCounters done [15:24:15]requested_item shift.num is exist - process it [15:24:15]requested_item shift.opened is exist - process it [15:24:15]req_shift_opened [15:24:15]FM_GetShiftState [15:24:15]SAM_PROTO_GetShiftState [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 13 01 00 [15:24:15]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 95 [15:24:15]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_GetShiftState done [15:24:15]FM_GetShiftState done [15:24:15]req_shift_opened done [15:24:15]requested_item shift.open_date is exist - process it [15:24:15]req_shift_open_date [15:24:15]req_shift_open_date done [15:24:15]produce_requested_data done [15:24:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73043,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:24:15]process_action_free close_receipt [15:24:15]json_value_free [15:24:15]json_value_free done [15:24:15]process_json_proto returns [15:24:15]Send response to host [15:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73043,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:24:15]free response buf [15:24:15]execute_script done [15:24:15]execute_script returns [15:24:15]free content buf [15:24:15]Sock 7.Close socket [15:24:15]Sock 7.Thread stoped [15:24:17]Connected sock=10 [15:24:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 24 8A 06 01 61 20 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1C A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1D 01 00 35 04 06 00 11 93 12 9D 27 DE 85 CE B7 3A 12 5F 8C 18 [15:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 59 39 47 00 75 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1D 01 00 F4 03 04 00 D5 4B 23 67 B6 04 01 00 00 1A C3 1B 40 68 FF 6C D7 [15:24:18]CommunicateWithHost err = 0 [15:24:18]CheckOFDResponse [15:24:18]1017 (14) - 77093643461234 [15:24:18]1041 (16) - 0000000000874662 [15:24:18]1040 (4) - 73043 [15:24:18]1012 (4) - 31.10.2024 09:20 [15:24:18]1206 (1) - 0 [15:24:18]OFD Sender: Remove packet 73043 [15:24:18]ProducePacketName [15:24:18]name=ofd_packets/00073043 [15:24:18]NVStorageDeleteData [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:42]recv_with_timeout no data received [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:01]recv_with_timeout no data received [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:22]accept exits with 9 [15:25:22]New connection [15:25:22]New thread 3067149668 created [15:25:22]Thread 3067006308 joined [15:25:22]Waiting for new connection... [15:25:22] Sock 9.Parse request [15:25:22]Sock 9.Check first char [15:25:22]Sock 9.First char is OK [15:25:22]request: POST /json_proto HTTP/1.0 [15:25:22]Method: POST [15:25:22]URL: /json_proto [15:25:22]Method is POST - this is cgi request [15:25:22]url: /json_proto [15:25:22]query_string will be loaded in cgi processing [15:25:22]execute_cgi json_proto POST (null) [15:25:22]execute_cgi path=json_proto method=POST [15:25:22]POST find Content-Length [15:25:22]Host: 172.17.43.195:8080 [15:25:22]Content-Length: 796 [15:25:22]Content-Type: application/json [15:25:22] [15:25:22]POST finish read [15:25:22]Found Content-Length = 796 [15:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 6.740, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:22]execute_script... [15:25: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)952646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 6.740, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:22]POST & json_proto [15:25:22]process_json_proto [15:25:22]json parsed OK: [15:25:22]protocol is kg_v1.0 [15:25:22]action value=close_receipt [15:25:22]process_action close_receipt [15:25:22]cmd_close_receipt [15:25:22]MH_GetDate [15:25:22]Write to MH i2c: F0 00 00 6E 02 5F [15:25:22]Write i2c OK [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: F0 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: F0 09 00 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: F0 09 00 6E 02 00 62 A1 23 67 74 2C AD 66 A8 [15:25:22]GetLastDocTimeStamp 1730388252 [15:25:22]current date 1730388322 [15:25:22]FM_GetShiftState [15:25:22]SAM_PROTO_GetShiftState [15:25:22]wFMCommunicate request_size=4 [15:25:22]MH_SAM_APDU [15:25:22]CAPDU: 80 13 01 00 [15:25:22]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [15:25:22]Write i2c OK [15:25:22]MH_I2C_Read... [15:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:22]Read from MH i2c: E2 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 0E 00 [15:25:22]MH_I2C_Read... [15:25:22]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 97 [15:25:22]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:25:22]wFMCommunicate OK [15:25:22]SAM_PROTO_GetShiftState done [15:25:22]FM_GetShiftState done [15:25:22]opened in 1730333258 [15:25:22]opened+sec_in_day 1730419658 [15:25:22]quantity*price = 0 [15:25:22]sum+1 = 1 [15:25:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 119 31.10.2024 15:25 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 73044 ФПД: 65286375881862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152523&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73044&fm=65286375881862&tin=02508201610067®Number=0000000000091644&sum=0 [15:25:23]StoreToDocumentArchive [15:25:23]shift 557 fd 73044 [15:25:23]save to /storage/0557/doc_00073044 [15:25:23]save last doc name /storage/0557/doc_00073044 to /storage/kkm_last_doc_name [15:25:23]save OK [15:25:23]Clear old archive folders... [15:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:25:23]tlvbuf is 01E266F0 [15:25:23]SAM_PROTO_ClearQueue [15:25:23]wFMCommunicate request_size=4 [15:25:23]MH_SAM_APDU [15:25:23]CAPDU: 80 09 00 00 [15:25:23]Write to MH i2c: E2 08 00 7C 02 80 09 00 00 00 00 00 00 F0 [15:25:23]Write i2c OK [15:25:23]MH_I2C_Read... [15:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:23]Read from MH i2c: E2 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 03 00 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [15:25:23]RAPDU: 90 00 [15:25:23]wFMCommunicate OK [15:25:23]SAM_PROTO_ClearQueue done [15:25:23]KKMCreateOFDPacket [15:25:23]OFDProtocolAddRootSTLVToBuf [15:25:23]FM_MakeSignedData [15:25:23]FM_MakeSignedData [15:25:23]SAM_PROTO_SignData [15:25:23]wFMCommunicate request_size=4 [15:25:23]MH_SAM_APDU [15:25:23]CAPDU: 80 0D 01 02 [15:25:23]Write to MH i2c: E2 08 00 7D 02 80 0D 01 02 00 00 00 00 F8 [15:25:23]Write i2c OK [15:25:23]MH_I2C_Read... [15:25:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:23]Read from MH i2c: E2 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 03 00 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [15:25:23]RAPDU: 90 00 [15:25:23]wFMCommunicate OK [15:25:23]wFMCommunicate request_size=255 [15:25:23]MH_SAM_APDU [15:25:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 63 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 54 1D 01 00 35 04 06 00 [15:25:23]Write to MH i2c: E2 02 01 7E 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 63 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 54 1D 01 00 35 04 06 00 00 00 51 [15:25:23]Write i2c OK [15:25:23]MH_I2C_Read... [15:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:23]Read from MH i2c: E2 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 03 00 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [15:25:23]RAPDU: 90 00 [15:25:23]wFMCommunicate OK [15:25:23]wFMCommunicate request_size=11 [15:25:23]MH_SAM_APDU [15:25:23]CAPDU: 80 0D 02 02 06 3B 60 AB 3E 3C 86 [15:25:23]Write to MH i2c: E2 0E 00 7F 02 80 0D 02 02 06 00 3B 60 AB 3E 3C 86 00 00 4D [15:25:23]Write i2c OK [15:25:23]MH_I2C_Read... [15:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:23]Read from MH i2c: E2 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 03 00 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [15:25:23]RAPDU: 90 00 [15:25:23]wFMCommunicate OK [15:25:23]wFMCommunicate request_size=4 [15:25:23]MH_SAM_APDU [15:25:23]CAPDU: 80 0D 03 02 [15:25:23]Write to MH i2c: E2 08 00 80 02 80 0D 03 02 00 00 00 00 FD [15:25:23]Write i2c OK [15:25:23]MH_I2C_Read... [15:25:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:24]Read from MH i2c: E2 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 0B 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 0B 00 80 02 00 6D 93 C7 EE BC B6 B3 6D 90 00 45 [15:25:24]RAPDU: 6D 93 C7 EE BC B6 B3 6D 90 00 [15:25:24]wFMCommunicate OK [15:25:24]SAM_PROTO_SignData done [15:25:24]FM_MakeSignedData done [15:25:24]CreateOFDProtocolMessage [15:25:24]wFMCommunicate request_size=4 [15:25:24]MH_SAM_APDU [15:25:24]CAPDU: 80 11 00 00 [15:25:24]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:24]Read from MH i2c: E2 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 17 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 51 [15:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:25:24]wFMCommunicate OK [15:25:24]CreateOFDProtocolMessage done [15:25:24]OFDSenderStorePacket 73044 [15:25:24]StoreOFDPacket docnum=73044 [15:25:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 14 98 08 01 A5 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 63 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 54 1D 01 00 35 04 06 00 3B 60 AB 3E 3C 86 6D 93 C7 EE BC B6 B3 6D [15:25:24]CheckFolder [15:25:24]dirname=/storage/ofd_packets [15:25:24]CheckFolder done [15:25:24]ProducePacketName [15:25:24]name=ofd_packets/00073044 [15:25:24]NVStorageSaveData ofd_packets/00073044 [15:25:24]File name is /storage/ofd_packets/00073044 [15:25:24]Write 302 bytes [15:25:24]NVStorageSaveData done [15:25:24]OFDSenderStorePacket done [15:25:24]KKMCreateOFDPacket done [15:25:24]NVStorageSaveData kkm_last_timestamp [15:25:24]File name is /storage/kkm_last_timestamp [15:25:24]Write 4 bytes [15:25:24]NVStorageSaveData done [15:25:24]OFD Sender: Processing packet 73044 [packets to send 279, broken 278] [15:25:24]ProducePacketName [15:25:24]name=ofd_packets/00073044 [15:25:24]OFD Sender: To server: pG, [15:25:24]CommunicateWithHost lk.salyk.kg:30040 [15:25:24]ConnectInit lk.salyk.kg [15:25:24]ExternCall_PrintAddStr [15:25:24]wPrintStart [15:25:24]Write to MH i2c: 01 00 00 82 02 84 [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: 01 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: 01 07 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [15:25:24]RasterBufferAndPrint [15:25:24]line Счет N : (1)952646 [15:25:24]line ИНН: 02508201610067 [15:25:24]line Контрольно-Кассовый Чек [15:25:24]line ПРОДАЖА [15:25:24]line ТРК (МРК, ГНК) : 33 [15:25:24]line Товар: 2710194210 [15:25:24]line ДТ(л)-К-5 [15:25:24]line 6.740 * 0.00 [15:25:24]line = 0.00 [15:25:24]line НДС 12% НСП 1% [15:25:24]line > о реализуемом товаре [15:25:24]line ИТОГО: 0.00 [15:25:24]line НСП 1% : 0.00 [15:25:24]line НДС 12% : 0.00 [15:25:24]line Наличными: 0.00 [15:25:24]line Безнал.: 0.00 [15:25:24]line Место: АЗС № 113 "Партнер Нефть" [15:25:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:25:24]line СНО: Общий режим [15:25:24]line Чек 119 31.10.2024 15:25 [15:25:24]line Смена: 557 ФФД: 1.0 [15:25:24]line ЗНМ: 0300000087 [15:25:24]line РНМ: 0000000000091644 [15:25:24]line Версия ККМ: 001 [15:25:24]line Талоны: Топливная Карта [15:25:24]line 02083 [15:25:24]line ФМ: 0000000000874662 [15:25:24]line ФД: 73044 [15:25:24]line ФПД: 65286375881862 [15:25:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152523&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73044&fm=65286375881862&tin=02508201610067®Number=0000000000091644&sum=0 [15:25:24]written 0, free lines is 4095 [15:25:24]Connected sock=11 [15:25:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 14 98 08 01 A5 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 63 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 54 1D 01 00 35 04 06 00 3B 60 AB 3E 3C 86 6D 93 C7 EE BC B6 B3 6D [15:25:24]Write to MH i2c: 01 00 00 AC 02 AE [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: 01 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: 01 07 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: 01 07 00 AC 02 00 00 00 00 00 F9 0C BA [15:25:24]RasterBufferAndPrint [15:25:24]line [15:25:24]line [15:25:24]line [15:25:24]line [15:25:24]line [15:25:24]written 0, free lines is 3327 [15:25:24]MH_Cut [15:25:24]Write to MH i2c: D1 01 00 B3 02 01 87 [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: D1 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: D1 01 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: D1 01 00 B3 02 00 86 [15:25:24]Write to MH i2c: 01 00 00 B4 02 B6 [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:25]*** Cut start [15:25:25]*** Partial cut [15:25:25]*** CUTSNS_PIN = 1 [15:25:25]*** CUTSNS_PIN = 0 [15:25:25]*** Brake cut motor [15:25:26]Read from MH i2c: 01 [15:25:26]MH_I2C_Read... [15:25:26]*** Stop cut motor [15:25:26]*** Cut end [15:25:26]Read from MH i2c: 01 07 00 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [15:25:26]process_action close_receipt done [15:25:26]requested_data is exist [15:25:26]produce_requested_data [15:25:26]requested_item fm.sn is exist - process it [15:25:26]wFMCommunicate request_size=4 [15:25:26]MH_SAM_APDU [15:25:26]CAPDU: 80 11 00 00 [15:25:26]Write to MH i2c: E2 08 00 B5 02 80 11 00 00 00 00 00 00 31 [15:25:26]Write i2c OK [15:25:26]MH_I2C_Read... [15:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:26]Read from MH i2c: E2 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 17 00 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 17 00 B5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 85 [15:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:25:26]wFMCommunicate OK [15:25:26]requested_item fd.num is exist - process it [15:25:26]SAM_PROTO_GetFieldsCounters [15:25:26]wFMCommunicate request_size=4 [15:25:26]MH_SAM_APDU [15:25:26]CAPDU: 80 13 00 00 [15:25:26]Write to MH i2c: E2 08 00 B6 02 80 13 00 00 00 00 00 00 34 [15:25:26]Write i2c OK [15:25:26]MH_I2C_Read... [15:25:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:26]Read from MH i2c: E2 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 62 00 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 62 00 B6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 54 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [15:25:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 54 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:26]wFMCommunicate OK [15:25:26]SAM_PROTO_GetFieldsCounters done [15:25:26]requested_item shift.num is exist - process it [15:25:26]requested_item shift.opened is exist - process it [15:25:26]req_shift_opened [15:25:26]FM_GetShiftState [15:25:26]SAM_PROTO_GetShiftState [15:25:26]wFMCommunicate request_size=4 [15:25:26]MH_SAM_APDU [15:25:26]CAPDU: 80 13 01 00 [15:25:26]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [15:25:26]Write i2c OK [15:25:26]MH_I2C_Read... [15:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:26]Read from MH i2c: E2 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 0E 00 [15:25:26]MH_I2C_Read... [15:25:26]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 DF [15:25:26]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:25:26]wFMCommunicate OK [15:25:26]SAM_PROTO_GetShiftState done [15:25:26]FM_GetShiftState done [15:25:26]req_shift_opened done [15:25:26]requested_item shift.open_date is exist - process it [15:25:26]req_shift_open_date [15:25:26]req_shift_open_date done [15:25:26]produce_requested_data done [15:25:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73044,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:25:26]process_action_free close_receipt [15:25:26]json_value_free [15:25:26]json_value_free done [15:25:26]process_json_proto returns [15:25:26]Send response to host [15:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73044,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:25:26]free response buf [15:25:26]execute_script done [15:25:26]execute_script returns [15:25:26]free content buf [15:25:26]Sock 9.Close socket [15:25:26]Sock 9.Thread stoped [15:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 65 AC 47 00 A2 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 54 1D 01 00 F4 03 04 00 18 4C 23 67 B6 04 01 00 00 B1 15 8C E4 90 01 DA D8 [15:25:28]CommunicateWithHost err = 0 [15:25:28]CheckOFDResponse [15:25:28]1017 (14) - 77093643461234 [15:25:28]1041 (16) - 0000000000874662 [15:25:28]1040 (4) - 73044 [15:25:28]1012 (4) - 31.10.2024 09:21 [15:25:28]1206 (1) - 0 [15:25:28]OFD Sender: Remove packet 73044 [15:25:28]ProducePacketName [15:25:28]name=ofd_packets/00073044 [15:25:28]NVStorageDeleteData [15:25:28]OFD Sender: No OFD packet to send [15:25:29]recv_with_timeout no data received [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:49]recv_with_timeout no data received [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:30]accept exits with 7 [15:26:30]New connection [15:26:30]New thread 3067006308 created [15:26:30]Thread 3067149668 joined [15:26:30]Waiting for new connection... [15:26:30] Sock 7.Parse request [15:26:30]Sock 7.Check first char [15:26:30]Sock 7.First char is OK [15:26:30]request: POST /json_proto HTTP/1.0 [15:26:30]Method: POST [15:26:30]URL: /json_proto [15:26:30]Method is POST - this is cgi request [15:26:30]url: /json_proto [15:26:30]query_string will be loaded in cgi processing [15:26:30]execute_cgi json_proto POST (null) [15:26:30]execute_cgi path=json_proto method=POST [15:26:30]POST find Content-Length [15:26:30]Host: 172.17.43.195:8080 [15:26:30]Content-Length: 793 [15:26:30]Content-Type: application/json [15:26:30] [15:26:30]POST finish read [15:26:30]Found Content-Length = 793 [15:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:30]execute_script... [15:26:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:30]POST & json_proto [15:26:30]process_json_proto [15:26:30]json parsed OK: [15:26:30]protocol is kg_v1.0 [15:26:30]action value=close_receipt [15:26:30]process_action close_receipt [15:26:30]cmd_close_receipt [15:26:30]MH_GetDate [15:26:30]Write to MH i2c: F0 00 00 B8 02 A9 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: F0 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: F0 09 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: F0 09 00 B8 02 00 A7 A1 23 67 74 2C AD 66 37 [15:26:30]GetLastDocTimeStamp 1730388323 [15:26:30]current date 1730388391 [15:26:30]FM_GetShiftState [15:26:30]SAM_PROTO_GetShiftState [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 13 01 00 [15:26:30]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0E 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E1 [15:26:30]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:26:30]wFMCommunicate OK [15:26:30]SAM_PROTO_GetShiftState done [15:26:30]FM_GetShiftState done [15:26:30]opened in 1730333258 [15:26:30]opened+sec_in_day 1730419658 [15:26:30]quantity*price = 0 [15:26:30]sum+1 = 1 [15:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 120 31.10.2024 15:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73045 ФПД: 249195289651790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152631&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73045&fm=249195289651790&tin=02508201610067®Number=0000000000091644&sum=0 [15:26:31]StoreToDocumentArchive [15:26:31]shift 557 fd 73045 [15:26:31]save to /storage/0557/doc_00073045 [15:26:31]save last doc name /storage/0557/doc_00073045 to /storage/kkm_last_doc_name [15:26:31]save OK [15:26:31]Clear old archive folders... [15:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:31]tlvbuf is 01E26730 [15:26:31]SAM_PROTO_ClearQueue [15:26:31]wFMCommunicate request_size=4 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 09 00 00 [15:26:31]Write to MH i2c: E2 08 00 C6 02 80 09 00 00 00 00 00 00 3A [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [15:26:31]RAPDU: 90 00 [15:26:31]wFMCommunicate OK [15:26:31]SAM_PROTO_ClearQueue done [15:26:31]KKMCreateOFDPacket [15:26:31]OFDProtocolAddRootSTLVToBuf [15:26:31]FM_MakeSignedData [15:26:31]FM_MakeSignedData [15:26:31]SAM_PROTO_SignData [15:26:31]wFMCommunicate request_size=4 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 0D 01 02 [15:26:31]Write to MH i2c: E2 08 00 C7 02 80 0D 01 02 00 00 00 00 42 [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [15:26:31]RAPDU: 90 00 [15:26:31]wFMCommunicate OK [15:26:31]wFMCommunicate request_size=255 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A7 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1D 01 00 35 04 06 00 E2 [15:26:31]Write to MH i2c: E2 02 01 C8 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A7 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1D 01 00 35 04 06 00 E2 00 00 1E [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [15:26:31]RAPDU: 90 00 [15:26:31]wFMCommunicate OK [15:26:31]wFMCommunicate request_size=10 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 0D 02 02 05 A4 4C B8 2A 4E [15:26:31]Write to MH i2c: E2 0D 00 C9 02 80 0D 02 02 05 00 A4 4C B8 2A 4E 00 00 6F [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [15:26:32]RAPDU: 90 00 [15:26:32]wFMCommunicate OK [15:26:32]wFMCommunicate request_size=4 [15:26:32]MH_SAM_APDU [15:26:32]CAPDU: 80 0D 03 02 [15:26:32]Write to MH i2c: E2 08 00 CA 02 80 0D 03 02 00 00 00 00 47 [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:32]Read from MH i2c: E2 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0B 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0B 00 CA 02 00 3E 31 96 13 72 59 8E 39 90 00 F2 [15:26:32]RAPDU: 3E 31 96 13 72 59 8E 39 90 00 [15:26:32]wFMCommunicate OK [15:26:32]SAM_PROTO_SignData done [15:26:32]FM_MakeSignedData done [15:26:32]CreateOFDProtocolMessage [15:26:32]wFMCommunicate request_size=4 [15:26:32]MH_SAM_APDU [15:26:32]CAPDU: 80 11 00 00 [15:26:32]Write to MH i2c: E2 08 00 CB 02 80 11 00 00 00 00 00 00 47 [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:32]Read from MH i2c: E2 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 17 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 17 00 CB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9B [15:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:26:32]wFMCommunicate OK [15:26:32]CreateOFDProtocolMessage done [15:26:32]OFDSenderStorePacket 73045 [15:26:32]StoreOFDPacket docnum=73045 [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 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** 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 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step06 (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: 7763295+1722625140=1730388435 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 D4 A1 23 67 74 2C AD 66 B1 [15:27:16]Current date/time: 31.10.2024 15:27 [15:27:16]FM_Init [15:27:16]wFMConnect [15:27:16]MH_SAM_On [15:27:16]Write to MH i2c: E0 00 00 08 00 E7 [15:27:16]Write i2c OK [15:27:16]MH_I2C_Read... [15:27:16]*** iso7816_init finished! [15:27:16]*** atr: [15:27:16]*** 0F 3B D5 18 FF 81 91 FE [15:27:16]*** 1F C3 80 73 C8 21 10 0A [15:27:16]*** 00 00 00 00 00 00 00 00 [15:27:16]*** 00 00 00 00 00 00 00 00 [15:27:16]*** 00 00 00 00 00 00 00 00 [15:27:16]*** 00 00 00 00 00 00 00 00 [15:27:16]*** 00 00 00 00 00 00 00 00 [15:27:16]*** 00 00 00 00 00 00 00 00 [15:27:16]Read from MH i2c: E0 [15:27:16]MH_I2C_Read... [15:27:16]Read from MH i2c: E0 10 00 [15:27:16]MH_I2C_Read... [15:27:16]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [15:27:16]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:27:16]wFMCommunicate request_size=10 [15:27:16]MH_SAM_APDU [15:27:16]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:27:16]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:09]/dev/ttyS4 opened [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 7763312+1722625140=1730388452 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 E4 A1 23 67 74 2C AD 66 C1 [15:27:32]Current date/time: 31.10.2024 15:27 [15:27:32]FM_Init [15:27:32]wFMConnect [15:27:32]MH_SAM_On [15:27:32]Write to MH i2c: E0 00 00 08 00 E7 [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]*** iso7816_init finished! [15:27:32]*** atr: [15:27:32]*** 0F 3B D5 18 FF 81 91 FE [15:27:32]*** 1F C3 80 73 C8 21 10 0A [15:27:32]*** 00 00 00 00 00 00 00 00 [15:27:32]*** 00 00 00 00 00 00 00 00 [15:27:32]*** 00 00 00 00 00 00 00 00 [15:27:32]*** 00 00 00 00 00 00 00 00 [15:27:32]*** 00 00 00 00 00 00 00 00 [15:27:32]*** 00 00 00 00 00 00 00 00 [15:27:32]Read from MH i2c: E0 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E0 10 00 [15:27:32]MH_I2C_Read... [15:27: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 [15:27:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:27:32]wFMCommunicate request_size=10 [15:27:32]MH_SAM_APDU [15:27:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:27:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:27:32]Read from MH i2c: E2 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 03 00 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:27:32]RAPDU: 90 00 [15:27:32]wFMCommunicate OK [15:27:32]wFMCommunicate request_size=4 [15:27:32]MH_SAM_APDU [15:27:32]CAPDU: 80 11 00 00 [15:27:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:32]Read from MH i2c: E2 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 17 00 [15:27:32]MH_I2C_Read... [15:27: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 34 36 36 32 90 00 D8 [15:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:27:32]wFMCommunicate OK [15:27:32]Detected FM SN is 0000000000874662 [15:27:32]Stored FM SN is 0000000000874662 [15:27:32]wFMCommunicate request_size=9 [15:27:32]MH_SAM_APDU [15:27:32]CAPDU: 80 16 00 00 04 08 EB 00 00 [15:27:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:27:32]Read from MH i2c: E2 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 03 00 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:27:32]RAPDU: 90 00 [15:27:32]wFMCommunicate OK [15:27:32]FM PIN OK [15:27:32]wFMCommunicate request_size=8 [15:27:32]MH_SAM_APDU [15:27:32]CAPDU: 80 14 04 00 03 02 00 01 [15:27:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:27:32]Read from MH i2c: E2 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 03 00 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:27:32]RAPDU: 90 00 [15:27:32]wFMCommunicate OK [15:27:32]wFMCommunicate request_size=13 [15:27:32]MH_SAM_APDU [15:27:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:27: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 [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:27:32]Read from MH i2c: E2 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 03 00 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:27:32]RAPDU: 90 00 [15:27:32]wFMCommunicate OK [15:27:32]wFMCommunicate request_size=4 [15:27:32]MH_SAM_APDU [15:27:32]CAPDU: 80 11 00 00 [15:27:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:32]Read from MH i2c: E2 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 17 00 [15:27:32]MH_I2C_Read... [15:27: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 34 36 36 32 90 00 DC [15:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:27:32]wFMCommunicate OK [15:27:32]DocumentArchiveInit [15:27:32]Start Httpd... [15:27:32]Httpd thread 3067682148 created [15:27:32]Write to MH i2c: 01 00 00 0F 00 0F [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: 01 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: 01 07 00 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:27:32]MH Int Process started [15:27:32]Allocated Socket 5 [15:27:32]Bind OK [15:27:32]Listen OK [15:27:32]httpd running on port 8080 [15:27:32]Waiting for new connection... [15:27:32]OFD Sender: No OFD packet to send [15:27:33]accept exits with 8 [15:27:33]New connection [15:27:33]New thread 3067395428 created [15:27:33]Waiting for new connection... [15:27:33] Sock 8.Parse request [15:27:33]Sock 8.Check first char [15:27:33]Sock 8.First char is OK [15:27:33]request: POST /json_proto HTTP/1.0 [15:27:33]Method: POST [15:27:33]URL: /json_proto [15:27:33]Method is POST - this is cgi request [15:27:33]url: /json_proto [15:27:33]query_string will be loaded in cgi processing [15:27:33]execute_cgi json_proto POST (null) [15:27:33]execute_cgi path=json_proto method=POST [15:27:33]POST find Content-Length [15:27:33]Host: 172.17.43.195:8080 [15:27:33]Content-Length: 215 [15:27:33]Content-Type: application/json [15:27:33] [15:27:33]POST finish read [15:27:33]Found Content-Length = 215 [15:27:33]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:27:33]execute_script... [15:27:33]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:27:33]POST & json_proto [15:27:33]process_json_proto [15:27:33]json parsed OK: [15:27:33]protocol is kg_v1.0 [15:27:33]action value=get_value [15:27:33]process_action get_value [15:27:33]cmd_get_value [15:27:33]process_action get_value done [15:27:33]requested_data is exist [15:27:33]produce_requested_data [15:27:33]requested_item kkm.sn is exist - process it [15:27:33]requested_item kkm.ver is exist - process it [15:27:33]requested_item fm.sn is exist - process it [15:27:33]wFMCommunicate request_size=4 [15:27:33]MH_SAM_APDU [15:27:33]CAPDU: 80 11 00 00 [15:27:33]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:27:33]Write i2c OK [15:27:33]MH_I2C_Read... [15:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:34]Read from MH i2c: E2 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 17 00 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [15:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:27:34]wFMCommunicate OK [15:27:34]requested_item fd.num is exist - process it [15:27:34]SAM_PROTO_GetFieldsCounters [15:27:34]wFMCommunicate request_size=4 [15:27:34]MH_SAM_APDU [15:27:34]CAPDU: 80 13 00 00 [15:27:34]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:27:34]Write i2c OK [15:27:34]MH_I2C_Read... [15:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:34]Read from MH i2c: E2 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 62 00 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 57 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [15:27:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 57 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:34]wFMCommunicate OK [15:27:34]SAM_PROTO_GetFieldsCounters done [15:27:34]requested_item shift.num is exist - process it [15:27:34]requested_item shift.opened is exist - process it [15:27:34]req_shift_opened [15:27:34]FM_GetShiftState [15:27:34]SAM_PROTO_GetShiftState [15:27:34]wFMCommunicate request_size=4 [15:27:34]MH_SAM_APDU [15:27:34]CAPDU: 80 13 01 00 [15:27:34]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:27:34]Write i2c OK [15:27:34]MH_I2C_Read... [15:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:34]Read from MH i2c: E2 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 0E 00 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [15:27:34]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:27:34]wFMCommunicate OK [15:27:34]SAM_PROTO_GetShiftState done [15:27:34]FM_GetShiftState done [15:27:34]req_shift_opened done [15:27:34]requested_item shift.open_date is exist - process it [15:27:34]req_shift_open_date [15:27:34]req_shift_open_date done [15:27:34]produce_requested_data done [15:27:34]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73047,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:27:34]process_action_free get_value [15:27:34]json_value_free [15:27:34]json_value_free done [15:27:34]process_json_proto returns [15:27:34]Send response to host [15:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73047,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:27:34]free response buf [15:27:34]execute_script done [15:27:34]execute_script returns [15:27:34]free content buf [15:27:34]Sock 8.Close socket [15:27:34]Sock 8.Thread stoped [15:27:34]accept exits with 7 [15:27:34]New connection [15:27:34]New thread 3067252068 created [15:27:34]Thread 3067395428 joined [15:27:34]Waiting for new connection... [15:27:34] Sock 7.Parse request [15:27:34]Sock 7.Check first char [15:27:34]Sock 7.First char is OK [15:27:34]request: POST /json_proto HTTP/1.0 [15:27:34]Method: POST [15:27:34]URL: /json_proto [15:27:34]Method is POST - this is cgi request [15:27:34]url: /json_proto [15:27:34]query_string will be loaded in cgi processing [15:27:34]execute_cgi json_proto POST (null) [15:27:34]execute_cgi path=json_proto method=POST [15:27:34]POST find Content-Length [15:27:34]Host: 172.17.43.195:8080 [15:27:34]Content-Length: 331 [15:27:34]Content-Type: application/json [15:27:34] [15:27:34]POST finish read [15:27:34]Found Content-Length = 331 [15:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:27:34]execute_script... [15:27:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:27:34]POST & json_proto [15:27:34]process_json_proto [15:27:34]json parsed OK: [15:27:34]protocol is kg_v1.0 [15:27:34]action value=get_value [15:27:34]process_action get_value [15:27:34]cmd_get_value [15:27:34]process_action get_value done [15:27:34]requested_data is exist [15:27:34]produce_requested_data [15:27:34]requested_item fm.sale.total is exist - process it [15:27:34]SAM_PROTO_GetFMData [15:27:34]wFMCommunicate request_size=4 [15:27:34]MH_SAM_APDU [15:27:34]CAPDU: 80 13 03 00 [15:27:34]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:27:34]Write i2c OK [15:27:34]MH_I2C_Read... [15:27:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:27:34]Read from MH i2c: E2 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 FD 00 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 FD 18 01 00 69 04 A3 00 6F 04 04 00 0D 18 01 00 B1 04 05 00 18 FC 85 A4 01 70 04 05 00 7C A2 E1 58 01 72 04 04 00 9C 59 A4 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AF 18 AB 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CD DA B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 0A [15:27:34]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 FD 18 01 00 69 04 A3 00 6F 04 04 00 0D 18 01 00 B1 04 05 00 18 FC 85 A4 01 70 04 05 00 7C A2 E1 58 01 72 04 04 00 9C 59 A4 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AF 18 AB 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CD DA B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [15:27:34]wFMCommunicate OK [15:27:34]wFMCommunicate request_size=4 [15:27:34]MH_SAM_APDU [15:27:34]CAPDU: 80 17 00 00 [15:27:34]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:27:34]Write i2c OK [15:27:34]MH_I2C_Read... [15:27:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:35]Read from MH i2c: E2 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 FD 00 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [15:27:35]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [15:27:35]wFMCommunicate OK [15:27:35]wFMCommunicate request_size=4 [15:27:35]MH_SAM_APDU [15:27:35]CAPDU: 80 17 00 00 [15:27:35]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:27:35]Write i2c OK [15:27:35]MH_I2C_Read... [15:27:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:35]Read from MH i2c: E2 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 FD 00 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [15:27:35]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [15:27:35]wFMCommunicate OK [15:27:35]wFMCommunicate request_size=4 [15:27:35]MH_SAM_APDU [15:27:35]CAPDU: 80 17 00 00 [15:27:35]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:27:35]Write i2c OK [15:27:35]MH_I2C_Read... [15:27:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:35]Read from MH i2c: E2 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 FD 00 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [15:27:35]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [15:27:35]wFMCommunicate OK [15:27:35]wFMCommunicate request_size=4 [15:27:35]MH_SAM_APDU [15:27:35]CAPDU: 80 17 00 00 [15:27:35]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:27:35]Write i2c OK [15:27:35]MH_I2C_Read... [15:27:36]Read from MH i2c: E2 [15:27:36]MH_I2C_Read... [15:27:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [15:27:36]Read from MH i2c: E2 E1 00 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [15:27:36]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:27:36]wFMCommunicate OK [15:27:36]SAM_PROTO_GetFMData done [15:27:36]requested_item fm.sale_refund.total is exist - process it [15:27:36]requested_item fm.buy.total is exist - process it [15:27:36]requested_item shift.sale.total is exist - process it [15:27:36]SAM_PROTO_GetShiftData [15:27:36]wFMCommunicate request_size=4 [15:27:36]MH_SAM_APDU [15:27:36]CAPDU: 80 13 02 00 [15:27:36]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:27:36]Write i2c OK [15:27:36]MH_I2C_Read... [15:27:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:27:36]Read from MH i2c: E2 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: E2 FD 00 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 7A 00 00 00 69 04 9B 00 6F 04 04 00 7A 00 00 00 B1 04 03 00 5F 8F 6F 70 04 03 00 48 99 3C 72 04 03 00 17 F6 32 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 54 D9 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C5 FC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 FD [15:27:36]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7A 00 00 00 69 04 9B 00 6F 04 04 00 7A 00 00 00 B1 04 03 00 5F 8F 6F 70 04 03 00 48 99 3C 72 04 03 00 17 F6 32 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 54 D9 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C5 FC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:27:36]wFMCommunicate OK [15:27:36]wFMCommunicate request_size=4 [15:27:36]MH_SAM_APDU [15:27:36]CAPDU: 80 17 00 00 [15:27:36]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:27:36]Write i2c OK [15:27:36]MH_I2C_Read... [15:27:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:36]Read from MH i2c: E2 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: E2 FD 00 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [15:27:36]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:27:36]wFMCommunicate OK [15:27:36]wFMCommunicate request_size=4 [15:27:36]MH_SAM_APDU [15:27:36]CAPDU: 80 17 00 00 [15:27:36]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:27:36]Write i2c OK [15:27:36]MH_I2C_Read... [15:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:37]Read from MH i2c: E2 [15:27:37]MH_I2C_Read... [15:27:37]Read from MH i2c: E2 FD 00 [15:27:37]MH_I2C_Read... [15:27:37]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [15:27:37]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:27:37]wFMCommunicate OK [15:27:37]wFMCommunicate request_size=4 [15:27:37]MH_SAM_APDU [15:27:37]CAPDU: 80 17 00 00 [15:27:37]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:27:37]Write i2c OK [15:27:37]MH_I2C_Read... [15:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:37]Read from MH i2c: E2 [15:27:37]MH_I2C_Read... [15:27:37]Read from MH i2c: E2 FD 00 [15:27:37]MH_I2C_Read... [15:27:37]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [15:27:37]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:27:37]wFMCommunicate OK [15:27:37]wFMCommunicate request_size=4 [15:27:37]MH_SAM_APDU [15:27:37]CAPDU: 80 17 00 00 [15:27:37]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:27:37]Write i2c OK [15:27:37]MH_I2C_Read... [15:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:27:37]Read from MH i2c: E2 [15:27:37]MH_I2C_Read... [15:27:37]Read from MH i2c: E2 CB 00 [15:27:37]MH_I2C_Read... [15:27:37]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [15:27:37]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:27:37]wFMCommunicate OK [15:27:37]SAM_PROTO_GetShiftData done [15:27:37]requested_item shift.sale.total_cash is exist - process it [15:27:37]requested_item shift.sale_refund.total is exist - process it [15:27:37]requested_item shift.sale_refund.total_cash is exist - process it [15:27:37]requested_item shift.buy.total is exist - process it [15:27:37]requested_item shift.buy.total_cash is exist - process it [15:27:37]produce_requested_data done [15:27:37]produce_requested_data return {"fm.sale.total":70552115.44,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":73111.99,"shift.sale.total_cash":39714.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:27:37]process_action_free get_value [15:27:37]json_value_free [15:27:37]json_value_free done [15:27:37]process_json_proto returns [15:27:37]Send response to host [15:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70552115.44,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":73111.99,"shift.sale.total_cash":39714.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:27:37]free response buf [15:27:37]execute_script done [15:27:37]execute_script returns [15:27:37]free content buf [15:27:37]Sock 7.Close socket [15:27:37]Sock 7.Thread stoped [15:27:37]OFD Sender: No OFD packet to send [15:27:38]accept exits with 8 [15:27:38]New connection [15:27:38]New thread 3067395428 created [15:27:38]Thread 3067252068 joined [15:27:38]Waiting for new connection... [15:27:38] Sock 8.Parse request [15:27:38]Sock 8.Check first char [15:27:38]Sock 8.First char is OK [15:27:38]request: POST /json_proto HTTP/1.0 [15:27:38]Method: POST [15:27:38]URL: /json_proto [15:27:38]Method is POST - this is cgi request [15:27:38]url: /json_proto [15:27:38]query_string will be loaded in cgi processing [15:27:38]execute_cgi json_proto POST (null) [15:27:38]execute_cgi path=json_proto method=POST [15:27:38]POST find Content-Length [15:27:38]Host: 172.17.43.195:8080 [15:27:38]Content-Length: 793 [15:27:38]Content-Type: application/json [15:27:38] [15:27:38]POST finish read [15:27:38]Found Content-Length = 793 [15:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 139.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:38]execute_script... [15:27:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 139.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:38]POST & json_proto [15:27:38]process_json_proto [15:27:38]json parsed OK: [15:27:38]protocol is kg_v1.0 [15:27:38]action value=close_receipt [15:27:38]process_action close_receipt [15:27:38]cmd_close_receipt [15:27:38]MH_GetDate [15:27:38]Write to MH i2c: F0 00 00 1D 00 0C [15:27:38]Write i2c OK [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: F0 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: F0 09 00 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: F0 09 00 1D 00 00 EB A1 23 67 74 2C AD 66 DE [15:27:38]GetLastDocTimeStamp 97 [15:27:38]current date 1730388459 [15:27:38]FM_GetShiftState [15:27:38]SAM_PROTO_GetShiftState [15:27:38]wFMCommunicate request_size=4 [15:27:38]MH_SAM_APDU [15:27:38]CAPDU: 80 13 01 00 [15:27:38]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [15:27:38]Write i2c OK [15:27:38]MH_I2C_Read... [15:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:38]Read from MH i2c: E2 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: E2 0E 00 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 44 [15:27:38]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:27:38]wFMCommunicate OK [15:27:38]SAM_PROTO_GetShiftState done [15:27:38]FM_GetShiftState done [15:27:38]opened in 1730333258 [15:27:38]opened+sec_in_day 1730419658 [15:27:38]quantity*price = 0 [15:27:38]sum+1 = 1 [15:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 123 31.10.2024 15:27 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73048 ФПД: 238144566557211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152739&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73048&fm=238144566557211&tin=02508201610067®Number=0000000000091644&sum=0 [15:27:39]StoreToDocumentArchive [15:27:39]shift 557 fd 73048 [15:27:39]save to /storage/0557/doc_00073048 [15:27:39]save last doc name /storage/0557/doc_00073048 to /storage/kkm_last_doc_name [15:27:39]save OK [15:27:39]Clear old archive folders... [15:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:39]tlvbuf is 0205C190 [15:27:39]SAM_PROTO_ClearQueue [15:27:39]wFMCommunicate request_size=4 [15:27:39]MH_SAM_APDU [15:27:39]CAPDU: 80 09 00 00 [15:27:39]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:27:39]Write i2c OK [15:27:39]MH_I2C_Read... [15:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:39]Read from MH i2c: E2 [15:27:39]MH_I2C_Read... [15:27:39]Read from MH i2c: E2 03 00 [15:27:39]MH_I2C_Read... [15:27:39]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:27:39]RAPDU: 90 00 [15:27:39]wFMCommunicate OK [15:27:39]SAM_PROTO_ClearQueue done [15:27:39]KKMCreateOFDPacket [15:27:39]OFDProtocolAddRootSTLVToBuf [15:27:39]FM_MakeSignedData [15:27:39]FM_MakeSignedData [15:27:39]SAM_PROTO_SignData [15:27:39]wFMCommunicate request_size=4 [15:27:39]MH_SAM_APDU [15:27:39]CAPDU: 80 0D 01 02 [15:27:39]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:27:39]Write i2c OK [15:27:39]MH_I2C_Read... [15:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:39]Read from MH i2c: E2 [15:27:39]MH_I2C_Read... [15:27:39]Read from MH i2c: E2 03 00 [15:27:39]MH_I2C_Read... [15:27:39]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:27:39]RAPDU: 90 00 [15:27:39]wFMCommunicate OK [15:27:39]wFMCommunicate request_size=255 [15:27:39]MH_SAM_APDU [15:27:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 EB A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1D 01 00 35 04 06 00 D8 [15:27:39]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 EB A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1D 01 00 35 04 06 00 D8 00 00 8F [15:27:39]Write i2c OK [15:27:39]MH_I2C_Read... [15:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:40]Read from MH i2c: E2 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 03 00 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:27:40]RAPDU: 90 00 [15:27:40]wFMCommunicate OK [15:27:40]wFMCommunicate request_size=10 [15:27:40]MH_SAM_APDU [15:27:40]CAPDU: 80 0D 02 02 05 97 5A 4B 7A 1B [15:27:40]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 97 5A 4B 7A 1B 00 00 83 [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:40]Read from MH i2c: E2 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 03 00 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:27:40]RAPDU: 90 00 [15:27:40]wFMCommunicate OK [15:27:40]wFMCommunicate request_size=4 [15:27:40]MH_SAM_APDU [15:27:40]CAPDU: 80 0D 03 02 [15:27:40]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:40]Read from MH i2c: E2 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 0B 00 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 0B 00 2F 00 00 C4 E0 30 92 CF 8C 38 F5 90 00 99 [15:27:40]RAPDU: C4 E0 30 92 CF 8C 38 F5 90 00 [15:27:40]wFMCommunicate OK [15:27:40]SAM_PROTO_SignData done [15:27:40]FM_MakeSignedData done [15:27:40]CreateOFDProtocolMessage [15:27:40]wFMCommunicate request_size=4 [15:27:40]MH_SAM_APDU [15:27:40]CAPDU: 80 11 00 00 [15:27:40]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:40]Read from MH i2c: E2 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 17 00 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [15:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:27:40]wFMCommunicate OK [15:27:40]CreateOFDProtocolMessage done [15:27:40]OFDSenderStorePacket 73048 [15:27:40]StoreOFDPacket docnum=73048 [15:27:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1B 2E 07 01 51 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 EB A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1D 01 00 35 04 06 00 D8 97 5A 4B 7A 1B C4 E0 30 92 CF 8C 38 F5 [15:27:40]CheckFolder [15:27:40]dirname=/storage/ofd_packets [15:27:40]CheckFolder done [15:27:40]ProducePacketName [15:27:40]name=ofd_packets/00073048 [15:27:40]NVStorageSaveData ofd_packets/00073048 [15:27:40]File name is /storage/ofd_packets/00073048 [15:27:40]Write 301 bytes [15:27:40]NVStorageSaveData done [15:27:40]OFDSenderStorePacket done [15:27:40]KKMCreateOFDPacket done [15:27:40]NVStorageSaveData kkm_last_timestamp [15:27:40]File name is /storage/kkm_last_timestamp [15:27:40]Write 4 bytes [15:27:40]NVStorageSaveData done [15:27:40]ExternCall_PrintAddStr [15:27:40]wPrintStart [15:27:40]Write to MH i2c: 01 00 00 31 00 31 [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: 01 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: 01 07 00 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [15:27:40]RasterBufferAndPrint [15:27:40]line Счет N : (1)952645 [15:27:40]line ИНН: 02508201610067 [15:27:40]line Контрольно-Кассовый Чек [15:27:40]line ПРОДАЖА [15:27:40]line ТРК (МРК, ГНК) : 63 [15:27:40]line Товар: 2710124130 [15:27:40]line Аи-92-К-5 [15:27:40]line 139.950 * 0.00 [15:27:40]line = 0.00 [15:27:40]line НДС 12% НСП 1% [15:27:40]line > о реализуемом товаре [15:27:40]line ИТОГО: 0.00 [15:27:40]line НСП 1% : 0.00 [15:27:40]line НДС 12% : 0.00 [15:27:40]line Наличными: 0.00 [15:27:40]line Безнал.: 0.00 [15:27:40]line Место: АЗС № 113 "Партнер Нефть" [15:27:40]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:27:40]line СНО: Общий режим [15:27:40]line Чек 123 31.10.2024 15:27 [15:27:40]line Смена: 557 ФФД: 1.0 [15:27:40]line ЗНМ: 0300000087 [15:27:40]line РНМ: 0000000000091644 [15:27:40]line Версия ККМ: 001 [15:27:40]line Талоны: Топливная Карта [15:27:40]line 03047 [15:27:40]line ФМ: 0000000000874662 [15:27:40]line ФД: 73048 [15:27:40]line ФПД: 238144566557211 [15:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152739&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73048&fm=238144566557211&tin=02508201610067®Number=0000000000091644&sum=0 [15:27:40]OFD Sender: Processing packet 73048 [packets to send 282, broken 281] [15:27:40]ProducePacketName [15:27:40]name=ofd_packets/00073048 [15:27:40]OFD Sender: To server: pG, [15:27:40]CommunicateWithHost lk.salyk.kg:30040 [15:27:40]ConnectInit lk.salyk.kg [15:27:40]written 0, free lines is 4095 [15:27:40]Write to MH i2c: 01 00 00 5B 00 5B [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: 01 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: 01 07 00 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F1 0C 5F [15:27:40]RasterBufferAndPrint [15:27:40]line [15:27:40]line [15:27:40]line [15:27:40]line [15:27:40]line [15:27:40]written 0, free lines is 3335 [15:27:40]MH_Cut [15:27:40]Write to MH i2c: D1 01 00 62 00 01 34 [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: D1 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: D1 01 00 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: D1 01 00 62 00 00 33 [15:27:40]Write to MH i2c: 01 00 00 63 00 63 [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:41]Connected sock=10 [15:27:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1B 2E 07 01 51 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 EB A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1D 01 00 35 04 06 00 D8 97 5A 4B 7A 1B C4 E0 30 92 CF 8C 38 F5 [15:27:41]*** Cut start [15:27:41]*** Partial cut [15:27:41]*** CUTSNS_PIN = 1 [15:27:41]*** CUTSNS_PIN = 0 [15:27:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B7 56 47 00 C6 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1D 01 00 F4 03 04 00 A1 4C 23 67 B6 04 01 00 00 F5 9A 3C A0 65 C8 DB A1 [15:27:41]CommunicateWithHost err = 0 [15:27:41]CheckOFDResponse [15:27:41]1017 (14) - 77093643461234 [15:27:41]1041 (16) - 0000000000874662 [15:27:41]1040 (4) - 73048 [15:27:41]1012 (4) - 31.10.2024 09:23 [15:27:41]1206 (1) - 0 [15:27:41]OFD Sender: Remove packet 73048 [15:27:41]ProducePacketName [15:27:41]name=ofd_packets/00073048 [15:27:41]NVStorageDeleteData [15:27:41]*** Brake cut motor [15:27:42]Read from MH i2c: 01 [15:27:42]MH_I2C_Read... [15:27:42]*** Stop cut motor [15:27:42]*** Cut end [15:27:42]Read from MH i2c: 01 07 00 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [15:27:42]process_action close_receipt done [15:27:42]requested_data is exist [15:27:42]produce_requested_data [15:27:42]requested_item fm.sn is exist - process it [15:27:42]wFMCommunicate request_size=4 [15:27:42]MH_SAM_APDU [15:27:42]CAPDU: 80 11 00 00 [15:27:42]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [15:27:42]Write i2c OK [15:27:42]MH_I2C_Read... [15:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:42]Read from MH i2c: E2 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: E2 17 00 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [15:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:27:42]wFMCommunicate OK [15:27:42]requested_item fd.num is exist - process it [15:27:42]SAM_PROTO_GetFieldsCounters [15:27:42]wFMCommunicate request_size=4 [15:27:42]MH_SAM_APDU [15:27:42]CAPDU: 80 13 00 00 [15:27:42]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [15:27:42]OFD Sender: No OFD packet to send [15:27:42]Write i2c OK [15:27:42]MH_I2C_Read... [15:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:42]Read from MH i2c: E2 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: E2 62 00 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 58 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [15:27:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 58 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:42]wFMCommunicate OK [15:27:42]SAM_PROTO_GetFieldsCounters done [15:27:42]requested_item shift.num is exist - process it [15:27:42]requested_item shift.opened is exist - process it [15:27:42]req_shift_opened [15:27:42]FM_GetShiftState [15:27:42]SAM_PROTO_GetShiftState [15:27:42]wFMCommunicate request_size=4 [15:27:42]MH_SAM_APDU [15:27:42]CAPDU: 80 13 01 00 [15:27:42]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [15:27:42]Write i2c OK [15:27:42]MH_I2C_Read... [15:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:42]Read from MH i2c: E2 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: E2 0E 00 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8C [15:27:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:27:42]wFMCommunicate OK [15:27:42]SAM_PROTO_GetShiftState done [15:27:42]FM_GetShiftState done [15:27:42]req_shift_opened done [15:27:42]requested_item shift.open_date is exist - process it [15:27:42]req_shift_open_date [15:27:42]req_shift_open_date done [15:27:42]produce_requested_data done [15:27:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73048,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:27:42]process_action_free close_receipt [15:27:42]json_value_free [15:27:42]json_value_free done [15:27:42]process_json_proto returns [15:27:42]Send response to host [15:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73048,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:27:42]free response buf [15:27:42]execute_script done [15:27:42]execute_script returns [15:27:42]free content buf [15:27:42]Sock 8.Close socket [15:27:42]Sock 8.Thread stoped [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:10]recv_with_timeout no data received [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:38]recv_with_timeout no data received [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:51]recv_with_timeout no data received [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:45]accept exits with 7 [15:30:45]New connection [15:30:45]New thread 3067252068 created [15:30:45]Thread 3067395428 joined [15:30:45]Waiting for new connection... [15:30:45] Sock 7.Parse request [15:30:45]Sock 7.Check first char [15:30:45]Sock 7.First char is OK [15:30:45]request: POST /json_proto HTTP/1.0 [15:30:45]Method: POST [15:30:45]URL: /json_proto [15:30:45]Method is POST - this is cgi request [15:30:45]url: /json_proto [15:30:45]query_string will be loaded in cgi processing [15:30:45]execute_cgi json_proto POST (null) [15:30:45]execute_cgi path=json_proto method=POST [15:30:45]POST find Content-Length [15:30:45]Host: 172.17.43.195:8080 [15:30:45]Content-Length: 793 [15:30:45]Content-Type: application/json [15:30:45] [15:30:45]POST finish read [15:30:45]Found Content-Length = 793 [15:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:45]execute_script... [15:30:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:45]POST & json_proto [15:30:45]process_json_proto [15:30:45]json parsed OK: [15:30:45]protocol is kg_v1.0 [15:30:45]action value=close_receipt [15:30:45]process_action close_receipt [15:30:45]cmd_close_receipt [15:30:45]MH_GetDate [15:30:45]Write to MH i2c: F0 00 00 67 00 56 [15:30:45]Write i2c OK [15:30:45]MH_I2C_Read... [15:30:45]Read from MH i2c: F0 [15:30:45]MH_I2C_Read... [15:30:45]Read from MH i2c: F0 09 00 [15:30:45]MH_I2C_Read... [15:30:45]Read from MH i2c: F0 09 00 67 00 00 A6 A2 23 67 74 2C AD 66 E4 [15:30:45]GetLastDocTimeStamp 1730388459 [15:30:45]current date 1730388646 [15:30:45]FM_GetShiftState [15:30:45]SAM_PROTO_GetShiftState [15:30:45]wFMCommunicate request_size=4 [15:30:45]MH_SAM_APDU [15:30:45]CAPDU: 80 13 01 00 [15:30:45]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [15:30:45]Write i2c OK [15:30:45]MH_I2C_Read... [15:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:45]Read from MH i2c: E2 [15:30:45]MH_I2C_Read... [15:30:45]Read from MH i2c: E2 0E 00 [15:30:45]MH_I2C_Read... [15:30:45]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8E [15:30:45]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:30:45]wFMCommunicate OK [15:30:45]SAM_PROTO_GetShiftState done [15:30:45]FM_GetShiftState done [15:30:45]opened in 1730333258 [15:30:45]opened+sec_in_day 1730419658 [15:30:45]quantity*price = 0 [15:30:45]sum+1 = 1 [15:30:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 124 31.10.2024 15:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73049 ФПД: 182454336530647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153046&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73049&fm=182454336530647&tin=02508201610067®Number=0000000000091644&sum=0 [15:30:46]StoreToDocumentArchive [15:30:46]shift 557 fd 73049 [15:30:46]save to /storage/0557/doc_00073049 [15:30:46]save last doc name /storage/0557/doc_00073049 to /storage/kkm_last_doc_name [15:30:46]save OK [15:30:46]Clear old archive folders... [15:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:46]tlvbuf is 0204F590 [15:30:46]SAM_PROTO_ClearQueue [15:30:46]wFMCommunicate request_size=4 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 09 00 00 [15:30:46]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [15:30:46]RAPDU: 90 00 [15:30:46]wFMCommunicate OK [15:30:46]SAM_PROTO_ClearQueue done [15:30:46]KKMCreateOFDPacket [15:30:46]OFDProtocolAddRootSTLVToBuf [15:30:46]FM_MakeSignedData [15:30:46]FM_MakeSignedData [15:30:46]SAM_PROTO_SignData [15:30:46]wFMCommunicate request_size=4 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 0D 01 02 [15:30:46]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:30:46]RAPDU: 90 00 [15:30:46]wFMCommunicate OK [15:30:46]wFMCommunicate request_size=255 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A6 A2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1D 01 00 35 04 06 00 A5 [15:30:46]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A6 A2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1D 01 00 35 04 06 00 A5 00 00 96 [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:30:46]RAPDU: 90 00 [15:30:46]wFMCommunicate OK [15:30:46]wFMCommunicate request_size=10 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 0D 02 02 05 F0 F5 EA A8 D7 [15:30:46]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 F0 F5 EA A8 D7 00 00 4A [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [15:30:46]RAPDU: 90 00 [15:30:46]wFMCommunicate OK [15:30:46]wFMCommunicate request_size=4 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 0D 03 02 [15:30:46]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 0B 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 0B 00 79 00 00 B3 59 A3 6C 2E 43 2E 3A 90 00 E9 [15:30:46]RAPDU: B3 59 A3 6C 2E 43 2E 3A 90 00 [15:30:46]wFMCommunicate OK [15:30:46]SAM_PROTO_SignData done [15:30:46]FM_MakeSignedData done [15:30:46]CreateOFDProtocolMessage [15:30:46]wFMCommunicate request_size=4 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 11 00 00 [15:30:46]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 17 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [15:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:30:46]wFMCommunicate OK [15:30:46]CreateOFDProtocolMessage done [15:30:46]OFDSenderStorePacket 73049 [15:30:46]StoreOFDPacket docnum=73049 [15:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F4 A7 07 01 D2 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A6 A2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1D 01 00 35 04 06 00 A5 F0 F5 EA A8 D7 B3 59 A3 6C 2E 43 2E 3A [15:30:46]CheckFolder [15:30:46]dirname=/storage/ofd_packets [15:30:46]CheckFolder done [15:30:46]ProducePacketName [15:30:46]name=ofd_packets/00073049 [15:30:46]NVStorageSaveData ofd_packets/00073049 [15:30:46]File name is /storage/ofd_packets/00073049 [15:30:46]Write 301 bytes [15:30:46]NVStorageSaveData done [15:30:46]OFDSenderStorePacket done [15:30:46]KKMCreateOFDPacket done [15:30:46]NVStorageSaveData kkm_last_timestamp [15:30:46]File name is /storage/kkm_last_timestamp [15:30:46]Write 4 bytes [15:30:46]NVStorageSaveData done [15:30:46]ExternCall_PrintAddStr [15:30:46]wPrintStart [15:30:46]Write to MH i2c: 01 00 00 7B 00 7B [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: 01 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: 01 07 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [15:30:46]RasterBufferAndPrint [15:30:46]line Счет N : (1)952648 [15:30:46]line ИНН: 02508201610067 [15:30:46]line Контрольно-Кассовый Чек [15:30:46]line ПРОДАЖА [15:30:46]line ТРК (МРК, ГНК) : 53 [15:30:46]line Товар: 2710124130 [15:30:46]line Аи-92-К-5 [15:30:46]line 140.000 * 0.00 [15:30:46]line = 0.00 [15:30:46]line НДС 12% НСП 1% [15:30:46]line > о реализуемом товаре [15:30:46]line ИТОГО: 0.00 [15:30:46]line НСП 1% : 0.00 [15:30:46]line НДС 12% : 0.00 [15:30:46]line Наличными: 0.00 [15:30:46]line Безнал.: 0.00 [15:30:46]line Место: АЗС № 113 "Партнер Нефть" [15:30:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:30:46]line СНО: Общий режим [15:30:46]line Чек 124 31.10.2024 15:30 [15:30:46]line Смена: 557 ФФД: 1.0 [15:30:46]line ЗНМ: 0300000087 [15:30:46]line РНМ: 0000000000091644 [15:30:46]line Версия ККМ: 001 [15:30:46]line Талоны: Топливная Карта [15:30:46]line 03047 [15:30:46]line ФМ: 0000000000874662 [15:30:46]line ФД: 73049 [15:30:46]line ФПД: 182454336530647 [15:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153046&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73049&fm=182454336530647&tin=02508201610067®Number=0000000000091644&sum=0 [15:30:46]written 0, free lines is 4095 [15:30:46]OFD Sender: Processing packet 73049 [packets to send 282, broken 281] [15:30:46]ProducePacketName [15:30:46]name=ofd_packets/00073049 [15:30:46]OFD Sender: To server: pG, [15:30:46]CommunicateWithHost lk.salyk.kg:30040 [15:30:46]ConnectInit lk.salyk.kg [15:30:47]Write to MH i2c: 01 00 00 A5 00 A5 [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: 01 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: 01 07 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E7 0C 9F [15:30:47]RasterBufferAndPrint [15:30:47]line [15:30:47]line [15:30:47]line [15:30:47]line [15:30:47]line [15:30:47]written 0, free lines is 3308 [15:30:47]MH_Cut [15:30:47]Write to MH i2c: D1 01 00 AC 00 01 7E [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: D1 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: D1 01 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: D1 01 00 AC 00 00 7D [15:30:47]Write to MH i2c: 01 00 00 AD 00 AD [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]Connected sock=9 [15:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F4 A7 07 01 D2 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A6 A2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1D 01 00 35 04 06 00 A5 F0 F5 EA A8 D7 B3 59 A3 6C 2E 43 2E 3A [15:30:48]*** Cut start [15:30:48]*** Partial cut [15:30:48]*** CUTSNS_PIN = 1 [15:30:48]*** CUTSNS_PIN = 0 [15:30:48]*** Brake cut motor [15:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 77 D4 47 00 3A 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 34 36 36 32 10 04 04 00 59 1D 01 00 F4 03 04 00 5C 4D 23 67 B6 04 01 00 00 94 0C 60 09 08 42 63 5F [15:30:48]CommunicateWithHost err = 0 [15:30:48]CheckOFDResponse [15:30:48]1017 (14) - 77093643461234 [15:30:48]1041 (16) - 0000000000874662 [15:30:48]1040 (4) - 73049 [15:30:48]1012 (4) - 31.10.2024 09:26 [15:30:48]1206 (1) - 0 [15:30:48]OFD Sender: Remove packet 73049 [15:30:48]ProducePacketName [15:30:48]name=ofd_packets/00073049 [15:30:48]NVStorageDeleteData [15:30:48]Read from MH i2c: 01 [15:30:48]MH_I2C_Read... [15:30:48]*** Stop cut motor [15:30:48]*** Cut end [15:30:48]Read from MH i2c: 01 07 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [15:30:48]process_action close_receipt done [15:30:48]requested_data is exist [15:30:48]produce_requested_data [15:30:48]requested_item fm.sn is exist - process it [15:30:48]wFMCommunicate request_size=4 [15:30:48]MH_SAM_APDU [15:30:48]CAPDU: 80 11 00 00 [15:30:48]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:48]Read from MH i2c: E2 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 17 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [15:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:30:48]wFMCommunicate OK [15:30:48]requested_item fd.num is exist - process it [15:30:48]SAM_PROTO_GetFieldsCounters [15:30:48]wFMCommunicate request_size=4 [15:30:48]MH_SAM_APDU [15:30:48]CAPDU: 80 13 00 00 [15:30:48]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:48]Read from MH i2c: E2 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 62 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 59 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [15:30:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 59 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:48]wFMCommunicate OK [15:30:48]SAM_PROTO_GetFieldsCounters done [15:30:48]requested_item shift.num is exist - process it [15:30:48]requested_item shift.opened is exist - process it [15:30:48]req_shift_opened [15:30:48]FM_GetShiftState [15:30:48]SAM_PROTO_GetShiftState [15:30:48]wFMCommunicate request_size=4 [15:30:48]MH_SAM_APDU [15:30:48]CAPDU: 80 13 01 00 [15:30:48]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 [15:30:48]MH_I2C_Read... [15:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:48]Read from MH i2c: E2 0E 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D6 [15:30:48]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:30:48]wFMCommunicate OK [15:30:48]SAM_PROTO_GetShiftState done [15:30:48]FM_GetShiftState done [15:30:48]req_shift_opened done [15:30:48]requested_item shift.open_date is exist - process it [15:30:48]req_shift_open_date [15:30:48]req_shift_open_date done [15:30:48]produce_requested_data done [15:30:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73049,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:30:48]process_action_free close_receipt [15:30:48]json_value_free [15:30:48]json_value_free done [15:30:48]process_json_proto returns [15:30:48]Send response to host [15:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73049,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:30:48]free response buf [15:30:48]execute_script done [15:30:48]execute_script returns [15:30:48]free content buf [15:30:48]Sock 7.Close socket [15:30:48]Sock 7.Thread stoped [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:56]recv_with_timeout no data received [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:18]recv_with_timeout no data received [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:51]accept exits with 10 [15:31:51]New connection [15:31:51]New thread 3067395428 created [15:31:51]Thread 3067252068 joined [15:31:51]Waiting for new connection... [15:31:51] Sock 10.Parse request [15:31:51]Sock 10.Check first char [15:31:51]Sock 10.First char is OK [15:31:51]request: POST /json_proto HTTP/1.0 [15:31:51]Method: POST [15:31:51]URL: /json_proto [15:31:51]Method is POST - this is cgi request [15:31:51]url: /json_proto [15:31:51]query_string will be loaded in cgi processing [15:31:51]execute_cgi json_proto POST (null) [15:31:51]execute_cgi path=json_proto method=POST [15:31:51]POST find Content-Length [15:31:51]Host: 172.17.43.195:8080 [15:31:51]Content-Length: 793 [15:31:51]Content-Type: application/json [15:31:51] [15:31:51]POST finish read [15:31:51]Found Content-Length = 793 [15:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:51]execute_script... [15:31:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:51]POST & json_proto [15:31:51]process_json_proto [15:31:51]json parsed OK: [15:31:51]protocol is kg_v1.0 [15:31:51]action value=close_receipt [15:31:51]process_action close_receipt [15:31:51]cmd_close_receipt [15:31:51]MH_GetDate [15:31:51]Write to MH i2c: F0 00 00 B1 00 A0 [15:31:51]Write i2c OK [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: F0 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: F0 09 00 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: F0 09 00 B1 00 00 E8 A2 23 67 74 2C AD 66 70 [15:31:51]GetLastDocTimeStamp 1730388646 [15:31:51]current date 1730388712 [15:31:51]FM_GetShiftState [15:31:51]SAM_PROTO_GetShiftState [15:31:51]wFMCommunicate request_size=4 [15:31:51]MH_SAM_APDU [15:31:51]CAPDU: 80 13 01 00 [15:31:51]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [15:31:51]Write i2c OK [15:31:51]MH_I2C_Read... [15:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:51]Read from MH i2c: E2 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: E2 0E 00 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D8 [15:31:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:31:51]wFMCommunicate OK [15:31:51]SAM_PROTO_GetShiftState done [15:31:51]FM_GetShiftState done [15:31:51]opened in 1730333258 [15:31:51]opened+sec_in_day 1730419658 [15:31:51]quantity*price = 0 [15:31:51]sum+1 = 1 [15:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 125 31.10.2024 15:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73050 ФПД: 191339635358854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153152&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73050&fm=191339635358854&tin=02508201610067®Number=0000000000091644&sum=0 [15:31:52]StoreToDocumentArchive [15:31:52]shift 557 fd 73050 [15:31:52]save to /storage/0557/doc_00073050 [15:31:52]save last doc name /storage/0557/doc_00073050 to /storage/kkm_last_doc_name [15:31:52]save OK [15:31:52]Clear old archive folders... [15:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:52]tlvbuf is 02050820 [15:31:52]SAM_PROTO_ClearQueue [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 09 00 00 [15:31:52]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [15:31:52]RAPDU: 90 00 [15:31:52]wFMCommunicate OK [15:31:52]SAM_PROTO_ClearQueue done [15:31:52]KKMCreateOFDPacket [15:31:52]OFDProtocolAddRootSTLVToBuf [15:31:52]FM_MakeSignedData [15:31:52]FM_MakeSignedData [15:31:52]SAM_PROTO_SignData [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 0D 01 02 [15:31:52]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [15:31:52]RAPDU: 90 00 [15:31:52]wFMCommunicate OK [15:31:52]wFMCommunicate request_size=255 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E8 A2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5A 1D 01 00 35 04 06 00 AE [15:31:52]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E8 A2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5A 1D 01 00 35 04 06 00 AE 00 00 2D [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [15:31:52]RAPDU: 90 00 [15:31:52]wFMCommunicate OK [15:31:52]wFMCommunicate request_size=10 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 0D 02 02 05 05 BA FF 3C 86 [15:31:52]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 05 BA FF 3C 86 00 00 C6 [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [15:31:52]RAPDU: 90 00 [15:31:52]wFMCommunicate OK [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 0D 03 02 [15:31:52]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 0B 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 0B 00 C3 00 00 C9 E4 6E 4D 12 0F B4 60 90 00 DC [15:31:52]RAPDU: C9 E4 6E 4D 12 0F B4 60 90 00 [15:31:52]wFMCommunicate OK [15:31:52]SAM_PROTO_SignData done [15:31:52]FM_MakeSignedData done [15:31:52]CreateOFDProtocolMessage [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 11 00 00 [15:31:52]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 17 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [15:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:31:52]wFMCommunicate OK [15:31:52]CreateOFDProtocolMessage done [15:31:52]OFDSenderStorePacket 73050 [15:31:52]StoreOFDPacket docnum=73050 [15:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 4B 07 01 82 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E8 A2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5A 1D 01 00 35 04 06 00 AE 05 BA FF 3C 86 C9 E4 6E 4D 12 0F B4 60 [15:31:52]CheckFolder [15:31:52]dirname=/storage/ofd_packets [15:31:52]CheckFolder done [15:31:52]ProducePacketName [15:31:52]name=ofd_packets/00073050 [15:31:52]NVStorageSaveData ofd_packets/00073050 [15:31:52]File name is /storage/ofd_packets/00073050 [15:31:52]Write 301 bytes [15:31:52]NVStorageSaveData done [15:31:52]OFDSenderStorePacket done [15:31:52]KKMCreateOFDPacket done [15:31:52]NVStorageSaveData kkm_last_timestamp [15:31:52]File name is /storage/kkm_last_timestamp [15:31:52]Write 4 bytes [15:31:52]NVStorageSaveData done [15:31:52]OFD Sender: Processing packet 73050 [packets to send 282, broken 281] [15:31:52]ProducePacketName [15:31:52]name=ofd_packets/00073050 [15:31:52]OFD Sender: To server: pG, [15:31:52]CommunicateWithHost lk.salyk.kg:30040 [15:31:52]ConnectInit lk.salyk.kg [15:31:52]ExternCall_PrintAddStr [15:31:52]wPrintStart [15:31:52]Write to MH i2c: 01 00 00 C5 00 C5 [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: 01 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: 01 07 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [15:31:52]RasterBufferAndPrint [15:31:52]line Счет N : (1)952649 [15:31:52]line ИНН: 02508201610067 [15:31:52]line Контрольно-Кассовый Чек [15:31:52]line ПРОДАЖА [15:31:52]line ТРК (МРК, ГНК) : 63 [15:31:52]line Товар: 2710124130 [15:31:52]line Аи-92-К-5 [15:31:52]line 140.000 * 0.00 [15:31:52]line = 0.00 [15:31:52]line НДС 12% НСП 1% [15:31:52]line > о реализуемом товаре [15:31:52]line ИТОГО: 0.00 [15:31:52]line НСП 1% : 0.00 [15:31:52]line НДС 12% : 0.00 [15:31:52]line Наличными: 0.00 [15:31:52]line Безнал.: 0.00 [15:31:52]line Место: АЗС № 113 "Партнер Нефть" [15:31:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:31:52]line СНО: Общий режим [15:31:52]line Чек 125 31.10.2024 15:31 [15:31:52]line Смена: 557 ФФД: 1.0 [15:31:52]line ЗНМ: 0300000087 [15:31:52]line РНМ: 0000000000091644 [15:31:52]line Версия ККМ: 001 [15:31:52]line Талоны: Топливная Карта [15:31:52]line 03047 [15:31:52]line ФМ: 0000000000874662 [15:31:52]line ФД: 73050 [15:31:52]line ФПД: 191339635358854 [15:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153152&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73050&fm=191339635358854&tin=02508201610067®Number=0000000000091644&sum=0 [15:31:53]written 0, free lines is 4095 [15:31:53]Write to MH i2c: 01 00 00 EF 00 EF [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: 01 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: 01 07 00 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 E8 0C EA [15:31:53]RasterBufferAndPrint [15:31:53]line [15:31:53]line [15:31:53]line [15:31:53]line [15:31:53]line [15:31:53]written 0, free lines is 3310 [15:31:53]MH_Cut [15:31:53]Write to MH i2c: D1 01 00 F6 00 01 C8 [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: D1 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: D1 01 00 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: D1 01 00 F6 00 00 C7 [15:31:53]Write to MH i2c: 01 00 00 F7 00 F7 [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:54]*** Cut start [15:31:54]*** Partial cut [15:31:54]*** CUTSNS_PIN = 1 [15:31:54]*** CUTSNS_PIN = 0 [15:31:54]*** Brake cut motor [15:31:55]Read from MH i2c: 01 [15:31:55]MH_I2C_Read... [15:31:55]*** Stop cut motor [15:31:55]*** Cut end [15:31:55]Read from MH i2c: 01 07 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [15:31:55]process_action close_receipt done [15:31:55]requested_data is exist [15:31:55]produce_requested_data [15:31:55]requested_item fm.sn is exist - process it [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 11 00 00 [15:31:55]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 17 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C6 [15:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:31:55]wFMCommunicate OK [15:31:55]requested_item fd.num is exist - process it [15:31:55]SAM_PROTO_GetFieldsCounters [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 13 00 00 [15:31:55]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 62 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [15:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:55]wFMCommunicate OK [15:31:55]SAM_PROTO_GetFieldsCounters done [15:31:55]requested_item shift.num is exist - process it [15:31:55]requested_item shift.opened is exist - process it [15:31:55]req_shift_opened [15:31:55]FM_GetShiftState [15:31:55]SAM_PROTO_GetShiftState [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 13 01 00 [15:31:55]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0E 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 20 [15:31:55]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:31:55]wFMCommunicate OK [15:31:55]SAM_PROTO_GetShiftState done [15:31:55]FM_GetShiftState done [15:31:55]req_shift_opened done [15:31:55]requested_item shift.open_date is exist - process it [15:31:55]req_shift_open_date [15:31:55]req_shift_open_date done [15:31:55]produce_requested_data done [15:31:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73050,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:31:55]process_action_free close_receipt [15:31:55]json_value_free [15:31:55]json_value_free done [15:31:55]process_json_proto returns [15:31:55]Send response to host [15:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73050,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:31:55]free response buf [15:31:55]execute_script done [15:31:55]execute_script returns [15:31:55]free content buf [15:31:55]Sock 10.Close socket [15:31:55]Sock 10.Thread stoped [15:31:55]recv_with_timeout no data received [15:31:57]ConnectInit Can't take IP for lk.salyk.kg [15:31:57]CommunicateWithHost connect error [15:31:57]CommunicateWithHost err = -1 [15:31:57]OFD Sender: Server communicate error [15:32:02]OFD Sender: Processing packet 73050 [packets to send 282, broken 281] [15:32:02]ProducePacketName [15:32:02]name=ofd_packets/00073050 [15:32:02]OFD Sender: To server: pG, [15:32:02]CommunicateWithHost lk.salyk.kg:30040 [15:32:02]ConnectInit lk.salyk.kg [15:32:03]Connected sock=10 [15:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E 4B 07 01 82 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E8 A2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5A 1D 01 00 35 04 06 00 AE 05 BA FF 3C 86 C9 E4 6E 4D 12 0F B4 60 [15:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 44 A6 47 00 9B 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5A 1D 01 00 F4 03 04 00 A7 4D 23 67 B6 04 01 00 00 3B 47 8E CB 2F D6 43 28 [15:32:03]CommunicateWithHost err = 0 [15:32:03]CheckOFDResponse [15:32:03]1017 (14) - 77093643461234 [15:32:03]1041 (16) - 0000000000874662 [15:32:03]1040 (4) - 73050 [15:32:03]1012 (4) - 31.10.2024 09:28 [15:32:03]1206 (1) - 0 [15:32:03]OFD Sender: Remove packet 73050 [15:32:03]ProducePacketName [15:32:03]name=ofd_packets/00073050 [15:32:03]NVStorageDeleteData [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:23]recv_with_timeout no data received [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:23]recv_with_timeout no data received [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:02]recv_with_timeout no data received [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:37]accept exits with 9 [15:34:37]New connection [15:34:37]New thread 3067252068 created [15:34:37]Thread 3067395428 joined [15:34:37]Waiting for new connection... [15:34:37] Sock 9.Parse request [15:34:37]Sock 9.Check first char [15:34:37]Sock 9.First char is OK [15:34:37]request: POST /json_proto HTTP/1.0 [15:34:37]Method: POST [15:34:37]URL: /json_proto [15:34:37]Method is POST - this is cgi request [15:34:37]url: /json_proto [15:34:37]query_string will be loaded in cgi processing [15:34:37]execute_cgi json_proto POST (null) [15:34:37]execute_cgi path=json_proto method=POST [15:34:37]POST find Content-Length [15:34:37]Host: 172.17.43.195:8080 [15:34:37]Content-Length: 791 [15:34:37]Content-Type: application/json [15:34:37] [15:34:37]POST finish read [15:34:37]Found Content-Length = 791 [15:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 6.280, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:37]execute_script... [15:34: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)952652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 6.280, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:37]POST & json_proto [15:34:37]process_json_proto [15:34:37]json parsed OK: [15:34:37]protocol is kg_v1.0 [15:34:37]action value=close_receipt [15:34:37]process_action close_receipt [15:34:37]cmd_close_receipt [15:34:37]MH_GetDate [15:34:37]Write to MH i2c: F0 00 00 FB 00 EA [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: F0 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: F0 09 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: F0 09 00 FB 00 00 8E A3 23 67 74 2C AD 66 61 [15:34:37]GetLastDocTimeStamp 1730388712 [15:34:37]current date 1730388878 [15:34:37]FM_GetShiftState [15:34:37]SAM_PROTO_GetShiftState [15:34:37]wFMCommunicate request_size=4 [15:34:37]MH_SAM_APDU [15:34:37]CAPDU: 80 13 01 00 [15:34:37]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:38]Read from MH i2c: E2 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: E2 0E 00 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 22 [15:34:38]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:34:38]wFMCommunicate OK [15:34:38]SAM_PROTO_GetShiftState done [15:34:38]FM_GetShiftState done [15:34:38]opened in 1730333258 [15:34:38]opened+sec_in_day 1730419658 [15:34:38]quantity*price = 0 [15:34:38]sum+1 = 1 [15:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 126 31.10.2024 15:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73051 ФПД: 229031606542345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153438&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73051&fm=229031606542345&tin=02508201610067®Number=0000000000091644&sum=0 [15:34:39]StoreToDocumentArchive [15:34:39]shift 557 fd 73051 [15:34:39]save to /storage/0557/doc_00073051 [15:34:39]save last doc name /storage/0557/doc_00073051 to /storage/kkm_last_doc_name [15:34:39]save OK [15:34:39]Clear old archive folders... [15:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:39]tlvbuf is 02052440 [15:34:39]SAM_PROTO_ClearQueue [15:34:39]wFMCommunicate request_size=4 [15:34:39]MH_SAM_APDU [15:34:39]CAPDU: 80 09 00 00 [15:34:39]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 03 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [15:34:39]RAPDU: 90 00 [15:34:39]wFMCommunicate OK [15:34:39]SAM_PROTO_ClearQueue done [15:34:39]KKMCreateOFDPacket [15:34:39]OFDProtocolAddRootSTLVToBuf [15:34:39]FM_MakeSignedData [15:34:39]FM_MakeSignedData [15:34:39]SAM_PROTO_SignData [15:34:39]wFMCommunicate request_size=4 [15:34:39]MH_SAM_APDU [15:34:39]CAPDU: 80 0D 01 02 [15:34:39]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 03 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [15:34:39]RAPDU: 90 00 [15:34:39]wFMCommunicate OK [15:34:39]wFMCommunicate request_size=255 [15:34:39]MH_SAM_APDU [15:34:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8E A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1D 01 00 35 04 06 00 D0 [15:34:39]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8E A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1D 01 00 35 04 06 00 D0 00 00 DF [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 03 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [15:34:39]RAPDU: 90 00 [15:34:39]wFMCommunicate OK [15:34:39]wFMCommunicate request_size=10 [15:34:39]MH_SAM_APDU [15:34:39]CAPDU: 80 0D 02 02 05 4D 93 8C E0 09 [15:34:39]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 4D 93 8C E0 09 00 00 E6 [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]OFD Sender: No OFD packet to send [15:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 03 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [15:34:39]RAPDU: 90 00 [15:34:39]wFMCommunicate OK [15:34:39]wFMCommunicate request_size=4 [15:34:39]MH_SAM_APDU [15:34:39]CAPDU: 80 0D 03 02 [15:34:39]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 0B 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 0B 00 0D 01 00 C3 4C B7 F1 9B 39 1B 4E 90 00 7E [15:34:39]RAPDU: C3 4C B7 F1 9B 39 1B 4E 90 00 [15:34:39]wFMCommunicate OK [15:34:39]SAM_PROTO_SignData done [15:34:39]FM_MakeSignedData done [15:34:39]CreateOFDProtocolMessage [15:34:39]wFMCommunicate request_size=4 [15:34:39]MH_SAM_APDU [15:34:39]CAPDU: 80 11 00 00 [15:34:39]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 17 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DD [15:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:34:39]wFMCommunicate OK [15:34:39]CreateOFDProtocolMessage done [15:34:39]OFDSenderStorePacket 73051 [15:34:39]StoreOFDPacket docnum=73051 [15:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5E CE 07 01 96 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8E A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1D 01 00 35 04 06 00 D0 4D 93 8C E0 09 C3 4C B7 F1 9B 39 1B 4E [15:34:39]CheckFolder [15:34:39]dirname=/storage/ofd_packets [15:34:39]CheckFolder done [15:34:39]ProducePacketName [15:34:39]name=ofd_packets/00073051 [15:34:39]NVStorageSaveData ofd_packets/00073051 [15:34:39]File name is /storage/ofd_packets/00073051 [15:34:39]Write 301 bytes [15:34:39]NVStorageSaveData done [15:34:39]OFDSenderStorePacket done [15:34:39]KKMCreateOFDPacket done [15:34:39]NVStorageSaveData kkm_last_timestamp [15:34:39]File name is /storage/kkm_last_timestamp [15:34:39]Write 4 bytes [15:34:39]NVStorageSaveData done [15:34:39]ExternCall_PrintAddStr [15:34:39]wPrintStart [15:34:39]Write to MH i2c: 01 00 00 0F 01 10 [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: 01 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: 01 07 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [15:34:39]RasterBufferAndPrint [15:34:39]line Счет N : (1)952652 [15:34:39]line ИНН: 02508201610067 [15:34:39]line Контрольно-Кассовый Чек [15:34:39]line ПРОДАЖА [15:34:39]line ТРК (МРК, ГНК) : 42 [15:34:39]line Товар: 2710124130 [15:34:39]line Аи-92-К-5 [15:34:39]line 6.280 * 0.00 [15:34:39]line = 0.00 [15:34:39]line НДС 12% НСП 1% [15:34:39]line > о реализуемом товаре [15:34:39]line ИТОГО: 0.00 [15:34:39]line НСП 1% : 0.00 [15:34:39]line НДС 12% : 0.00 [15:34:39]line Наличными: 0.00 [15:34:39]line Безнал.: 0.00 [15:34:39]line Место: АЗС № 113 "Партнер Нефть" [15:34:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:34:39]line СНО: Общий режим [15:34:39]line Чек 126 31.10.2024 15:34 [15:34:39]line Смена: 557 ФФД: 1.0 [15:34:39]line ЗНМ: 0300000087 [15:34:39]line РНМ: 0000000000091644 [15:34:39]line Версия ККМ: 001 [15:34:39]line Талоны: Топливная Карта [15:34:39]line 03047 [15:34:39]line ФМ: 0000000000874662 [15:34:39]line ФД: 73051 [15:34:39]line ФПД: 229031606542345 [15:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153438&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73051&fm=229031606542345&tin=02508201610067®Number=0000000000091644&sum=0 [15:34:40]written 0, free lines is 4095 [15:34:40]OFD Sender: Processing packet 73051 [packets to send 282, broken 281] [15:34:40]ProducePacketName [15:34:40]name=ofd_packets/00073051 [15:34:40]OFD Sender: To server: pG, [15:34:40]CommunicateWithHost lk.salyk.kg:30040 [15:34:40]ConnectInit lk.salyk.kg [15:34:40]Write to MH i2c: 01 00 00 39 01 3A [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: 01 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: 01 07 00 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 E6 0C 33 [15:34:40]RasterBufferAndPrint [15:34:40]line [15:34:40]line [15:34:40]line [15:34:40]line [15:34:40]line [15:34:40]written 0, free lines is 3307 [15:34:40]MH_Cut [15:34:40]Write to MH i2c: D1 01 00 40 01 01 13 [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: D1 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: D1 01 00 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: D1 01 00 40 01 00 12 [15:34:40]Write to MH i2c: 01 00 00 41 01 42 [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:41]*** Cut start [15:34:41]*** Partial cut [15:34:41]*** CUTSNS_PIN = 1 [15:34:41]*** CUTSNS_PIN = 0 [15:34:41]*** Brake cut motor [15:34:41]Connected sock=11 [15:34:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5E CE 07 01 96 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8E A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1D 01 00 35 04 06 00 D0 4D 93 8C E0 09 C3 4C B7 F1 9B 39 1B 4E [15:34:41]Read from MH i2c: 01 [15:34:41]MH_I2C_Read... [15:34:41]*** Stop cut motor [15:34:41]*** Cut end [15:34:41]Read from MH i2c: 01 07 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [15:34:41]process_action close_receipt done [15:34:41]requested_data is exist [15:34:41]produce_requested_data [15:34:41]requested_item fm.sn is exist - process it [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 11 00 00 [15:34:41]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 17 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [15:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:34:41]wFMCommunicate OK [15:34:41]requested_item fd.num is exist - process it [15:34:41]SAM_PROTO_GetFieldsCounters [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 13 00 00 [15:34:41]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:42]Read from MH i2c: E2 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 62 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [15:34:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:42]wFMCommunicate OK [15:34:42]SAM_PROTO_GetFieldsCounters done [15:34:42]requested_item shift.num is exist - process it [15:34:42]requested_item shift.opened is exist - process it [15:34:42]req_shift_opened [15:34:42]FM_GetShiftState [15:34:42]SAM_PROTO_GetShiftState [15:34:42]wFMCommunicate request_size=4 [15:34:42]MH_SAM_APDU [15:34:42]CAPDU: 80 13 01 00 [15:34:42]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:42]Read from MH i2c: E2 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 0E 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6B [15:34:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:34:42]wFMCommunicate OK [15:34:42]SAM_PROTO_GetShiftState done [15:34:42]FM_GetShiftState done [15:34:42]req_shift_opened done [15:34:42]requested_item shift.open_date is exist - process it [15:34:42]req_shift_open_date [15:34:42]req_shift_open_date done [15:34:42]produce_requested_data done [15:34:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73051,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:34:42]process_action_free close_receipt [15:34:42]json_value_free [15:34:42]json_value_free done [15:34:42]process_json_proto returns [15:34:42]Send response to host [15:34:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73051,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:34:42]free response buf [15:34:42]execute_script done [15:34:42]execute_script returns [15:34:42]free content buf [15:34:42]Sock 9.Close socket [15:34:42]Sock 9.Thread stoped [15:34:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2B 6F 47 00 E2 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1D 01 00 F4 03 04 00 45 4E 23 67 B6 04 01 00 00 E0 C1 93 B1 4F C4 B4 1F [15:34:42]CommunicateWithHost err = 0 [15:34:42]CheckOFDResponse [15:34:42]1017 (14) - 77093643461234 [15:34:42]1041 (16) - 0000000000874662 [15:34:42]1040 (4) - 73051 [15:34:42]1012 (4) - 31.10.2024 09:30 [15:34:42]1206 (1) - 0 [15:34:42]OFD Sender: Remove packet 73051 [15:34:42]ProducePacketName [15:34:42]name=ofd_packets/00073051 [15:34:42]NVStorageDeleteData [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:34:59]accept exits with 8 [15:34:59]New connection [15:34:59]New thread 3067395428 created [15:34:59]Thread 3067252068 joined [15:34:59]Waiting for new connection... [15:34:59] Sock 8.Parse request [15:34:59]Sock 8.Check first char [15:34:59]Sock 8.First char is OK [15:34:59]request: POST /json_proto HTTP/1.0 [15:34:59]Method: POST [15:34:59]URL: /json_proto [15:34:59]Method is POST - this is cgi request [15:34:59]url: /json_proto [15:34:59]query_string will be loaded in cgi processing [15:34:59]execute_cgi json_proto POST (null) [15:34:59]execute_cgi path=json_proto method=POST [15:34:59]POST find Content-Length [15:34:59]Host: 172.17.43.195:8080 [15:34:59]Content-Length: 793 [15:34:59]Content-Type: application/json [15:34:59] [15:34:59]POST finish read [15:34:59]Found Content-Length = 793 [15:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:59]execute_script... [15:34:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 140.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:59]POST & json_proto [15:34:59]process_json_proto [15:34:59]json parsed OK: [15:34:59]protocol is kg_v1.0 [15:34:59]action value=close_receipt [15:34:59]process_action close_receipt [15:34:59]cmd_close_receipt [15:34:59]MH_GetDate [15:34:59]Write to MH i2c: F0 00 00 45 01 35 [15:35:00]Write i2c OK [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: F0 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: F0 09 00 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: F0 09 00 45 01 00 A4 A3 23 67 74 2C AD 66 C2 [15:35:00]GetLastDocTimeStamp 1730388878 [15:35:00]current date 1730388900 [15:35:00]FM_GetShiftState [15:35:00]SAM_PROTO_GetShiftState [15:35:00]wFMCommunicate request_size=4 [15:35:00]MH_SAM_APDU [15:35:00]CAPDU: 80 13 01 00 [15:35:00]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [15:35:00]Write i2c OK [15:35:00]MH_I2C_Read... [15:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:00]Read from MH i2c: E2 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 0E 00 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6D [15:35:00]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:35:00]wFMCommunicate OK [15:35:00]SAM_PROTO_GetShiftState done [15:35:00]FM_GetShiftState done [15:35:00]opened in 1730333258 [15:35:00]opened+sec_in_day 1730419658 [15:35:00]quantity*price = 0 [15:35:00]sum+1 = 1 [15:35:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 127 31.10.2024 15:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73052 ФПД: 149601937378209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153500&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73052&fm=149601937378209&tin=02508201610067®Number=0000000000091644&sum=0 [15:35:01]StoreToDocumentArchive [15:35:01]shift 557 fd 73052 [15:35:01]save to /storage/0557/doc_00073052 [15:35:01]save last doc name /storage/0557/doc_00073052 to /storage/kkm_last_doc_name [15:35:01]save OK [15:35:01]Clear old archive folders... [15:35:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:01]tlvbuf is 02056090 [15:35:01]SAM_PROTO_ClearQueue [15:35:01]wFMCommunicate request_size=4 [15:35:01]MH_SAM_APDU [15:35:01]CAPDU: 80 09 00 00 [15:35:01]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [15:35:01]Write i2c OK [15:35:01]MH_I2C_Read... [15:35:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:01]Read from MH i2c: E2 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [15:35:01]RAPDU: 90 00 [15:35:01]wFMCommunicate OK [15:35:01]SAM_PROTO_ClearQueue done [15:35:01]KKMCreateOFDPacket [15:35:01]OFDProtocolAddRootSTLVToBuf [15:35:01]FM_MakeSignedData [15:35:01]FM_MakeSignedData [15:35:01]SAM_PROTO_SignData [15:35:01]wFMCommunicate request_size=4 [15:35:01]MH_SAM_APDU [15:35:01]CAPDU: 80 0D 01 02 [15:35:01]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [15:35:01]Write i2c OK [15:35:01]MH_I2C_Read... [15:35:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:01]Read from MH i2c: E2 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [15:35:01]RAPDU: 90 00 [15:35:01]wFMCommunicate OK [15:35:01]wFMCommunicate request_size=255 [15:35:01]MH_SAM_APDU [15:35: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 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 A4 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1D 01 00 35 04 06 00 88 [15:35:01]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 A4 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1D 01 00 35 04 06 00 88 00 00 5D [15:35:01]Write i2c OK [15:35:01]MH_I2C_Read... [15:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:01]Read from MH i2c: E2 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [15:35:01]RAPDU: 90 00 [15:35:01]wFMCommunicate OK [15:35:01]wFMCommunicate request_size=10 [15:35:01]MH_SAM_APDU [15:35:01]CAPDU: 80 0D 02 02 05 0F EA 55 CB A1 [15:35:01]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 0F EA 55 CB A1 00 00 95 [15:35:01]Write i2c OK [15:35:01]MH_I2C_Read... [15:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:01]Read from MH i2c: E2 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [15:35:01]RAPDU: 90 00 [15:35:01]wFMCommunicate OK [15:35:01]wFMCommunicate request_size=4 [15:35:01]MH_SAM_APDU [15:35:01]CAPDU: 80 0D 03 02 [15:35:01]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [15:35:01]Write i2c OK [15:35:01]MH_I2C_Read... [15:35:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:01]Read from MH i2c: E2 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 0B 00 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 0B 00 57 01 00 F9 A4 63 9F FE B4 4B 2C 90 00 9C [15:35:01]RAPDU: F9 A4 63 9F FE B4 4B 2C 90 00 [15:35:01]wFMCommunicate OK [15:35:01]SAM_PROTO_SignData done [15:35:01]FM_MakeSignedData done [15:35:01]CreateOFDProtocolMessage [15:35:01]wFMCommunicate request_size=4 [15:35:01]MH_SAM_APDU [15:35:01]CAPDU: 80 11 00 00 [15:35:01]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [15:35:01]Write i2c OK [15:35:01]MH_I2C_Read... [15:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:01]Read from MH i2c: E2 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 17 00 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [15:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:35:01]wFMCommunicate OK [15:35:01]CreateOFDProtocolMessage done [15:35:01]OFDSenderStorePacket 73052 [15:35:01]StoreOFDPacket docnum=73052 [15:35:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 47 81 07 01 70 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 A4 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1D 01 00 35 04 06 00 88 0F EA 55 CB A1 F9 A4 63 9F FE B4 4B 2C [15:35:01]CheckFolder [15:35:01]dirname=/storage/ofd_packets [15:35:01]CheckFolder done [15:35:01]ProducePacketName [15:35:01]name=ofd_packets/00073052 [15:35:01]NVStorageSaveData ofd_packets/00073052 [15:35:01]File name is /storage/ofd_packets/00073052 [15:35:01]Write 301 bytes [15:35:01]NVStorageSaveData done [15:35:01]OFDSenderStorePacket done [15:35:01]KKMCreateOFDPacket done [15:35:01]NVStorageSaveData kkm_last_timestamp [15:35:01]File name is /storage/kkm_last_timestamp [15:35:01]Write 4 bytes [15:35:01]NVStorageSaveData done [15:35:01]ExternCall_PrintAddStr [15:35:01]wPrintStart [15:35:01]Write to MH i2c: 01 00 00 59 01 5A [15:35:01]Write i2c OK [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: 01 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: 01 07 00 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [15:35:01]RasterBufferAndPrint [15:35:01]line Счет N : (1)952650 [15:35:01]line ИНН: 02508201610067 [15:35:01]line Контрольно-Кассовый Чек [15:35:01]line ПРОДАЖА [15:35:01]line ТРК (МРК, ГНК) : 53 [15:35:01]line Товар: 2710124130 [15:35:01]line Аи-92-К-5 [15:35:01]line 140.000 * 0.00 [15:35:01]line = 0.00 [15:35:01]line НДС 12% НСП 1% [15:35:01]line > о реализуемом товаре [15:35:01]line ИТОГО: 0.00 [15:35:01]line НСП 1% : 0.00 [15:35:01]line НДС 12% : 0.00 [15:35:01]line Наличными: 0.00 [15:35:01]line Безнал.: 0.00 [15:35:01]line Место: АЗС № 113 "Партнер Нефть" [15:35:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:35:01]line СНО: Общий режим [15:35:01]line Чек 127 31.10.2024 15:35 [15:35:01]line Смена: 557 ФФД: 1.0 [15:35:01]line ЗНМ: 0300000087 [15:35:01]line РНМ: 0000000000091644 [15:35:01]line Версия ККМ: 001 [15:35:01]line Талоны: Топливная Карта [15:35:01]line 03047 [15:35:01]line ФМ: 0000000000874662 [15:35:01]line ФД: 73052 [15:35:01]line ФПД: 149601937378209 [15:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153500&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73052&fm=149601937378209&tin=02508201610067®Number=0000000000091644&sum=0 [15:35:01]written 0, free lines is 4095 [15:35:01]OFD Sender: Processing packet 73052 [packets to send 282, broken 281] [15:35:01]ProducePacketName [15:35:01]name=ofd_packets/00073052 [15:35:01]OFD Sender: To server: pG, [15:35:01]CommunicateWithHost lk.salyk.kg:30040 [15:35:01]ConnectInit lk.salyk.kg [15:35:02]Write to MH i2c: 01 00 00 83 01 84 [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: 01 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: 01 07 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 E6 0C 7D [15:35:02]RasterBufferAndPrint [15:35:02]line [15:35:02]line [15:35:02]line [15:35:02]line [15:35:02]line [15:35:02]written 0, free lines is 3309 [15:35:02]MH_Cut [15:35:02]Write to MH i2c: D1 01 00 8A 01 01 5D [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: D1 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: D1 01 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: D1 01 00 8A 01 00 5C [15:35:02]Write to MH i2c: 01 00 00 8B 01 8C [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]*** Cut start [15:35:02]*** Partial cut [15:35:02]*** CUTSNS_PIN = 1 [15:35:02]*** CUTSNS_PIN = 0 [15:35:03]*** Brake cut motor [15:35:03]Read from MH i2c: 01 [15:35:03]MH_I2C_Read... [15:35:03]*** Stop cut motor [15:35:03]*** Cut end [15:35:03]Read from MH i2c: 01 07 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [15:35:03]process_action close_receipt done [15:35:03]requested_data is exist [15:35:03]produce_requested_data [15:35:03]requested_item fm.sn is exist - process it [15:35:03]wFMCommunicate request_size=4 [15:35:03]MH_SAM_APDU [15:35:03]CAPDU: 80 11 00 00 [15:35:03]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:03]Read from MH i2c: E2 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 17 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [15:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:35:03]wFMCommunicate OK [15:35:03]requested_item fd.num is exist - process it [15:35:03]SAM_PROTO_GetFieldsCounters [15:35:03]wFMCommunicate request_size=4 [15:35:03]MH_SAM_APDU [15:35:03]CAPDU: 80 13 00 00 [15:35:03]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:03]Read from MH i2c: E2 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 62 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [15:35:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:03]wFMCommunicate OK [15:35:03]SAM_PROTO_GetFieldsCounters done [15:35:03]requested_item shift.num is exist - process it [15:35:03]requested_item shift.opened is exist - process it [15:35:03]req_shift_opened [15:35:03]FM_GetShiftState [15:35:03]SAM_PROTO_GetShiftState [15:35:03]wFMCommunicate request_size=4 [15:35:03]MH_SAM_APDU [15:35:03]CAPDU: 80 13 01 00 [15:35:03]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [15:35:03]Connected sock=11 [15:35:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 47 81 07 01 70 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 22 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 A4 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1D 01 00 35 04 06 00 88 0F EA 55 CB A1 F9 A4 63 9F FE B4 4B 2C [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:03]Read from MH i2c: E2 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 0E 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B5 [15:35:03]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:35:03]wFMCommunicate OK [15:35:03]SAM_PROTO_GetShiftState done [15:35:03]FM_GetShiftState done [15:35:03]req_shift_opened done [15:35:03]requested_item shift.open_date is exist - process it [15:35:03]req_shift_open_date [15:35:03]req_shift_open_date done [15:35:03]produce_requested_data done [15:35:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73052,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:35:03]process_action_free close_receipt [15:35:03]json_value_free [15:35:03]json_value_free done [15:35:03]process_json_proto returns [15:35:03]Send response to host [15:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73052,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:35:03]free response buf [15:35:03]execute_script done [15:35:03]execute_script returns [15:35:03]free content buf [15:35:03]Sock 8.Close socket [15:35:03]Sock 8.Thread stoped [15:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 26 1C 47 00 5E 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1D 01 00 F4 03 04 00 5B 4E 23 67 B6 04 01 00 00 6A 2B FC 57 3D 2D 52 5C [15:35:04]CommunicateWithHost err = 0 [15:35:04]CheckOFDResponse [15:35:04]1017 (14) - 77093643461234 [15:35:04]1041 (16) - 0000000000874662 [15:35:04]1040 (4) - 73052 [15:35:04]1012 (4) - 31.10.2024 09:31 [15:35:04]1206 (1) - 0 [15:35:04]OFD Sender: Remove packet 73052 [15:35:04]ProducePacketName [15:35:04]name=ofd_packets/00073052 [15:35:04]NVStorageDeleteData [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:15]recv_with_timeout no data received [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:30]accept exits with 10 [15:35:30]New connection [15:35:30]New thread 3067252068 created [15:35:30]Thread 3067395428 joined [15:35:30]Waiting for new connection... [15:35:30] Sock 10.Parse request [15:35:30]Sock 10.Check first char [15:35:30]Sock 10.First char is OK [15:35:30]request: POST /json_proto HTTP/1.0 [15:35:30]Method: POST [15:35:30]URL: /json_proto [15:35:30]Method is POST - this is cgi request [15:35:30]url: /json_proto [15:35:30]query_string will be loaded in cgi processing [15:35:30]execute_cgi json_proto POST (null) [15:35:30]execute_cgi path=json_proto method=POST [15:35:30]POST find Content-Length [15:35:30]Host: 172.17.43.195:8080 [15:35:30]Content-Length: 792 [15:35:30]Content-Type: application/json [15:35:30] [15:35:30]POST finish read [15:35:30]Found Content-Length = 792 [15:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:30]execute_script... [15:35:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:30]POST & json_proto [15:35:30]process_json_proto [15:35:30]json parsed OK: [15:35:30]protocol is kg_v1.0 [15:35:30]action value=close_receipt [15:35:30]process_action close_receipt [15:35:30]cmd_close_receipt [15:35:30]MH_GetDate [15:35:30]Write to MH i2c: F0 00 00 8F 01 7F [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: F0 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: F0 09 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: F0 09 00 8F 01 00 C3 A3 23 67 74 2C AD 66 2B [15:35:30]GetLastDocTimeStamp 1730388900 [15:35:30]current date 1730388931 [15:35:30]FM_GetShiftState [15:35:30]SAM_PROTO_GetShiftState [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 13 01 00 [15:35:30]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 0E 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B7 [15:35:30]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:35:30]wFMCommunicate OK [15:35:30]SAM_PROTO_GetShiftState done [15:35:30]FM_GetShiftState done [15:35:30]opened in 1730333258 [15:35:30]opened+sec_in_day 1730419658 [15:35:30]quantity*price = 0 [15:35:30]sum+1 = 1 [15:35:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 128 31.10.2024 15:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73053 ФПД: 198016825399804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153531&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73053&fm=198016825399804&tin=02508201610067®Number=0000000000091644&sum=0 [15:35:31]StoreToDocumentArchive [15:35:31]shift 557 fd 73053 [15:35:31]save to /storage/0557/doc_00073053 [15:35:31]save last doc name /storage/0557/doc_00073053 to /storage/kkm_last_doc_name [15:35:31]save OK [15:35:31]Clear old archive folders... [15:35:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:31]tlvbuf is 02070F90 [15:35:31]SAM_PROTO_ClearQueue [15:35:31]wFMCommunicate request_size=4 [15:35:31]MH_SAM_APDU [15:35:31]CAPDU: 80 09 00 00 [15:35:31]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [15:35:31]RAPDU: 90 00 [15:35:31]wFMCommunicate OK [15:35:31]SAM_PROTO_ClearQueue done [15:35:31]KKMCreateOFDPacket [15:35:31]OFDProtocolAddRootSTLVToBuf [15:35:31]FM_MakeSignedData [15:35:31]FM_MakeSignedData [15:35:31]SAM_PROTO_SignData [15:35:31]wFMCommunicate request_size=4 [15:35:31]MH_SAM_APDU [15:35:31]CAPDU: 80 0D 01 02 [15:35:31]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [15:35:31]RAPDU: 90 00 [15:35:31]wFMCommunicate OK [15:35:31]wFMCommunicate request_size=255 [15:35:31]MH_SAM_APDU [15:35:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C3 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1D 01 00 35 04 06 00 B4 [15:35:31]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C3 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1D 01 00 35 04 06 00 B4 00 00 5E [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 03 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [15:35:32]RAPDU: 90 00 [15:35:32]wFMCommunicate OK [15:35:32]wFMCommunicate request_size=10 [15:35:32]MH_SAM_APDU [15:35:32]CAPDU: 80 0D 02 02 05 18 62 89 99 FC [15:35:32]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 18 62 89 99 FC 00 00 BD [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 03 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [15:35:32]RAPDU: 90 00 [15:35:32]wFMCommunicate OK [15:35:32]wFMCommunicate request_size=4 [15:35:32]MH_SAM_APDU [15:35:32]CAPDU: 80 0D 03 02 [15:35:32]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 0B 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 0B 00 A1 01 00 0A D4 4A 29 B0 D9 73 89 90 00 F4 [15:35:32]RAPDU: 0A D4 4A 29 B0 D9 73 89 90 00 [15:35:32]wFMCommunicate OK [15:35:32]SAM_PROTO_SignData done [15:35:32]FM_MakeSignedData done [15:35:32]CreateOFDProtocolMessage [15:35:32]wFMCommunicate request_size=4 [15:35:32]MH_SAM_APDU [15:35:32]CAPDU: 80 11 00 00 [15:35:32]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 17 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 71 [15:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:35:32]wFMCommunicate OK [15:35:32]CreateOFDProtocolMessage done [15:35:32]OFDSenderStorePacket 73053 [15:35:32]StoreOFDPacket docnum=73053 [15:35:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B8 E2 07 01 37 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C3 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1D 01 00 35 04 06 00 B4 18 62 89 99 FC 0A D4 4A 29 B0 D9 73 89 [15:35:32]CheckFolder [15:35:32]dirname=/storage/ofd_packets [15:35:32]CheckFolder done [15:35:32]ProducePacketName [15:35:32]name=ofd_packets/00073053 [15:35:32]NVStorageSaveData ofd_packets/00073053 [15:35:32]File name is /storage/ofd_packets/00073053 [15:35:32]Write 301 bytes [15:35:32]NVStorageSaveData done [15:35:32]OFDSenderStorePacket done [15:35:32]KKMCreateOFDPacket done [15:35:32]NVStorageSaveData kkm_last_timestamp [15:35:32]File name is /storage/kkm_last_timestamp [15:35:32]Write 4 bytes [15:35:32]NVStorageSaveData done [15:35:32]ExternCall_PrintAddStr [15:35:32]wPrintStart [15:35:32]Write to MH i2c: 01 00 00 A3 01 A4 [15:35:32]OFD Sender: Processing packet 73053 [packets to send 282, broken 281] [15:35:32]ProducePacketName [15:35:32]name=ofd_packets/00073053 [15:35:32]OFD Sender: To server: pG, [15:35:32]CommunicateWithHost lk.salyk.kg:30040 [15:35:32]ConnectInit lk.salyk.kg [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [15:35:32]RasterBufferAndPrint [15:35:32]line Счет N : (1)952651 [15:35:32]line ИНН: 02508201610067 [15:35:32]line Контрольно-Кассовый Чек [15:35:32]line ПРОДАЖА [15:35:32]line ТРК (МРК, ГНК) : 63 [15:35:32]line Товар: 2710124130 [15:35:32]line Аи-92-К-5 [15:35:32]line 20.000 * 0.00 [15:35:32]line = 0.00 [15:35:32]line НДС 12% НСП 1% [15:35:32]line > о реализуемом товаре [15:35:32]line ИТОГО: 0.00 [15:35:32]line НСП 1% : 0.00 [15:35:32]line НДС 12% : 0.00 [15:35:32]line Наличными: 0.00 [15:35:32]line Безнал.: 0.00 [15:35:32]line Место: АЗС № 113 "Партнер Нефть" [15:35:32]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:35:32]line СНО: Общий режим [15:35:32]line Чек 128 31.10.2024 15:35 [15:35:32]line Смена: 557 ФФД: 1.0 [15:35:32]line ЗНМ: 0300000087 [15:35:32]line РНМ: 0000000000091644 [15:35:32]line Версия ККМ: 001 [15:35:32]line Талоны: Топливная Карта [15:35:32]line 03047 [15:35:32]line ФМ: 0000000000874662 [15:35:32]line ФД: 73053 [15:35:32]line ФПД: 198016825399804 [15:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153531&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73053&fm=198016825399804&tin=02508201610067®Number=0000000000091644&sum=0 [15:35:32]written 0, free lines is 4095 [15:35:32]Write to MH i2c: 01 00 00 CD 01 CE [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 E6 0C C7 [15:35:32]RasterBufferAndPrint [15:35:32]line [15:35:32]line [15:35:32]line [15:35:32]line [15:35:32]line [15:35:32]written 0, free lines is 3312 [15:35:32]MH_Cut [15:35:32]Write to MH i2c: D1 01 00 D4 01 01 A7 [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: D1 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: D1 01 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: D1 01 00 D4 01 00 A6 [15:35:32]Write to MH i2c: 01 00 00 D5 01 D6 [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:33]*** Cut start [15:35:33]*** Partial cut [15:35:33]*** CUTSNS_PIN = 1 [15:35:33]*** CUTSNS_PIN = 0 [15:35:33]Connected sock=11 [15:35:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B8 E2 07 01 37 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C3 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1D 01 00 35 04 06 00 B4 18 62 89 99 FC 0A D4 4A 29 B0 D9 73 89 [15:35:33]*** Brake cut motor [15:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E4 72 47 00 E3 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1D 01 00 F4 03 04 00 79 4E 23 67 B6 04 01 00 00 98 AC 44 DC 5D 20 51 10 [15:35:34]CommunicateWithHost err = 0 [15:35:34]CheckOFDResponse [15:35:34]1017 (14) - 77093643461234 [15:35:34]1041 (16) - 0000000000874662 [15:35:34]1040 (4) - 73053 [15:35:34]1012 (4) - 31.10.2024 09:31 [15:35:34]1206 (1) - 0 [15:35:34]OFD Sender: Remove packet 73053 [15:35:34]ProducePacketName [15:35:34]name=ofd_packets/00073053 [15:35:34]NVStorageDeleteData [15:35:34]Read from MH i2c: 01 [15:35:34]MH_I2C_Read... [15:35:34]*** Stop cut motor [15:35:34]*** Cut end [15:35:34]Read from MH i2c: 01 07 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [15:35:34]process_action close_receipt done [15:35:34]requested_data is exist [15:35:34]produce_requested_data [15:35:34]requested_item fm.sn is exist - process it [15:35:34]wFMCommunicate request_size=4 [15:35:34]MH_SAM_APDU [15:35:34]CAPDU: 80 11 00 00 [15:35:34]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:34]Read from MH i2c: E2 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 17 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [15:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:35:34]wFMCommunicate OK [15:35:34]requested_item fd.num is exist - process it [15:35:34]SAM_PROTO_GetFieldsCounters [15:35:34]wFMCommunicate request_size=4 [15:35:34]MH_SAM_APDU [15:35:34]CAPDU: 80 13 00 00 [15:35:34]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:34]Read from MH i2c: E2 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 62 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [15:35:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:34]wFMCommunicate OK [15:35:34]SAM_PROTO_GetFieldsCounters done [15:35:34]requested_item shift.num is exist - process it [15:35:34]requested_item shift.opened is exist - process it [15:35:34]req_shift_opened [15:35:34]FM_GetShiftState [15:35:34]SAM_PROTO_GetShiftState [15:35:34]wFMCommunicate request_size=4 [15:35:34]MH_SAM_APDU [15:35:34]CAPDU: 80 13 01 00 [15:35:34]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:34]Read from MH i2c: E2 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 0E 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 FF [15:35:34]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:35:34]wFMCommunicate OK [15:35:34]SAM_PROTO_GetShiftState done [15:35:34]FM_GetShiftState done [15:35:34]req_shift_opened done [15:35:34]requested_item shift.open_date is exist - process it [15:35:34]req_shift_open_date [15:35:34]req_shift_open_date done [15:35:34]produce_requested_data done [15:35:34]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73053,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:35:34]process_action_free close_receipt [15:35:34]json_value_free [15:35:34]json_value_free done [15:35:34]process_json_proto returns [15:35:34]Send response to host [15:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73053,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:35:34]free response buf [15:35:34]execute_script done [15:35:34]execute_script returns [15:35:34]free content buf [15:35:34]Sock 10.Close socket [15:35:34]Sock 10.Thread stoped [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:02]recv_with_timeout no data received [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:13]recv_with_timeout no data received [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]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:17]recv_with_timeout no data received [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:28]recv_with_timeout no data received [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:16]recv_with_timeout no data received [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:34]recv_with_timeout no data received [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:47]recv_with_timeout no data received [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:06]recv_with_timeout no data received [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:39]accept exits with 9 [15:45:39]New connection [15:45:39]New thread 3067395428 created [15:45:39]Thread 3067252068 joined [15:45:39]Waiting for new connection... [15:45:39] Sock 9.Parse request [15:45:39]Sock 9.Check first char [15:45:39]Sock 9.First char is OK [15:45:39]request: POST /json_proto HTTP/1.0 [15:45:39]Method: POST [15:45:39]URL: /json_proto [15:45:39]Method is POST - this is cgi request [15:45:39]url: /json_proto [15:45:39]query_string will be loaded in cgi processing [15:45:39]execute_cgi json_proto POST (null) [15:45:39]execute_cgi path=json_proto method=POST [15:45:39]POST find Content-Length [15:45:39]Host: 172.17.43.195:8080 [15:45:39]Content-Length: 683 [15:45:39]Content-Type: application/json [15:45:39] [15:45:39]POST finish read [15:45:39]Found Content-Length = 683 [15:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:39]execute_script... [15:45:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:39]POST & json_proto [15:45:39]process_json_proto [15:45:39]json parsed OK: [15:45:39]protocol is kg_v1.0 [15:45:39]action value=close_receipt [15:45:39]process_action close_receipt [15:45:39]cmd_close_receipt [15:45:39]MH_GetDate [15:45:39]Write to MH i2c: F0 00 00 D9 01 C9 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: F0 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: F0 09 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: F0 09 00 D9 01 00 24 A6 23 67 74 2C AD 66 D9 [15:45:39]GetLastDocTimeStamp 1730388931 [15:45:39]current date 1730389540 [15:45:39]FM_GetShiftState [15:45:39]SAM_PROTO_GetShiftState [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 13 01 00 [15:45:39]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 0E 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 01 [15:45:39]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:45:39]wFMCommunicate OK [15:45:39]SAM_PROTO_GetShiftState done [15:45:39]FM_GetShiftState done [15:45:39]opened in 1730333258 [15:45:39]opened+sec_in_day 1730419658 [15:45:39]quantity*price = 80010 [15:45:39]sum+1 = 80011 [15:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 129 31.10.2024 15:45 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73054 ФПД: 31327842110008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T154540&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73054&fm=31327842110008&tin=02508201610067®Number=0000000000091644&sum=80000 [15:45:40]StoreToDocumentArchive [15:45:40]shift 557 fd 73054 [15:45:40]save to /storage/0557/doc_00073054 [15:45:40]save last doc name /storage/0557/doc_00073054 to /storage/kkm_last_doc_name [15:45:40]save OK [15:45:40]Clear old archive folders... [15:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:45:40]tlvbuf is 02074420 [15:45:40]SAM_PROTO_ClearQueue [15:45:40]wFMCommunicate request_size=4 [15:45:40]MH_SAM_APDU [15:45:40]CAPDU: 80 09 00 00 [15:45:40]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [15:45:40]Write i2c OK [15:45:40]MH_I2C_Read... [15:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:40]Read from MH i2c: E2 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [15:45:40]RAPDU: 90 00 [15:45:40]wFMCommunicate OK [15:45:40]SAM_PROTO_ClearQueue done [15:45:40]KKMCreateOFDPacket [15:45:40]OFDProtocolAddRootSTLVToBuf [15:45:40]FM_MakeSignedData [15:45:40]FM_MakeSignedData [15:45:40]SAM_PROTO_SignData [15:45:40]wFMCommunicate request_size=4 [15:45:40]MH_SAM_APDU [15:45:40]CAPDU: 80 0D 01 02 [15:45:40]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [15:45:40]Write i2c OK [15:45:40]MH_I2C_Read... [15:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:40]Read from MH i2c: E2 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [15:45:40]RAPDU: 90 00 [15:45:40]wFMCommunicate OK [15:45:40]wFMCommunicate request_size=255 [15:45:40]MH_SAM_APDU [15:45:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 24 A6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1D 01 00 35 04 06 00 [15:45:40]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 24 A6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1D 01 00 35 04 06 00 00 00 82 [15:45:40]Write i2c OK [15:45:40]MH_I2C_Read... [15:45:40]OFD Sender: No OFD packet to send [15:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:40]Read from MH i2c: E2 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [15:45:40]RAPDU: 90 00 [15:45:40]wFMCommunicate OK [15:45:40]wFMCommunicate request_size=11 [15:45:40]MH_SAM_APDU [15:45:40]CAPDU: 80 0D 02 02 06 1C 7E 14 E6 8A 38 [15:45:40]Write to MH i2c: E2 0E 00 EA 01 80 0D 02 02 06 00 1C 7E 14 E6 8A 38 00 00 C7 [15:45:40]Write i2c OK [15:45:40]MH_I2C_Read... [15:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:40]Read from MH i2c: E2 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [15:45:40]RAPDU: 90 00 [15:45:40]wFMCommunicate OK [15:45:40]wFMCommunicate request_size=4 [15:45:40]MH_SAM_APDU [15:45:40]CAPDU: 80 0D 03 02 [15:45:40]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [15:45:40]Write i2c OK [15:45:40]MH_I2C_Read... [15:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:41]Read from MH i2c: E2 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 0B 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 0B 00 EB 01 00 44 29 B3 DA 41 4A 4B 38 90 00 70 [15:45:41]RAPDU: 44 29 B3 DA 41 4A 4B 38 90 00 [15:45:41]wFMCommunicate OK [15:45:41]SAM_PROTO_SignData done [15:45:41]FM_MakeSignedData done [15:45:41]CreateOFDProtocolMessage [15:45:41]wFMCommunicate request_size=4 [15:45:41]MH_SAM_APDU [15:45:41]CAPDU: 80 11 00 00 [15:45:41]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:41]Read from MH i2c: E2 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 17 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BB [15:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:45:41]wFMCommunicate OK [15:45:41]CreateOFDProtocolMessage done [15:45:41]OFDSenderStorePacket 73054 [15:45:41]StoreOFDPacket docnum=73054 [15:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 25 9F 08 01 81 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 24 A6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1D 01 00 35 04 06 00 1C 7E 14 E6 8A 38 44 29 B3 DA 41 4A 4B 38 [15:45:41]CheckFolder [15:45:41]dirname=/storage/ofd_packets [15:45:41]CheckFolder done [15:45:41]ProducePacketName [15:45:41]name=ofd_packets/00073054 [15:45:41]NVStorageSaveData ofd_packets/00073054 [15:45:41]File name is /storage/ofd_packets/00073054 [15:45:41]Write 302 bytes [15:45:41]NVStorageSaveData done [15:45:41]OFDSenderStorePacket done [15:45:41]KKMCreateOFDPacket done [15:45:41]NVStorageSaveData kkm_last_timestamp [15:45:41]File name is /storage/kkm_last_timestamp [15:45:41]Write 4 bytes [15:45:41]NVStorageSaveData done [15:45:41]ExternCall_PrintAddStr [15:45:41]wPrintStart [15:45:41]Write to MH i2c: 01 00 00 ED 01 EE [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: 01 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: 01 07 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [15:45:41]RasterBufferAndPrint [15:45:41]line Счет N : (1)952653 [15:45:41]line ИНН: 02508201610067 [15:45:41]line Контрольно-Кассовый Чек [15:45:41]line ПРОДАЖА [15:45:41]line ТРК (МРК, ГНК) : 33 [15:45:41]line Товар: 2710194210 [15:45:41]line ДТ(л)-К-5 [15:45:41]line 10.500 * 76.20 [15:45:41]line = 800.10 [15:45:41]line НДС 12% НСП 1% [15:45:41]line > о реализуемом товаре [15:45:41]line ОКРУГЛЕНИЕ: -0.10 [15:45:41]line ИТОГО: 800.00 [15:45:41]line Внесено: 800.00 [15:45:41]line СДАЧА: 0.00 [15:45:41]line НСП 1% : 7.08 [15:45:41]line НДС 12% : 84.97 [15:45:41]line Наличными: 800.00 [15:45:41]line Безнал.: 0.00 [15:45:41]line Место: АЗС № 113 "Партнер Нефть" [15:45:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:45:41]line СНО: Общий режим [15:45:41]line Чек 129 31.10.2024 15:45 [15:45:41]line Смена: 557 ФФД: 1.0 [15:45:41]line ЗНМ: 0300000087 [15:45:41]line РНМ: 0000000000091644 [15:45:41]line Версия ККМ: 001 [15:45:41]line ФМ: 0000000000874662 [15:45:41]line ФД: 73054 [15:45:41]line ФПД: 31327842110008 [15:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T154540&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73054&fm=31327842110008&tin=02508201610067®Number=0000000000091644&sum=80000 [15:45:41]OFD Sender: Processing packet 73054 [packets to send 282, broken 281] [15:45:41]written 0, free lines is 4095 [15:45:41]ProducePacketName [15:45:41]name=ofd_packets/00073054 [15:45:41]OFD Sender: To server: pG, [15:45:41]CommunicateWithHost lk.salyk.kg:30040 [15:45:41]ConnectInit lk.salyk.kg [15:45:41]Write to MH i2c: 01 00 00 18 02 1A [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: 01 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: 01 07 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 D8 0C 05 [15:45:41]RasterBufferAndPrint [15:45:41]line [15:45:41]line [15:45:41]line [15:45:41]line [15:45:41]line [15:45:41]written 0, free lines is 3292 [15:45:41]MH_Cut [15:45:41]Write to MH i2c: D1 01 00 1F 02 01 F3 [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: D1 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: D1 01 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: D1 01 00 1F 02 00 F2 [15:45:41]Write to MH i2c: 01 00 00 20 02 22 [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:42]*** Cut start [15:45:42]*** Partial cut [15:45:42]*** CUTSNS_PIN = 1 [15:45:42]*** CUTSNS_PIN = 0 [15:45:42]*** Brake cut motor [15:45:42]Read from MH i2c: 01 [15:45:42]MH_I2C_Read... [15:45:42]*** Stop cut motor [15:45:42]*** Cut end [15:45:42]Read from MH i2c: 01 07 00 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [15:45:42]process_action close_receipt done [15:45:42]requested_data is exist [15:45:42]produce_requested_data [15:45:42]requested_item fm.sn is exist - process it [15:45:42]wFMCommunicate request_size=4 [15:45:42]MH_SAM_APDU [15:45:42]CAPDU: 80 11 00 00 [15:45:42]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [15:45:42]Write i2c OK [15:45:42]MH_I2C_Read... [15:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:42]Read from MH i2c: E2 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 17 00 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F1 [15:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:45:42]wFMCommunicate OK [15:45:42]requested_item fd.num is exist - process it [15:45:42]SAM_PROTO_GetFieldsCounters [15:45:42]wFMCommunicate request_size=4 [15:45:42]MH_SAM_APDU [15:45:42]CAPDU: 80 13 00 00 [15:45:42]Write to MH i2c: E2 08 00 22 02 80 13 00 00 00 00 00 00 A0 [15:45:42]Write i2c OK [15:45:42]MH_I2C_Read... [15:45:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:43]Read from MH i2c: E2 [15:45:43]MH_I2C_Read... [15:45:43]Read from MH i2c: E2 62 00 [15:45:43]MH_I2C_Read... [15:45:43]Read from MH i2c: E2 62 00 22 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [15:45:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:43]wFMCommunicate OK [15:45:43]SAM_PROTO_GetFieldsCounters done [15:45:43]requested_item shift.num is exist - process it [15:45:43]requested_item shift.opened is exist - process it [15:45:43]req_shift_opened [15:45:43]FM_GetShiftState [15:45:43]SAM_PROTO_GetShiftState [15:45:43]wFMCommunicate request_size=4 [15:45:43]MH_SAM_APDU [15:45:43]CAPDU: 80 13 01 00 [15:45:43]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [15:45:43]Write i2c OK [15:45:43]MH_I2C_Read... [15:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:43]Read from MH i2c: E2 [15:45:43]MH_I2C_Read... [15:45:43]Read from MH i2c: E2 0E 00 [15:45:43]MH_I2C_Read... [15:45:43]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4B [15:45:43]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:45:43]wFMCommunicate OK [15:45:43]SAM_PROTO_GetShiftState done [15:45:43]FM_GetShiftState done [15:45:43]req_shift_opened done [15:45:43]requested_item shift.open_date is exist - process it [15:45:43]req_shift_open_date [15:45:43]req_shift_open_date done [15:45:43]produce_requested_data done [15:45:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73054,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:45:43]process_action_free close_receipt [15:45:43]json_value_free [15:45:43]json_value_free done [15:45:43]process_json_proto returns [15:45:43]Send response to host [15:45:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73054,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:45:43]free response buf [15:45:43]execute_script done [15:45:43]execute_script returns [15:45:43]free content buf [15:45:43]Sock 9.Close socket [15:45:43]Sock 9.Thread stoped [15:45:46]recv_with_timeout no data received [15:45:46]Connected sock=11 [15:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 25 9F 08 01 81 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 24 A6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1D 01 00 35 04 06 00 1C 7E 14 E6 8A 38 44 29 B3 DA 41 4A 4B 38 [15:45:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4F C7 47 00 AA 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 34 36 36 32 10 04 04 00 5E 1D 01 00 F4 03 04 00 DF 50 23 67 B6 04 01 00 00 6D E9 75 2D 45 FB 50 14 [15:45:47]CommunicateWithHost err = 0 [15:45:47]CheckOFDResponse [15:45:47]1017 (14) - 77093643461234 [15:45:47]1041 (16) - 0000000000874662 [15:45:47]1040 (4) - 73054 [15:45:47]1012 (4) - 31.10.2024 09:41 [15:45:47]1206 (1) - 0 [15:45:47]OFD Sender: Remove packet 73054 [15:45:47]ProducePacketName [15:45:47]name=ofd_packets/00073054 [15:45:47]NVStorageDeleteData [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:57]recv_with_timeout no data received [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:12]recv_with_timeout no data received [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:47]recv_with_timeout no data received [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:57]recv_with_timeout no data received [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:20]accept exits with 8 [15:48:20]New connection [15:48:20]New thread 3067252068 created [15:48:20]Thread 3067395428 joined [15:48:20]Waiting for new connection... [15:48:20] Sock 8.Parse request [15:48:20]Sock 8.Check first char [15:48:20]Sock 8.First char is OK [15:48:20]request: POST /json_proto HTTP/1.0 [15:48:20]Method: POST [15:48:20]URL: /json_proto [15:48:20]Method is POST - this is cgi request [15:48:20]url: /json_proto [15:48:20]query_string will be loaded in cgi processing [15:48:20]execute_cgi json_proto POST (null) [15:48:20]execute_cgi path=json_proto method=POST [15:48:20]POST find Content-Length [15:48:20]Host: 172.17.43.195:8080 [15:48:20]Content-Length: 663 [15:48:20]Content-Type: application/json [15:48:20] [15:48:20]POST finish read [15:48:20]Found Content-Length = 663 [15:48:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:20]execute_script... [15:48:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:20]POST & json_proto [15:48:20]process_json_proto [15:48:20]json parsed OK: [15:48:20]protocol is kg_v1.0 [15:48:20]action value=close_receipt [15:48:20]process_action close_receipt [15:48:20]cmd_close_receipt [15:48:20]MH_GetDate [15:48:20]Write to MH i2c: F0 00 00 24 02 15 [15:48:20]Write i2c OK [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: F0 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: F0 09 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: F0 09 00 24 02 00 C5 A6 23 67 74 2C AD 66 C6 [15:48:20]GetLastDocTimeStamp 1730389540 [15:48:20]current date 1730389701 [15:48:20]FM_GetShiftState [15:48:20]SAM_PROTO_GetShiftState [15:48:20]wFMCommunicate request_size=4 [15:48:20]MH_SAM_APDU [15:48:20]CAPDU: 80 13 01 00 [15:48:20]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [15:48:20]Write i2c OK [15:48:20]MH_I2C_Read... [15:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:20]Read from MH i2c: E2 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 0E 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4D [15:48:20]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:48:20]wFMCommunicate OK [15:48:20]SAM_PROTO_GetShiftState done [15:48:20]FM_GetShiftState done [15:48:20]opened in 1730333258 [15:48:20]opened+sec_in_day 1730419658 [15:48:20]quantity*price = 100000 [15:48:20]sum+1 = 100002 [15:48:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 130 31.10.2024 15:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73055 ФПД: 11130192271327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T154821&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73055&fm=11130192271327&tin=02508201610067®Number=0000000000091644&sum=100000 [15:48:22]StoreToDocumentArchive [15:48:22]shift 557 fd 73055 [15:48:22]save to /storage/0557/doc_00073055 [15:48:22]save last doc name /storage/0557/doc_00073055 to /storage/kkm_last_doc_name [15:48:22]save OK [15:48:22]Clear old archive folders... [15:48:22]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:48:22]tlvbuf is B6F46790 [15:48:22]SAM_PROTO_ClearQueue [15:48:22]wFMCommunicate request_size=4 [15:48:22]MH_SAM_APDU [15:48:22]CAPDU: 80 09 00 00 [15:48:22]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [15:48:22]Write i2c OK [15:48:22]MH_I2C_Read... [15:48:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:22]Read from MH i2c: E2 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 03 00 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [15:48:22]RAPDU: 90 00 [15:48:22]wFMCommunicate OK [15:48:22]SAM_PROTO_ClearQueue done [15:48:22]KKMCreateOFDPacket [15:48:22]OFDProtocolAddRootSTLVToBuf [15:48:22]FM_MakeSignedData [15:48:22]FM_MakeSignedData [15:48:22]SAM_PROTO_SignData [15:48:22]wFMCommunicate request_size=4 [15:48:22]MH_SAM_APDU [15:48:22]CAPDU: 80 0D 01 02 [15:48:22]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [15:48:22]Write i2c OK [15:48:22]MH_I2C_Read... [15:48:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:22]Read from MH i2c: E2 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 03 00 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [15:48:22]RAPDU: 90 00 [15:48:22]wFMCommunicate OK [15:48:22]wFMCommunicate request_size=253 [15:48:22]MH_SAM_APDU [15:48:22]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C5 A6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1D 01 00 35 04 06 00 0A 1F 73 28 17 DF [15:48:22]Write to MH i2c: E2 00 01 34 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C5 A6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1D 01 00 35 04 06 00 0A 1F 73 28 17 DF 00 00 B8 [15:48:22]Write i2c OK [15:48:22]MH_I2C_Read... [15:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:22]Read from MH i2c: E2 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 03 00 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [15:48:22]RAPDU: 90 00 [15:48:22]wFMCommunicate OK [15:48:22]wFMCommunicate request_size=4 [15:48:22]MH_SAM_APDU [15:48:22]CAPDU: 80 0D 03 02 [15:48:22]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [15:48:22]Write i2c OK [15:48:22]MH_I2C_Read... [15:48:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:22]Read from MH i2c: E2 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 0B 00 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 0B 00 35 02 00 DA EF 22 59 7B DE FF F1 90 00 40 [15:48:22]RAPDU: DA EF 22 59 7B DE FF F1 90 00 [15:48:22]wFMCommunicate OK [15:48:22]SAM_PROTO_SignData done [15:48:22]FM_MakeSignedData done [15:48:22]CreateOFDProtocolMessage [15:48:22]wFMCommunicate request_size=4 [15:48:22]MH_SAM_APDU [15:48:22]CAPDU: 80 11 00 00 [15:48:22]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [15:48:22]Write i2c OK [15:48:22]MH_I2C_Read... [15:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:22]Read from MH i2c: E2 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 17 00 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 06 [15:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:48:22]wFMCommunicate OK [15:48:22]CreateOFDProtocolMessage done [15:48:22]OFDSenderStorePacket 73055 [15:48:22]StoreOFDPacket docnum=73055 [15:48:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 F2 47 00 01 76 85 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C5 A6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1D 01 00 35 04 06 00 0A 1F 73 28 17 DF DA EF 22 59 7B DE FF F1 [15:48:22]CheckFolder [15:48:22]dirname=/storage/ofd_packets [15:48:22]CheckFolder done [15:48:22]ProducePacketName [15:48:22]name=ofd_packets/00073055 [15:48:22]NVStorageSaveData ofd_packets/00073055 [15:48:22]File name is /storage/ofd_packets/00073055 [15:48:22]Write 294 bytes [15:48:22]NVStorageSaveData done [15:48:22]OFDSenderStorePacket done [15:48:22]KKMCreateOFDPacket done [15:48:22]NVStorageSaveData kkm_last_timestamp [15:48:22]File name is /storage/kkm_last_timestamp [15:48:22]Write 4 bytes [15:48:22]NVStorageSaveData done [15:48:22]ExternCall_PrintAddStr [15:48:22]wPrintStart [15:48:22]Write to MH i2c: 01 00 00 37 02 39 [15:48:22]Write i2c OK [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: 01 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: 01 07 00 [15:48:22]MH_I2C_Read... [15:48:22]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [15:48:22]RasterBufferAndPrint [15:48:22]line Счет N : (1)952654 [15:48:22]line ИНН: 02508201610067 [15:48:22]line Контрольно-Кассовый Чек [15:48:22]line ПРОДАЖА [15:48:22]line ТРК (МРК, ГНК) : 61 [15:48:22]line Товар: 50.50.0 [15:48:22]line Super 92 [15:48:22]line 14.620 * 68.40 [15:48:22]line = 1000.01 [15:48:22]line НДС 12% НСП 1% [15:48:22]line > о реализуемом товаре [15:48:22]line ОКРУГЛЕНИЕ: -0.01 [15:48:22]line ИТОГО: 1000.00 [15:48:22]line Внесено: 1000.00 [15:48:22]line СДАЧА: 0.00 [15:48:22]line НСП 1% : 8.85 [15:48:22]line НДС 12% : 106.20 [15:48:22]line Наличными: 1000.00 [15:48:22]line Безнал.: 0.00 [15:48:22]line Место: АЗС № 113 "Партнер Нефть" [15:48:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:48:22]line СНО: Общий режим [15:48:22]line Чек 130 31.10.2024 15:48 [15:48:22]line Смена: 557 ФФД: 1.0 [15:48:22]line ЗНМ: 0300000087 [15:48:22]line РНМ: 0000000000091644 [15:48:22]line Версия ККМ: 001 [15:48:22]line ФМ: 0000000000874662 [15:48:22]line ФД: 73055 [15:48:22]line ФПД: 11130192271327 [15:48:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T154821&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73055&fm=11130192271327&tin=02508201610067®Number=0000000000091644&sum=100000 [15:48:22]OFD Sender: Processing packet 73055 [packets to send 282, broken 281] [15:48:22]ProducePacketName [15:48:22]name=ofd_packets/00073055 [15:48:22]OFD Sender: To server: pG, [15:48:22]CommunicateWithHost lk.salyk.kg:30040 [15:48:22]ConnectInit lk.salyk.kg [15:48:22]written 0, free lines is 4095 [15:48:23]Write to MH i2c: 01 00 00 62 02 64 [15:48:23]Write i2c OK [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: 01 [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: 01 07 00 [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 DF 0C 56 [15:48:23]RasterBufferAndPrint [15:48:23]line [15:48:23]line [15:48:23]line [15:48:23]line [15:48:23]line [15:48:23]written 0, free lines is 3298 [15:48:23]MH_Cut [15:48:23]Write to MH i2c: D1 01 00 69 02 01 3D [15:48:23]Write i2c OK [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: D1 [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: D1 01 00 [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: D1 01 00 69 02 00 3C [15:48:23]Write to MH i2c: 01 00 00 6A 02 6C [15:48:23]Write i2c OK [15:48:23]MH_I2C_Read... [15:48:24]*** Cut start [15:48:24]*** Partial cut [15:48:24]*** CUTSNS_PIN = 1 [15:48:24]*** CUTSNS_PIN = 0 [15:48:24]*** Brake cut motor [15:48:24]Read from MH i2c: 01 [15:48:24]MH_I2C_Read... [15:48:24]*** Stop cut motor [15:48:24]*** Cut end [15:48:24]Read from MH i2c: 01 07 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [15:48:24]process_action close_receipt done [15:48:24]requested_data is exist [15:48:24]produce_requested_data [15:48:24]requested_item fm.sn is exist - process it [15:48:24]wFMCommunicate request_size=4 [15:48:24]MH_SAM_APDU [15:48:24]CAPDU: 80 11 00 00 [15:48:24]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:24]Read from MH i2c: E2 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 17 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3B [15:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:48:24]wFMCommunicate OK [15:48:24]requested_item fd.num is exist - process it [15:48:24]SAM_PROTO_GetFieldsCounters [15:48:24]wFMCommunicate request_size=4 [15:48:24]MH_SAM_APDU [15:48:24]CAPDU: 80 13 00 00 [15:48:24]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:24]Read from MH i2c: E2 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 62 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 62 00 6C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [15:48:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:24]wFMCommunicate OK [15:48:24]SAM_PROTO_GetFieldsCounters done [15:48:24]requested_item shift.num is exist - process it [15:48:24]requested_item shift.opened is exist - process it [15:48:24]req_shift_opened [15:48:24]FM_GetShiftState [15:48:24]SAM_PROTO_GetShiftState [15:48:24]wFMCommunicate request_size=4 [15:48:24]MH_SAM_APDU [15:48:24]CAPDU: 80 13 01 00 [15:48:24]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:24]Read from MH i2c: E2 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 0E 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 95 [15:48:24]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:48:24]wFMCommunicate OK [15:48:24]SAM_PROTO_GetShiftState done [15:48:24]FM_GetShiftState done [15:48:24]req_shift_opened done [15:48:24]requested_item shift.open_date is exist - process it [15:48:24]req_shift_open_date [15:48:24]req_shift_open_date done [15:48:24]produce_requested_data done [15:48:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73055,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:48:24]process_action_free close_receipt [15:48:24]json_value_free [15:48:24]json_value_free done [15:48:24]process_json_proto returns [15:48:24]Send response to host [15:48:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73055,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:48:24]free response buf [15:48:24]execute_script done [15:48:24]execute_script returns [15:48:24]free content buf [15:48:24]Sock 8.Close socket [15:48:24]Sock 8.Thread stoped [15:48:27]Connected sock=11 [15:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 F2 47 00 01 76 85 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C5 A6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1D 01 00 35 04 06 00 0A 1F 73 28 17 DF DA EF 22 59 7B DE FF F1 [15:48:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1D 3F 47 00 63 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 34 36 36 32 10 04 04 00 5F 1D 01 00 F4 03 04 00 7F 51 23 67 B6 04 01 00 00 0C 85 48 21 A7 2F 6F C9 [15:48:28]CommunicateWithHost err = 0 [15:48:28]CheckOFDResponse [15:48:28]1017 (14) - 77093643461234 [15:48:28]1041 (16) - 0000000000874662 [15:48:28]1040 (4) - 73055 [15:48:28]1012 (4) - 31.10.2024 09:44 [15:48:28]1206 (1) - 0 [15:48:28]OFD Sender: Remove packet 73055 [15:48:28]ProducePacketName [15:48:28]name=ofd_packets/00073055 [15:48:28]NVStorageDeleteData [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]recv_with_timeout no data received [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:46]recv_with_timeout no data received [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:34]recv_with_timeout no data received [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:50]recv_with_timeout no data received [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:44]recv_with_timeout no data received [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:55]recv_with_timeout no data received [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:27]recv_with_timeout no data received [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:49]accept exits with 9 [15:54:49]New connection [15:54:49]New thread 3067395428 created [15:54:49]Thread 3067252068 joined [15:54:49]Waiting for new connection... [15:54:49] Sock 9.Parse request [15:54:49]Sock 9.Check first char [15:54:49]Sock 9.First char is OK [15:54:49]request: POST /json_proto HTTP/1.0 [15:54:49]Method: POST [15:54:49]URL: /json_proto [15:54:49]Method is POST - this is cgi request [15:54:49]url: /json_proto [15:54:49]query_string will be loaded in cgi processing [15:54:49]execute_cgi json_proto POST (null) [15:54:49]execute_cgi path=json_proto method=POST [15:54:49]POST find Content-Length [15:54:49]Host: 172.17.43.195:8080 [15:54:49]Content-Length: 803 [15:54:49]Content-Type: application/json [15:54:49] [15:54:49]POST finish read [15:54:49]Found Content-Length = 803 [15:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:49]execute_script... [15: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)952655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:49]POST & json_proto [15:54:49]process_json_proto [15:54:49]json parsed OK: [15:54:49]protocol is kg_v1.0 [15:54:49]action value=close_receipt [15:54:49]process_action close_receipt [15:54:49]cmd_close_receipt [15:54:49]MH_GetDate [15:54:49]Write to MH i2c: F0 00 00 6E 02 5F [15:54:49]Write i2c OK [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: F0 [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: F0 09 00 [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: F0 09 00 6E 02 00 4A A8 23 67 74 2C AD 66 97 [15:54:49]GetLastDocTimeStamp 1730389701 [15:54:49]current date 1730390090 [15:54:49]FM_GetShiftState [15:54:49]SAM_PROTO_GetShiftState [15:54:49]wFMCommunicate request_size=4 [15:54:49]MH_SAM_APDU [15:54:49]CAPDU: 80 13 01 00 [15:54:49]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [15:54:49]Write i2c OK [15:54:49]MH_I2C_Read... [15:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:49]Read from MH i2c: E2 [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: E2 0E 00 [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 97 [15:54:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:54:49]wFMCommunicate OK [15:54:49]SAM_PROTO_GetShiftState done [15:54:49]FM_GetShiftState done [15:54:49]opened in 1730333258 [15:54:49]opened+sec_in_day 1730419658 [15:54:49]quantity*price = 150056 [15:54:49]sum+1 = 150058 [15:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 131 31.10.2024 15:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73056 ФПД: 47438036672908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T155450&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73056&fm=47438036672908&tin=02508201610067®Number=0000000000091644&sum=150057 [15:54:50]StoreToDocumentArchive [15:54:50]shift 557 fd 73056 [15:54:50]save to /storage/0557/doc_00073056 [15:54:50]save last doc name /storage/0557/doc_00073056 to /storage/kkm_last_doc_name [15:54:50]save OK [15:54:50]Clear old archive folders... [15:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:50]tlvbuf is 01FF7700 [15:54:50]SAM_PROTO_ClearQueue [15:54:50]wFMCommunicate request_size=4 [15:54:50]MH_SAM_APDU [15:54:50]CAPDU: 80 09 00 00 [15:54:50]Write to MH i2c: E2 08 00 7C 02 80 09 00 00 00 00 00 00 F0 [15:54:50]Write i2c OK [15:54:50]MH_I2C_Read... [15:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:50]Read from MH i2c: E2 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 03 00 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [15:54:50]RAPDU: 90 00 [15:54:50]wFMCommunicate OK [15:54:50]SAM_PROTO_ClearQueue done [15:54:50]KKMCreateOFDPacket [15:54:50]OFDProtocolAddRootSTLVToBuf [15:54:50]FM_MakeSignedData [15:54:50]FM_MakeSignedData [15:54:50]SAM_PROTO_SignData [15:54:50]wFMCommunicate request_size=4 [15:54:50]MH_SAM_APDU [15:54:50]CAPDU: 80 0D 01 02 [15:54:50]Write to MH i2c: E2 08 00 7D 02 80 0D 01 02 00 00 00 00 F8 [15:54:50]Write i2c OK [15:54:50]MH_I2C_Read... [15:54:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:51]Read from MH i2c: E2 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 03 00 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [15:54:51]RAPDU: 90 00 [15:54:51]wFMCommunicate OK [15:54:51]wFMCommunicate request_size=255 [15:54:51]MH_SAM_APDU [15: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 4A A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1D 01 00 35 04 06 00 2B [15:54:51]Write to MH i2c: E2 02 01 7E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 4A A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1D 01 00 35 04 06 00 2B 00 00 1B [15:54:51]Write i2c OK [15:54:51]MH_I2C_Read... [15:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:51]Read from MH i2c: E2 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 03 00 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [15:54:51]RAPDU: 90 00 [15:54:51]wFMCommunicate OK [15:54:51]wFMCommunicate request_size=10 [15:54:51]MH_SAM_APDU [15:54:51]CAPDU: 80 0D 02 02 05 25 07 53 21 8C [15:54:51]Write to MH i2c: E2 0D 00 7F 02 80 0D 02 02 05 00 25 07 53 21 8C 00 00 31 [15:54:51]Write i2c OK [15:54:51]MH_I2C_Read... [15:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:51]Read from MH i2c: E2 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 03 00 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [15:54:51]RAPDU: 90 00 [15:54:51]wFMCommunicate OK [15:54:51]wFMCommunicate request_size=4 [15:54:51]MH_SAM_APDU [15:54:51]CAPDU: 80 0D 03 02 [15:54:51]Write to MH i2c: E2 08 00 80 02 80 0D 03 02 00 00 00 00 FD [15:54:51]Write i2c OK [15:54:51]MH_I2C_Read... [15:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:51]Read from MH i2c: E2 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 0B 00 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 0B 00 80 02 00 61 1B 90 FC 23 3B A6 3E 90 00 48 [15:54:51]RAPDU: 61 1B 90 FC 23 3B A6 3E 90 00 [15:54:51]wFMCommunicate OK [15:54:51]SAM_PROTO_SignData done [15:54:51]FM_MakeSignedData done [15:54:51]CreateOFDProtocolMessage [15:54:51]wFMCommunicate request_size=4 [15:54:51]MH_SAM_APDU [15:54:51]CAPDU: 80 11 00 00 [15:54:51]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [15:54:51]Write i2c OK [15:54:51]MH_I2C_Read... [15:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:51]Read from MH i2c: E2 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 17 00 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 51 [15:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:54:51]wFMCommunicate OK [15:54:51]CreateOFDProtocolMessage done [15:54:51]OFDSenderStorePacket 73056 [15:54:51]StoreOFDPacket docnum=73056 [15:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 25 91 07 01 C1 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 4A A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1D 01 00 35 04 06 00 2B 25 07 53 21 8C 61 1B 90 FC 23 3B A6 3E [15:54:51]CheckFolder [15:54:51]dirname=/storage/ofd_packets [15:54:51]CheckFolder done [15:54:51]ProducePacketName [15:54:51]name=ofd_packets/00073056 [15:54:51]NVStorageSaveData ofd_packets/00073056 [15:54:51]File name is /storage/ofd_packets/00073056 [15:54:51]Write 301 bytes [15:54:51]NVStorageSaveData done [15:54:51]OFDSenderStorePacket done [15:54:51]KKMCreateOFDPacket done [15:54:51]NVStorageSaveData kkm_last_timestamp [15:54:51]File name is /storage/kkm_last_timestamp [15:54:51]Write 4 bytes [15:54:51]NVStorageSaveData done [15:54:51]ExternCall_PrintAddStr [15:54:51]wPrintStart [15:54:51]Write to MH i2c: 01 00 00 82 02 84 [15:54:51]Write i2c OK [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: 01 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: 01 07 00 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [15:54:51]RasterBufferAndPrint [15:54:51]line Счет N : (1)952655 [15:54:51]line ИНН: 02508201610067 [15:54:51]line Контрольно-Кассовый Чек [15:54:51]line ПРОДАЖА [15:54:51]line ТРК (МРК, ГНК) : 53 [15:54:51]line Товар: 2710124130 [15:54:51]line Аи-92-К-5 [15:54:51]line 22.430 * 66.90 [15:54:51]line = 1500.57 [15:54:51]line НДС 12% НСП 1% [15:54:51]line > о реализуемом товаре [15:54:51]line ИТОГО: 1500.57 [15:54:51]line НСП 1% : 13.28 [15:54:51]line НДС 12% : 159.35 [15:54:51]line Наличными: 0.00 [15:54:51]line Безнал.: 1500.57 [15:54:51]line Место: АЗС № 113 "Партнер Нефть" [15:54:51]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:54:51]line СНО: Общий режим [15:54:51]line Чек 131 31.10.2024 15:54 [15:54:51]line Смена: 557 ФФД: 1.0 [15:54:51]line ЗНМ: 0300000087 [15:54:51]line РНМ: 0000000000091644 [15:54:51]line Версия ККМ: 001 [15:54:51]line Платежная система: O! деньги [15:54:51]line ФМ: 0000000000874662 [15:54:51]line ФД: 73056 [15:54:51]line ФПД: 47438036672908 [15:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T155450&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73056&fm=47438036672908&tin=02508201610067®Number=0000000000091644&sum=150057 [15:54:51]written 0, free lines is 4095 [15:54:51]OFD Sender: Processing packet 73056 [packets to send 282, broken 281] [15:54:51]ProducePacketName [15:54:51]name=ofd_packets/00073056 [15:54:51]OFD Sender: To server: pG, [15:54:51]CommunicateWithHost lk.salyk.kg:30040 [15:54:51]ConnectInit lk.salyk.kg [15:54:51]Write to MH i2c: 01 00 00 AC 02 AE [15:54:51]Write i2c OK [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: 01 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: 01 07 00 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: 01 07 00 AC 02 00 00 00 00 00 ED 0C AE [15:54:51]RasterBufferAndPrint [15:54:51]line [15:54:51]line [15:54:51]line [15:54:51]line [15:54:51]line [15:54:51]written 0, free lines is 3315 [15:54:51]MH_Cut [15:54:51]Write to MH i2c: D1 01 00 B3 02 01 87 [15:54:51]Write i2c OK [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: D1 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: D1 01 00 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: D1 01 00 B3 02 00 86 [15:54:51]Write to MH i2c: 01 00 00 B4 02 B6 [15:54:51]Write i2c OK [15:54:51]MH_I2C_Read... [15:54:52]recv_with_timeout no data received [15:54:52]*** Cut start [15:54:52]*** Partial cut [15:54:52]*** CUTSNS_PIN = 1 [15:54:52]*** CUTSNS_PIN = 0 [15:54:52]*** Brake cut motor [15:54:53]Read from MH i2c: 01 [15:54:53]MH_I2C_Read... [15:54:53]*** Stop cut motor [15:54:53]*** Cut end [15:54:53]Read from MH i2c: 01 07 00 [15:54:53]MH_I2C_Read... [15:54:53]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [15:54:53]process_action close_receipt done [15:54:53]requested_data is exist [15:54:53]produce_requested_data [15:54:53]requested_item fm.sn is exist - process it [15:54:53]wFMCommunicate request_size=4 [15:54:53]MH_SAM_APDU [15:54:53]CAPDU: 80 11 00 00 [15:54:53]Write to MH i2c: E2 08 00 B5 02 80 11 00 00 00 00 00 00 31 [15:54:53]Write i2c OK [15:54:53]MH_I2C_Read... [15:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:53]Read from MH i2c: E2 [15:54:53]MH_I2C_Read... [15:54:53]Read from MH i2c: E2 17 00 [15:54:53]MH_I2C_Read... [15:54:53]Read from MH i2c: E2 17 00 B5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 85 [15:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:54:53]wFMCommunicate OK [15:54:53]requested_item fd.num is exist - process it [15:54:53]SAM_PROTO_GetFieldsCounters [15:54:53]wFMCommunicate request_size=4 [15:54:53]MH_SAM_APDU [15:54:53]CAPDU: 80 13 00 00 [15:54:53]Write to MH i2c: E2 08 00 B6 02 80 13 00 00 00 00 00 00 34 [15:54:53]Write i2c OK [15:54:53]MH_I2C_Read... [15:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:53]Read from MH i2c: E2 [15:54:53]MH_I2C_Read... [15:54:53]Read from MH i2c: E2 62 00 [15:54:53]MH_I2C_Read... [15:54:53]Read from MH i2c: E2 62 00 B6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 60 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [15: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 60 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:54:53]wFMCommunicate OK [15:54:53]SAM_PROTO_GetFieldsCounters done [15:54:53]requested_item shift.num is exist - process it [15:54:53]requested_item shift.opened is exist - process it [15:54:53]req_shift_opened [15:54:53]FM_GetShiftState [15:54:53]SAM_PROTO_GetShiftState [15:54:53]wFMCommunicate request_size=4 [15:54:53]MH_SAM_APDU [15:54:53]CAPDU: 80 13 01 00 [15:54:53]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [15:54:53]Write i2c OK [15:54:53]MH_I2C_Read... [15:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:53]Read from MH i2c: E2 [15:54:53]MH_I2C_Read... [15:54:53]Read from MH i2c: E2 0E 00 [15:54:53]MH_I2C_Read... [15:54:53]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 DF [15:54:53]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:54:53]wFMCommunicate OK [15:54:53]SAM_PROTO_GetShiftState done [15:54:53]FM_GetShiftState done [15:54:53]req_shift_opened done [15:54:53]requested_item shift.open_date is exist - process it [15:54:53]req_shift_open_date [15:54:53]req_shift_open_date done [15:54:53]produce_requested_data done [15:54:53]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73056,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:54:53]process_action_free close_receipt [15:54:53]json_value_free [15:54:53]json_value_free done [15:54:53]process_json_proto returns [15:54:53]Send response to host [15:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73056,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:54:53]free response buf [15:54:53]execute_script done [15:54:53]execute_script returns [15:54:53]free content buf [15:54:53]Sock 9.Close socket [15:54:53]Sock 9.Thread stoped [15:54:56]ConnectInit Can't take IP for lk.salyk.kg [15:54:56]CommunicateWithHost connect error [15:54:56]CommunicateWithHost err = -1 [15:54:56]OFD Sender: Server communicate error [15:55:01]OFD Sender: Processing packet 73056 [packets to send 282, broken 281] [15:55:01]ProducePacketName [15:55:01]name=ofd_packets/00073056 [15:55:01]OFD Sender: To server: pG, [15:55:01]CommunicateWithHost lk.salyk.kg:30040 [15:55:01]ConnectInit lk.salyk.kg [15:55:02]recv_with_timeout no data received [15:55:09]Connected sock=9 [15:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 25 91 07 01 C1 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 4A A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1D 01 00 35 04 06 00 2B 25 07 53 21 8C 61 1B 90 FC 23 3B A6 3E [15:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1B 21 47 00 F5 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1D 01 00 F4 03 04 00 13 53 23 67 B6 04 01 00 00 C8 F4 18 EE F9 58 51 A7 [15:55:11]CommunicateWithHost err = 0 [15:55:11]CheckOFDResponse [15:55:11]1017 (14) - 77093643461234 [15:55:11]1041 (16) - 0000000000874662 [15:55:11]1040 (4) - 73056 [15:55:11]1012 (4) - 31.10.2024 09:51 [15:55:11]1206 (1) - 0 [15:55:11]OFD Sender: Remove packet 73056 [15:55:11]ProducePacketName [15:55:11]name=ofd_packets/00073056 [15:55:11]NVStorageDeleteData [15:55:12]OFD Sender: No OFD packet to send [15:55:14]recv_with_timeout no data received [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:28]recv_with_timeout no data received [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:19]recv_with_timeout no data received [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:36]recv_with_timeout no data received [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:42]accept exits with 10 [15:56:42]New connection [15:56:42]New thread 3067252068 created [15:56:42]Thread 3067395428 joined [15:56:42]Waiting for new connection... [15:56:42] Sock 10.Parse request [15:56:42]Sock 10.Check first char [15:56:42]Sock 10.First char is OK [15:56:42]request: POST /json_proto HTTP/1.0 [15:56:42]Method: POST [15:56:42]URL: /json_proto [15:56:42]Method is POST - this is cgi request [15:56:42]url: /json_proto [15:56:42]query_string will be loaded in cgi processing [15:56:42]execute_cgi json_proto POST (null) [15:56:42]execute_cgi path=json_proto method=POST [15:56:42]POST find Content-Length [15:56:42]Host: 172.17.43.195:8080 [15:56:42]Content-Length: 682 [15:56:42]Content-Type: application/json [15:56:42] [15:56:42]POST finish read [15:56:42]Found Content-Length = 682 [15:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:42]execute_script... [15:56:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:42]POST & json_proto [15:56:42]process_json_proto [15:56:42]json parsed OK: [15:56:42]protocol is kg_v1.0 [15:56:42]action value=close_receipt [15:56:42]process_action close_receipt [15:56:42]cmd_close_receipt [15:56:42]MH_GetDate [15:56:42]Write to MH i2c: F0 00 00 B8 02 A9 [15:56:42]Write i2c OK [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: F0 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: F0 09 00 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: F0 09 00 B8 02 00 BB A8 23 67 74 2C AD 66 52 [15:56:42]GetLastDocTimeStamp 1730390090 [15:56:42]current date 1730390203 [15:56:42]FM_GetShiftState [15:56:42]SAM_PROTO_GetShiftState [15:56:42]wFMCommunicate request_size=4 [15:56:42]MH_SAM_APDU [15:56:42]CAPDU: 80 13 01 00 [15:56:42]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [15:56:42]Write i2c OK [15:56:42]MH_I2C_Read... [15:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:42]Read from MH i2c: E2 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: E2 0E 00 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E1 [15:56:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:56:42]wFMCommunicate OK [15:56:42]SAM_PROTO_GetShiftState done [15:56:42]FM_GetShiftState done [15:56:42]opened in 1730333258 [15:56:42]opened+sec_in_day 1730419658 [15:56:42]quantity*price = 50063 [15:56:42]sum+1 = 50064 [15:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 132 31.10.2024 15:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73057 ФПД: 165095340333218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T155643&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73057&fm=165095340333218&tin=02508201610067®Number=0000000000091644&sum=50000 [15:56:43]StoreToDocumentArchive [15:56:43]shift 557 fd 73057 [15:56:43]save to /storage/0557/doc_00073057 [15:56:43]save last doc name /storage/0557/doc_00073057 to /storage/kkm_last_doc_name [15:56:43]save OK [15:56:43]Clear old archive folders... [15:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:56:43]tlvbuf is 02087EB0 [15:56:43]SAM_PROTO_ClearQueue [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 09 00 00 [15:56:43]Write to MH i2c: E2 08 00 C6 02 80 09 00 00 00 00 00 00 3A [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]SAM_PROTO_ClearQueue done [15:56:43]KKMCreateOFDPacket [15:56:43]OFDProtocolAddRootSTLVToBuf [15:56:43]FM_MakeSignedData [15:56:43]FM_MakeSignedData [15:56:43]SAM_PROTO_SignData [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 01 02 [15:56:43]Write to MH i2c: E2 08 00 C7 02 80 0D 01 02 00 00 00 00 42 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]wFMCommunicate request_size=255 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 BB A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 61 1D 01 00 35 04 06 00 [15:56:43]Write to MH i2c: E2 02 01 C8 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 BB A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 61 1D 01 00 35 04 06 00 00 00 56 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]wFMCommunicate request_size=11 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 02 02 06 96 27 41 1D 58 A2 [15:56:43]Write to MH i2c: E2 0E 00 C9 02 80 0D 02 02 06 00 96 27 41 1D 58 A2 00 00 66 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 03 02 [15:56:43]Write to MH i2c: E2 08 00 CA 02 80 0D 03 02 00 00 00 00 47 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 0B 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 0B 00 CA 02 00 65 DB BF FF 6F 9D FE 35 90 00 85 [15:56:43]RAPDU: 65 DB BF FF 6F 9D FE 35 90 00 [15:56:43]wFMCommunicate OK [15:56:43]SAM_PROTO_SignData done [15:56:43]FM_MakeSignedData done [15:56:43]CreateOFDProtocolMessage [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 11 00 00 [15:56:43]Write to MH i2c: E2 08 00 CB 02 80 11 00 00 00 00 00 00 47 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:44]Read from MH i2c: E2 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: E2 17 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: E2 17 00 CB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9B [15:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:56:44]wFMCommunicate OK [15:56:44]CreateOFDProtocolMessage done [15:56:44]OFDSenderStorePacket 73057 [15:56:44]StoreOFDPacket docnum=73057 [15:56:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 0E CF 08 01 9D EC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 BB A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 61 1D 01 00 35 04 06 00 96 27 41 1D 58 A2 65 DB BF FF 6F 9D FE 35 [15:56:44]CheckFolder [15:56:44]dirname=/storage/ofd_packets [15:56:44]CheckFolder done [15:56:44]ProducePacketName [15:56:44]name=ofd_packets/00073057 [15:56:44]NVStorageSaveData ofd_packets/00073057 [15:56:44]File name is /storage/ofd_packets/00073057 [15:56:44]Write 302 bytes [15:56:44]NVStorageSaveData done [15:56:44]OFDSenderStorePacket done [15:56:44]KKMCreateOFDPacket done [15:56:44]NVStorageSaveData kkm_last_timestamp [15:56:44]File name is /storage/kkm_last_timestamp [15:56:44]Write 4 bytes [15:56:44]NVStorageSaveData done [15:56:44]ExternCall_PrintAddStr [15:56:44]wPrintStart [15:56:44]Write to MH i2c: 01 00 00 CC 02 CE [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 CC 02 00 00 00 00 00 FF 0F E3 [15:56:44]RasterBufferAndPrint [15:56:44]line Счет N : (1)952657 [15:56:44]line ИНН: 02508201610067 [15:56:44]line Контрольно-Кассовый Чек [15:56:44]line ПРОДАЖА [15:56:44]line ТРК (МРК, ГНК) : 22 [15:56:44]line Товар: 2710194210 [15:56:44]line ДТ(л)-К-5 [15:56:44]line 6.570 * 76.20 [15:56:44]line = 500.63 [15:56:44]line НДС 12% НСП 1% [15:56:44]line > о реализуемом товаре [15:56:44]line ОКРУГЛЕНИЕ: -0.63 [15:56:44]line ИТОГО: 500.00 [15:56:44]line Внесено: 500.00 [15:56:44]line СДАЧА: 0.00 [15:56:44]line НСП 1% : 4.43 [15:56:44]line НДС 12% : 53.16 [15:56:44]line Наличными: 500.00 [15:56:44]line Безнал.: 0.00 [15:56:44]line Место: АЗС № 113 "Партнер Нефть" [15:56:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:56:44]line СНО: Общий режим [15:56:44]line Чек 132 31.10.2024 15:56 [15:56:44]line Смена: 557 ФФД: 1.0 [15:56:44]line ЗНМ: 0300000087 [15:56:44]line РНМ: 0000000000091644 [15:56:44]line Версия ККМ: 001 [15:56:44]line ФМ: 0000000000874662 [15:56:44]line ФД: 73057 [15:56:44]line ФПД: 165095340333218 [15:56:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T155643&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73057&fm=165095340333218&tin=02508201610067®Number=0000000000091644&sum=50000 [15:56:44]written 0, free lines is 4095 [15:56:44]OFD Sender: Processing packet 73057 [packets to send 282, broken 281] [15:56:44]ProducePacketName [15:56:44]name=ofd_packets/00073057 [15:56:44]OFD Sender: To server: pG, [15:56:44]CommunicateWithHost lk.salyk.kg:30040 [15:56:44]ConnectInit lk.salyk.kg [15:56:44]Write to MH i2c: 01 00 00 F7 02 F9 [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 DC 0C E8 [15:56:44]RasterBufferAndPrint [15:56:44]line [15:56:44]line [15:56:44]line [15:56:44]line [15:56:44]line [15:56:44]written 0, free lines is 3298 [15:56:44]MH_Cut [15:56:44]Write to MH i2c: D1 01 00 FE 02 01 D2 [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: D1 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: D1 01 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: D1 01 00 FE 02 00 D1 [15:56:44]Write to MH i2c: 01 00 00 FF 02 01 [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:45]*** Cut start [15:56:45]*** Partial cut [15:56:45]*** CUTSNS_PIN = 1 [15:56:45]*** CUTSNS_PIN = 0 [15:56:45]*** Brake cut motor [15:56:45]Connected sock=11 [15:56:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 0E CF 08 01 9D EC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 BB A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 61 1D 01 00 35 04 06 00 96 27 41 1D 58 A2 65 DB BF FF 6F 9D FE 35 [15:56:45]Read from MH i2c: 01 [15:56:45]MH_I2C_Read... [15:56:45]*** Stop cut motor [15:56:45]*** Cut end [15:56:45]Read from MH i2c: 01 07 00 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [15:56:45]process_action close_receipt done [15:56:45]requested_data is exist [15:56:45]produce_requested_data [15:56:45]requested_item fm.sn is exist - process it [15:56:45]wFMCommunicate request_size=4 [15:56:45]MH_SAM_APDU [15:56:45]CAPDU: 80 11 00 00 [15:56:45]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [15:56:45]Write i2c OK [15:56:45]MH_I2C_Read... [15:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:45]Read from MH i2c: E2 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: E2 17 00 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D1 [15:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:56:45]wFMCommunicate OK [15:56:45]requested_item fd.num is exist - process it [15:56:45]SAM_PROTO_GetFieldsCounters [15:56:45]wFMCommunicate request_size=4 [15:56:45]MH_SAM_APDU [15:56:45]CAPDU: 80 13 00 00 [15:56:45]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [15:56:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C7 9B 47 00 74 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 61 1D 01 00 F4 03 04 00 71 53 23 67 B6 04 01 00 00 B5 E2 AF 2B 3E 8A C8 CC [15:56:45]CommunicateWithHost err = 0 [15:56:45]CheckOFDResponse [15:56:45]1017 (14) - 77093643461234 [15:56:45]1041 (16) - 0000000000874662 [15:56:45]1040 (4) - 73057 [15:56:45]1012 (4) - 31.10.2024 09:52 [15:56:45]1206 (1) - 0 [15:56:45]OFD Sender: Remove packet 73057 [15:56:45]ProducePacketName [15:56:45]name=ofd_packets/00073057 [15:56:45]NVStorageDeleteData [15:56:45]Write i2c OK [15:56:45]MH_I2C_Read... [15:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:46]Read from MH i2c: E2 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 62 00 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 62 00 01 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 61 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [15:56:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 61 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:46]wFMCommunicate OK [15:56:46]SAM_PROTO_GetFieldsCounters done [15:56:46]requested_item shift.num is exist - process it [15:56:46]requested_item shift.opened is exist - process it [15:56:46]req_shift_opened [15:56:46]FM_GetShiftState [15:56:46]SAM_PROTO_GetShiftState [15:56:46]wFMCommunicate request_size=4 [15:56:46]MH_SAM_APDU [15:56:46]CAPDU: 80 13 01 00 [15:56:46]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [15:56:46]Write i2c OK [15:56:46]MH_I2C_Read... [15:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:46]Read from MH i2c: E2 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 0E 00 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2B [15:56:46]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:56:46]wFMCommunicate OK [15:56:46]SAM_PROTO_GetShiftState done [15:56:46]FM_GetShiftState done [15:56:46]req_shift_opened done [15:56:46]requested_item shift.open_date is exist - process it [15:56:46]req_shift_open_date [15:56:46]req_shift_open_date done [15:56:46]produce_requested_data done [15:56:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73057,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:56:46]process_action_free close_receipt [15:56:46]json_value_free [15:56:46]json_value_free done [15:56:46]process_json_proto returns [15:56:46]Send response to host [15:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73057,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:56:46]free response buf [15:56:46]execute_script done [15:56:46]execute_script returns [15:56:46]free content buf [15:56:46]Sock 10.Close socket [15:56:46]Sock 10.Thread stoped [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:12]accept exits with 9 [15:57:12]New connection [15:57:12]New thread 3067395428 created [15:57:12]Thread 3067252068 joined [15:57:12]Waiting for new connection... [15:57:12] Sock 9.Parse request [15:57:12]Sock 9.Check first char [15:57:12]Sock 9.First char is OK [15:57:12]request: POST /json_proto HTTP/1.0 [15:57:12]Method: POST [15:57:12]URL: /json_proto [15:57:12]Method is POST - this is cgi request [15:57:12]url: /json_proto [15:57:12]query_string will be loaded in cgi processing [15:57:12]execute_cgi json_proto POST (null) [15:57:12]execute_cgi path=json_proto method=POST [15:57:12]POST find Content-Length [15:57:12]Host: 172.17.43.195:8080 [15:57:12]Content-Length: 687 [15:57:12]Content-Type: application/json [15:57:12] [15:57:12]POST finish read [15:57:12]Found Content-Length = 687 [15:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:12]execute_script... [15:57:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:12]POST & json_proto [15:57:12]process_json_proto [15:57:12]json parsed OK: [15:57:12]protocol is kg_v1.0 [15:57:12]action value=close_receipt [15:57:12]process_action close_receipt [15:57:12]cmd_close_receipt [15:57:12]MH_GetDate [15:57:12]Write to MH i2c: F0 00 00 03 03 F5 [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: F0 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: F0 09 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: F0 09 00 03 03 00 DA A8 23 67 74 2C AD 66 BD [15:57:12]GetLastDocTimeStamp 1730390203 [15:57:12]current date 1730390234 [15:57:12]FM_GetShiftState [15:57:12]SAM_PROTO_GetShiftState [15:57:12]wFMCommunicate request_size=4 [15:57:12]MH_SAM_APDU [15:57:12]CAPDU: 80 13 01 00 [15:57:12]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:13]Read from MH i2c: E2 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 0E 00 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2D [15:57:13]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:57:13]wFMCommunicate OK [15:57:13]SAM_PROTO_GetShiftState done [15:57:13]FM_GetShiftState done [15:57:13]opened in 1730333258 [15:57:13]opened+sec_in_day 1730419658 [15:57:13]quantity*price = 350062 [15:57:13]sum+1 = 350064 [15:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 133 31.10.2024 15:57 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73058 ФПД: 77999944635100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T155714&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73058&fm=77999944635100&tin=02508201610067®Number=0000000000091644&sum=350000 [15:57:14]StoreToDocumentArchive [15:57:14]shift 557 fd 73058 [15:57:14]save to /storage/0557/doc_00073058 [15:57:14]save last doc name /storage/0557/doc_00073058 to /storage/kkm_last_doc_name [15:57:14]save OK [15:57:14]Clear old archive folders... [15:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:57:14]tlvbuf is 0205E7D0 [15:57:14]SAM_PROTO_ClearQueue [15:57:14]wFMCommunicate request_size=4 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 09 00 00 [15:57:14]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [15:57:14]RAPDU: 90 00 [15:57:14]wFMCommunicate OK [15:57:14]SAM_PROTO_ClearQueue done [15:57:14]KKMCreateOFDPacket [15:57:14]OFDProtocolAddRootSTLVToBuf [15:57:14]FM_MakeSignedData [15:57:14]FM_MakeSignedData [15:57:14]SAM_PROTO_SignData [15:57:14]wFMCommunicate request_size=4 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 0D 01 02 [15:57:14]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [15:57:14]RAPDU: 90 00 [15:57:14]wFMCommunicate OK [15:57:14]wFMCommunicate request_size=255 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1D 01 00 35 04 06 00 [15:57:14]Write to MH i2c: E2 02 01 13 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1D 01 00 35 04 06 00 00 00 EC [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [15:57:14]RAPDU: 90 00 [15:57:14]wFMCommunicate OK [15:57:14]wFMCommunicate request_size=11 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 0D 02 02 06 46 F0 C6 FE 12 DC [15:57:14]Write to MH i2c: E2 0E 00 14 03 80 0D 02 02 06 00 46 F0 C6 FE 12 DC 00 00 85 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [15:57:14]RAPDU: 90 00 [15:57:14]wFMCommunicate OK [15:57:14]wFMCommunicate request_size=4 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 0D 03 02 [15:57:14]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 0B 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 0B 00 15 03 00 FC 95 81 A6 02 0A FE B1 90 00 07 [15:57:14]RAPDU: FC 95 81 A6 02 0A FE B1 90 00 [15:57:14]wFMCommunicate OK [15:57:14]SAM_PROTO_SignData done [15:57:14]FM_MakeSignedData done [15:57:14]CreateOFDProtocolMessage [15:57:14]wFMCommunicate request_size=4 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 11 00 00 [15:57:14]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 17 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E7 [15:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:57:14]wFMCommunicate OK [15:57:14]CreateOFDProtocolMessage done [15:57:14]OFDSenderStorePacket 73058 [15:57:14]StoreOFDPacket docnum=73058 [15:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 62 CF 08 01 7E 5D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1D 01 00 35 04 06 00 46 F0 C6 FE 12 DC FC 95 81 A6 02 0A FE B1 [15:57:14]CheckFolder [15:57:14]dirname=/storage/ofd_packets [15:57:14]CheckFolder done [15:57:14]ProducePacketName [15:57:14]name=ofd_packets/00073058 [15:57:14]NVStorageSaveData ofd_packets/00073058 [15:57:14]File name is /storage/ofd_packets/00073058 [15:57:14]Write 302 bytes [15:57:14]NVStorageSaveData done [15:57:14]OFDSenderStorePacket done [15:57:14]KKMCreateOFDPacket done [15:57:14]NVStorageSaveData kkm_last_timestamp [15:57:14]File name is /storage/kkm_last_timestamp [15:57:14]Write 4 bytes [15:57:14]NVStorageSaveData done [15:57:14]ExternCall_PrintAddStr [15:57:14]wPrintStart [15:57:14]Write to MH i2c: 01 00 00 17 03 1A [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: 01 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: 01 07 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [15:57:14]RasterBufferAndPrint [15:57:14]line Счет N : (1)952656 [15:57:14]line ИНН: 02508201610067 [15:57:14]line Контрольно-Кассовый Чек [15:57:14]line ПРОДАЖА [15:57:14]line ТРК (МРК, ГНК) : 33 [15:57:14]line Товар: 2710194210 [15:57:14]line ДТ(л)-К-5 [15:57:14]line 45.940 * 76.20 [15:57:14]line = 3500.63 [15:57:14]line НДС 12% НСП 1% [15:57:14]line > о реализуемом товаре [15:57:14]line ОКРУГЛЕНИЕ: -0.63 [15:57:14]line ИТОГО: 3500.00 [15:57:14]line Внесено: 3500.00 [15:57:14]line СДАЧА: 0.00 [15:57:14]line НСП 1% : 30.98 [15:57:14]line НДС 12% : 371.75 [15:57:14]line Наличными: 3500.00 [15:57:14]line Безнал.: 0.00 [15:57:14]line Место: АЗС № 113 "Партнер Нефть" [15:57:14]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:57:14]line СНО: Общий режим [15:57:14]line Чек 133 31.10.2024 15:57 [15:57:14]line Смена: 557 ФФД: 1.0 [15:57:14]line ЗНМ: 0300000087 [15:57:14]line РНМ: 0000000000091644 [15:57:14]line Версия ККМ: 001 [15:57:14]line ФМ: 0000000000874662 [15:57:14]line ФД: 73058 [15:57:14]line ФПД: 77999944635100 [15:57:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T155714&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73058&fm=77999944635100&tin=02508201610067®Number=0000000000091644&sum=350000 [15:57:14]written 0, free lines is 4095 [15:57:14]OFD Sender: Processing packet 73058 [packets to send 282, broken 281] [15:57:14]ProducePacketName [15:57:14]name=ofd_packets/00073058 [15:57:14]OFD Sender: To server: pG, [15:57:14]CommunicateWithHost lk.salyk.kg:30040 [15:57:14]ConnectInit lk.salyk.kg [15:57:15]Write to MH i2c: 01 00 00 42 03 45 [15:57:15]Write i2c OK [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: 01 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: 01 07 00 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 E5 0C 3D [15:57:15]RasterBufferAndPrint [15:57:15]line [15:57:15]line [15:57:15]line [15:57:15]line [15:57:15]line [15:57:15]written 0, free lines is 3307 [15:57:15]MH_Cut [15:57:15]Write to MH i2c: D1 01 00 49 03 01 1E [15:57:15]Write i2c OK [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: D1 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: D1 01 00 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: D1 01 00 49 03 00 1D [15:57:15]Write to MH i2c: 01 00 00 4A 03 4D [15:57:15]Write i2c OK [15:57:15]MH_I2C_Read... [15:57:15]Connected sock=10 [15:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 62 CF 08 01 7E 5D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA A8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1D 01 00 35 04 06 00 46 F0 C6 FE 12 DC FC 95 81 A6 02 0A FE B1 [15:57:15]*** Cut start [15:57:15]*** Partial cut [15:57:15]*** CUTSNS_PIN = 1 [15:57:15]*** CUTSNS_PIN = 0 [15:57:16]*** Brake cut motor [15:57:16]Read from MH i2c: 01 [15:57:16]MH_I2C_Read... [15:57:16]*** Stop cut motor [15:57:16]*** Cut end [15:57:16]Read from MH i2c: 01 07 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [15:57:16]process_action close_receipt done [15:57:16]requested_data is exist [15:57:16]produce_requested_data [15:57:16]requested_item fm.sn is exist - process it [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 11 00 00 [15:57:16]Write to MH i2c: E2 08 00 4B 03 80 11 00 00 00 00 00 00 C8 [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 17 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 17 00 4B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1C [15:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:57:16]wFMCommunicate OK [15:57:16]requested_item fd.num is exist - process it [15:57:16]SAM_PROTO_GetFieldsCounters [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 13 00 00 [15:57:16]Write to MH i2c: E2 08 00 4C 03 80 13 00 00 00 00 00 00 CB [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F8 97 47 00 42 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1D 01 00 F4 03 04 00 90 53 23 67 B6 04 01 00 00 16 2B FA 4D 5F 19 92 BF [15:57:16]CommunicateWithHost err = 0 [15:57:16]CheckOFDResponse [15:57:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:16]1017 (14) - 77093643461234 [15:57:16]1041 (16) - 0000000000874662 [15:57:16]1040 (4) - 73058 [15:57:16]1012 (4) - 31.10.2024 09:53 [15:57:16]1206 (1) - 0 [15:57:16]OFD Sender: Remove packet 73058 [15:57:16]ProducePacketName [15:57:16]name=ofd_packets/00073058 [15:57:16]NVStorageDeleteData [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 62 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 62 00 4C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 62 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [15:57:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 62 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:16]wFMCommunicate OK [15:57:16]SAM_PROTO_GetFieldsCounters done [15:57:16]requested_item shift.num is exist - process it [15:57:16]requested_item shift.opened is exist - process it [15:57:16]req_shift_opened [15:57:16]FM_GetShiftState [15:57:16]SAM_PROTO_GetShiftState [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 13 01 00 [15:57:16]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 0E 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 76 [15:57:16]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [15:57:16]wFMCommunicate OK [15:57:16]SAM_PROTO_GetShiftState done [15:57:16]FM_GetShiftState done [15:57:16]req_shift_opened done [15:57:16]requested_item shift.open_date is exist - process it [15:57:16]req_shift_open_date [15:57:16]req_shift_open_date done [15:57:16]produce_requested_data done [15:57:16]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73058,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [15:57:16]process_action_free close_receipt [15:57:16]json_value_free [15:57:16]json_value_free done [15:57:16]process_json_proto returns [15:57:16]Send response to host [15:57:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73058,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [15:57:16]free response buf [15:57:16]execute_script done [15:57:16]execute_script returns [15:57:16]free content buf [15:57:16]Sock 9.Close socket [15:57:16]Sock 9.Thread stoped [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:22]recv_with_timeout no data received [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:40]recv_with_timeout no data received [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:57:59]recv_with_timeout no data received [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:17]recv_with_timeout no data received [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:46]recv_with_timeout no data received [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:05]recv_with_timeout no data received [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:38]recv_with_timeout no data received [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:46]recv_with_timeout no data received [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]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:34]recv_with_timeout no data received [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:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:39]accept exits with 8 [16:05:39]New connection [16:05:39]New thread 3067252068 created [16:05:39]Thread 3067395428 joined [16:05:39]Waiting for new connection... [16:05:39] Sock 8.Parse request [16:05:39]Sock 8.Check first char [16:05:39]Sock 8.First char is OK [16:05:39]request: POST /json_proto HTTP/1.0 [16:05:39]Method: POST [16:05:39]URL: /json_proto [16:05:39]Method is POST - this is cgi request [16:05:39]url: /json_proto [16:05:39]query_string will be loaded in cgi processing [16:05:39]execute_cgi json_proto POST (null) [16:05:39]execute_cgi path=json_proto method=POST [16:05:39]POST find Content-Length [16:05:39]Host: 172.17.43.195:8080 [16:05:39]Content-Length: 792 [16:05:39]Content-Type: application/json [16:05:39] [16:05:39]POST finish read [16:05:39]Found Content-Length = 792 [16:05:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:39]execute_script... [16:05:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:39]POST & json_proto [16:05:39]process_json_proto [16:05:39]json parsed OK: [16:05:39]protocol is kg_v1.0 [16:05:39]action value=close_receipt [16:05:39]process_action close_receipt [16:05:39]cmd_close_receipt [16:05:39]MH_GetDate [16:05:39]Write to MH i2c: F0 00 00 4E 03 40 [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: F0 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: F0 09 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: F0 09 00 4E 03 00 D4 AA 23 67 74 2C AD 66 04 [16:05:39]GetLastDocTimeStamp 1730390234 [16:05:39]current date 1730390740 [16:05:39]FM_GetShiftState [16:05:39]SAM_PROTO_GetShiftState [16:05:39]wFMCommunicate request_size=4 [16:05:39]MH_SAM_APDU [16:05:39]CAPDU: 80 13 01 00 [16:05:39]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:39]Read from MH i2c: E2 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 0E 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 78 [16:05:39]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:05:39]wFMCommunicate OK [16:05:39]SAM_PROTO_GetShiftState done [16:05:39]FM_GetShiftState done [16:05:39]opened in 1730333258 [16:05:39]opened+sec_in_day 1730419658 [16:05:39]quantity*price = 0 [16:05:39]sum+1 = 1 [16:05:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 134 31.10.2024 16:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73059 ФПД: 59666966780237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T160540&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73059&fm=59666966780237&tin=02508201610067®Number=0000000000091644&sum=0 [16:05:40]StoreToDocumentArchive [16:05:40]shift 557 fd 73059 [16:05:40]save to /storage/0557/doc_00073059 [16:05:40]save last doc name /storage/0557/doc_00073059 to /storage/kkm_last_doc_name [16:05:40]save OK [16:05:40]Clear old archive folders... [16:05:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:40]tlvbuf is 01FF9800 [16:05:40]SAM_PROTO_ClearQueue [16:05:40]wFMCommunicate request_size=4 [16:05:40]MH_SAM_APDU [16:05:40]CAPDU: 80 09 00 00 [16:05:40]Write to MH i2c: E2 08 00 5C 03 80 09 00 00 00 00 00 00 D1 [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:40]Read from MH i2c: E2 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 03 00 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [16:05:40]RAPDU: 90 00 [16:05:40]wFMCommunicate OK [16:05:40]SAM_PROTO_ClearQueue done [16:05:40]KKMCreateOFDPacket [16:05:40]OFDProtocolAddRootSTLVToBuf [16:05:40]FM_MakeSignedData [16:05:40]FM_MakeSignedData [16:05:40]SAM_PROTO_SignData [16:05:40]wFMCommunicate request_size=4 [16:05:40]MH_SAM_APDU [16:05:40]CAPDU: 80 0D 01 02 [16:05:40]Write to MH i2c: E2 08 00 5D 03 80 0D 01 02 00 00 00 00 D9 [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:40]Read from MH i2c: E2 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 03 00 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [16:05:40]RAPDU: 90 00 [16:05:40]wFMCommunicate OK [16:05:40]wFMCommunicate request_size=255 [16:05:40]MH_SAM_APDU [16:05:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D4 AA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1D 01 00 35 04 06 00 36 [16:05:40]Write to MH i2c: E2 02 01 5E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D4 AA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1D 01 00 35 04 06 00 36 00 00 FC [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:40]Read from MH i2c: E2 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 03 00 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [16:05:40]RAPDU: 90 00 [16:05:40]wFMCommunicate OK [16:05:40]wFMCommunicate request_size=10 [16:05:40]MH_SAM_APDU [16:05:40]CAPDU: 80 0D 02 02 05 44 4C 5C 19 4D [16:05:40]Write to MH i2c: E2 0D 00 5F 03 80 0D 02 02 05 00 44 4C 5C 19 4D 00 00 38 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:41]Read from MH i2c: E2 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 03 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [16:05:41]RAPDU: 90 00 [16:05:41]wFMCommunicate OK [16:05:41]wFMCommunicate request_size=4 [16:05:41]MH_SAM_APDU [16:05:41]CAPDU: 80 0D 03 02 [16:05:41]Write to MH i2c: E2 08 00 60 03 80 0D 03 02 00 00 00 00 DE [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:41]Read from MH i2c: E2 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 0B 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 0B 00 60 03 00 1D DA 9A 4E 97 B0 D8 AB 90 00 88 [16:05:41]RAPDU: 1D DA 9A 4E 97 B0 D8 AB 90 00 [16:05:41]wFMCommunicate OK [16:05:41]SAM_PROTO_SignData done [16:05:41]FM_MakeSignedData done [16:05:41]CreateOFDProtocolMessage [16:05:41]wFMCommunicate request_size=4 [16:05:41]MH_SAM_APDU [16:05:41]CAPDU: 80 11 00 00 [16:05:41]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:41]Read from MH i2c: E2 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 17 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 17 00 61 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [16:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:05:41]wFMCommunicate OK [16:05:41]CreateOFDProtocolMessage done [16:05:41]OFDSenderStorePacket 73059 [16:05:41]StoreOFDPacket docnum=73059 [16:05:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F1 C8 07 01 D4 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D4 AA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1D 01 00 35 04 06 00 36 44 4C 5C 19 4D 1D DA 9A 4E 97 B0 D8 AB [16:05:41]CheckFolder [16:05:41]dirname=/storage/ofd_packets [16:05:41]CheckFolder done [16:05:41]ProducePacketName [16:05:41]name=ofd_packets/00073059 [16:05:41]NVStorageSaveData ofd_packets/00073059 [16:05:41]File name is /storage/ofd_packets/00073059 [16:05:41]Write 301 bytes [16:05:41]NVStorageSaveData done [16:05:41]OFDSenderStorePacket done [16:05:41]KKMCreateOFDPacket done [16:05:41]NVStorageSaveData kkm_last_timestamp [16:05:41]File name is /storage/kkm_last_timestamp [16:05:41]Write 4 bytes [16:05:41]NVStorageSaveData done [16:05:41]ExternCall_PrintAddStr [16:05:41]wPrintStart [16:05:41]Write to MH i2c: 01 00 00 62 03 65 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: 01 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: 01 07 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: 01 07 00 62 03 00 00 00 00 00 FF 0F 7A [16:05:41]RasterBufferAndPrint [16:05:41]line Счет N : (1)952658 [16:05:41]line ИНН: 02508201610067 [16:05:41]line Контрольно-Кассовый Чек [16:05:41]line ПРОДАЖА [16:05:41]line ТРК (МРК, ГНК) : 53 [16:05:41]line Товар: 2710124130 [16:05:41]line Аи-92-К-5 [16:05:41]line 30.000 * 0.00 [16:05:41]line = 0.00 [16:05:41]line НДС 12% НСП 1% [16:05:41]line > о реализуемом товаре [16:05:41]line ИТОГО: 0.00 [16:05:41]line НСП 1% : 0.00 [16:05:41]line НДС 12% : 0.00 [16:05:41]line Наличными: 0.00 [16:05:41]line Безнал.: 0.00 [16:05:41]line Место: АЗС № 113 "Партнер Нефть" [16:05:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:05:41]line СНО: Общий режим [16:05:41]line Чек 134 31.10.2024 16:05 [16:05:41]line Смена: 557 ФФД: 1.0 [16:05:41]line ЗНМ: 0300000087 [16:05:41]line РНМ: 0000000000091644 [16:05:41]line Версия ККМ: 001 [16:05:41]line Талоны: Топливная Карта [16:05:41]line 03047 [16:05:41]line ФМ: 0000000000874662 [16:05:41]line ФД: 73059 [16:05:41]line ФПД: 59666966780237 [16:05:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T160540&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73059&fm=59666966780237&tin=02508201610067®Number=0000000000091644&sum=0 [16:05:41]written 0, free lines is 4095 [16:05:41]OFD Sender: Processing packet 73059 [packets to send 282, broken 281] [16:05:41]ProducePacketName [16:05:41]name=ofd_packets/00073059 [16:05:41]OFD Sender: To server: pG, [16:05:41]CommunicateWithHost lk.salyk.kg:30040 [16:05:41]ConnectInit lk.salyk.kg [16:05:41]Write to MH i2c: 01 00 00 8C 03 8F [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: 01 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: 01 07 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: 01 07 00 8C 03 00 00 00 00 00 E7 0C 89 [16:05:41]RasterBufferAndPrint [16:05:41]line [16:05:41]line [16:05:41]line [16:05:41]line [16:05:41]line [16:05:41]written 0, free lines is 3309 [16:05:41]MH_Cut [16:05:41]Write to MH i2c: D1 01 00 93 03 01 68 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: D1 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: D1 01 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: D1 01 00 93 03 00 67 [16:05:41]Write to MH i2c: 01 00 00 94 03 97 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:42]*** Cut start [16:05:42]*** Partial cut [16:05:42]*** CUTSNS_PIN = 1 [16:05:42]*** CUTSNS_PIN = 0 [16:05:42]*** Brake cut motor [16:05:42]Connected sock=9 [16:05:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F1 C8 07 01 D4 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D4 AA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1D 01 00 35 04 06 00 36 44 4C 5C 19 4D 1D DA 9A 4E 97 B0 D8 AB [16:05:42]Read from MH i2c: 01 [16:05:42]MH_I2C_Read... [16:05:42]*** Stop cut motor [16:05:42]*** Cut end [16:05:42]Read from MH i2c: 01 07 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 FF 0F AC [16:05:42]process_action close_receipt done [16:05:42]requested_data is exist [16:05:42]produce_requested_data [16:05:42]requested_item fm.sn is exist - process it [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 11 00 00 [16:05:42]Write to MH i2c: E2 08 00 95 03 80 11 00 00 00 00 00 00 12 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 17 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 17 00 95 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [16:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:05:43]wFMCommunicate OK [16:05:43]requested_item fd.num is exist - process it [16:05:43]SAM_PROTO_GetFieldsCounters [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 13 00 00 [16:05:43]Write to MH i2c: E2 08 00 96 03 80 13 00 00 00 00 00 00 15 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 62 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 62 00 96 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 63 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [16:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 63 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:43]wFMCommunicate OK [16:05:43]SAM_PROTO_GetFieldsCounters done [16:05:43]requested_item shift.num is exist - process it [16:05:43]requested_item shift.opened is exist - process it [16:05:43]req_shift_opened [16:05:43]FM_GetShiftState [16:05:43]SAM_PROTO_GetShiftState [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 13 01 00 [16:05:43]Write to MH i2c: E2 08 00 97 03 80 13 01 00 00 00 00 00 17 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0E 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0E 00 97 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C0 [16:05:43]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:05:43]wFMCommunicate OK [16:05:43]SAM_PROTO_GetShiftState done [16:05:43]FM_GetShiftState done [16:05:43]req_shift_opened done [16:05:43]requested_item shift.open_date is exist - process it [16:05:43]req_shift_open_date [16:05:43]req_shift_open_date done [16:05:43]produce_requested_data done [16:05:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73059,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:05:43]process_action_free close_receipt [16:05:43]json_value_free [16:05:43]json_value_free done [16:05:43]process_json_proto returns [16:05:43]Send response to host [16:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73059,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:05:43]free response buf [16:05:43]execute_script done [16:05:43]execute_script returns [16:05:43]free content buf [16:05:43]Sock 8.Close socket [16:05:43]Sock 8.Thread stoped [16:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 EC 7F 47 00 96 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1D 01 00 F4 03 04 00 8B 55 23 67 B6 04 01 00 00 8B FE 3E D3 F4 61 D1 2E [16:05:43]CommunicateWithHost err = 0 [16:05:43]CheckOFDResponse [16:05:43]1017 (14) - 77093643461234 [16:05:43]1041 (16) - 0000000000874662 [16:05:43]1040 (4) - 73059 [16:05:43]1012 (4) - 31.10.2024 10:01 [16:05:43]1206 (1) - 0 [16:05:43]OFD Sender: Remove packet 73059 [16:05:43]ProducePacketName [16:05:43]name=ofd_packets/00073059 [16:05:43]NVStorageDeleteData [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:02]recv_with_timeout no data received [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:06]recv_with_timeout no data received [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:44]recv_with_timeout no data received [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:28]recv_with_timeout no data received [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:42]recv_with_timeout no data received [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:56]accept exits with 10 [16:10:56]New connection [16:10:56]New thread 3067395428 created [16:10:56]Thread 3067252068 joined [16:10:56]Waiting for new connection... [16:10:56] Sock 10.Parse request [16:10:56]Sock 10.Check first char [16:10:56]Sock 10.First char is OK [16:10:56]request: POST /json_proto HTTP/1.0 [16:10:56]Method: POST [16:10:56]URL: /json_proto [16:10:56]Method is POST - this is cgi request [16:10:56]url: /json_proto [16:10:56]query_string will be loaded in cgi processing [16:10:56]execute_cgi json_proto POST (null) [16:10:56]execute_cgi path=json_proto method=POST [16:10:56]POST find Content-Length [16:10:56]Host: 172.17.43.195:8080 [16:10:56]Content-Length: 792 [16:10:56]Content-Type: application/json [16:10:56] [16:10:56]POST finish read [16:10:56]Found Content-Length = 792 [16:10:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 19.440, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:56]execute_script... [16:10:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 19.440, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:56]POST & json_proto [16:10:56]process_json_proto [16:10:56]json parsed OK: [16:10:56]protocol is kg_v1.0 [16:10:56]action value=close_receipt [16:10:56]process_action close_receipt [16:10:56]cmd_close_receipt [16:10:56]MH_GetDate [16:10:56]Write to MH i2c: F0 00 00 98 03 8A [16:10:56]Write i2c OK [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: F0 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: F0 09 00 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: F0 09 00 98 03 00 11 AC 23 67 74 2C AD 66 8D [16:10:56]GetLastDocTimeStamp 1730390740 [16:10:56]current date 1730391057 [16:10:56]FM_GetShiftState [16:10:56]SAM_PROTO_GetShiftState [16:10:56]wFMCommunicate request_size=4 [16:10:56]MH_SAM_APDU [16:10:56]CAPDU: 80 13 01 00 [16:10:56]Write to MH i2c: E2 08 00 99 03 80 13 01 00 00 00 00 00 19 [16:10:56]Write i2c OK [16:10:56]MH_I2C_Read... [16:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:56]Read from MH i2c: E2 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 0E 00 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 0E 00 99 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C2 [16:10:56]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:10:56]wFMCommunicate OK [16:10:56]SAM_PROTO_GetShiftState done [16:10:56]FM_GetShiftState done [16:10:56]opened in 1730333258 [16:10:56]opened+sec_in_day 1730419658 [16:10:56]quantity*price = 0 [16:10:56]sum+1 = 1 [16:10:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 135 31.10.2024 16:10 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73060 ФПД: 94441225369078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T161057&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73060&fm=94441225369078&tin=02508201610067®Number=0000000000091644&sum=0 [16:10:57]StoreToDocumentArchive [16:10:57]shift 557 fd 73060 [16:10:57]save to /storage/0557/doc_00073060 [16:10:57]save last doc name /storage/0557/doc_00073060 to /storage/kkm_last_doc_name [16:10:57]save OK [16:10:57]Clear old archive folders... [16:10:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:57]tlvbuf is 02088620 [16:10:57]SAM_PROTO_ClearQueue [16:10:57]wFMCommunicate request_size=4 [16:10:57]MH_SAM_APDU [16:10:57]CAPDU: 80 09 00 00 [16:10:57]Write to MH i2c: E2 08 00 A6 03 80 09 00 00 00 00 00 00 1B [16:10:57]Write i2c OK [16:10:57]MH_I2C_Read... [16:10:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:57]Read from MH i2c: E2 [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: E2 03 00 [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [16:10:57]RAPDU: 90 00 [16:10:57]wFMCommunicate OK [16:10:57]SAM_PROTO_ClearQueue done [16:10:57]KKMCreateOFDPacket [16:10:57]OFDProtocolAddRootSTLVToBuf [16:10:57]FM_MakeSignedData [16:10:57]FM_MakeSignedData [16:10:57]SAM_PROTO_SignData [16:10:57]wFMCommunicate request_size=4 [16:10:57]MH_SAM_APDU [16:10:57]CAPDU: 80 0D 01 02 [16:10:57]Write to MH i2c: E2 08 00 A7 03 80 0D 01 02 00 00 00 00 23 [16:10:57]Write i2c OK [16:10:57]MH_I2C_Read... [16:10:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:57]Read from MH i2c: E2 [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: E2 03 00 [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [16:10:57]RAPDU: 90 00 [16:10:57]wFMCommunicate OK [16:10:57]wFMCommunicate request_size=255 [16:10:57]MH_SAM_APDU [16:10: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 F0 4B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 11 AC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1D 01 00 35 04 06 00 55 [16:10:57]Write to MH i2c: E2 02 01 A8 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 11 AC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1D 01 00 35 04 06 00 55 00 00 3C [16:10:57]Write i2c OK [16:10:57]MH_I2C_Read... [16:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:58]Read from MH i2c: E2 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 03 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [16:10:58]RAPDU: 90 00 [16:10:58]wFMCommunicate OK [16:10:58]wFMCommunicate request_size=10 [16:10:58]MH_SAM_APDU [16:10:58]CAPDU: 80 0D 02 02 05 E4 CF B0 B5 F6 [16:10:58]Write to MH i2c: E2 0D 00 A9 03 80 0D 02 02 05 00 E4 CF B0 B5 F6 00 00 3E [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:58]Read from MH i2c: E2 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 03 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [16:10:58]RAPDU: 90 00 [16:10:58]wFMCommunicate OK [16:10:58]wFMCommunicate request_size=4 [16:10:58]MH_SAM_APDU [16:10:58]CAPDU: 80 0D 03 02 [16:10:58]Write to MH i2c: E2 08 00 AA 03 80 0D 03 02 00 00 00 00 28 [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:58]Read from MH i2c: E2 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 0B 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 0B 00 AA 03 00 AF 39 55 83 64 58 E4 9D 90 00 26 [16:10:58]RAPDU: AF 39 55 83 64 58 E4 9D 90 00 [16:10:58]wFMCommunicate OK [16:10:58]SAM_PROTO_SignData done [16:10:58]FM_MakeSignedData done [16:10:58]CreateOFDProtocolMessage [16:10:58]wFMCommunicate request_size=4 [16:10:58]MH_SAM_APDU [16:10:58]CAPDU: 80 11 00 00 [16:10:58]Write to MH i2c: E2 08 00 AB 03 80 11 00 00 00 00 00 00 28 [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:58]Read from MH i2c: E2 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 17 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 17 00 AB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [16:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:10:58]wFMCommunicate OK [16:10:58]CreateOFDProtocolMessage done [16:10:58]OFDSenderStorePacket 73060 [16:10:58]StoreOFDPacket docnum=73060 [16:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA 59 07 01 A1 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 11 AC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1D 01 00 35 04 06 00 55 E4 CF B0 B5 F6 AF 39 55 83 64 58 E4 9D [16:10:58]CheckFolder [16:10:58]dirname=/storage/ofd_packets [16:10:58]CheckFolder done [16:10:58]ProducePacketName [16:10:58]name=ofd_packets/00073060 [16:10:58]NVStorageSaveData ofd_packets/00073060 [16:10:58]File name is /storage/ofd_packets/00073060 [16:10:58]Write 301 bytes [16:10:58]NVStorageSaveData done [16:10:58]OFDSenderStorePacket done [16:10:58]KKMCreateOFDPacket done [16:10:58]NVStorageSaveData kkm_last_timestamp [16:10:58]File name is /storage/kkm_last_timestamp [16:10:58]Write 4 bytes [16:10:58]NVStorageSaveData done [16:10:58]ExternCall_PrintAddStr [16:10:58]wPrintStart [16:10:58]Write to MH i2c: 01 00 00 AC 03 AF [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: 01 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: 01 07 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [16:10:58]RasterBufferAndPrint [16:10:58]line Счет N : (1)952659 [16:10:58]line ИНН: 02508201610067 [16:10:58]line Контрольно-Кассовый Чек [16:10:58]line ПРОДАЖА [16:10:58]line ТРК (МРК, ГНК) : 53 [16:10:58]line Товар: 2710124130 [16:10:58]line Аи-92-К-5 [16:10:58]line 19.440 * 0.00 [16:10:58]line = 0.00 [16:10:58]line НДС 12% НСП 1% [16:10:58]line > о реализуемом товаре [16:10:58]line ИТОГО: 0.00 [16:10:58]line НСП 1% : 0.00 [16:10:58]line НДС 12% : 0.00 [16:10:58]line Наличными: 0.00 [16:10:58]line Безнал.: 0.00 [16:10:58]line Место: АЗС № 113 "Партнер Нефть" [16:10:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:10:58]line СНО: Общий режим [16:10:58]line Чек 135 31.10.2024 16:10 [16:10:58]line Смена: 557 ФФД: 1.0 [16:10:58]line ЗНМ: 0300000087 [16:10:58]line РНМ: 0000000000091644 [16:10:58]line Версия ККМ: 001 [16:10:58]line Талоны: Топливная Карта [16:10:58]line 03047 [16:10:58]line ФМ: 0000000000874662 [16:10:58]line ФД: 73060 [16:10:58]line ФПД: 94441225369078 [16:10:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T161057&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73060&fm=94441225369078&tin=02508201610067®Number=0000000000091644&sum=0 [16:10:58]written 0, free lines is 4095 [16:10:58]OFD Sender: Processing packet 73060 [packets to send 282, broken 281] [16:10:58]ProducePacketName [16:10:58]name=ofd_packets/00073060 [16:10:58]OFD Sender: To server: pG, [16:10:58]CommunicateWithHost lk.salyk.kg:30040 [16:10:58]ConnectInit lk.salyk.kg [16:10:58]Write to MH i2c: 01 00 00 D6 03 D9 [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: 01 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: 01 07 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 E5 0C D1 [16:10:58]RasterBufferAndPrint [16:10:58]line [16:10:58]line [16:10:58]line [16:10:58]line [16:10:58]line [16:10:58]written 0, free lines is 3308 [16:10:58]MH_Cut [16:10:58]Write to MH i2c: D1 01 00 DD 03 01 B2 [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: D1 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: D1 01 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: D1 01 00 DD 03 00 B1 [16:10:58]Write to MH i2c: 01 00 00 DE 03 E1 [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:59]*** Cut start [16:10:59]*** Partial cut [16:10:59]*** CUTSNS_PIN = 1 [16:10:59]*** CUTSNS_PIN = 0 [16:10:59]*** Brake cut motor [16:11:00]Read from MH i2c: 01 [16:11:00]MH_I2C_Read... [16:11:00]*** Stop cut motor [16:11:00]*** Cut end [16:11:00]Read from MH i2c: 01 07 00 [16:11:00]MH_I2C_Read... [16:11:00]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [16:11:00]process_action close_receipt done [16:11:00]requested_data is exist [16:11:00]produce_requested_data [16:11:00]requested_item fm.sn is exist - process it [16:11:00]wFMCommunicate request_size=4 [16:11:00]MH_SAM_APDU [16:11:00]CAPDU: 80 11 00 00 [16:11:00]Write to MH i2c: E2 08 00 DF 03 80 11 00 00 00 00 00 00 5C [16:11:00]Write i2c OK [16:11:00]MH_I2C_Read... [16:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:00]Read from MH i2c: E2 [16:11:00]MH_I2C_Read... [16:11:00]Read from MH i2c: E2 17 00 [16:11:00]MH_I2C_Read... [16:11:00]Read from MH i2c: E2 17 00 DF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B0 [16:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:11:00]wFMCommunicate OK [16:11:00]requested_item fd.num is exist - process it [16:11:00]SAM_PROTO_GetFieldsCounters [16:11:00]wFMCommunicate request_size=4 [16:11:00]MH_SAM_APDU [16:11:00]CAPDU: 80 13 00 00 [16:11:00]Write to MH i2c: E2 08 00 E0 03 80 13 00 00 00 00 00 00 5F [16:11:00]Write i2c OK [16:11:00]MH_I2C_Read... [16:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:00]Read from MH i2c: E2 [16:11:00]MH_I2C_Read... [16:11:00]Read from MH i2c: E2 62 00 [16:11:00]MH_I2C_Read... [16:11:00]Read from MH i2c: E2 62 00 E0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 64 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [16:11:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 64 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:00]wFMCommunicate OK [16:11:00]SAM_PROTO_GetFieldsCounters done [16:11:00]requested_item shift.num is exist - process it [16:11:00]requested_item shift.opened is exist - process it [16:11:00]req_shift_opened [16:11:00]FM_GetShiftState [16:11:00]SAM_PROTO_GetShiftState [16:11:00]wFMCommunicate request_size=4 [16:11:00]MH_SAM_APDU [16:11:00]CAPDU: 80 13 01 00 [16:11:00]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [16:11:00]Write i2c OK [16:11:00]MH_I2C_Read... [16:11:00]Read from MH i2c: E2 [16:11:00]MH_I2C_Read... [16:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:00]Read from MH i2c: E2 0E 00 [16:11:00]MH_I2C_Read... [16:11:00]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0A [16:11:00]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:11:00]wFMCommunicate OK [16:11:00]SAM_PROTO_GetShiftState done [16:11:00]FM_GetShiftState done [16:11:00]req_shift_opened done [16:11:00]requested_item shift.open_date is exist - process it [16:11:00]req_shift_open_date [16:11:00]req_shift_open_date done [16:11:00]produce_requested_data done [16:11:00]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73060,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:11:00]process_action_free close_receipt [16:11:00]json_value_free [16:11:00]json_value_free done [16:11:00]process_json_proto returns [16:11:00]Send response to host [16:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73060,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:11:00]free response buf [16:11:00]execute_script done [16:11:00]execute_script returns [16:11:00]free content buf [16:11:00]Sock 10.Close socket [16:11:00]Sock 10.Thread stoped [16:11:03]ConnectInit Can't take IP for lk.salyk.kg [16:11:03]CommunicateWithHost connect error [16:11:03]CommunicateWithHost err = -1 [16:11:03]OFD Sender: Server communicate error [16:11:08]OFD Sender: Processing packet 73060 [packets to send 282, broken 281] [16:11:08]ProducePacketName [16:11:08]name=ofd_packets/00073060 [16:11:08]OFD Sender: To server: pG, [16:11:08]CommunicateWithHost lk.salyk.kg:30040 [16:11:08]ConnectInit lk.salyk.kg [16:11:09]Connected sock=8 [16:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA 59 07 01 A1 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 11 AC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1D 01 00 35 04 06 00 55 E4 CF B0 B5 F6 AF 39 55 83 64 58 E4 9D [16:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CE C4 47 00 37 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1D 01 00 F4 03 04 00 D1 56 23 67 B6 04 01 00 00 E8 25 A4 F3 BA FD F4 4B [16:11:09]CommunicateWithHost err = 0 [16:11:09]CheckOFDResponse [16:11:09]1017 (14) - 77093643461234 [16:11:09]1041 (16) - 0000000000874662 [16:11:09]1040 (4) - 73060 [16:11:09]1012 (4) - 31.10.2024 10:07 [16:11:09]1206 (1) - 0 [16:11:09]OFD Sender: Remove packet 73060 [16:11:09]ProducePacketName [16:11:09]name=ofd_packets/00073060 [16:11:09]NVStorageDeleteData [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:44]accept exits with 9 [16:11:44]New connection [16:11:44]New thread 3067252068 created [16:11:44]Thread 3067395428 joined [16:11:44]Waiting for new connection... [16:11:44] Sock 9.Parse request [16:11:44]Sock 9.Check first char [16:11:44]Sock 9.First char is OK [16:11:44]request: POST /json_proto HTTP/1.0 [16:11:44]Method: POST [16:11:44]URL: /json_proto [16:11:44]Method is POST - this is cgi request [16:11:44]url: /json_proto [16:11:44]query_string will be loaded in cgi processing [16:11:44]execute_cgi json_proto POST (null) [16:11:44]execute_cgi path=json_proto method=POST [16:11:44]POST find Content-Length [16:11:44]Host: 172.17.43.195:8080 [16:11:44]Content-Length: 803 [16:11:44]Content-Type: application/json [16:11:44] [16:11:44]POST finish read [16:11:44]Found Content-Length = 803 [16:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:44]execute_script... [16:11:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:44]POST & json_proto [16:11:44]process_json_proto [16:11:44]json parsed OK: [16:11:44]protocol is kg_v1.0 [16:11:44]action value=close_receipt [16:11:44]process_action close_receipt [16:11:44]cmd_close_receipt [16:11:44]MH_GetDate [16:11:44]Write to MH i2c: F0 00 00 E2 03 D4 [16:11:44]Write i2c OK [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: F0 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: F0 09 00 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: F0 09 00 E2 03 00 41 AC 23 67 74 2C AD 66 07 [16:11:44]GetLastDocTimeStamp 1730391057 [16:11:44]current date 1730391105 [16:11:44]FM_GetShiftState [16:11:44]SAM_PROTO_GetShiftState [16:11:44]wFMCommunicate request_size=4 [16:11:44]MH_SAM_APDU [16:11:44]CAPDU: 80 13 01 00 [16:11:44]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [16:11:44]Write i2c OK [16:11:44]MH_I2C_Read... [16:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:44]Read from MH i2c: E2 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 0E 00 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0C [16:11:44]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:11:44]wFMCommunicate OK [16:11:44]SAM_PROTO_GetShiftState done [16:11:44]FM_GetShiftState done [16:11:44]opened in 1730333258 [16:11:44]opened+sec_in_day 1730419658 [16:11:44]quantity*price = 100021 [16:11:44]sum+1 = 100023 [16:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 136 31.10.2024 16:11 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73061 ФПД: 244289213744844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T161145&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73061&fm=244289213744844&tin=02508201610067®Number=0000000000091644&sum=100022 [16:11:45]StoreToDocumentArchive [16:11:45]shift 557 fd 73061 [16:11:45]save to /storage/0557/doc_00073061 [16:11:45]save last doc name /storage/0557/doc_00073061 to /storage/kkm_last_doc_name [16:11:45]save OK [16:11:45]Clear old archive folders... [16:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:45]tlvbuf is 02083A10 [16:11:45]SAM_PROTO_ClearQueue [16:11:45]wFMCommunicate request_size=4 [16:11:45]MH_SAM_APDU [16:11:45]CAPDU: 80 09 00 00 [16:11:45]Write to MH i2c: E2 08 00 F0 03 80 09 00 00 00 00 00 00 65 [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:45]Read from MH i2c: E2 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 03 00 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [16:11:45]RAPDU: 90 00 [16:11:45]wFMCommunicate OK [16:11:45]SAM_PROTO_ClearQueue done [16:11:45]KKMCreateOFDPacket [16:11:45]OFDProtocolAddRootSTLVToBuf [16:11:45]FM_MakeSignedData [16:11:45]FM_MakeSignedData [16:11:45]SAM_PROTO_SignData [16:11:45]wFMCommunicate request_size=4 [16:11:45]MH_SAM_APDU [16:11:45]CAPDU: 80 0D 01 02 [16:11:45]Write to MH i2c: E2 08 00 F1 03 80 0D 01 02 00 00 00 00 6D [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:45]OFD Sender: No OFD packet to send [16:11:45]Read from MH i2c: E2 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 03 00 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [16:11:45]RAPDU: 90 00 [16:11:45]wFMCommunicate OK [16:11:45]wFMCommunicate request_size=255 [16:11:45]MH_SAM_APDU [16:11:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 41 AC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1D 01 00 35 04 06 00 DE [16:11:45]Write to MH i2c: E2 02 01 F2 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 41 AC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1D 01 00 35 04 06 00 DE 00 00 D2 [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:45]Read from MH i2c: E2 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 03 00 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [16:11:45]RAPDU: 90 00 [16:11:45]wFMCommunicate OK [16:11:45]wFMCommunicate request_size=10 [16:11:45]MH_SAM_APDU [16:11:45]CAPDU: 80 0D 02 02 05 2E 03 CE C6 CC [16:11:45]Write to MH i2c: E2 0D 00 F3 03 80 0D 02 02 05 00 2E 03 CE C6 CC 00 00 0B [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:45]Read from MH i2c: E2 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 03 00 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [16:11:45]RAPDU: 90 00 [16:11:45]wFMCommunicate OK [16:11:45]wFMCommunicate request_size=4 [16:11:45]MH_SAM_APDU [16:11:45]CAPDU: 80 0D 03 02 [16:11:45]Write to MH i2c: E2 08 00 F4 03 80 0D 03 02 00 00 00 00 72 [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:45]Read from MH i2c: E2 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 0B 00 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 0B 00 F4 03 00 1A 83 A9 F0 80 8C DB BB 90 00 4B [16:11:45]RAPDU: 1A 83 A9 F0 80 8C DB BB 90 00 [16:11:45]wFMCommunicate OK [16:11:45]SAM_PROTO_SignData done [16:11:45]FM_MakeSignedData done [16:11:45]CreateOFDProtocolMessage [16:11:45]wFMCommunicate request_size=4 [16:11:45]MH_SAM_APDU [16:11:45]CAPDU: 80 11 00 00 [16:11:45]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:45]Read from MH i2c: E2 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 17 00 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C6 [16:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:11:45]wFMCommunicate OK [16:11:45]CreateOFDProtocolMessage done [16:11:45]OFDSenderStorePacket 73061 [16:11:45]StoreOFDPacket docnum=73061 [16:11:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BC 54 07 01 11 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 41 AC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1D 01 00 35 04 06 00 DE 2E 03 CE C6 CC 1A 83 A9 F0 80 8C DB BB [16:11:45]CheckFolder [16:11:45]dirname=/storage/ofd_packets [16:11:45]CheckFolder done [16:11:45]ProducePacketName [16:11:45]name=ofd_packets/00073061 [16:11:45]NVStorageSaveData ofd_packets/00073061 [16:11:45]File name is /storage/ofd_packets/00073061 [16:11:45]Write 301 bytes [16:11:45]NVStorageSaveData done [16:11:45]OFDSenderStorePacket done [16:11:45]KKMCreateOFDPacket done [16:11:45]NVStorageSaveData kkm_last_timestamp [16:11:45]File name is /storage/kkm_last_timestamp [16:11:45]Write 4 bytes [16:11:45]NVStorageSaveData done [16:11:45]ExternCall_PrintAddStr [16:11:45]wPrintStart [16:11:45]Write to MH i2c: 01 00 00 F6 03 F9 [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: 01 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: 01 07 00 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 FF 0F 0E [16:11:45]RasterBufferAndPrint [16:11:45]line Счет N : (1)952660 [16:11:45]line ИНН: 02508201610067 [16:11:45]line Контрольно-Кассовый Чек [16:11:45]line ПРОДАЖА [16:11:45]line ТРК (МРК, ГНК) : 62 [16:11:45]line Товар: 2710124500 [16:11:45]line Аи-95-К-3 [16:11:45]line 13.480 * 74.20 [16:11:45]line = 1000.22 [16:11:45]line НДС 12% НСП 1% [16:11:45]line > о реализуемом товаре [16:11:45]line ИТОГО: 1000.22 [16:11:45]line НСП 1% : 8.85 [16:11:45]line НДС 12% : 106.22 [16:11:45]line Наличными: 0.00 [16:11:45]line Безнал.: 1000.22 [16:11:45]line Место: АЗС № 113 "Партнер Нефть" [16:11:45]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:11:45]line СНО: Общий режим [16:11:45]line Чек 136 31.10.2024 16:11 [16:11:45]line Смена: 557 ФФД: 1.0 [16:11:45]line ЗНМ: 0300000087 [16:11:45]line РНМ: 0000000000091644 [16:11:45]line Версия ККМ: 001 [16:11:45]line Платежная система: O! деньги [16:11:45]line ФМ: 0000000000874662 [16:11:45]line ФД: 73061 [16:11:45]line ФПД: 244289213744844 [16:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T161145&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73061&fm=244289213744844&tin=02508201610067®Number=0000000000091644&sum=100022 [16:11:46]OFD Sender: Processing packet 73061 [packets to send 282, broken 281] [16:11:46]ProducePacketName [16:11:46]name=ofd_packets/00073061 [16:11:46]OFD Sender: To server: pG, [16:11:46]CommunicateWithHost lk.salyk.kg:30040 [16:11:46]ConnectInit lk.salyk.kg [16:11:46]written 0, free lines is 4095 [16:11:46]Write to MH i2c: 01 00 00 20 04 24 [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: 01 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: 01 07 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: 01 07 00 20 04 00 00 00 00 00 F2 0C 29 [16:11:46]RasterBufferAndPrint [16:11:46]line [16:11:46]line [16:11:46]line [16:11:46]line [16:11:46]line [16:11:46]written 0, free lines is 3320 [16:11:46]MH_Cut [16:11:46]Write to MH i2c: D1 01 00 27 04 01 FD [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: D1 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: D1 01 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: D1 01 00 27 04 00 FC [16:11:46]Write to MH i2c: 01 00 00 28 04 2C [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:47]*** Cut start [16:11:47]*** Partial cut [16:11:47]*** CUTSNS_PIN = 1 [16:11:47]Connected sock=11 [16:11:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BC 54 07 01 11 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 41 AC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1D 01 00 35 04 06 00 DE 2E 03 CE C6 CC 1A 83 A9 F0 80 8C DB BB [16:11:47]*** CUTSNS_PIN = 0 [16:11:47]*** Brake cut motor [16:11:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 68 8F 47 00 89 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1D 01 00 F4 03 04 00 F7 56 23 67 B6 04 01 00 00 9C 88 DC C3 2E AC B2 EB [16:11:48]CommunicateWithHost err = 0 [16:11:48]CheckOFDResponse [16:11:48]1017 (14) - 77093643461234 [16:11:48]1041 (16) - 0000000000874662 [16:11:48]1040 (4) - 73061 [16:11:48]1012 (4) - 31.10.2024 10:07 [16:11:48]1206 (1) - 0 [16:11:48]OFD Sender: Remove packet 73061 [16:11:48]ProducePacketName [16:11:48]name=ofd_packets/00073061 [16:11:48]NVStorageDeleteData [16:11:48]Read from MH i2c: 01 [16:11:48]MH_I2C_Read... [16:11:48]*** Stop cut motor [16:11:48]*** Cut end [16:11:48]Read from MH i2c: 01 07 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 FF 0F 41 [16:11:48]process_action close_receipt done [16:11:48]requested_data is exist [16:11:48]produce_requested_data [16:11:48]requested_item fm.sn is exist - process it [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 11 00 00 [16:11:48]Write to MH i2c: E2 08 00 29 04 80 11 00 00 00 00 00 00 A7 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 17 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 17 00 29 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FB [16:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:11:48]wFMCommunicate OK [16:11:48]requested_item fd.num is exist - process it [16:11:48]SAM_PROTO_GetFieldsCounters [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 13 00 00 [16:11:48]Write to MH i2c: E2 08 00 2A 04 80 13 00 00 00 00 00 00 AA [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 62 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 62 00 2A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 65 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [16:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 65 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:48]wFMCommunicate OK [16:11:48]SAM_PROTO_GetFieldsCounters done [16:11:48]requested_item shift.num is exist - process it [16:11:48]requested_item shift.opened is exist - process it [16:11:48]req_shift_opened [16:11:48]FM_GetShiftState [16:11:48]SAM_PROTO_GetShiftState [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 13 01 00 [16:11:48]Write to MH i2c: E2 08 00 2B 04 80 13 01 00 00 00 00 00 AC [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0E 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0E 00 2B 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 55 [16:11:48]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:11:48]wFMCommunicate OK [16:11:48]SAM_PROTO_GetShiftState done [16:11:48]FM_GetShiftState done [16:11:48]req_shift_opened done [16:11:48]requested_item shift.open_date is exist - process it [16:11:48]req_shift_open_date [16:11:48]req_shift_open_date done [16:11:48]produce_requested_data done [16:11:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73061,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:11:48]process_action_free close_receipt [16:11:48]json_value_free [16:11:48]json_value_free done [16:11:48]process_json_proto returns [16:11:48]Send response to host [16:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73061,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:11:48]free response buf [16:11:48]execute_script done [16:11:48]execute_script returns [16:11:48]free content buf [16:11:48]Sock 9.Close socket [16:11:48]Sock 9.Thread stoped [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]recv_with_timeout no data received [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:27]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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]recv_with_timeout no data received [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:51]recv_with_timeout no data received [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:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:40]recv_with_timeout no data received [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:21]recv_with_timeout no data received [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:52]recv_with_timeout no data received [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:02]recv_with_timeout no data received [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:01]recv_with_timeout no data received [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:31]recv_with_timeout no data received [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:54]recv_with_timeout no data received [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:06]recv_with_timeout no data received [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:26]recv_with_timeout no data received [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:45]recv_with_timeout no data received [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:22]recv_with_timeout no data received [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:32]recv_with_timeout no data received [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:02]recv_with_timeout no data received [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:24]recv_with_timeout no data received [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:42]recv_with_timeout no data received [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:16]recv_with_timeout no data received [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:53]recv_with_timeout no data received [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:15]accept exits with 8 [16:26:15]New connection [16:26:15]New thread 3067395428 created [16:26:15]Thread 3067252068 joined [16:26:15]Waiting for new connection... [16:26:15] Sock 8.Parse request [16:26:15]Sock 8.Check first char [16:26:15]Sock 8.First char is OK [16:26:15]request: POST /json_proto HTTP/1.0 [16:26:15]Method: POST [16:26:15]URL: /json_proto [16:26:15]Method is POST - this is cgi request [16:26:15]url: /json_proto [16:26:15]query_string will be loaded in cgi processing [16:26:15]execute_cgi json_proto POST (null) [16:26:15]execute_cgi path=json_proto method=POST [16:26:15]POST find Content-Length [16:26:15]Host: 172.17.43.195:8080 [16:26:15]Content-Length: 682 [16:26:15]Content-Type: application/json [16:26:15] [16:26:15]POST finish read [16:26:15]Found Content-Length = 682 [16:26:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:15]execute_script... [16:26:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:15]POST & json_proto [16:26:15]process_json_proto [16:26:15]json parsed OK: [16:26:15]protocol is kg_v1.0 [16:26:15]action value=close_receipt [16:26:15]process_action close_receipt [16:26:15]cmd_close_receipt [16:26:15]MH_GetDate [16:26:15]Write to MH i2c: F0 00 00 2C 04 1F [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: F0 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: F0 09 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: F0 09 00 2C 04 00 A8 AF 23 67 74 2C AD 66 BC [16:26:15]GetLastDocTimeStamp 1730391105 [16:26:15]current date 1730391976 [16:26:15]FM_GetShiftState [16:26:15]SAM_PROTO_GetShiftState [16:26:15]wFMCommunicate request_size=4 [16:26:15]MH_SAM_APDU [16:26:15]CAPDU: 80 13 01 00 [16:26:15]Write to MH i2c: E2 08 00 2D 04 80 13 01 00 00 00 00 00 AE [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:15]Read from MH i2c: E2 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 0E 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 0E 00 2D 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 57 [16:26:15]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:26:15]wFMCommunicate OK [16:26:15]SAM_PROTO_GetShiftState done [16:26:15]FM_GetShiftState done [16:26:15]opened in 1730333258 [16:26:15]opened+sec_in_day 1730419658 [16:26:15]quantity*price = 120018 [16:26:15]sum+1 = 120020 [16:26:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 137 31.10.2024 16:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73062 ФПД: 95630534090334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162617&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73062&fm=95630534090334&tin=02508201610067®Number=0000000000091644&sum=120000 [16:26:17]StoreToDocumentArchive [16:26:17]shift 557 fd 73062 [16:26:17]save to /storage/0557/doc_00073062 [16:26:17]save last doc name /storage/0557/doc_00073062 to /storage/kkm_last_doc_name [16:26:17]save OK [16:26:17]Clear old archive folders... [16:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:17]tlvbuf is 02088160 [16:26:17]SAM_PROTO_ClearQueue [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 09 00 00 [16:26:17]Write to MH i2c: E2 08 00 3A 04 80 09 00 00 00 00 00 00 B0 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [16:26:17]RAPDU: 90 00 [16:26:17]wFMCommunicate OK [16:26:17]SAM_PROTO_ClearQueue done [16:26:17]KKMCreateOFDPacket [16:26:17]OFDProtocolAddRootSTLVToBuf [16:26:17]FM_MakeSignedData [16:26:17]FM_MakeSignedData [16:26:17]SAM_PROTO_SignData [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 0D 01 02 [16:26:17]Write to MH i2c: E2 08 00 3B 04 80 0D 01 02 00 00 00 00 B8 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [16:26:17]RAPDU: 90 00 [16:26:17]wFMCommunicate OK [16:26:17]wFMCommunicate request_size=255 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A9 AF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1D 01 00 35 04 06 00 56 [16:26:17]Write to MH i2c: E2 02 01 3C 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A9 AF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1D 01 00 35 04 06 00 56 00 00 C2 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [16:26:17]RAPDU: 90 00 [16:26:17]wFMCommunicate OK [16:26:17]wFMCommunicate request_size=10 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 0D 02 02 05 F9 B8 03 9E 5E [16:26:17]Write to MH i2c: E2 0D 00 3D 04 80 0D 02 02 05 00 F9 B8 03 9E 5E 00 00 75 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [16:26:17]RAPDU: 90 00 [16:26:17]wFMCommunicate OK [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 0D 03 02 [16:26:17]Write to MH i2c: E2 08 00 3E 04 80 0D 03 02 00 00 00 00 BD [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 0B 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 0B 00 3E 04 00 FA 65 1A 3E A4 73 F8 11 90 00 95 [16:26:17]RAPDU: FA 65 1A 3E A4 73 F8 11 90 00 [16:26:17]wFMCommunicate OK [16:26:17]SAM_PROTO_SignData done [16:26:17]FM_MakeSignedData done [16:26:17]CreateOFDProtocolMessage [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 11 00 00 [16:26:17]Write to MH i2c: E2 08 00 3F 04 80 11 00 00 00 00 00 00 BD [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 17 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 17 00 3F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [16:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:26:17]wFMCommunicate OK [16:26:17]CreateOFDProtocolMessage done [16:26:17]OFDSenderStorePacket 73062 [16:26:17]StoreOFDPacket docnum=73062 [16:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 63 F6 07 01 17 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A9 AF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1D 01 00 35 04 06 00 56 F9 B8 03 9E 5E FA 65 1A 3E A4 73 F8 11 [16:26:17]CheckFolder [16:26:17]dirname=/storage/ofd_packets [16:26:17]CheckFolder done [16:26:17]ProducePacketName [16:26:17]name=ofd_packets/00073062 [16:26:17]NVStorageSaveData ofd_packets/00073062 [16:26:17]File name is /storage/ofd_packets/00073062 [16:26:17]Write 301 bytes [16:26:17]NVStorageSaveData done [16:26:17]OFDSenderStorePacket done [16:26:17]KKMCreateOFDPacket done [16:26:17]NVStorageSaveData kkm_last_timestamp [16:26:17]File name is /storage/kkm_last_timestamp [16:26:17]Write 4 bytes [16:26:17]NVStorageSaveData done [16:26:17]ExternCall_PrintAddStr [16:26:17]wPrintStart [16:26:17]Write to MH i2c: 01 00 00 40 04 44 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: 01 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: 01 07 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: 01 07 00 40 04 00 00 00 00 00 FF 0F 59 [16:26:17]RasterBufferAndPrint [16:26:17]line Счет N : (1)952661 [16:26:17]line ИНН: 02508201610067 [16:26:17]line Контрольно-Кассовый Чек [16:26:17]line ПРОДАЖА [16:26:17]line ТРК (МРК, ГНК) : 42 [16:26:17]line Товар: 2710124130 [16:26:17]line Аи-92-К-5 [16:26:17]line 17.940 * 66.90 [16:26:17]line = 1200.19 [16:26:17]line НДС 12% НСП 1% [16:26:17]line > о реализуемом товаре [16:26:17]line ОКРУГЛЕНИЕ: -0.19 [16:26:17]line ИТОГО: 1200.00 [16:26:17]line Внесено: 1200.00 [16:26:17]line СДАЧА: 0.00 [16:26:17]line НСП 1% : 10.62 [16:26:17]line НДС 12% : 127.45 [16:26:17]line Наличными: 1200.00 [16:26:17]line Безнал.: 0.00 [16:26:17]line Место: АЗС № 113 "Партнер Нефть" [16:26:17]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:26:17]line СНО: Общий режим [16:26:17]line Чек 137 31.10.2024 16:26 [16:26:17]line Смена: 557 ФФД: 1.0 [16:26:17]line ЗНМ: 0300000087 [16:26:17]line РНМ: 0000000000091644 [16:26:17]line Версия ККМ: 001 [16:26:17]line ФМ: 0000000000874662 [16:26:17]line ФД: 73062 [16:26:17]line ФПД: 95630534090334 [16:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162617&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73062&fm=95630534090334&tin=02508201610067®Number=0000000000091644&sum=120000 [16:26:17]written 0, free lines is 4095 [16:26:17]OFD Sender: Processing packet 73062 [packets to send 282, broken 281] [16:26:17]ProducePacketName [16:26:17]name=ofd_packets/00073062 [16:26:17]OFD Sender: To server: pG, [16:26:17]CommunicateWithHost lk.salyk.kg:30040 [16:26:17]ConnectInit lk.salyk.kg [16:26:18]Write to MH i2c: 01 00 00 6B 04 6F [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 07 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 DA 0C 5C [16:26:18]RasterBufferAndPrint [16:26:18]line [16:26:18]line [16:26:18]line [16:26:18]line [16:26:18]line [16:26:18]written 0, free lines is 3297 [16:26:18]MH_Cut [16:26:18]Write to MH i2c: D1 01 00 72 04 01 48 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: D1 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: D1 01 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: D1 01 00 72 04 00 47 [16:26:18]Write to MH i2c: 01 00 00 73 04 77 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]Connected sock=10 [16:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 63 F6 07 01 17 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A9 AF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1D 01 00 35 04 06 00 56 F9 B8 03 9E 5E FA 65 1A 3E A4 73 F8 11 [16:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4A 8A 47 00 BD A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1D 01 00 F4 03 04 00 5E 5A 23 67 B6 04 01 00 00 92 6D 98 87 21 11 F2 8C [16:26:18]CommunicateWithHost err = 0 [16:26:18]CheckOFDResponse [16:26:18]1017 (14) - 77093643461234 [16:26:18]1041 (16) - 0000000000874662 [16:26:18]1040 (4) - 73062 [16:26:18]1012 (4) - 31.10.2024 10:22 [16:26:18]1206 (1) - 0 [16:26:18]OFD Sender: Remove packet 73062 [16:26:18]ProducePacketName [16:26:18]name=ofd_packets/00073062 [16:26:18]NVStorageDeleteData [16:26:18]*** Cut start [16:26:18]*** Partial cut [16:26:18]*** CUTSNS_PIN = 1 [16:26:18]*** CUTSNS_PIN = 0 [16:26:19]*** Brake cut motor [16:26:19]OFD Sender: No OFD packet to send [16:26:19]Read from MH i2c: 01 [16:26:19]MH_I2C_Read... [16:26:19]*** Stop cut motor [16:26:19]*** Cut end [16:26:19]Read from MH i2c: 01 07 00 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [16:26:19]process_action close_receipt done [16:26:19]requested_data is exist [16:26:19]produce_requested_data [16:26:19]requested_item fm.sn is exist - process it [16:26:19]wFMCommunicate request_size=4 [16:26:19]MH_SAM_APDU [16:26:19]CAPDU: 80 11 00 00 [16:26:19]Write to MH i2c: E2 08 00 74 04 80 11 00 00 00 00 00 00 F2 [16:26:19]Write i2c OK [16:26:19]MH_I2C_Read... [16:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:19]Read from MH i2c: E2 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 17 00 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 17 00 74 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 46 [16:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:26:19]wFMCommunicate OK [16:26:19]requested_item fd.num is exist - process it [16:26:19]SAM_PROTO_GetFieldsCounters [16:26:19]wFMCommunicate request_size=4 [16:26:19]MH_SAM_APDU [16:26:19]CAPDU: 80 13 00 00 [16:26:19]Write to MH i2c: E2 08 00 75 04 80 13 00 00 00 00 00 00 F5 [16:26:19]Write i2c OK [16:26:19]MH_I2C_Read... [16:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:19]Read from MH i2c: E2 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 62 00 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 62 00 75 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 66 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [16:26:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 66 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:19]wFMCommunicate OK [16:26:19]SAM_PROTO_GetFieldsCounters done [16:26:19]requested_item shift.num is exist - process it [16:26:19]requested_item shift.opened is exist - process it [16:26:19]req_shift_opened [16:26:19]FM_GetShiftState [16:26:19]SAM_PROTO_GetShiftState [16:26:19]wFMCommunicate request_size=4 [16:26:19]MH_SAM_APDU [16:26:19]CAPDU: 80 13 01 00 [16:26:19]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [16:26:19]Write i2c OK [16:26:19]MH_I2C_Read... [16:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:19]Read from MH i2c: E2 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 0E 00 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A0 [16:26:19]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:26:19]wFMCommunicate OK [16:26:19]SAM_PROTO_GetShiftState done [16:26:19]FM_GetShiftState done [16:26:19]req_shift_opened done [16:26:19]requested_item shift.open_date is exist - process it [16:26:19]req_shift_open_date [16:26:19]req_shift_open_date done [16:26:19]produce_requested_data done [16:26:19]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73062,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:26:19]process_action_free close_receipt [16:26:19]json_value_free [16:26:19]json_value_free done [16:26:19]process_json_proto returns [16:26:19]Send response to host [16:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73062,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:26:19]free response buf [16:26:19]execute_script done [16:26:19]execute_script returns [16:26:19]free content buf [16:26:19]Sock 8.Close socket [16:26:19]Sock 8.Thread stoped [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:34]recv_with_timeout no data received [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:45]recv_with_timeout no data received [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:23]recv_with_timeout no data received [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [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 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]*** 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 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7767120+1722625140=1730392260 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 C4 B0 23 67 74 2C AD 66 B0 [16:31:00]Current date/time: 31.10.2024 16:31 [16:31:00]FM_Init [16:31:00]wFMConnect [16:31:00]MH_SAM_On [16:31:00]Write to MH i2c: E0 00 00 08 00 E7 [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:00]*** iso7816_init finished! [16:31:00]*** atr: [16:31:00]*** 0F 3B D5 18 FF 81 91 FE [16:31:00]*** 1F C3 80 73 C8 21 10 0A [16:31:00]*** 00 00 00 00 00 00 00 00 [16:31:00]*** 00 00 00 00 00 00 00 00 [16:31:00]*** 00 00 00 00 00 00 00 00 [16:31:00]*** 00 00 00 00 00 00 00 00 [16:31:00]*** 00 00 00 00 00 00 00 00 [16:31:00]*** 00 00 00 00 00 00 00 00 [16:31:00]Read from MH i2c: E0 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E0 10 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:31:00]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:31:00]wFMCommunicate request_size=10 [16:31:00]MH_SAM_APDU [16:31:00]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:31:00]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:31:02]POST find Content-Length [16:31:02]Host: 172.17.43.195:8080 [16:31:02]Content-Length: 331 [16:31:02]Content-Type: application/json [16:31:02] [16:31:02]POST finish read [16:31:02]Found Content-Length = 331 [16:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:31:02]execute_script... [16:31:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:31:02]POST & json_proto [16:31:02]process_json_proto [16:31:02]json parsed OK: [16:31:02]protocol is kg_v1.0 [16:31:02]action value=get_value [16:31:02]process_action get_value [16:31:02]cmd_get_value [16:31:02]process_action get_value done [16:31:02]requested_data is exist [16:31:02]produce_requested_data [16:31:02]requested_item fm.sale.total is exist - process it [16:31:02]SAM_PROTO_GetFMData [16:31:02]wFMCommunicate request_size=4 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 13 03 00 [16:31:02]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 FD 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 0D 19 01 00 69 04 A3 00 6F 04 04 00 1D 18 01 00 B1 04 05 00 47 C5 96 A4 01 70 04 05 00 CC 9A EE 58 01 72 04 04 00 7B 2A A8 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1C E1 AC 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D6 00 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 A4 [16:31:02]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 0D 19 01 00 69 04 A3 00 6F 04 04 00 1D 18 01 00 B1 04 05 00 47 C5 96 A4 01 70 04 05 00 CC 9A EE 58 01 72 04 04 00 7B 2A A8 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1C E1 AC 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D6 00 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [16:31:03]wFMCommunicate OK [16:31:03]wFMCommunicate request_size=4 [16:31:03]MH_SAM_APDU [16:31:03]CAPDU: 80 17 00 00 [16:31:03]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:31:03]Write i2c OK [16:31:03]MH_I2C_Read... [16:31:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:31:03]Read from MH i2c: E2 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: E2 FD 00 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [16:31:03]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [16:31:03]wFMCommunicate OK [16:31:03]wFMCommunicate request_size=4 [16:31:03]MH_SAM_APDU [16:31:03]CAPDU: 80 17 00 00 [16:31:03]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:31:03]Write i2c OK [16:31:03]MH_I2C_Read... [16:31:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:31:03]Read from MH i2c: E2 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: E2 FD 00 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [16:31:03]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [16:31:03]wFMCommunicate OK [16:31:03]wFMCommunicate request_size=4 [16:31:03]MH_SAM_APDU [16:31:03]CAPDU: 80 17 00 00 [16:31:03]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:31:03]Write i2c OK [16:31:03]MH_I2C_Read... [16:31:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:31:03]Read from MH i2c: E2 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: E2 FD 00 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [16:31:03]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [16:31:03]wFMCommunicate OK [16:31:03]wFMCommunicate request_size=4 [16:31:03]MH_SAM_APDU [16:31:03]CAPDU: 80 17 00 00 [16:31:03]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:31:03]Write i2c OK [16:31:03]MH_I2C_Read... [16:31:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [16:31:04]Read from MH i2c: E2 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 E1 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [16:31:04]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:31:04]wFMCommunicate OK [16:31:04]SAM_PROTO_GetFMData done [16:31:04]requested_item fm.sale_refund.total is exist - process it [16:31:04]requested_item fm.buy.total is exist - process it [16:31:04]requested_item shift.sale.total is exist - process it [16:31:04]SAM_PROTO_GetShiftData [16:31:04]wFMCommunicate request_size=4 [16:31:04]MH_SAM_APDU [16:31:04]CAPDU: 80 13 02 00 [16:31:04]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:31:04]Write i2c OK [16:31:04]MH_I2C_Read... [16:31:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:31:04]Read from MH i2c: E2 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 FD 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 8E 58 80 70 04 03 00 98 91 49 72 04 03 00 F6 C6 36 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C1 A1 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CE 22 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 A4 [16:31:04]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 8E 58 80 70 04 03 00 98 91 49 72 04 03 00 F6 C6 36 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C1 A1 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CE 22 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [16:31:04]wFMCommunicate OK [16:31:04]wFMCommunicate request_size=4 [16:31:04]MH_SAM_APDU [16:31:04]CAPDU: 80 17 00 00 [16:31:04]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:31:04]Write i2c OK [16:31:04]MH_I2C_Read... [16:31:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:31:04]Read from MH i2c: E2 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 FD 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [16:31:04]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [16:31:04]wFMCommunicate OK [16:31:04]wFMCommunicate request_size=4 [16:31:04]MH_SAM_APDU [16:31:04]CAPDU: 80 17 00 00 [16:31:04]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:31:04]Write i2c OK [16:31:04]MH_I2C_Read... [16:31:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:31:05]Read from MH i2c: E2 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: E2 FD 00 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [16:31:05]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [16:31:05]wFMCommunicate OK [16:31:05]wFMCommunicate request_size=4 [16:31:05]MH_SAM_APDU [16:31:05]CAPDU: 80 17 00 00 [16:31:05]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:31:05]Write i2c OK [16:31:05]MH_I2C_Read... [16:31:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:31:05]Read from MH i2c: E2 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: E2 FD 00 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [16:31:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [16:31:05]wFMCommunicate OK [16:31:05]wFMCommunicate request_size=4 [16:31:05]MH_SAM_APDU [16:31:05]CAPDU: 80 17 00 00 [16:31:05]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:31:05]Write i2c OK [16:31:05]MH_I2C_Read... [16:31:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [16:31:05]Read from MH i2c: E2 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: E2 CC 00 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [16:31:05]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:31:05]wFMCommunicate OK [16:31:05]SAM_PROTO_GetShiftData done [16:31:05]requested_item shift.sale.total_cash is exist - process it [16:31:05]requested_item shift.sale_refund.total is exist - process it [16:31:05]requested_item shift.sale_refund.total_cash is exist - process it [16:31:05]requested_item shift.buy.total is exist - process it [16:31:05]requested_item shift.buy.total_cash is exist - process it [16:31:05]produce_requested_data done [16:31:05]produce_requested_data return {"fm.sale.total":70563116.23,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":84112.78,"shift.sale.total_cash":48214.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} [16:31:05]process_action_free get_value [16:31:05]json_value_free [16:31:05]json_value_free done [16:31:05]process_json_proto returns [16:31:05]Send response to host [16:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70563116.23,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":84112.78,"shift.sale.total_cash":48214.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}}} [16:31:05]free response buf [16:31:05]execute_script done [16:31:05]execute_script returns [16:31:05]free content buf [16:31:05]Sock 8.Close socket [16:31:05]Sock 8.Thread stoped [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:22]ConnectInit Can't connect to host [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:33]recv_with_timeout no data received [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:51]recv_with_timeout no data received [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:44]accept exits with 7 [16:35:44]New connection [16:35:44]New thread 3067370852 created [16:35:44]Thread 3067227492 joined [16:35:44]Waiting for new connection... [16:35:44] Sock 7.Parse request [16:35:44]Sock 7.Check first char [16:35:44]Sock 7.First char is OK [16:35:44]request: POST /json_proto HTTP/1.0 [16:35:44]Method: POST [16:35:44]URL: /json_proto [16:35:44]Method is POST - this is cgi request [16:35:44]url: /json_proto [16:35:44]query_string will be loaded in cgi processing [16:35:44]execute_cgi json_proto POST (null) [16:35:44]execute_cgi path=json_proto method=POST [16:35:44]POST find Content-Length [16:35:44]Host: 172.17.43.195:8080 [16:35:44]Content-Length: 678 [16:35:44]Content-Type: application/json [16:35:44] [16:35:44]POST finish read [16:35:44]Found Content-Length = 678 [16:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:44]execute_script... [16:35:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:44]POST & json_proto [16:35:44]process_json_proto [16:35:44]json parsed OK: [16:35:44]protocol is kg_v1.0 [16:35:44]action value=close_receipt [16:35:44]process_action close_receipt [16:35:44]cmd_close_receipt [16:35:44]MH_GetDate [16:35:44]Write to MH i2c: F0 00 00 1D 00 0C [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: F0 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: F0 09 00 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: F0 09 00 1D 00 00 E1 B1 23 67 74 2C AD 66 E4 [16:35:44]GetLastDocTimeStamp 1730392185 [16:35:44]current date 1730392545 [16:35:44]FM_GetShiftState [16:35:44]SAM_PROTO_GetShiftState [16:35:44]wFMCommunicate request_size=4 [16:35:44]MH_SAM_APDU [16:35:44]CAPDU: 80 13 01 00 [16:35:44]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:44]Read from MH i2c: E2 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: E2 0E 00 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 44 [16:35:44]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:35:44]wFMCommunicate OK [16:35:44]SAM_PROTO_GetShiftState done [16:35:44]FM_GetShiftState done [16:35:44]opened in 1730333258 [16:35:44]opened+sec_in_day 1730419658 [16:35:44]quantity*price = 70044 [16:35:44]sum+1 = 70045 [16:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 139 31.10.2024 16:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73064 ФПД: 169193411737901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163545&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73064&fm=169193411737901&tin=02508201610067®Number=0000000000091644&sum=70000 [16:35:46]StoreToDocumentArchive [16:35:46]shift 557 fd 73064 [16:35:46]save to /storage/0557/doc_00073064 [16:35:46]save last doc name /storage/0557/doc_00073064 to /storage/kkm_last_doc_name [16:35:46]save OK [16:35:46]Clear old archive folders... [16:35:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:46]tlvbuf is 0185BA90 [16:35:46]SAM_PROTO_ClearQueue [16:35:46]wFMCommunicate request_size=4 [16:35:46]MH_SAM_APDU [16:35:46]CAPDU: 80 09 00 00 [16:35:46]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:35:46]Write i2c OK [16:35:46]MH_I2C_Read... [16:35:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:46]Read from MH i2c: E2 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 03 00 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:35:46]RAPDU: 90 00 [16:35:46]wFMCommunicate OK [16:35:46]SAM_PROTO_ClearQueue done [16:35:46]KKMCreateOFDPacket [16:35:46]OFDProtocolAddRootSTLVToBuf [16:35:46]FM_MakeSignedData [16:35:46]FM_MakeSignedData [16:35:46]SAM_PROTO_SignData [16:35:46]wFMCommunicate request_size=4 [16:35:46]MH_SAM_APDU [16:35:46]CAPDU: 80 0D 01 02 [16:35:46]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:35:46]Write i2c OK [16:35:46]MH_I2C_Read... [16:35:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:46]Read from MH i2c: E2 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 03 00 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:35:46]RAPDU: 90 00 [16:35:46]wFMCommunicate OK [16:35:46]wFMCommunicate request_size=255 [16:35:46]MH_SAM_APDU [16:35:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 E1 B1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1D 01 00 35 04 06 00 99 [16:35:46]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 E1 B1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1D 01 00 35 04 06 00 99 00 00 39 [16:35:46]Write i2c OK [16:35:46]MH_I2C_Read... [16:35:46]OFD Sender: No OFD packet to send [16:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:46]Read from MH i2c: E2 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 03 00 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:35:46]RAPDU: 90 00 [16:35:46]wFMCommunicate OK [16:35:46]wFMCommunicate request_size=10 [16:35:46]MH_SAM_APDU [16:35:46]CAPDU: 80 0D 02 02 05 E1 69 34 79 2D [16:35:46]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 E1 69 34 79 2D 00 00 D6 [16:35:46]Write i2c OK [16:35:46]MH_I2C_Read... [16:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:46]Read from MH i2c: E2 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 03 00 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:35:46]RAPDU: 90 00 [16:35:46]wFMCommunicate OK [16:35:46]wFMCommunicate request_size=4 [16:35:46]MH_SAM_APDU [16:35:46]CAPDU: 80 0D 03 02 [16:35:46]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:35:46]Write i2c OK [16:35:46]MH_I2C_Read... [16:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:46]Read from MH i2c: E2 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 0B 00 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 0B 00 2F 00 00 A3 00 57 AB 47 3C 88 23 90 00 7E [16:35:46]RAPDU: A3 00 57 AB 47 3C 88 23 90 00 [16:35:46]wFMCommunicate OK [16:35:46]SAM_PROTO_SignData done [16:35:46]FM_MakeSignedData done [16:35:46]CreateOFDProtocolMessage [16:35:46]wFMCommunicate request_size=4 [16:35:46]MH_SAM_APDU [16:35:46]CAPDU: 80 11 00 00 [16:35:46]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:35:46]Write i2c OK [16:35:46]MH_I2C_Read... [16:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:46]Read from MH i2c: E2 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 17 00 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [16:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:35:46]wFMCommunicate OK [16:35:46]CreateOFDProtocolMessage done [16:35:46]OFDSenderStorePacket 73064 [16:35:46]StoreOFDPacket docnum=73064 [16:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B8 96 07 01 03 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 E1 B1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1D 01 00 35 04 06 00 99 E1 69 34 79 2D A3 00 57 AB 47 3C 88 23 [16:35:46]CheckFolder [16:35:46]dirname=/storage/ofd_packets [16:35:46]CheckFolder done [16:35:46]ProducePacketName [16:35:46]name=ofd_packets/00073064 [16:35:46]NVStorageSaveData ofd_packets/00073064 [16:35:46]File name is /storage/ofd_packets/00073064 [16:35:46]Write 301 bytes [16:35:46]NVStorageSaveData done [16:35:46]OFDSenderStorePacket done [16:35:46]KKMCreateOFDPacket done [16:35:46]NVStorageSaveData kkm_last_timestamp [16:35:46]File name is /storage/kkm_last_timestamp [16:35:46]Write 4 bytes [16:35:46]NVStorageSaveData done [16:35:46]ExternCall_PrintAddStr [16:35:46]wPrintStart [16:35:46]Write to MH i2c: 01 00 00 31 00 31 [16:35:46]Write i2c OK [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: 01 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: 01 07 00 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:35:46]RasterBufferAndPrint [16:35:46]line Счет N : (1)952663 [16:35:46]line ИНН: 02508201610067 [16:35:46]line Контрольно-Кассовый Чек [16:35:46]line ПРОДАЖА [16:35:46]line ТРК (МРК, ГНК) : 63 [16:35:46]line Товар: 2710124130 [16:35:46]line Аи-92-К-5 [16:35:46]line 10.470 * 66.90 [16:35:46]line = 700.44 [16:35:46]line НДС 12% НСП 1% [16:35:46]line > о реализуемом товаре [16:35:46]line ОКРУГЛЕНИЕ: -0.44 [16:35:46]line ИТОГО: 700.00 [16:35:46]line Внесено: 700.00 [16:35:46]line СДАЧА: 0.00 [16:35:46]line НСП 1% : 6.20 [16:35:46]line НДС 12% : 74.38 [16:35:46]line Наличными: 700.00 [16:35:46]line Безнал.: 0.00 [16:35:46]line Место: АЗС № 113 "Партнер Нефть" [16:35:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:35:46]line СНО: Общий режим [16:35:46]line Чек 139 31.10.2024 16:35 [16:35:46]line Смена: 557 ФФД: 1.0 [16:35:46]line ЗНМ: 0300000087 [16:35:46]line РНМ: 0000000000091644 [16:35:46]line Версия ККМ: 001 [16:35:46]line ФМ: 0000000000874662 [16:35:46]line ФД: 73064 [16:35:46]line ФПД: 169193411737901 [16:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163545&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73064&fm=169193411737901&tin=02508201610067®Number=0000000000091644&sum=70000 [16:35:46]written 0, free lines is 4095 [16:35:46]OFD Sender: Processing packet 73064 [packets to send 282, broken 281] [16:35:46]ProducePacketName [16:35:46]name=ofd_packets/00073064 [16:35:46]OFD Sender: To server: pG, [16:35:46]CommunicateWithHost lk.salyk.kg:30040 [16:35:46]ConnectInit lk.salyk.kg [16:35:47]Write to MH i2c: 01 00 00 5C 00 5C [16:35:47]Write i2c OK [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: 01 [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: 01 07 00 [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 D4 0C 43 [16:35:47]RasterBufferAndPrint [16:35:47]line [16:35:47]line [16:35:47]line [16:35:47]line [16:35:47]line [16:35:47]written 0, free lines is 3292 [16:35:47]MH_Cut [16:35:47]Write to MH i2c: D1 01 00 63 00 01 35 [16:35:47]Write i2c OK [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: D1 [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: D1 01 00 [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: D1 01 00 63 00 00 34 [16:35:47]Write to MH i2c: 01 00 00 64 00 64 [16:35:47]Write i2c OK [16:35:47]MH_I2C_Read... [16:35:48]*** Cut start [16:35:48]*** Partial cut [16:35:48]*** CUTSNS_PIN = 1 [16:35:48]*** CUTSNS_PIN = 0 [16:35:48]*** Brake cut motor [16:35:48]Connected sock=9 [16:35:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B8 96 07 01 03 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 E1 B1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1D 01 00 35 04 06 00 99 E1 69 34 79 2D A3 00 57 AB 47 3C 88 23 [16:35:48]Read from MH i2c: 01 [16:35:48]MH_I2C_Read... [16:35:48]*** Stop cut motor [16:35:48]*** Cut end [16:35:48]Read from MH i2c: 01 07 00 [16:35:48]MH_I2C_Read... [16:35:48]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [16:35:48]process_action close_receipt done [16:35:48]requested_data is exist [16:35:48]produce_requested_data [16:35:48]requested_item fm.sn is exist - process it [16:35:48]wFMCommunicate request_size=4 [16:35:48]MH_SAM_APDU [16:35:48]CAPDU: 80 11 00 00 [16:35:48]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [16:35:48]Write i2c OK [16:35:48]MH_I2C_Read... [16:35:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 87 95 47 00 9A 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 34 36 36 32 10 04 04 00 68 1D 01 00 F4 03 04 00 98 5C 23 67 B6 04 01 00 00 30 12 9E 6F 30 4D C9 9E [16:35:48]CommunicateWithHost err = 0 [16:35:48]CheckOFDResponse [16:35:48]1017 (14) - 77093643461234 [16:35:48]1041 (16) - 0000000000874662 [16:35:48]1040 (4) - 73064 [16:35:48]1012 (4) - 31.10.2024 10:31 [16:35:48]1206 (1) - 0 [16:35:48]OFD Sender: Remove packet 73064 [16:35:48]ProducePacketName [16:35:48]name=ofd_packets/00073064 [16:35:48]NVStorageDeleteData [16:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:48]Read from MH i2c: E2 [16:35:48]MH_I2C_Read... [16:35:48]Read from MH i2c: E2 17 00 [16:35:48]MH_I2C_Read... [16:35:48]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [16:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:35:48]wFMCommunicate OK [16:35:48]requested_item fd.num is exist - process it [16:35:48]SAM_PROTO_GetFieldsCounters [16:35:48]wFMCommunicate request_size=4 [16:35:48]MH_SAM_APDU [16:35:48]CAPDU: 80 13 00 00 [16:35:48]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [16:35:48]Write i2c OK [16:35:48]MH_I2C_Read... [16:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:48]Read from MH i2c: E2 [16:35:48]MH_I2C_Read... [16:35:48]Read from MH i2c: E2 62 00 [16:35:48]MH_I2C_Read... [16:35:48]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 68 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [16:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 68 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:48]wFMCommunicate OK [16:35:48]SAM_PROTO_GetFieldsCounters done [16:35:48]requested_item shift.num is exist - process it [16:35:48]requested_item shift.opened is exist - process it [16:35:48]req_shift_opened [16:35:48]FM_GetShiftState [16:35:48]SAM_PROTO_GetShiftState [16:35:48]wFMCommunicate request_size=4 [16:35:48]MH_SAM_APDU [16:35:48]CAPDU: 80 13 01 00 [16:35:48]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [16:35:48]Write i2c OK [16:35:48]MH_I2C_Read... [16:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:49]Read from MH i2c: E2 [16:35:49]MH_I2C_Read... [16:35:49]Read from MH i2c: E2 0E 00 [16:35:49]MH_I2C_Read... [16:35:49]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8D [16:35:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:35:49]wFMCommunicate OK [16:35:49]SAM_PROTO_GetShiftState done [16:35:49]FM_GetShiftState done [16:35:49]req_shift_opened done [16:35:49]requested_item shift.open_date is exist - process it [16:35:49]req_shift_open_date [16:35:49]req_shift_open_date done [16:35:49]produce_requested_data done [16:35:49]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73064,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:35:49]process_action_free close_receipt [16:35:49]json_value_free [16:35:49]json_value_free done [16:35:49]process_json_proto returns [16:35:49]Send response to host [16:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73064,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:35:49]free response buf [16:35:49]execute_script done [16:35:49]execute_script returns [16:35:49]free content buf [16:35:49]Sock 7.Close socket [16:35:49]Sock 7.Thread stoped [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:05]recv_with_timeout no data received [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:45]recv_with_timeout no data received [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]recv_with_timeout no data received [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:51]accept exits with 10 [16:38:51]New connection [16:38:51]New thread 3067227492 created [16:38:51]Thread 3067370852 joined [16:38:51]Waiting for new connection... [16:38:51] Sock 10.Parse request [16:38:51]Sock 10.Check first char [16:38:51]Sock 10.First char is OK [16:38:51]request: POST /json_proto HTTP/1.0 [16:38:51]Method: POST [16:38:51]URL: /json_proto [16:38:51]Method is POST - this is cgi request [16:38:51]url: /json_proto [16:38:51]query_string will be loaded in cgi processing [16:38:51]execute_cgi json_proto POST (null) [16:38:51]execute_cgi path=json_proto method=POST [16:38:51]POST find Content-Length [16:38:51]Host: 172.17.43.195:8080 [16:38:51]Content-Length: 687 [16:38:51]Content-Type: application/json [16:38:51] [16:38:51]POST finish read [16:38:51]Found Content-Length = 687 [16:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:51]execute_script... [16:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:51]POST & json_proto [16:38:51]process_json_proto [16:38:51]json parsed OK: [16:38:51]protocol is kg_v1.0 [16:38:51]action value=close_receipt [16:38:51]process_action close_receipt [16:38:51]cmd_close_receipt [16:38:51]MH_GetDate [16:38:51]Write to MH i2c: F0 00 00 68 00 57 [16:38:51]Write i2c OK [16:38:51]MH_I2C_Read... [16:38:51]Read from MH i2c: F0 [16:38:51]MH_I2C_Read... [16:38:51]Read from MH i2c: F0 09 00 [16:38:51]MH_I2C_Read... [16:38:51]Read from MH i2c: F0 09 00 68 00 00 9C B2 23 67 74 2C AD 66 EB [16:38:51]GetLastDocTimeStamp 1730392545 [16:38:51]current date 1730392732 [16:38:51]FM_GetShiftState [16:38:51]SAM_PROTO_GetShiftState [16:38:51]wFMCommunicate request_size=4 [16:38:51]MH_SAM_APDU [16:38:51]CAPDU: 80 13 01 00 [16:38:51]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [16:38:51]Write i2c OK [16:38:51]MH_I2C_Read... [16:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:51]Read from MH i2c: E2 [16:38:51]MH_I2C_Read... [16:38:51]Read from MH i2c: E2 0E 00 [16:38:51]MH_I2C_Read... [16:38:51]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8F [16:38:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:38:51]wFMCommunicate OK [16:38:51]SAM_PROTO_GetShiftState done [16:38:51]FM_GetShiftState done [16:38:51]opened in 1730333258 [16:38:51]opened+sec_in_day 1730419658 [16:38:51]quantity*price = 100050 [16:38:51]sum+1 = 100052 [16:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 140 31.10.2024 16:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73065 ФПД: 25702397709544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163852&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73065&fm=25702397709544&tin=02508201610067®Number=0000000000091644&sum=100000 [16:38:52]StoreToDocumentArchive [16:38:52]shift 557 fd 73065 [16:38:52]save to /storage/0557/doc_00073065 [16:38:52]save last doc name /storage/0557/doc_00073065 to /storage/kkm_last_doc_name [16:38:52]save OK [16:38:52]Clear old archive folders... [16:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:38:52]tlvbuf is 01852770 [16:38:52]SAM_PROTO_ClearQueue [16:38:52]wFMCommunicate request_size=4 [16:38:52]MH_SAM_APDU [16:38:52]CAPDU: 80 09 00 00 [16:38:52]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [16:38:52]Write i2c OK [16:38:52]MH_I2C_Read... [16:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:52]Read from MH i2c: E2 [16:38:52]MH_I2C_Read... [16:38:52]Read from MH i2c: E2 03 00 [16:38:52]MH_I2C_Read... [16:38:52]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [16:38:52]RAPDU: 90 00 [16:38:52]wFMCommunicate OK [16:38:52]SAM_PROTO_ClearQueue done [16:38:52]KKMCreateOFDPacket [16:38:52]OFDProtocolAddRootSTLVToBuf [16:38:52]FM_MakeSignedData [16:38:52]FM_MakeSignedData [16:38:52]SAM_PROTO_SignData [16:38:52]wFMCommunicate request_size=4 [16:38:52]MH_SAM_APDU [16:38:52]CAPDU: 80 0D 01 02 [16:38:52]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [16:38:52]Write i2c OK [16:38:52]MH_I2C_Read... [16:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [16:38:53]RAPDU: 90 00 [16:38:53]wFMCommunicate OK [16:38:53]wFMCommunicate request_size=255 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 9C B2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1D 01 00 35 04 06 00 [16:38:53]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 9C B2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1D 01 00 35 04 06 00 00 00 77 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [16:38:53]RAPDU: 90 00 [16:38:53]wFMCommunicate OK [16:38:53]wFMCommunicate request_size=11 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 0D 02 02 06 17 60 4E 49 0C E8 [16:38:53]Write to MH i2c: E2 0E 00 79 00 80 0D 02 02 06 00 17 60 4E 49 0C E8 00 00 01 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [16:38:53]RAPDU: 90 00 [16:38:53]wFMCommunicate OK [16:38:53]wFMCommunicate request_size=4 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 0D 03 02 [16:38:53]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 0B 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 0B 00 7A 00 00 79 4D E2 CD AF D6 FC 29 90 00 15 [16:38:53]RAPDU: 79 4D E2 CD AF D6 FC 29 90 00 [16:38:53]wFMCommunicate OK [16:38:53]SAM_PROTO_SignData done [16:38:53]FM_MakeSignedData done [16:38:53]CreateOFDProtocolMessage [16:38:53]wFMCommunicate request_size=4 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 11 00 00 [16:38:53]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 17 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 49 [16:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:38:53]wFMCommunicate OK [16:38:53]CreateOFDProtocolMessage done [16:38:53]OFDSenderStorePacket 73065 [16:38:53]StoreOFDPacket docnum=73065 [16:38:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 0B 2B 08 01 E9 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 9C B2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1D 01 00 35 04 06 00 17 60 4E 49 0C E8 79 4D E2 CD AF D6 FC 29 [16:38:53]CheckFolder [16:38:53]dirname=/storage/ofd_packets [16:38:53]CheckFolder done [16:38:53]ProducePacketName [16:38:53]name=ofd_packets/00073065 [16:38:53]NVStorageSaveData ofd_packets/00073065 [16:38:53]File name is /storage/ofd_packets/00073065 [16:38:53]Write 302 bytes [16:38:53]NVStorageSaveData done [16:38:53]OFDSenderStorePacket done [16:38:53]KKMCreateOFDPacket done [16:38:53]NVStorageSaveData kkm_last_timestamp [16:38:53]File name is /storage/kkm_last_timestamp [16:38:53]Write 4 bytes [16:38:53]NVStorageSaveData done [16:38:53]ExternCall_PrintAddStr [16:38:53]wPrintStart [16:38:53]Write to MH i2c: 01 00 00 7C 00 7C [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: 01 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: 01 07 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [16:38:53]RasterBufferAndPrint [16:38:53]line Счет N : (1)952664 [16:38:53]line ИНН: 02508201610067 [16:38:53]line Контрольно-Кассовый Чек [16:38:53]line ПРОДАЖА [16:38:53]line ТРК (МРК, ГНК) : 33 [16:38:53]line Товар: 2710194210 [16:38:53]line ДТ(л)-К-5 [16:38:53]line 13.130 * 76.20 [16:38:53]line = 1000.51 [16:38:53]line НДС 12% НСП 1% [16:38:53]line > о реализуемом товаре [16:38:53]line ОКРУГЛЕНИЕ: -0.51 [16:38:53]line ИТОГО: 1000.00 [16:38:53]line Внесено: 1000.00 [16:38:53]line СДАЧА: 0.00 [16:38:53]line НСП 1% : 8.85 [16:38:53]line НДС 12% : 106.25 [16:38:53]line Наличными: 1000.00 [16:38:53]line Безнал.: 0.00 [16:38:53]line Место: АЗС № 113 "Партнер Нефть" [16:38:53]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:38:53]line СНО: Общий режим [16:38:53]line Чек 140 31.10.2024 16:38 [16:38:53]line Смена: 557 ФФД: 1.0 [16:38:53]line ЗНМ: 0300000087 [16:38:53]line РНМ: 0000000000091644 [16:38:53]line Версия ККМ: 001 [16:38:53]line ФМ: 0000000000874662 [16:38:53]line ФД: 73065 [16:38:53]line ФПД: 25702397709544 [16:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163852&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73065&fm=25702397709544&tin=02508201610067®Number=0000000000091644&sum=100000 [16:38:53]OFD Sender: Processing packet 73065 [packets to send 282, broken 281] [16:38:53]ProducePacketName [16:38:53]name=ofd_packets/00073065 [16:38:53]OFD Sender: To server: pG, [16:38:53]CommunicateWithHost lk.salyk.kg:30040 [16:38:53]ConnectInit lk.salyk.kg [16:38:53]written 0, free lines is 4095 [16:38:54]Write to MH i2c: 01 00 00 A7 00 A7 [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 07 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 CD 0C 87 [16:38:54]RasterBufferAndPrint [16:38:54]line [16:38:54]line [16:38:54]line [16:38:54]line [16:38:54]line [16:38:54]written 0, free lines is 3283 [16:38:54]MH_Cut [16:38:54]Write to MH i2c: D1 01 00 AE 00 01 80 [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: D1 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: D1 01 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: D1 01 00 AE 00 00 7F [16:38:54]Write to MH i2c: 01 00 00 AF 00 AF [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]recv_with_timeout no data received [16:38:54]*** Cut start [16:38:54]*** Partial cut [16:38:54]*** CUTSNS_PIN = 1 [16:38:55]*** CUTSNS_PIN = 0 [16:38:55]*** Brake cut motor [16:38:55]Read from MH i2c: 01 [16:38:55]MH_I2C_Read... [16:38:55]*** Stop cut motor [16:38:55]*** Cut end [16:38:55]Read from MH i2c: 01 07 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [16:38:55]process_action close_receipt done [16:38:55]requested_data is exist [16:38:55]produce_requested_data [16:38:55]requested_item fm.sn is exist - process it [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 11 00 00 [16:38:55]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 17 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7E [16:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:38:55]wFMCommunicate OK [16:38:55]requested_item fd.num is exist - process it [16:38:55]SAM_PROTO_GetFieldsCounters [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 13 00 00 [16:38:55]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 62 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 69 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [16:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 69 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:55]wFMCommunicate OK [16:38:55]SAM_PROTO_GetFieldsCounters done [16:38:55]requested_item shift.num is exist - process it [16:38:55]requested_item shift.opened is exist - process it [16:38:55]req_shift_opened [16:38:55]FM_GetShiftState [16:38:55]SAM_PROTO_GetShiftState [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 13 01 00 [16:38:55]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 0E 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D8 [16:38:55]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:38:55]wFMCommunicate OK [16:38:55]SAM_PROTO_GetShiftState done [16:38:55]FM_GetShiftState done [16:38:55]req_shift_opened done [16:38:55]requested_item shift.open_date is exist - process it [16:38:55]req_shift_open_date [16:38:55]req_shift_open_date done [16:38:55]produce_requested_data done [16:38:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73065,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:38:55]process_action_free close_receipt [16:38:55]json_value_free [16:38:55]json_value_free done [16:38:55]process_json_proto returns [16:38:55]Send response to host [16:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73065,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:38:55]free response buf [16:38:55]execute_script done [16:38:55]execute_script returns [16:38:55]free content buf [16:38:55]Sock 10.Close socket [16:38:55]Sock 10.Thread stoped [16:38:56]Connected sock=11 [16:38:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 0B 2B 08 01 E9 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 9C B2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1D 01 00 35 04 06 00 17 60 4E 49 0C E8 79 4D E2 CD AF D6 FC 29 [16:38:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 69 74 47 00 D0 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1D 01 00 F4 03 04 00 54 5D 23 67 B6 04 01 00 00 59 30 D4 05 60 EB 47 C1 [16:38:57]CommunicateWithHost err = 0 [16:38:57]CheckOFDResponse [16:38:57]1017 (14) - 77093643461234 [16:38:57]1041 (16) - 0000000000874662 [16:38:57]1040 (4) - 73065 [16:38:57]1012 (4) - 31.10.2024 10:35 [16:38:57]1206 (1) - 0 [16:38:57]OFD Sender: Remove packet 73065 [16:38:57]ProducePacketName [16:38:57]name=ofd_packets/00073065 [16:38:57]NVStorageDeleteData [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:05]recv_with_timeout no data received [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:16]recv_with_timeout no data received [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:28]recv_with_timeout no data received [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:26]recv_with_timeout no data received [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:05]recv_with_timeout no data received [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:36]recv_with_timeout no data received [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16: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:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:41]accept exits with 9 [16:47:41]New connection [16:47:41]New thread 3067370852 created [16:47:41]Thread 3067227492 joined [16:47:41]Waiting for new connection... [16:47:41] Sock 9.Parse request [16:47:41]Sock 9.Check first char [16:47:41]Sock 9.First char is OK [16:47:41]request: POST /json_proto HTTP/1.0 [16:47:41]Method: POST [16:47:41]URL: /json_proto [16:47:41]Method is POST - this is cgi request [16:47:41]url: /json_proto [16:47:41]query_string will be loaded in cgi processing [16:47:41]execute_cgi json_proto POST (null) [16:47:41]execute_cgi path=json_proto method=POST [16:47:41]POST find Content-Length [16:47:41]Host: 172.17.43.195:8080 [16:47:41]Content-Length: 804 [16:47:41]Content-Type: application/json [16:47:41] [16:47:41]POST finish read [16:47:41]Found Content-Length = 804 [16:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4547969-971", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:41]execute_script... [16:47:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4547969-971", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:41]POST & json_proto [16:47:41]process_json_proto [16:47:41]json parsed OK: [16:47:41]protocol is kg_v1.0 [16:47:41]action value=close_receipt [16:47:41]process_action close_receipt [16:47:41]cmd_close_receipt [16:47:41]MH_GetDate [16:47:41]Write to MH i2c: F0 00 00 B3 00 A2 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: F0 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: F0 09 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: F0 09 00 B3 00 00 AE B4 23 67 74 2C AD 66 4A [16:47:41]GetLastDocTimeStamp 1730392732 [16:47:41]current date 1730393262 [16:47:41]FM_GetShiftState [16:47:41]SAM_PROTO_GetShiftState [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 13 01 00 [16:47:41]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 0E 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 DA [16:47:41]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:47:41]wFMCommunicate OK [16:47:41]SAM_PROTO_GetShiftState done [16:47:41]FM_GetShiftState done [16:47:41]opened in 1730333258 [16:47:41]opened+sec_in_day 1730419658 [16:47:41]quantity*price = 0 [16:47:41]sum+1 = 1 [16:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 141 31.10.2024 16:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4547969-971 ФМ: 0000000000874662 ФД: 73066 ФПД: 218196520173823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T164742&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73066&fm=218196520173823&tin=02508201610067®Number=0000000000091644&sum=0 [16:47:42]StoreToDocumentArchive [16:47:42]shift 557 fd 73066 [16:47:42]save to /storage/0557/doc_00073066 [16:47:42]save last doc name /storage/0557/doc_00073066 to /storage/kkm_last_doc_name [16:47:42]save OK [16:47:42]Clear old archive folders... [16:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:42]tlvbuf is 018481A0 [16:47:42]SAM_PROTO_ClearQueue [16:47:42]wFMCommunicate request_size=4 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 09 00 00 [16:47:42]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [16:47:42]RAPDU: 90 00 [16:47:42]wFMCommunicate OK [16:47:42]SAM_PROTO_ClearQueue done [16:47:42]KKMCreateOFDPacket [16:47:42]OFDProtocolAddRootSTLVToBuf [16:47:42]FM_MakeSignedData [16:47:42]FM_MakeSignedData [16:47:42]SAM_PROTO_SignData [16:47:42]wFMCommunicate request_size=4 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 0D 01 02 [16:47:42]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [16:47:42]RAPDU: 90 00 [16:47:42]wFMCommunicate OK [16:47:42]wFMCommunicate request_size=255 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AE B4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1D 01 00 35 04 06 00 C6 [16:47:42]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AE B4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1D 01 00 35 04 06 00 C6 00 00 E0 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [16:47:42]RAPDU: 90 00 [16:47:42]wFMCommunicate OK [16:47:42]wFMCommunicate request_size=10 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 0D 02 02 05 72 D6 13 80 FF [16:47:42]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 72 D6 13 80 FF 00 00 22 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [16:47:42]RAPDU: 90 00 [16:47:42]wFMCommunicate OK [16:47:42]wFMCommunicate request_size=4 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 0D 03 02 [16:47:42]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 0B 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 0B 00 C5 00 00 95 95 FD 75 C3 DF 96 53 90 00 68 [16:47:42]RAPDU: 95 95 FD 75 C3 DF 96 53 90 00 [16:47:42]wFMCommunicate OK [16:47:42]SAM_PROTO_SignData done [16:47:42]FM_MakeSignedData done [16:47:42]CreateOFDProtocolMessage [16:47:42]wFMCommunicate request_size=4 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 11 00 00 [16:47:42]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 17 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 94 [16:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:47:42]wFMCommunicate OK [16:47:42]CreateOFDProtocolMessage done [16:47:42]OFDSenderStorePacket 73066 [16:47:42]StoreOFDPacket docnum=73066 [16:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7C BC 07 01 AC 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AE B4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1D 01 00 35 04 06 00 C6 72 D6 13 80 FF 95 95 FD 75 C3 DF 96 53 [16:47:42]CheckFolder [16:47:42]dirname=/storage/ofd_packets [16:47:42]CheckFolder done [16:47:42]ProducePacketName [16:47:42]name=ofd_packets/00073066 [16:47:42]NVStorageSaveData ofd_packets/00073066 [16:47:42]File name is /storage/ofd_packets/00073066 [16:47:42]Write 301 bytes [16:47:42]NVStorageSaveData done [16:47:42]OFDSenderStorePacket done [16:47:42]KKMCreateOFDPacket done [16:47:42]NVStorageSaveData kkm_last_timestamp [16:47:42]File name is /storage/kkm_last_timestamp [16:47:42]Write 4 bytes [16:47:42]NVStorageSaveData done [16:47:42]ExternCall_PrintAddStr [16:47:42]wPrintStart [16:47:42]Write to MH i2c: 01 00 00 C7 00 C7 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [16:47:42]RasterBufferAndPrint [16:47:42]line Счет N : (1)952665 [16:47:42]line ИНН: 02508201610067 [16:47:42]line Контрольно-Кассовый Чек [16:47:42]line ПРОДАЖА [16:47:42]line ТРК (МРК, ГНК) : 53 [16:47:42]line Товар: 2710124130 [16:47:42]line Аи-92-К-5 [16:47:42]line 30.000 * 0.00 [16:47:42]line = 0.00 [16:47:42]line НДС 12% НСП 1% [16:47:42]line > о реализуемом товаре [16:47:42]line ИТОГО: 0.00 [16:47:42]line НСП 1% : 0.00 [16:47:42]line НДС 12% : 0.00 [16:47:42]line Наличными: 0.00 [16:47:42]line Безнал.: 0.00 [16:47:42]line Место: АЗС № 113 "Партнер Нефть" [16:47:42]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:47:42]line СНО: Общий режим [16:47:42]line Чек 141 31.10.2024 16:47 [16:47:42]line Смена: 557 ФФД: 1.0 [16:47:42]line ЗНМ: 0300000087 [16:47:42]line РНМ: 0000000000091644 [16:47:42]line Версия ККМ: 001 [16:47:42]line Талоны: Топливные Талоны [16:47:42]line 4547969-971 [16:47:42]line ФМ: 0000000000874662 [16:47:42]line ФД: 73066 [16:47:42]line ФПД: 218196520173823 [16:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T164742&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73066&fm=218196520173823&tin=02508201610067®Number=0000000000091644&sum=0 [16:47:42]written 0, free lines is 4095 [16:47:42]OFD Sender: Processing packet 73066 [packets to send 282, broken 281] [16:47:42]ProducePacketName [16:47:42]name=ofd_packets/00073066 [16:47:42]OFD Sender: To server: pG, [16:47:42]CommunicateWithHost lk.salyk.kg:30040 [16:47:42]ConnectInit lk.salyk.kg [16:47:43]Write to MH i2c: 01 00 00 F1 00 F1 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 07 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 E4 0C E8 [16:47:43]RasterBufferAndPrint [16:47:43]line [16:47:43]line [16:47:43]line [16:47:43]line [16:47:43]line [16:47:43]written 0, free lines is 3306 [16:47:43]MH_Cut [16:47:43]Write to MH i2c: D1 01 00 F8 00 01 CA [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: D1 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: D1 01 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: D1 01 00 F8 00 00 C9 [16:47:43]Write to MH i2c: 01 00 00 F9 00 F9 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]Connected sock=8 [16:47:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7C BC 07 01 AC 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AE B4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1D 01 00 35 04 06 00 C6 72 D6 13 80 FF 95 95 FD 75 C3 DF 96 53 [16:47:44]*** Cut start [16:47:44]*** Partial cut [16:47:44]*** CUTSNS_PIN = 1 [16:47:44]*** CUTSNS_PIN = 0 [16:47:44]*** Brake cut motor [16:47:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 57 16 47 00 A7 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 34 36 36 32 10 04 04 00 6A 1D 01 00 F4 03 04 00 63 5F 23 67 B6 04 01 00 00 46 97 23 0F 09 EC B4 A1 [16:47:44]CommunicateWithHost err = 0 [16:47:44]CheckOFDResponse [16:47:44]1017 (14) - 77093643461234 [16:47:44]1041 (16) - 0000000000874662 [16:47:44]1040 (4) - 73066 [16:47:44]1012 (4) - 31.10.2024 10:43 [16:47:44]1206 (1) - 0 [16:47:44]OFD Sender: Remove packet 73066 [16:47:44]ProducePacketName [16:47:44]name=ofd_packets/00073066 [16:47:44]NVStorageDeleteData [16:47:44]Read from MH i2c: 01 [16:47:44]MH_I2C_Read... [16:47:44]*** Stop cut motor [16:47:44]*** Cut end [16:47:44]Read from MH i2c: 01 07 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [16:47:44]process_action close_receipt done [16:47:44]requested_data is exist [16:47:44]produce_requested_data [16:47:44]requested_item fm.sn is exist - process it [16:47:44]wFMCommunicate request_size=4 [16:47:44]MH_SAM_APDU [16:47:44]CAPDU: 80 11 00 00 [16:47:44]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:44]Read from MH i2c: E2 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 17 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C8 [16:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:47:44]wFMCommunicate OK [16:47:44]requested_item fd.num is exist - process it [16:47:44]SAM_PROTO_GetFieldsCounters [16:47:44]wFMCommunicate request_size=4 [16:47:44]MH_SAM_APDU [16:47:44]CAPDU: 80 13 00 00 [16:47:44]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:44]Read from MH i2c: E2 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 62 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [16:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:44]wFMCommunicate OK [16:47:44]SAM_PROTO_GetFieldsCounters done [16:47:44]requested_item shift.num is exist - process it [16:47:44]requested_item shift.opened is exist - process it [16:47:44]req_shift_opened [16:47:44]FM_GetShiftState [16:47:44]SAM_PROTO_GetShiftState [16:47:44]wFMCommunicate request_size=4 [16:47:44]MH_SAM_APDU [16:47:44]CAPDU: 80 13 01 00 [16:47:44]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]OFD Sender: No OFD packet to send [16:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:44]Read from MH i2c: E2 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 0E 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 22 [16:47:44]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:47:44]wFMCommunicate OK [16:47:44]SAM_PROTO_GetShiftState done [16:47:44]FM_GetShiftState done [16:47:44]req_shift_opened done [16:47:44]requested_item shift.open_date is exist - process it [16:47:44]req_shift_open_date [16:47:44]req_shift_open_date done [16:47:44]produce_requested_data done [16:47:44]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73066,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:47:44]process_action_free close_receipt [16:47:44]json_value_free [16:47:44]json_value_free done [16:47:44]process_json_proto returns [16:47:44]Send response to host [16:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73066,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:47:44]free response buf [16:47:44]execute_script done [16:47:44]execute_script returns [16:47:44]free content buf [16:47:44]Sock 9.Close socket [16:47:44]Sock 9.Thread stoped [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:36]recv_with_timeout no data received [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:47]recv_with_timeout no data received [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:20]accept exits with 10 [16:49:20]New connection [16:49:20]New thread 3067227492 created [16:49:20]Thread 3067370852 joined [16:49:20]Waiting for new connection... [16:49:20] Sock 10.Parse request [16:49:20]Sock 10.Check first char [16:49:20]Sock 10.First char is OK [16:49:20]request: POST /json_proto HTTP/1.0 [16:49:20]Method: POST [16:49:20]URL: /json_proto [16:49:20]Method is POST - this is cgi request [16:49:20]url: /json_proto [16:49:20]query_string will be loaded in cgi processing [16:49:20]execute_cgi json_proto POST (null) [16:49:20]execute_cgi path=json_proto method=POST [16:49:20]POST find Content-Length [16:49:20]Host: 172.17.43.195:8080 [16:49:20]Content-Length: 663 [16:49:20]Content-Type: application/json [16:49:20] [16:49:20]POST finish read [16:49:20]Found Content-Length = 663 [16:49:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 15.360, "sum" : 1050.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:20]execute_script... [16:49:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 15.360, "sum" : 1050.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:20]POST & json_proto [16:49:20]process_json_proto [16:49:20]json parsed OK: [16:49:20]protocol is kg_v1.0 [16:49:20]action value=close_receipt [16:49:20]process_action close_receipt [16:49:20]cmd_close_receipt [16:49:20]MH_GetDate [16:49:20]Write to MH i2c: F0 00 00 FD 00 EC [16:49:20]Write i2c OK [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: F0 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: F0 09 00 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: F0 09 00 FD 00 00 11 B5 23 67 74 2C AD 66 F8 [16:49:20]GetLastDocTimeStamp 1730393262 [16:49:20]current date 1730393361 [16:49:20]FM_GetShiftState [16:49:20]SAM_PROTO_GetShiftState [16:49:20]wFMCommunicate request_size=4 [16:49:20]MH_SAM_APDU [16:49:20]CAPDU: 80 13 01 00 [16:49:20]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [16:49:20]Write i2c OK [16:49:20]MH_I2C_Read... [16:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:20]Read from MH i2c: E2 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: E2 0E 00 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 24 [16:49:20]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:49:20]wFMCommunicate OK [16:49:20]SAM_PROTO_GetShiftState done [16:49:20]FM_GetShiftState done [16:49:20]opened in 1730333258 [16:49:20]opened+sec_in_day 1730419658 [16:49:20]quantity*price = 105062 [16:49:20]sum+1 = 105063 [16:49:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.30 НДС 12% : 111.57 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 142 31.10.2024 16:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73067 ФПД: 161112047151277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T164921&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73067&fm=161112047151277&tin=02508201610067®Number=0000000000091644&sum=105000 [16:49:21]StoreToDocumentArchive [16:49:21]shift 557 fd 73067 [16:49:21]save to /storage/0557/doc_00073067 [16:49:21]save last doc name /storage/0557/doc_00073067 to /storage/kkm_last_doc_name [16:49:21]save OK [16:49:21]Clear old archive folders... [16:49:21]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:49:21]tlvbuf is 01876B00 [16:49:21]SAM_PROTO_ClearQueue [16:49:21]wFMCommunicate request_size=4 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 09 00 00 [16:49:21]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [16:49:21]RAPDU: 90 00 [16:49:21]wFMCommunicate OK [16:49:21]SAM_PROTO_ClearQueue done [16:49:21]KKMCreateOFDPacket [16:49:21]OFDProtocolAddRootSTLVToBuf [16:49:21]FM_MakeSignedData [16:49:21]FM_MakeSignedData [16:49:21]SAM_PROTO_SignData [16:49:21]wFMCommunicate request_size=4 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 0D 01 02 [16:49:21]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [16:49:21]RAPDU: 90 00 [16:49:21]wFMCommunicate OK [16:49:21]wFMCommunicate request_size=253 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1D 01 00 35 04 06 00 92 87 D2 56 E8 AD [16:49:21]Write to MH i2c: E2 00 01 0D 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1D 01 00 35 04 06 00 92 87 D2 56 E8 AD 00 00 5F [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:22]Read from MH i2c: E2 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: E2 03 00 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [16:49:22]RAPDU: 90 00 [16:49:22]wFMCommunicate OK [16:49:22]wFMCommunicate request_size=4 [16:49:22]MH_SAM_APDU [16:49:22]CAPDU: 80 0D 03 02 [16:49:22]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [16:49:22]Write i2c OK [16:49:22]MH_I2C_Read... [16:49:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:22]Read from MH i2c: E2 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: E2 0B 00 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: E2 0B 00 0E 01 00 AD E8 BE B1 8E AB 08 47 90 00 17 [16:49:22]RAPDU: AD E8 BE B1 8E AB 08 47 90 00 [16:49:22]wFMCommunicate OK [16:49:22]SAM_PROTO_SignData done [16:49:22]FM_MakeSignedData done [16:49:22]CreateOFDProtocolMessage [16:49:22]wFMCommunicate request_size=4 [16:49:22]MH_SAM_APDU [16:49:22]CAPDU: 80 11 00 00 [16:49:22]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [16:49:22]Write i2c OK [16:49:22]MH_I2C_Read... [16:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:22]Read from MH i2c: E2 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: E2 17 00 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [16:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:49:22]wFMCommunicate OK [16:49:22]CreateOFDProtocolMessage done [16:49:22]OFDSenderStorePacket 73067 [16:49:22]StoreOFDPacket docnum=73067 [16:49:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 C4 99 00 01 62 E0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1D 01 00 35 04 06 00 92 87 D2 56 E8 AD AD E8 BE B1 8E AB 08 47 [16:49:22]CheckFolder [16:49:22]dirname=/storage/ofd_packets [16:49:22]CheckFolder done [16:49:22]ProducePacketName [16:49:22]name=ofd_packets/00073067 [16:49:22]NVStorageSaveData ofd_packets/00073067 [16:49:22]File name is /storage/ofd_packets/00073067 [16:49:22]Write 294 bytes [16:49:22]NVStorageSaveData done [16:49:22]OFDSenderStorePacket done [16:49:22]KKMCreateOFDPacket done [16:49:22]NVStorageSaveData kkm_last_timestamp [16:49:22]File name is /storage/kkm_last_timestamp [16:49:22]Write 4 bytes [16:49:22]NVStorageSaveData done [16:49:22]ExternCall_PrintAddStr [16:49:22]wPrintStart [16:49:22]Write to MH i2c: 01 00 00 10 01 11 [16:49:22]Write i2c OK [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: 01 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: 01 07 00 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [16:49:22]RasterBufferAndPrint [16:49:22]line Счет N : (1)952666 [16:49:22]line ИНН: 02508201610067 [16:49:22]line Контрольно-Кассовый Чек [16:49:22]line ПРОДАЖА [16:49:22]line ТРК (МРК, ГНК) : 61 [16:49:22]line Товар: 50.50.0 [16:49:22]line Super 92 [16:49:22]line 15.360 * 68.40 [16:49:22]line = 1050.62 [16:49:22]line НДС 12% НСП 1% [16:49:22]line > о реализуемом товаре [16:49:22]line ОКРУГЛЕНИЕ: -0.62 [16:49:22]line ИТОГО: 1050.00 [16:49:22]line Внесено: 1050.00 [16:49:22]line СДАЧА: 0.00 [16:49:22]line НСП 1% : 9.30 [16:49:22]line НДС 12% : 111.57 [16:49:22]line Наличными: 1050.00 [16:49:22]line Безнал.: 0.00 [16:49:22]line Место: АЗС № 113 "Партнер Нефть" [16:49:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:49:22]line СНО: Общий режим [16:49:22]line Чек 142 31.10.2024 16:49 [16:49:22]line Смена: 557 ФФД: 1.0 [16:49:22]line ЗНМ: 0300000087 [16:49:22]line РНМ: 0000000000091644 [16:49:22]line Версия ККМ: 001 [16:49:22]line ФМ: 0000000000874662 [16:49:22]line ФД: 73067 [16:49:22]line ФПД: 161112047151277 [16:49:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T164921&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73067&fm=161112047151277&tin=02508201610067®Number=0000000000091644&sum=105000 [16:49:22]OFD Sender: Processing packet 73067 [packets to send 282, broken 281] [16:49:22]ProducePacketName [16:49:22]name=ofd_packets/00073067 [16:49:22]OFD Sender: To server: pG, [16:49:22]CommunicateWithHost lk.salyk.kg:30040 [16:49:22]ConnectInit lk.salyk.kg [16:49:22]written 0, free lines is 4095 [16:49:23]Write to MH i2c: 01 00 00 3B 01 3C [16:49:23]Write i2c OK [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: 01 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: 01 07 00 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 DE 0C 2D [16:49:23]RasterBufferAndPrint [16:49:23]line [16:49:23]line [16:49:23]line [16:49:23]line [16:49:23]line [16:49:23]written 0, free lines is 3300 [16:49:23]MH_Cut [16:49:23]Write to MH i2c: D1 01 00 42 01 01 15 [16:49:23]Write i2c OK [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: D1 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: D1 01 00 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: D1 01 00 42 01 00 14 [16:49:23]Write to MH i2c: 01 00 00 43 01 44 [16:49:23]Write i2c OK [16:49:23]MH_I2C_Read... [16:49:23]*** Cut start [16:49:23]*** Partial cut [16:49:23]*** CUTSNS_PIN = 1 [16:49:23]*** CUTSNS_PIN = 0 [16:49:24]*** Brake cut motor [16:49:24]Connected sock=9 [16:49:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 C4 99 00 01 62 E0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1D 01 00 35 04 06 00 92 87 D2 56 E8 AD AD E8 BE B1 8E AB 08 47 [16:49:24]Read from MH i2c: 01 [16:49:24]MH_I2C_Read... [16:49:24]*** Stop cut motor [16:49:24]*** Cut end [16:49:24]Read from MH i2c: 01 07 00 [16:49:24]MH_I2C_Read... [16:49:24]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [16:49:24]process_action close_receipt done [16:49:24]requested_data is exist [16:49:24]produce_requested_data [16:49:24]requested_item fm.sn is exist - process it [16:49:24]wFMCommunicate request_size=4 [16:49:24]MH_SAM_APDU [16:49:24]CAPDU: 80 11 00 00 [16:49:24]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [16:49:24]Write i2c OK [16:49:24]MH_I2C_Read... [16:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:24]Read from MH i2c: E2 [16:49:24]MH_I2C_Read... [16:49:24]Read from MH i2c: E2 17 00 [16:49:24]MH_I2C_Read... [16:49:24]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 13 [16:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:49:24]wFMCommunicate OK [16:49:24]requested_item fd.num is exist - process it [16:49:24]SAM_PROTO_GetFieldsCounters [16:49:24]wFMCommunicate request_size=4 [16:49:24]MH_SAM_APDU [16:49:24]CAPDU: 80 13 00 00 [16:49:24]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [16:49:24]Write i2c OK [16:49:24]MH_I2C_Read... [16:49:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:24]Read from MH i2c: E2 [16:49:24]MH_I2C_Read... [16:49:24]Read from MH i2c: E2 62 00 [16:49:24]MH_I2C_Read... [16:49:24]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:49:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:24]wFMCommunicate OK [16:49:24]SAM_PROTO_GetFieldsCounters done [16:49:24]requested_item shift.num is exist - process it [16:49:24]requested_item shift.opened is exist - process it [16:49:24]req_shift_opened [16:49:24]FM_GetShiftState [16:49:24]SAM_PROTO_GetShiftState [16:49:24]wFMCommunicate request_size=4 [16:49:24]MH_SAM_APDU [16:49:24]CAPDU: 80 13 01 00 [16:49:24]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [16:49:24]Write i2c OK [16:49:24]MH_I2C_Read... [16:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:24]Read from MH i2c: E2 [16:49:24]MH_I2C_Read... [16:49:24]Read from MH i2c: E2 0E 00 [16:49:24]MH_I2C_Read... [16:49:24]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6D [16:49:24]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:49:24]wFMCommunicate OK [16:49:24]SAM_PROTO_GetShiftState done [16:49:24]FM_GetShiftState done [16:49:24]req_shift_opened done [16:49:24]requested_item shift.open_date is exist - process it [16:49:24]req_shift_open_date [16:49:24]req_shift_open_date done [16:49:24]produce_requested_data done [16:49:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73067,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:49:24]process_action_free close_receipt [16:49:24]json_value_free [16:49:24]json_value_free done [16:49:24]process_json_proto returns [16:49:24]Send response to host [16:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73067,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:49:24]free response buf [16:49:24]execute_script done [16:49:24]execute_script returns [16:49:24]free content buf [16:49:24]Sock 10.Close socket [16:49:24]Sock 10.Thread stoped [16:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 00 09 47 00 87 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 34 36 36 32 10 04 04 00 6B 1D 01 00 F4 03 04 00 C8 5F 23 67 B6 04 01 00 00 21 B1 D4 C3 96 A9 EB B8 [16:49:25]CommunicateWithHost err = 0 [16:49:25]CheckOFDResponse [16:49:25]1017 (14) - 77093643461234 [16:49:25]1041 (16) - 0000000000874662 [16:49:25]1040 (4) - 73067 [16:49:25]1012 (4) - 31.10.2024 10:45 [16:49:25]1206 (1) - 0 [16:49:25]OFD Sender: Remove packet 73067 [16:49:25]ProducePacketName [16:49:25]name=ofd_packets/00073067 [16:49:25]NVStorageDeleteData [16:49:25]OFD Sender: No OFD packet to send [16:49:30]recv_with_timeout no data received [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:04]recv_with_timeout no data received [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:19]accept exits with 8 [16:50:19]New connection [16:50:19]New thread 3067370852 created [16:50:19]Thread 3067227492 joined [16:50:19]Waiting for new connection... [16:50:19] Sock 8.Parse request [16:50:19]Sock 8.Check first char [16:50:19]Sock 8.First char is OK [16:50:19]request: POST /json_proto HTTP/1.0 [16:50:19]Method: POST [16:50:19]URL: /json_proto [16:50:19]Method is POST - this is cgi request [16:50:19]url: /json_proto [16:50:19]query_string will be loaded in cgi processing [16:50:19]execute_cgi json_proto POST (null) [16:50:19]execute_cgi path=json_proto method=POST [16:50:19]POST find Content-Length [16:50:19]Host: 172.17.43.195:8080 [16:50:19]Content-Length: 677 [16:50:19]Content-Type: application/json [16:50:19] [16:50:19]POST finish read [16:50:19]Found Content-Length = 677 [16:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:19]execute_script... [16:50: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)952667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:19]POST & json_proto [16:50:19]process_json_proto [16:50:19]json parsed OK: [16:50:19]protocol is kg_v1.0 [16:50:19]action value=close_receipt [16:50:19]process_action close_receipt [16:50:19]cmd_close_receipt [16:50:19]MH_GetDate [16:50:19]Write to MH i2c: F0 00 00 47 01 37 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: F0 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: F0 09 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: F0 09 00 47 01 00 4C B5 23 67 74 2C AD 66 7E [16:50:19]GetLastDocTimeStamp 1730393361 [16:50:19]current date 1730393420 [16:50:19]FM_GetShiftState [16:50:19]SAM_PROTO_GetShiftState [16:50:19]wFMCommunicate request_size=4 [16:50:19]MH_SAM_APDU [16:50:19]CAPDU: 80 13 01 00 [16:50:19]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:19]Read from MH i2c: E2 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6F [16:50:19]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:50:19]wFMCommunicate OK [16:50:19]SAM_PROTO_GetShiftState done [16:50:19]FM_GetShiftState done [16:50:19]opened in 1730333258 [16:50:19]opened+sec_in_day 1730419658 [16:50:19]quantity*price = 60009 [16:50:19]sum+1 = 60010 [16:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 143 31.10.2024 16:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73068 ФПД: 267055415892573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T165020&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73068&fm=267055415892573&tin=02508201610067®Number=0000000000091644&sum=60000 [16:50:20]StoreToDocumentArchive [16:50:20]shift 557 fd 73068 [16:50:20]save to /storage/0557/doc_00073068 [16:50:20]save last doc name /storage/0557/doc_00073068 to /storage/kkm_last_doc_name [16:50:20]save OK [16:50:20]Clear old archive folders... [16:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:20]tlvbuf is 0188C7A0 [16:50:20]SAM_PROTO_ClearQueue [16:50:20]wFMCommunicate request_size=4 [16:50:20]MH_SAM_APDU [16:50:20]CAPDU: 80 09 00 00 [16:50:20]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:20]Read from MH i2c: E2 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [16:50:20]RAPDU: 90 00 [16:50:20]wFMCommunicate OK [16:50:20]SAM_PROTO_ClearQueue done [16:50:20]KKMCreateOFDPacket [16:50:20]OFDProtocolAddRootSTLVToBuf [16:50:20]FM_MakeSignedData [16:50:20]FM_MakeSignedData [16:50:20]SAM_PROTO_SignData [16:50:20]wFMCommunicate request_size=4 [16:50:20]MH_SAM_APDU [16:50:20]CAPDU: 80 0D 01 02 [16:50:20]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:20]Read from MH i2c: E2 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [16:50:20]RAPDU: 90 00 [16:50:20]wFMCommunicate OK [16:50:20]wFMCommunicate request_size=255 [16:50:20]MH_SAM_APDU [16:50: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4C B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1D 01 00 35 04 06 00 F2 [16:50:20]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4C B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1D 01 00 35 04 06 00 F2 00 00 01 [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [16:50:21]RAPDU: 90 00 [16:50:21]wFMCommunicate OK [16:50:21]wFMCommunicate request_size=10 [16:50:21]MH_SAM_APDU [16:50:21]CAPDU: 80 0D 02 02 05 E2 AF 33 1A 5D [16:50:21]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 E2 AF 33 1A 5D 00 00 18 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [16:50:21]RAPDU: 90 00 [16:50:21]wFMCommunicate OK [16:50:21]wFMCommunicate request_size=4 [16:50:21]MH_SAM_APDU [16:50:21]CAPDU: 80 0D 03 02 [16:50:21]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 0B 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 0B 00 59 01 00 2A D9 7B 25 C1 A0 71 51 90 00 9C [16:50:21]RAPDU: 2A D9 7B 25 C1 A0 71 51 90 00 [16:50:21]wFMCommunicate OK [16:50:21]SAM_PROTO_SignData done [16:50:21]FM_MakeSignedData done [16:50:21]CreateOFDProtocolMessage [16:50:21]wFMCommunicate request_size=4 [16:50:21]MH_SAM_APDU [16:50:21]CAPDU: 80 11 00 00 [16:50:21]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 17 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 29 [16:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:50:21]wFMCommunicate OK [16:50:21]CreateOFDProtocolMessage done [16:50:21]OFDSenderStorePacket 73068 [16:50:21]StoreOFDPacket docnum=73068 [16:50:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 95 E2 07 01 00 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4C B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1D 01 00 35 04 06 00 F2 E2 AF 33 1A 5D 2A D9 7B 25 C1 A0 71 51 [16:50:21]CheckFolder [16:50:21]dirname=/storage/ofd_packets [16:50:21]CheckFolder done [16:50:21]ProducePacketName [16:50:21]name=ofd_packets/00073068 [16:50:21]NVStorageSaveData ofd_packets/00073068 [16:50:21]File name is /storage/ofd_packets/00073068 [16:50:21]Write 301 bytes [16:50:21]NVStorageSaveData done [16:50:21]OFDSenderStorePacket done [16:50:21]KKMCreateOFDPacket done [16:50:21]NVStorageSaveData kkm_last_timestamp [16:50:21]File name is /storage/kkm_last_timestamp [16:50:21]Write 4 bytes [16:50:21]NVStorageSaveData done [16:50:21]ExternCall_PrintAddStr [16:50:21]wPrintStart [16:50:21]Write to MH i2c: 01 00 00 5B 01 5C [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: 01 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: 01 07 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [16:50:21]RasterBufferAndPrint [16:50:21]line Счет N : (1)952667 [16:50:21]line ИНН: 02508201610067 [16:50:21]line Контрольно-Кассовый Чек [16:50:21]line ПРОДАЖА [16:50:21]line ТРК (МРК, ГНК) : 53 [16:50:21]line Товар: 2710124130 [16:50:21]line Аи-92-К-5 [16:50:21]line 8.970 * 66.90 [16:50:21]line = 600.09 [16:50:21]line НДС 12% НСП 1% [16:50:21]line > о реализуемом товаре [16:50:21]line ОКРУГЛЕНИЕ: -0.09 [16:50:21]line ИТОГО: 600.00 [16:50:21]line Внесено: 600.00 [16:50:21]line СДАЧА: 0.00 [16:50:21]line НСП 1% : 5.31 [16:50:21]line НДС 12% : 63.73 [16:50:21]line Наличными: 600.00 [16:50:21]line Безнал.: 0.00 [16:50:21]line Место: АЗС № 113 "Партнер Нефть" [16:50:21]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:50:21]line СНО: Общий режим [16:50:21]line Чек 143 31.10.2024 16:50 [16:50:21]line Смена: 557 ФФД: 1.0 [16:50:21]line ЗНМ: 0300000087 [16:50:21]line РНМ: 0000000000091644 [16:50:21]line Версия ККМ: 001 [16:50:21]line ФМ: 0000000000874662 [16:50:21]line ФД: 73068 [16:50:21]line ФПД: 267055415892573 [16:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T165020&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73068&fm=267055415892573&tin=02508201610067®Number=0000000000091644&sum=60000 [16:50:21]written 0, free lines is 4095 [16:50:21]OFD Sender: Processing packet 73068 [packets to send 282, broken 281] [16:50:21]ProducePacketName [16:50:21]name=ofd_packets/00073068 [16:50:21]OFD Sender: To server: pG, [16:50:21]CommunicateWithHost lk.salyk.kg:30040 [16:50:21]ConnectInit lk.salyk.kg [16:50:21]Write to MH i2c: 01 00 00 86 01 87 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: 01 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: 01 07 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 D8 0C 72 [16:50:21]RasterBufferAndPrint [16:50:21]line [16:50:21]line [16:50:21]line [16:50:21]line [16:50:21]line [16:50:21]written 0, free lines is 3295 [16:50:21]MH_Cut [16:50:21]Write to MH i2c: D1 01 00 8D 01 01 60 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: D1 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: D1 01 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: D1 01 00 8D 01 00 5F [16:50:21]Write to MH i2c: 01 00 00 8E 01 8F [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:22]*** Cut start [16:50:22]*** Partial cut [16:50:22]*** CUTSNS_PIN = 1 [16:50:22]*** CUTSNS_PIN = 0 [16:50:22]*** Brake cut motor [16:50:23]Read from MH i2c: 01 [16:50:23]MH_I2C_Read... [16:50:23]*** Stop cut motor [16:50:23]*** Cut end [16:50:23]Read from MH i2c: 01 07 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [16:50:23]process_action close_receipt done [16:50:23]requested_data is exist [16:50:23]produce_requested_data [16:50:23]requested_item fm.sn is exist - process it [16:50:23]wFMCommunicate request_size=4 [16:50:23]MH_SAM_APDU [16:50:23]CAPDU: 80 11 00 00 [16:50:23]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [16:50:23]Write i2c OK [16:50:23]MH_I2C_Read... [16:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:23]Read from MH i2c: E2 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 17 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5E [16:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:50:23]wFMCommunicate OK [16:50:23]requested_item fd.num is exist - process it [16:50:23]SAM_PROTO_GetFieldsCounters [16:50:23]wFMCommunicate request_size=4 [16:50:23]MH_SAM_APDU [16:50:23]CAPDU: 80 13 00 00 [16:50:23]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [16:50:23]Write i2c OK [16:50:23]MH_I2C_Read... [16:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:23]Read from MH i2c: E2 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 62 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [16:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:23]wFMCommunicate OK [16:50:23]SAM_PROTO_GetFieldsCounters done [16:50:23]requested_item shift.num is exist - process it [16:50:23]requested_item shift.opened is exist - process it [16:50:23]req_shift_opened [16:50:23]FM_GetShiftState [16:50:23]SAM_PROTO_GetShiftState [16:50:23]wFMCommunicate request_size=4 [16:50:23]MH_SAM_APDU [16:50:23]CAPDU: 80 13 01 00 [16:50:23]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [16:50:23]Write i2c OK [16:50:23]MH_I2C_Read... [16:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:23]Read from MH i2c: E2 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 0E 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B8 [16:50:23]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:50:23]wFMCommunicate OK [16:50:23]SAM_PROTO_GetShiftState done [16:50:23]FM_GetShiftState done [16:50:23]req_shift_opened done [16:50:23]requested_item shift.open_date is exist - process it [16:50:23]req_shift_open_date [16:50:23]req_shift_open_date done [16:50:23]produce_requested_data done [16:50:23]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73068,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:50:23]process_action_free close_receipt [16:50:23]json_value_free [16:50:23]json_value_free done [16:50:23]process_json_proto returns [16:50:23]Send response to host [16:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73068,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:50:23]free response buf [16:50:23]execute_script done [16:50:23]execute_script returns [16:50:23]free content buf [16:50:23]Sock 8.Close socket [16:50:23]Sock 8.Thread stoped [16:50:24]Connected sock=10 [16:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 95 E2 07 01 00 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4C B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1D 01 00 35 04 06 00 F2 E2 AF 33 1A 5D 2A D9 7B 25 C1 A0 71 51 [16:50:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F1 A8 47 00 FA AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1D 01 00 F4 03 04 00 08 60 23 67 B6 04 01 00 00 68 3A 3B 24 92 00 03 88 [16:50:28]CommunicateWithHost err = 0 [16:50:28]CheckOFDResponse [16:50:28]1017 (14) - 77093643461234 [16:50:28]1041 (16) - 0000000000874662 [16:50:28]1040 (4) - 73068 [16:50:28]1012 (4) - 31.10.2024 10:46 [16:50:28]1206 (1) - 0 [16:50:28]OFD Sender: Remove packet 73068 [16:50:28]ProducePacketName [16:50:28]name=ofd_packets/00073068 [16:50:28]NVStorageDeleteData [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:49]recv_with_timeout no data received [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]recv_with_timeout no data received [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:15]recv_with_timeout no data received [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:26]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:00]accept exits with 9 [16:56:00]New connection [16:56:00]New thread 3067227492 created [16:56:00]Thread 3067370852 joined [16:56:00]Waiting for new connection... [16:56:00] Sock 9.Parse request [16:56:00]Sock 9.Check first char [16:56:00]Sock 9.First char is OK [16:56:00]request: POST /json_proto HTTP/1.0 [16:56:00]Method: POST [16:56:00]URL: /json_proto [16:56:00]Method is POST - this is cgi request [16:56:00]url: /json_proto [16:56:00]query_string will be loaded in cgi processing [16:56:00]execute_cgi json_proto POST (null) [16:56:00]execute_cgi path=json_proto method=POST [16:56:00]POST find Content-Length [16:56:00]Host: 172.17.43.195:8080 [16:56:00]Content-Length: 808 [16:56:00]Content-Type: application/json [16:56:00] [16:56:00]POST finish read [16:56:00]Found Content-Length = 808 [16:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:00]execute_script... [16:56: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)952668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:00]POST & json_proto [16:56:00]process_json_proto [16:56:00]json parsed OK: [16:56:00]protocol is kg_v1.0 [16:56:00]action value=close_receipt [16:56:00]process_action close_receipt [16:56:00]cmd_close_receipt [16:56:00]MH_GetDate [16:56:00]Write to MH i2c: F0 00 00 92 01 82 [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: F0 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: F0 09 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: F0 09 00 92 01 00 A1 B6 23 67 74 2C AD 66 1F [16:56:00]GetLastDocTimeStamp 1730393420 [16:56:00]current date 1730393761 [16:56:00]FM_GetShiftState [16:56:00]SAM_PROTO_GetShiftState [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 13 01 00 [16:56:00]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:00]Read from MH i2c: E2 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 0E 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 BA [16:56:00]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:56:00]wFMCommunicate OK [16:56:00]SAM_PROTO_GetShiftState done [16:56:00]FM_GetShiftState done [16:56:00]opened in 1730333258 [16:56:00]opened+sec_in_day 1730419658 [16:56:00]quantity*price = 200025 [16:56:00]sum+1 = 200026 [16:56:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 144 31.10.2024 16:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73069 ФПД: 150115837748800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T165601&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73069&fm=150115837748800&tin=02508201610067®Number=0000000000091644&sum=200025 [16:56:01]StoreToDocumentArchive [16:56:01]shift 557 fd 73069 [16:56:01]save to /storage/0557/doc_00073069 [16:56:01]save last doc name /storage/0557/doc_00073069 to /storage/kkm_last_doc_name [16:56:01]save OK [16:56:01]Clear old archive folders... [16:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:56:01]tlvbuf is 01848330 [16:56:01]SAM_PROTO_ClearQueue [16:56:01]wFMCommunicate request_size=4 [16:56:01]MH_SAM_APDU [16:56:01]CAPDU: 80 09 00 00 [16:56:01]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:01]Read from MH i2c: E2 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [16:56:01]RAPDU: 90 00 [16:56:01]wFMCommunicate OK [16:56:01]SAM_PROTO_ClearQueue done [16:56:01]KKMCreateOFDPacket [16:56:01]OFDProtocolAddRootSTLVToBuf [16:56:01]FM_MakeSignedData [16:56:01]FM_MakeSignedData [16:56:01]SAM_PROTO_SignData [16:56:01]wFMCommunicate request_size=4 [16:56:01]MH_SAM_APDU [16:56:01]CAPDU: 80 0D 01 02 [16:56:01]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:01]Read from MH i2c: E2 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [16:56:01]RAPDU: 90 00 [16:56:01]wFMCommunicate OK [16:56:01]wFMCommunicate request_size=255 [16:56:01]MH_SAM_APDU [16:56:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A1 B6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1D 01 00 35 04 06 00 [16:56:01]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A1 B6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1D 01 00 35 04 06 00 00 00 D3 [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:02]Read from MH i2c: E2 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 03 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [16:56:02]RAPDU: 90 00 [16:56:02]wFMCommunicate OK [16:56:02]wFMCommunicate request_size=11 [16:56:02]MH_SAM_APDU [16:56:02]CAPDU: 80 0D 02 02 06 88 87 91 2F 26 40 [16:56:02]Write to MH i2c: E2 0E 00 A3 01 80 0D 02 02 06 00 88 87 91 2F 26 40 00 00 5F [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:02]Read from MH i2c: E2 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 03 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [16:56:02]RAPDU: 90 00 [16:56:02]wFMCommunicate OK [16:56:02]wFMCommunicate request_size=4 [16:56:02]MH_SAM_APDU [16:56:02]CAPDU: 80 0D 03 02 [16:56:02]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:02]Read from MH i2c: E2 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 0B 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 0B 00 A4 01 00 C6 B3 6A B7 5E F7 90 CB 90 00 6B [16:56:02]RAPDU: C6 B3 6A B7 5E F7 90 CB 90 00 [16:56:02]wFMCommunicate OK [16:56:02]SAM_PROTO_SignData done [16:56:02]FM_MakeSignedData done [16:56:02]CreateOFDProtocolMessage [16:56:02]wFMCommunicate request_size=4 [16:56:02]MH_SAM_APDU [16:56:02]CAPDU: 80 11 00 00 [16:56:02]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:02]Read from MH i2c: E2 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 17 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 74 [16:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:56:02]wFMCommunicate OK [16:56:02]CreateOFDProtocolMessage done [16:56:02]OFDSenderStorePacket 73069 [16:56:02]StoreOFDPacket docnum=73069 [16:56:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 D2 10 08 01 0D 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A1 B6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1D 01 00 35 04 06 00 88 87 91 2F 26 40 C6 B3 6A B7 5E F7 90 CB [16:56:02]CheckFolder [16:56:02]dirname=/storage/ofd_packets [16:56:02]CheckFolder done [16:56:02]ProducePacketName [16:56:02]name=ofd_packets/00073069 [16:56:02]NVStorageSaveData ofd_packets/00073069 [16:56:02]File name is /storage/ofd_packets/00073069 [16:56:02]Write 302 bytes [16:56:02]NVStorageSaveData done [16:56:02]OFDSenderStorePacket done [16:56:02]KKMCreateOFDPacket done [16:56:02]NVStorageSaveData kkm_last_timestamp [16:56:02]File name is /storage/kkm_last_timestamp [16:56:02]Write 4 bytes [16:56:02]NVStorageSaveData done [16:56:02]ExternCall_PrintAddStr [16:56:02]wPrintStart [16:56:02]Write to MH i2c: 01 00 00 A6 01 A7 [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 07 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [16:56:02]RasterBufferAndPrint [16:56:02]line Счет N : (1)952668 [16:56:02]line ИНН: 02508201610067 [16:56:02]line Контрольно-Кассовый Чек [16:56:02]line ПРОДАЖА [16:56:02]line ТРК (МРК, ГНК) : 22 [16:56:02]line Товар: 2710194210 [16:56:02]line ДТ(л)-К-5 [16:56:02]line 26.250 * 76.20 [16:56:02]line = 2000.25 [16:56:02]line НДС 12% НСП 1% [16:56:02]line > о реализуемом товаре [16:56:02]line ИТОГО: 2000.25 [16:56:02]line НСП 1% : 17.70 [16:56:02]line НДС 12% : 212.42 [16:56:02]line Наличными: 0.00 [16:56:02]line Безнал.: 2000.25 [16:56:02]line Место: АЗС № 113 "Партнер Нефть" [16:56:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:56:02]line СНО: Общий режим [16:56:02]line Чек 144 31.10.2024 16:56 [16:56:02]line Смена: 557 ФФД: 1.0 [16:56:02]line ЗНМ: 0300000087 [16:56:02]line РНМ: 0000000000091644 [16:56:02]line Версия ККМ: 001 [16:56:02]line Платежная система: O! деньги [16:56:02]line ФМ: 0000000000874662 [16:56:02]line ФД: 73069 [16:56:02]line ФПД: 150115837748800 [16:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T165601&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73069&fm=150115837748800&tin=02508201610067®Number=0000000000091644&sum=200025 [16:56:02]written 0, free lines is 4095 [16:56:02]OFD Sender: Processing packet 73069 [packets to send 282, broken 281] [16:56:02]ProducePacketName [16:56:02]name=ofd_packets/00073069 [16:56:02]OFD Sender: To server: pG, [16:56:02]CommunicateWithHost lk.salyk.kg:30040 [16:56:02]ConnectInit lk.salyk.kg [16:56:02]Write to MH i2c: 01 00 00 D0 01 D1 [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 07 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 EF 0C D3 [16:56:02]RasterBufferAndPrint [16:56:02]line [16:56:02]line [16:56:02]line [16:56:02]line [16:56:02]line [16:56:02]written 0, free lines is 3317 [16:56:02]MH_Cut [16:56:02]Write to MH i2c: D1 01 00 D7 01 01 AA [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: D1 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: D1 01 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: D1 01 00 D7 01 00 A9 [16:56:02]Write to MH i2c: 01 00 00 D8 01 D9 [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:03]*** Cut start [16:56:03]*** Partial cut [16:56:03]*** CUTSNS_PIN = 1 [16:56:03]*** CUTSNS_PIN = 0 [16:56:03]*** Brake cut motor [16:56:04]Read from MH i2c: 01 [16:56:04]MH_I2C_Read... [16:56:04]*** Stop cut motor [16:56:04]*** Cut end [16:56:04]Read from MH i2c: 01 07 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [16:56:04]process_action close_receipt done [16:56:04]requested_data is exist [16:56:04]produce_requested_data [16:56:04]requested_item fm.sn is exist - process it [16:56:04]wFMCommunicate request_size=4 [16:56:04]MH_SAM_APDU [16:56:04]CAPDU: 80 11 00 00 [16:56:04]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:04]Read from MH i2c: E2 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 17 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A8 [16:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:56:04]wFMCommunicate OK [16:56:04]requested_item fd.num is exist - process it [16:56:04]SAM_PROTO_GetFieldsCounters [16:56:04]wFMCommunicate request_size=4 [16:56:04]MH_SAM_APDU [16:56:04]CAPDU: 80 13 00 00 [16:56:04]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:04]Read from MH i2c: E2 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 62 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 62 00 DA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:04]wFMCommunicate OK [16:56:04]SAM_PROTO_GetFieldsCounters done [16:56:04]requested_item shift.num is exist - process it [16:56:04]requested_item shift.opened is exist - process it [16:56:04]req_shift_opened [16:56:04]FM_GetShiftState [16:56:04]SAM_PROTO_GetShiftState [16:56:04]wFMCommunicate request_size=4 [16:56:04]MH_SAM_APDU [16:56:04]CAPDU: 80 13 01 00 [16:56:04]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:04]Read from MH i2c: E2 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 0E 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 02 [16:56:04]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:56:04]wFMCommunicate OK [16:56:04]SAM_PROTO_GetShiftState done [16:56:04]FM_GetShiftState done [16:56:04]req_shift_opened done [16:56:04]requested_item shift.open_date is exist - process it [16:56:04]req_shift_open_date [16:56:04]req_shift_open_date done [16:56:04]produce_requested_data done [16:56:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73069,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [16:56:04]process_action_free close_receipt [16:56:04]json_value_free [16:56:04]json_value_free done [16:56:04]process_json_proto returns [16:56:04]Send response to host [16:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73069,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [16:56:04]free response buf [16:56:04]execute_script done [16:56:04]execute_script returns [16:56:04]free content buf [16:56:04]Sock 9.Close socket [16:56:04]Sock 9.Thread stoped [16:56:06]Connected sock=11 [16:56:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 D2 10 08 01 0D 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A1 B6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1D 01 00 35 04 06 00 88 87 91 2F 26 40 C6 B3 6A B7 5E F7 90 CB [16:56:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 29 2A 47 00 A9 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1D 01 00 F4 03 04 00 5B 61 23 67 B6 04 01 00 00 BF 76 45 7F 35 32 92 2E [16:56:08]CommunicateWithHost err = 0 [16:56:08]CheckOFDResponse [16:56:08]1017 (14) - 77093643461234 [16:56:08]1041 (16) - 0000000000874662 [16:56:08]1040 (4) - 73069 [16:56:08]1012 (4) - 31.10.2024 10:52 [16:56:08]1206 (1) - 0 [16:56:08]OFD Sender: Remove packet 73069 [16:56:08]ProducePacketName [16:56:08]name=ofd_packets/00073069 [16:56:08]NVStorageDeleteData [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:14]accept exits with 10 [16:56:14]New connection [16:56:14]New thread 3067370852 created [16:56:14]Thread 3067227492 joined [16:56:14]Waiting for new connection... [16:56:14] Sock 10.Parse request [16:56:14]Sock 10.Check first char [16:56:14]Sock 10.First char is OK [16:56:14]request: POST /json_proto HTTP/1.0 [16:56:14]Method: POST [16:56:14]URL: /json_proto [16:56:14]Method is POST - this is cgi request [16:56:14]url: /json_proto [16:56:14]query_string will be loaded in cgi processing [16:56:14]execute_cgi json_proto POST (null) [16:56:14]execute_cgi path=json_proto method=POST [16:56:14]POST find Content-Length [16:56:14]Host: 172.17.43.195:8080 [16:56:14]Content-Length: 791 [16:56:14]Content-Type: application/json [16:56:14] [16:56:14]POST finish read [16:56:14]Found Content-Length = 791 [16:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 4.120, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:14]execute_script... [16:56: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)952669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 4.120, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:14]POST & json_proto [16:56:14]process_json_proto [16:56:14]json parsed OK: [16:56:14]protocol is kg_v1.0 [16:56:14]action value=close_receipt [16:56:14]process_action close_receipt [16:56:14]cmd_close_receipt [16:56:14]MH_GetDate [16:56:14]Write to MH i2c: F0 00 00 DC 01 CC [16:56:14]Write i2c OK [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: F0 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: F0 09 00 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: F0 09 00 DC 01 00 AF B6 23 67 74 2C AD 66 77 [16:56:14]GetLastDocTimeStamp 1730393761 [16:56:14]current date 1730393775 [16:56:14]FM_GetShiftState [16:56:14]SAM_PROTO_GetShiftState [16:56:14]wFMCommunicate request_size=4 [16:56:14]MH_SAM_APDU [16:56:14]CAPDU: 80 13 01 00 [16:56:14]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [16:56:14]Write i2c OK [16:56:14]MH_I2C_Read... [16:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:14]Read from MH i2c: E2 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: E2 0E 00 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 04 [16:56:14]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [16:56:14]wFMCommunicate OK [16:56:14]SAM_PROTO_GetShiftState done [16:56:14]FM_GetShiftState done [16:56:14]opened in 1730333258 [16:56:14]opened+sec_in_day 1730419658 [16:56:14]quantity*price = 0 [16:56:14]sum+1 = 1 [16:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 145 31.10.2024 16:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73070 ФПД: 86976893366968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T165615&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73070&fm=86976893366968&tin=02508201610067®Number=0000000000091644&sum=0 [16:56:15]StoreToDocumentArchive [16:56:15]shift 557 fd 73070 [16:56:15]save to /storage/0557/doc_00073070 [16:56:15]save last doc name /storage/0557/doc_00073070 to /storage/kkm_last_doc_name [16:56:15]save OK [16:56:15]Clear old archive folders... [16:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:15]tlvbuf is 01886A70 [16:56:15]SAM_PROTO_ClearQueue [16:56:15]wFMCommunicate request_size=4 [16:56:15]MH_SAM_APDU [16:56:15]CAPDU: 80 09 00 00 [16:56:15]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [16:56:15]Write i2c OK [16:56:15]MH_I2C_Read... [16:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:15]Read from MH i2c: E2 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: E2 03 00 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [16:56:15]RAPDU: 90 00 [16:56:15]wFMCommunicate OK [16:56:15]SAM_PROTO_ClearQueue done [16:56:15]KKMCreateOFDPacket [16:56:15]OFDProtocolAddRootSTLVToBuf [16:56:15]FM_MakeSignedData [16:56:15]FM_MakeSignedData [16:56:15]SAM_PROTO_SignData [16:56:15]wFMCommunicate request_size=4 [16:56:15]MH_SAM_APDU [16:56:15]CAPDU: 80 0D 01 02 [16:56:15]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [16:56:15]Write i2c OK [16:56:15]MH_I2C_Read... [16:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=255 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 AF B6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1D 01 00 35 04 06 00 4F [16:56:16]Write to MH i2c: E2 02 01 EC 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 AF B6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1D 01 00 35 04 06 00 4F 00 00 21 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=10 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 02 02 05 1A E2 D5 32 B8 [16:56:16]Write to MH i2c: E2 0D 00 ED 01 80 0D 02 02 05 00 1A E2 D5 32 B8 00 00 2D [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 03 02 [16:56:16]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 0B 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 0B 00 EE 01 00 C4 83 DF 6E 8A 44 D7 D2 90 00 76 [16:56:16]RAPDU: C4 83 DF 6E 8A 44 D7 D2 90 00 [16:56:16]wFMCommunicate OK [16:56:16]SAM_PROTO_SignData done [16:56:16]FM_MakeSignedData done [16:56:16]CreateOFDProtocolMessage [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 11 00 00 [16:56:16]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 17 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [16:58:11]ConnectInit Can't connect to host [16:58:13]OFD Sender: Processing packet 73071 [packets to send 282, broken 281] [16:58:13]ProducePacketName [16:58:13]name=ofd_packets/00073071 [16:58:13]OFD Sender: To server: pG, [16:58:13]CommunicateWithHost lk.salyk.kg:30040 [16:58:13]ConnectInit lk.salyk.kg [16:58:16]Connected sock=8 [16:58:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8F F8 07 01 02 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 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 C6 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 D8 B6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1D 01 00 35 04 06 00 EA 26 E7 8E A6 64 9D C2 50 A5 E8 89 15 C6 [16:58:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FD 73 47 00 5F A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1D 01 00 F4 03 04 00 DC 61 23 67 B6 04 01 00 00 1F 4F FB B8 28 F7 42 97 [16:58:16]CommunicateWithHost err = 0 [16:58:16]CheckOFDResponse [16:58:16]1017 (14) - 77093643461234 [16:58:16]1041 (16) - 0000000000874662 [16:58:16]1040 (4) - 73071 [16:58:16]1012 (4) - 31.10.2024 10:54 [16:58:16]1206 (1) - 0 [16:58:16]OFD Sender: Remove packet 73071 [16:58:16]ProducePacketName [16:58:16]name=ofd_packets/00073071 [16:58:16]NVStorageDeleteData [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:00:57]recv_with_timeout no data received [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]recv_with_timeout no data received [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:19]recv_with_timeout no data received [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:48]recv_with_timeout no data received [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [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:29]recv_with_timeout no data received [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:57]recv_with_timeout no data received [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:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:07]recv_with_timeout no data received [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:55]accept exits with 10 [17:08:55]New connection [17:08:55]New thread 3067370852 created [17:08:55]Thread 3067227492 joined [17:08:55]Waiting for new connection... [17:08:55] Sock 10.Parse request [17:08:55]Sock 10.Check first char [17:08:55]Sock 10.First char is OK [17:08:55]request: POST /json_proto HTTP/1.0 [17:08:55]Method: POST [17:08:55]URL: /json_proto [17:08:55]Method is POST - this is cgi request [17:08:55]url: /json_proto [17:08:55]query_string will be loaded in cgi processing [17:08:55]execute_cgi json_proto POST (null) [17:08:55]execute_cgi path=json_proto method=POST [17:08:55]POST find Content-Length [17:08:55]Host: 172.17.43.195:8080 [17:08:55]Content-Length: 682 [17:08:55]Content-Type: application/json [17:08:55] [17:08:55]POST finish read [17:08:55]Found Content-Length = 682 [17:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 24.670, "sum" : 1830.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1830.00, "total" : 1830.00, "payments": [ { "type": 0, "sum" : 1830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:55]execute_script... [17:08: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)952671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 24.670, "sum" : 1830.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1830.00, "total" : 1830.00, "payments": [ { "type": 0, "sum" : 1830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:55]POST & json_proto [17:08:55]process_json_proto [17:08:55]json parsed OK: [17:08:55]protocol is kg_v1.0 [17:08:55]action value=close_receipt [17:08:55]process_action close_receipt [17:08:55]cmd_close_receipt [17:08:55]MH_GetDate [17:08:55]Write to MH i2c: F0 00 00 6F 02 60 [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: F0 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: F0 09 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: F0 09 00 6F 02 00 A8 B9 23 67 74 2C AD 66 07 [17:08:55]GetLastDocTimeStamp 1730393816 [17:08:55]current date 1730394536 [17:08:55]FM_GetShiftState [17:08:55]SAM_PROTO_GetShiftState [17:08:55]wFMCommunicate request_size=4 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 13 01 00 [17:08:55]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:55]Read from MH i2c: E2 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 0E 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 98 [17:08:55]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:08:55]wFMCommunicate OK [17:08:55]SAM_PROTO_GetShiftState done [17:08:55]FM_GetShiftState done [17:08:55]opened in 1730333258 [17:08:55]opened+sec_in_day 1730419658 [17:08:55]quantity*price = 183051 [17:08:55]sum+1 = 183052 [17:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1830.00 Внесено: 1830.00 СДАЧА: 0.00 НСП 1% : 16.20 НДС 12% : 194.39 Наличными: 1830.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 147 31.10.2024 17:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73072 ФПД: 138011502147302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170856&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73072&fm=138011502147302&tin=02508201610067®Number=0000000000091644&sum=183000 [17:08:57]StoreToDocumentArchive [17:08:57]shift 557 fd 73072 [17:08:57]save to /storage/0557/doc_00073072 [17:08:57]save last doc name /storage/0557/doc_00073072 to /storage/kkm_last_doc_name [17:08:57]save OK [17:08:57]Clear old archive folders... [17:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:57]tlvbuf is 01892BA0 [17:08:57]SAM_PROTO_ClearQueue [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 09 00 00 [17:08:57]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 03 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [17:08:57]RAPDU: 90 00 [17:08:57]wFMCommunicate OK [17:08:57]SAM_PROTO_ClearQueue done [17:08:57]KKMCreateOFDPacket [17:08:57]OFDProtocolAddRootSTLVToBuf [17:08:57]FM_MakeSignedData [17:08:57]FM_MakeSignedData [17:08:57]SAM_PROTO_SignData [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 0D 01 02 [17:08:57]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 03 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [17:08:57]RAPDU: 90 00 [17:08:57]wFMCommunicate OK [17:08:57]wFMCommunicate request_size=255 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 60 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 0B CB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 4B 00 00 00 00 07 04 06 00 D8 CA 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 A8 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1D 01 00 35 04 06 00 7D [17:08:57]Write to MH i2c: E2 02 01 7F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 60 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 0B CB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 4B 00 00 00 00 07 04 06 00 D8 CA 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 A8 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1D 01 00 35 04 06 00 7D 00 00 47 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 03 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [17:08:57]RAPDU: 90 00 [17:08:57]wFMCommunicate OK [17:08:57]wFMCommunicate request_size=10 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 0D 02 02 05 85 4E 8F 76 E6 [17:08:57]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 85 4E 8F 76 E6 00 00 C4 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 03 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [17:08:57]RAPDU: 90 00 [17:08:57]wFMCommunicate OK [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 0D 03 02 [17:08:57]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 0B 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 0B 00 81 02 00 18 11 7E 52 73 E7 DB 31 90 00 5E [17:08:57]RAPDU: 18 11 7E 52 73 E7 DB 31 90 00 [17:08:57]wFMCommunicate OK [17:08:57]SAM_PROTO_SignData done [17:08:57]FM_MakeSignedData done [17:08:57]CreateOFDProtocolMessage [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 11 00 00 [17:08:57]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 17 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [17:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:08:57]wFMCommunicate OK [17:08:57]CreateOFDProtocolMessage done [17:08:57]OFDSenderStorePacket 73072 [17:08:57]StoreOFDPacket docnum=73072 [17:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 14 ED 07 01 F8 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 60 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 0B CB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 4B 00 00 00 00 07 04 06 00 D8 CA 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 A8 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1D 01 00 35 04 06 00 7D 85 4E 8F 76 E6 18 11 7E 52 73 E7 DB 31 [17:08:57]CheckFolder [17:08:57]dirname=/storage/ofd_packets [17:08:57]CheckFolder done [17:08:57]ProducePacketName [17:08:57]name=ofd_packets/00073072 [17:08:57]NVStorageSaveData ofd_packets/00073072 [17:08:57]File name is /storage/ofd_packets/00073072 [17:08:57]Write 301 bytes [17:08:57]NVStorageSaveData done [17:08:57]OFDSenderStorePacket done [17:08:57]KKMCreateOFDPacket done [17:08:57]NVStorageSaveData kkm_last_timestamp [17:08:57]File name is /storage/kkm_last_timestamp [17:08:57]Write 4 bytes [17:08:57]NVStorageSaveData done [17:08:57]ExternCall_PrintAddStr [17:08:57]wPrintStart [17:08:57]Write to MH i2c: 01 00 00 83 02 85 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: 01 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: 01 07 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [17:08:57]RasterBufferAndPrint [17:08:57]line Счет N : (1)952671 [17:08:57]line ИНН: 02508201610067 [17:08:57]line Контрольно-Кассовый Чек [17:08:57]line ПРОДАЖА [17:08:57]line ТРК (МРК, ГНК) : 62 [17:08:57]line Товар: 2710124500 [17:08:57]line Аи-95-К-3 [17:08:57]line 24.670 * 74.20 [17:08:57]line = 1830.51 [17:08:57]line НДС 12% НСП 1% [17:08:57]line > о реализуемом товаре [17:08:57]line ОКРУГЛЕНИЕ: -0.51 [17:08:57]line ИТОГО: 1830.00 [17:08:57]line Внесено: 1830.00 [17:08:57]line СДАЧА: 0.00 [17:08:57]line НСП 1% : 16.20 [17:08:57]line НДС 12% : 194.39 [17:08:57]line Наличными: 1830.00 [17:08:57]line Безнал.: 0.00 [17:08:57]line Место: АЗС № 113 "Партнер Нефть" [17:08:57]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:08:57]line СНО: Общий режим [17:08:57]line Чек 147 31.10.2024 17:08 [17:08:57]line Смена: 557 ФФД: 1.0 [17:08:57]line ЗНМ: 0300000087 [17:08:57]line РНМ: 0000000000091644 [17:08:57]line Версия ККМ: 001 [17:08:57]line ФМ: 0000000000874662 [17:08:57]line ФД: 73072 [17:08:57]line ФПД: 138011502147302 [17:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170856&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73072&fm=138011502147302&tin=02508201610067®Number=0000000000091644&sum=183000 [17:08:57]OFD Sender: Processing packet 73072 [packets to send 282, broken 281] [17:08:57]ProducePacketName [17:08:57]name=ofd_packets/00073072 [17:08:57]OFD Sender: To server: pG, [17:08:57]CommunicateWithHost lk.salyk.kg:30040 [17:08:57]ConnectInit lk.salyk.kg [17:08:57]written 0, free lines is 4095 [17:08:58]Write to MH i2c: 01 00 00 AE 02 B0 [17:08:58]Write i2c OK [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: 01 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: 01 07 00 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 E2 0C A5 [17:08:58]RasterBufferAndPrint [17:08:58]line [17:08:58]line [17:08:58]line [17:08:58]line [17:08:58]line [17:08:58]written 0, free lines is 3304 [17:08:58]MH_Cut [17:08:58]Write to MH i2c: D1 01 00 B5 02 01 89 [17:08:58]Write i2c OK [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: D1 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: D1 01 00 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: D1 01 00 B5 02 00 88 [17:08:58]Write to MH i2c: 01 00 00 B6 02 B8 [17:08:58]Write i2c OK [17:08:58]MH_I2C_Read... [17:08:59]recv_with_timeout no data received [17:08:59]*** Cut start [17:08:59]*** Partial cut [17:08:59]*** CUTSNS_PIN = 1 [17:08:59]*** CUTSNS_PIN = 0 [17:08:59]*** Brake cut motor [17:08:59]Read from MH i2c: 01 [17:08:59]MH_I2C_Read... [17:08:59]*** Stop cut motor [17:08:59]*** Cut end [17:08:59]Read from MH i2c: 01 07 00 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [17:08:59]process_action close_receipt done [17:08:59]requested_data is exist [17:08:59]produce_requested_data [17:08:59]requested_item fm.sn is exist - process it [17:08:59]wFMCommunicate request_size=4 [17:08:59]MH_SAM_APDU [17:08:59]CAPDU: 80 11 00 00 [17:08:59]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [17:08:59]Write i2c OK [17:08:59]MH_I2C_Read... [17:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:59]Read from MH i2c: E2 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 17 00 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 87 [17:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:08:59]wFMCommunicate OK [17:08:59]requested_item fd.num is exist - process it [17:08:59]SAM_PROTO_GetFieldsCounters [17:08:59]wFMCommunicate request_size=4 [17:08:59]MH_SAM_APDU [17:08:59]CAPDU: 80 13 00 00 [17:08:59]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [17:08:59]Write i2c OK [17:08:59]MH_I2C_Read... [17:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:59]Read from MH i2c: E2 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 62 00 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 62 00 B8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 70 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [17:08:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 70 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:59]wFMCommunicate OK [17:08:59]SAM_PROTO_GetFieldsCounters done [17:08:59]requested_item shift.num is exist - process it [17:08:59]requested_item shift.opened is exist - process it [17:08:59]req_shift_opened [17:08:59]FM_GetShiftState [17:08:59]SAM_PROTO_GetShiftState [17:08:59]wFMCommunicate request_size=4 [17:08:59]MH_SAM_APDU [17:08:59]CAPDU: 80 13 01 00 [17:08:59]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [17:08:59]Write i2c OK [17:08:59]MH_I2C_Read... [17:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:00]Read from MH i2c: E2 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: E2 0E 00 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E1 [17:09:00]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:09:00]wFMCommunicate OK [17:09:00]SAM_PROTO_GetShiftState done [17:09:00]FM_GetShiftState done [17:09:00]req_shift_opened done [17:09:00]requested_item shift.open_date is exist - process it [17:09:00]req_shift_open_date [17:09:00]req_shift_open_date done [17:09:00]produce_requested_data done [17:09:00]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73072,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [17:09:00]process_action_free close_receipt [17:09:00]json_value_free [17:09:00]json_value_free done [17:09:00]process_json_proto returns [17:09:00]Send response to host [17:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73072,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [17:09:00]free response buf [17:09:00]execute_script done [17:09:00]execute_script returns [17:09:00]free content buf [17:09:00]Sock 10.Close socket [17:09:00]Sock 10.Thread stoped [17:09:02]Connected sock=11 [17:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 14 ED 07 01 F8 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 60 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 0B CB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 4B 00 00 00 00 07 04 06 00 D8 CA 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 A8 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1D 01 00 35 04 06 00 7D 85 4E 8F 76 E6 18 11 7E 52 73 E7 DB 31 [17:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B2 5F 47 00 2D 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 34 36 36 32 10 04 04 00 70 1D 01 00 F4 03 04 00 62 64 23 67 B6 04 01 00 00 8A 66 8C D6 61 EE 72 57 [17:09:02]CommunicateWithHost err = 0 [17:09:02]CheckOFDResponse [17:09:02]1017 (14) - 77093643461234 [17:09:02]1041 (16) - 0000000000874662 [17:09:02]1040 (4) - 73072 [17:09:02]1012 (4) - 31.10.2024 11:05 [17:09:02]1206 (1) - 0 [17:09:02]OFD Sender: Remove packet 73072 [17:09:02]ProducePacketName [17:09:02]name=ofd_packets/00073072 [17:09:02]NVStorageDeleteData [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:30]recv_with_timeout no data received [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:39]recv_with_timeout no data received [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:40]recv_with_timeout no data received [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:12]recv_with_timeout no data received [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:13:59]recv_with_timeout no data received [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:09]recv_with_timeout no data received [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:21]recv_with_timeout no data received [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:41]recv_with_timeout no data received [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]recv_with_timeout no data received [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:41]recv_with_timeout no data received [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:00]recv_with_timeout no data received [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:00]recv_with_timeout no data received [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:11]recv_with_timeout no data received [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:21]recv_with_timeout no data received [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:38]recv_with_timeout no data received [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:27]recv_with_timeout no data received [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:02]recv_with_timeout no data received [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]recv_with_timeout no data received [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:51]accept exits with 9 [17:25:51]New connection [17:25:51]New thread 3067227492 created [17:25:51]Thread 3067370852 joined [17:25:51]Waiting for new connection... [17:25:51] Sock 9.Parse request [17:25:51]Sock 9.Check first char [17:25:51]Sock 9.First char is OK [17:25:51]request: POST /json_proto HTTP/1.0 [17:25:51]Method: POST [17:25:51]URL: /json_proto [17:25:51]Method is POST - this is cgi request [17:25:51]url: /json_proto [17:25:51]query_string will be loaded in cgi processing [17:25:51]execute_cgi json_proto POST (null) [17:25:51]execute_cgi path=json_proto method=POST [17:25:51]POST find Content-Length [17:25:51]Host: 172.17.43.195:8080 [17:25:51]Content-Length: 678 [17:25:51]Content-Type: application/json [17:25:51] [17:25:51]POST finish read [17:25:51]Found Content-Length = 678 [17:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:51]execute_script... [17:25:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:51]POST & json_proto [17:25:51]process_json_proto [17:25:51]json parsed OK: [17:25:51]protocol is kg_v1.0 [17:25:51]action value=close_receipt [17:25:51]process_action close_receipt [17:25:51]cmd_close_receipt [17:25:51]MH_GetDate [17:25:51]Write to MH i2c: F0 00 00 BA 02 AB [17:25:51]Write i2c OK [17:25:51]MH_I2C_Read... [17:25:51]Read from MH i2c: F0 [17:25:51]MH_I2C_Read... [17:25:51]Read from MH i2c: F0 09 00 [17:25:51]MH_I2C_Read... [17:25:51]Read from MH i2c: F0 09 00 BA 02 00 A1 BD 23 67 74 2C AD 66 4F [17:25:51]GetLastDocTimeStamp 1730394536 [17:25:51]current date 1730395553 [17:25:51]FM_GetShiftState [17:25:51]SAM_PROTO_GetShiftState [17:25:51]wFMCommunicate request_size=4 [17:25:51]MH_SAM_APDU [17:25:51]CAPDU: 80 13 01 00 [17:25:51]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [17:25:51]Write i2c OK [17:25:51]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0E 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E3 [17:25:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:25:52]wFMCommunicate OK [17:25:52]SAM_PROTO_GetShiftState done [17:25:52]FM_GetShiftState done [17:25:52]opened in 1730333258 [17:25:52]opened+sec_in_day 1730419658 [17:25:52]quantity*price = 90004 [17:25:52]sum+1 = 90006 [17:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 148 31.10.2024 17:25 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73073 ФПД: 162416467902192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T172553&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73073&fm=162416467902192&tin=02508201610067®Number=0000000000091644&sum=90000 [17:25:53]StoreToDocumentArchive [17:25:53]shift 557 fd 73073 [17:25:53]save to /storage/0557/doc_00073073 [17:25:53]save last doc name /storage/0557/doc_00073073 to /storage/kkm_last_doc_name [17:25:53]save OK [17:25:53]Clear old archive folders... [17:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:53]tlvbuf is 01847BB0 [17:25:53]SAM_PROTO_ClearQueue [17:25:53]wFMCommunicate request_size=4 [17:25:53]MH_SAM_APDU [17:25:53]CAPDU: 80 09 00 00 [17:25:53]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:53]Read from MH i2c: E2 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [17:25:53]RAPDU: 90 00 [17:25:53]wFMCommunicate OK [17:25:53]SAM_PROTO_ClearQueue done [17:25:53]KKMCreateOFDPacket [17:25:53]OFDProtocolAddRootSTLVToBuf [17:25:53]FM_MakeSignedData [17:25:53]FM_MakeSignedData [17:25:53]SAM_PROTO_SignData [17:25:53]wFMCommunicate request_size=4 [17:25:53]MH_SAM_APDU [17:25:53]CAPDU: 80 0D 01 02 [17:25:53]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:53]Read from MH i2c: E2 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [17:25:53]RAPDU: 90 00 [17:25:53]wFMCommunicate OK [17:25:53]wFMCommunicate request_size=255 [17:25:53]MH_SAM_APDU [17:25:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 A1 BD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1D 01 00 35 04 06 00 93 [17:25:53]Write to MH i2c: E2 02 01 CA 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 A1 BD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1D 01 00 35 04 06 00 93 00 00 35 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:53]Read from MH i2c: E2 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [17:25:53]RAPDU: 90 00 [17:25:53]wFMCommunicate OK [17:25:53]wFMCommunicate request_size=10 [17:25:53]MH_SAM_APDU [17:25:53]CAPDU: 80 0D 02 02 05 B7 87 DF FE F0 [17:25:53]Write to MH i2c: E2 0D 00 CB 02 80 0D 02 02 05 00 B7 87 DF FE F0 00 00 5C [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:53]Read from MH i2c: E2 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [17:25:53]RAPDU: 90 00 [17:25:53]wFMCommunicate OK [17:25:53]wFMCommunicate request_size=4 [17:25:53]MH_SAM_APDU [17:25:53]CAPDU: 80 0D 03 02 [17:25:53]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:53]Read from MH i2c: E2 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 0B 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 0B 00 CC 02 00 0A 66 C4 67 FA 84 68 73 90 00 3E [17:25:53]RAPDU: 0A 66 C4 67 FA 84 68 73 90 00 [17:25:53]wFMCommunicate OK [17:25:53]SAM_PROTO_SignData done [17:25:53]FM_MakeSignedData done [17:25:53]CreateOFDProtocolMessage [17:25:53]wFMCommunicate request_size=4 [17:25:53]MH_SAM_APDU [17:25:53]CAPDU: 80 11 00 00 [17:25:53]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:53]Read from MH i2c: E2 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 17 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9D [17:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:25:53]wFMCommunicate OK [17:25:53]CreateOFDProtocolMessage done [17:25:53]OFDSenderStorePacket 73073 [17:25:53]StoreOFDPacket docnum=73073 [17:25:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 39 5F 07 01 F2 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 A1 BD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1D 01 00 35 04 06 00 93 B7 87 DF FE F0 0A 66 C4 67 FA 84 68 73 [17:25:53]CheckFolder [17:25:53]dirname=/storage/ofd_packets [17:25:53]CheckFolder done [17:25:53]ProducePacketName [17:25:53]name=ofd_packets/00073073 [17:25:53]NVStorageSaveData ofd_packets/00073073 [17:25:53]File name is /storage/ofd_packets/00073073 [17:25:53]Write 301 bytes [17:25:53]NVStorageSaveData done [17:25:53]OFDSenderStorePacket done [17:25:53]KKMCreateOFDPacket done [17:25:53]NVStorageSaveData kkm_last_timestamp [17:25:53]File name is /storage/kkm_last_timestamp [17:25:53]Write 4 bytes [17:25:53]NVStorageSaveData done [17:25:53]ExternCall_PrintAddStr [17:25:53]wPrintStart [17:25:53]Write to MH i2c: 01 00 00 CE 02 D0 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: 01 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: 01 07 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [17:25:53]RasterBufferAndPrint [17:25:53]line Счет N : (1)952672 [17:25:53]line ИНН: 02508201610067 [17:25:53]line Контрольно-Кассовый Чек [17:25:53]line ПРОДАЖА [17:25:53]line ТРК (МРК, ГНК) : 52 [17:25:53]line Товар: 2710124500 [17:25:53]line Аи-95-К-3 [17:25:53]line 12.130 * 74.20 [17:25:53]line = 900.05 [17:25:53]line НДС 12% НСП 1% [17:25:53]line > о реализуемом товаре [17:25:53]line ОКРУГЛЕНИЕ: -0.05 [17:25:53]line ИТОГО: 900.00 [17:25:53]line Внесено: 900.00 [17:25:53]line СДАЧА: 0.00 [17:25:53]line НСП 1% : 7.96 [17:25:53]line НДС 12% : 95.58 [17:25:53]line Наличными: 900.00 [17:25:53]line Безнал.: 0.00 [17:25:53]line Место: АЗС № 113 "Партнер Нефть" [17:25:53]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:25:53]line СНО: Общий режим [17:25:53]line Чек 148 31.10.2024 17:25 [17:25:53]line Смена: 557 ФФД: 1.0 [17:25:53]line ЗНМ: 0300000087 [17:25:53]line РНМ: 0000000000091644 [17:25:53]line Версия ККМ: 001 [17:25:53]line ФМ: 0000000000874662 [17:25:53]line ФД: 73073 [17:25:53]line ФПД: 162416467902192 [17:25:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T172553&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73073&fm=162416467902192&tin=02508201610067®Number=0000000000091644&sum=90000 [17:25:53]written 0, free lines is 4095 [17:25:53]OFD Sender: Processing packet 73073 [packets to send 282, broken 281] [17:25:53]ProducePacketName [17:25:53]name=ofd_packets/00073073 [17:25:53]OFD Sender: To server: pG, [17:25:53]CommunicateWithHost lk.salyk.kg:30040 [17:25:53]ConnectInit lk.salyk.kg [17:25:54]Write to MH i2c: 01 00 00 F9 02 FB [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: 01 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: 01 07 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 D2 0C E0 [17:25:54]RasterBufferAndPrint [17:25:54]line [17:25:54]line [17:25:54]line [17:25:54]line [17:25:54]line [17:25:54]written 0, free lines is 3290 [17:25:54]MH_Cut [17:25:54]Write to MH i2c: D1 01 00 00 03 01 D5 [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: D1 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: D1 01 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: D1 01 00 00 03 00 D4 [17:25:54]Write to MH i2c: 01 00 00 01 03 04 [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]Connected sock=8 [17:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 39 5F 07 01 F2 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 A1 BD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1D 01 00 35 04 06 00 93 B7 87 DF FE F0 0A 66 C4 67 FA 84 68 73 [17:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FC 09 47 00 56 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 34 36 36 32 10 04 04 00 71 1D 01 00 F4 03 04 00 56 68 23 67 B6 04 01 00 00 12 3D 63 7B B8 E4 56 62 [17:25:54]CommunicateWithHost err = 0 [17:25:54]CheckOFDResponse [17:25:54]1017 (14) - 77093643461234 [17:25:54]1041 (16) - 0000000000874662 [17:25:54]1040 (4) - 73073 [17:25:54]1012 (4) - 31.10.2024 11:21 [17:25:54]1206 (1) - 0 [17:25:54]OFD Sender: Remove packet 73073 [17:25:54]ProducePacketName [17:25:54]name=ofd_packets/00073073 [17:25:54]NVStorageDeleteData [17:25:54]*** Cut start [17:25:54]*** Partial cut [17:25:54]*** CUTSNS_PIN = 1 [17:25:54]*** CUTSNS_PIN = 0 [17:25:55]OFD Sender: No OFD packet to send [17:25:55]*** Brake cut motor [17:25:55]Read from MH i2c: 01 [17:25:55]MH_I2C_Read... [17:25:55]*** Stop cut motor [17:25:55]*** Cut end [17:25:55]Read from MH i2c: 01 07 00 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [17:25:55]process_action close_receipt done [17:25:55]requested_data is exist [17:25:55]produce_requested_data [17:25:55]requested_item fm.sn is exist - process it [17:25:55]wFMCommunicate request_size=4 [17:25:55]MH_SAM_APDU [17:25:55]CAPDU: 80 11 00 00 [17:25:55]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [17:25:55]Write i2c OK [17:25:55]MH_I2C_Read... [17:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:55]Read from MH i2c: E2 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: E2 17 00 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D3 [17:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:25:55]wFMCommunicate OK [17:25:55]requested_item fd.num is exist - process it [17:25:55]SAM_PROTO_GetFieldsCounters [17:25:55]wFMCommunicate request_size=4 [17:25:55]MH_SAM_APDU [17:25:55]CAPDU: 80 13 00 00 [17:25:55]Write to MH i2c: E2 08 00 03 03 80 13 00 00 00 00 00 00 82 [17:25:55]Write i2c OK [17:25:55]MH_I2C_Read... [17:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:55]Read from MH i2c: E2 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: E2 62 00 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: E2 62 00 03 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 71 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [17:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 71 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:55]wFMCommunicate OK [17:25:55]SAM_PROTO_GetFieldsCounters done [17:25:55]requested_item shift.num is exist - process it [17:25:55]requested_item shift.opened is exist - process it [17:25:55]req_shift_opened [17:25:55]FM_GetShiftState [17:25:55]SAM_PROTO_GetShiftState [17:25:55]wFMCommunicate request_size=4 [17:25:55]MH_SAM_APDU [17:25:55]CAPDU: 80 13 01 00 [17:25:55]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [17:25:55]Write i2c OK [17:25:55]MH_I2C_Read... [17:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:55]Read from MH i2c: E2 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: E2 0E 00 [17:25:55]MH_I2C_Read... [17:25:55]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2D [17:25:55]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:25:55]wFMCommunicate OK [17:25:55]SAM_PROTO_GetShiftState done [17:25:55]FM_GetShiftState done [17:25:55]req_shift_opened done [17:25:55]requested_item shift.open_date is exist - process it [17:25:55]req_shift_open_date [17:25:55]req_shift_open_date done [17:25:55]produce_requested_data done [17:25:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73073,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [17:25:55]process_action_free close_receipt [17:25:55]json_value_free [17:25:55]json_value_free done [17:25:55]process_json_proto returns [17:25:55]Send response to host [17:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73073,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [17:25:55]free response buf [17:25:55]execute_script done [17:25:55]execute_script returns [17:25:55]free content buf [17:25:55]Sock 9.Close socket [17:25:55]Sock 9.Thread stoped [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:37]recv_with_timeout no data received [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:41]recv_with_timeout no data received [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:52]recv_with_timeout no data received [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:47]recv_with_timeout no data received [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:19]recv_with_timeout no data received [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:31]recv_with_timeout no data received [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:08]recv_with_timeout no data received [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:19]recv_with_timeout no data received [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:21]recv_with_timeout no data received [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:31]recv_with_timeout no data received [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:43]recv_with_timeout no data received [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:53]recv_with_timeout no data received [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:04]recv_with_timeout no data received [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:17]recv_with_timeout no data received [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:21]recv_with_timeout no data received [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:54]recv_with_timeout no data received [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:33]recv_with_timeout no data received [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:35:57]recv_with_timeout no data received [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:36:57]recv_with_timeout no data received [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:04]recv_with_timeout no data received [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:30]recv_with_timeout no data received [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:50]recv_with_timeout no data received [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]accept exits with 10 [17:40:31]New connection [17:40:31]New thread 3067370852 created [17:40:31]Thread 3067227492 joined [17:40:31]Waiting for new connection... [17:40:31] Sock 10.Parse request [17:40:31]Sock 10.Check first char [17:40:31]Sock 10.First char is OK [17:40:31]request: POST /json_proto HTTP/1.0 [17:40:31]Method: POST [17:40:31]URL: /json_proto [17:40:31]Method is POST - this is cgi request [17:40:31]url: /json_proto [17:40:31]query_string will be loaded in cgi processing [17:40:31]execute_cgi json_proto POST (null) [17:40:31]execute_cgi path=json_proto method=POST [17:40:31]POST find Content-Length [17:40:31]Host: 172.17.43.195:8080 [17:40:31]Content-Length: 682 [17:40:31]Content-Type: application/json [17:40:31] [17:40:31]POST finish read [17:40:31]Found Content-Length = 682 [17:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:31]execute_script... [17:40:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:31]POST & json_proto [17:40:31]process_json_proto [17:40:31]json parsed OK: [17:40:31]protocol is kg_v1.0 [17:40:31]action value=close_receipt [17:40:31]process_action close_receipt [17:40:31]cmd_close_receipt [17:40:31]MH_GetDate [17:40:31]Write to MH i2c: F0 00 00 05 03 F7 [17:40:31]Write i2c OK [17:40:31]MH_I2C_Read... [17:40:31]Read from MH i2c: F0 [17:40:31]MH_I2C_Read... [17:40:31]Read from MH i2c: F0 09 00 [17:40:31]MH_I2C_Read... [17:40:31]Read from MH i2c: F0 09 00 05 03 00 10 C1 23 67 74 2C AD 66 0E [17:40:31]GetLastDocTimeStamp 1730395553 [17:40:31]current date 1730396432 [17:40:31]FM_GetShiftState [17:40:31]SAM_PROTO_GetShiftState [17:40:31]wFMCommunicate request_size=4 [17:40:31]MH_SAM_APDU [17:40:31]CAPDU: 80 13 01 00 [17:40:31]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [17:40:31]Write i2c OK [17:40:31]MH_I2C_Read... [17:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:31]Read from MH i2c: E2 [17:40:31]MH_I2C_Read... [17:40:31]Read from MH i2c: E2 0E 00 [17:40:31]MH_I2C_Read... [17:40:31]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2F [17:40:31]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:40:31]wFMCommunicate OK [17:40:31]SAM_PROTO_GetShiftState done [17:40:31]FM_GetShiftState done [17:40:31]opened in 1730333258 [17:40:31]opened+sec_in_day 1730419658 [17:40:31]quantity*price = 100021 [17:40:31]sum+1 = 100023 [17:40:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 149 31.10.2024 17:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73074 ФПД: 159419582452521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174032&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73074&fm=159419582452521&tin=02508201610067®Number=0000000000091644&sum=100000 [17:40:32]StoreToDocumentArchive [17:40:32]shift 557 fd 73074 [17:40:32]save to /storage/0557/doc_00073074 [17:40:32]save last doc name /storage/0557/doc_00073074 to /storage/kkm_last_doc_name [17:40:32]save OK [17:40:32]Clear old archive folders... [17:40:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:32]tlvbuf is 01849750 [17:40:32]SAM_PROTO_ClearQueue [17:40:32]wFMCommunicate request_size=4 [17:40:32]MH_SAM_APDU [17:40:32]CAPDU: 80 09 00 00 [17:40:32]Write to MH i2c: E2 08 00 13 03 80 09 00 00 00 00 00 00 88 [17:40:32]Write i2c OK [17:40:32]MH_I2C_Read... [17:40:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:32]Read from MH i2c: E2 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 03 00 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [17:40:32]RAPDU: 90 00 [17:40:32]wFMCommunicate OK [17:40:32]SAM_PROTO_ClearQueue done [17:40:32]KKMCreateOFDPacket [17:40:32]OFDProtocolAddRootSTLVToBuf [17:40:32]FM_MakeSignedData [17:40:32]FM_MakeSignedData [17:40:32]SAM_PROTO_SignData [17:40:32]wFMCommunicate request_size=4 [17:40:32]MH_SAM_APDU [17:40:32]CAPDU: 80 0D 01 02 [17:40:32]Write to MH i2c: E2 08 00 14 03 80 0D 01 02 00 00 00 00 90 [17:40:32]Write i2c OK [17:40:32]MH_I2C_Read... [17:40:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:32]Read from MH i2c: E2 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 03 00 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [17:40:32]RAPDU: 90 00 [17:40:32]wFMCommunicate OK [17:40:32]wFMCommunicate request_size=255 [17:40:32]MH_SAM_APDU [17:40:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 10 C1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1D 01 00 35 04 06 00 90 [17:40:32]Write to MH i2c: E2 02 01 15 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 10 C1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1D 01 00 35 04 06 00 90 00 00 79 [17:40:32]Write i2c OK [17:40:32]MH_I2C_Read... [17:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:32]Read from MH i2c: E2 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 03 00 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [17:40:32]RAPDU: 90 00 [17:40:32]wFMCommunicate OK [17:40:32]wFMCommunicate request_size=10 [17:40:32]MH_SAM_APDU [17:40:32]CAPDU: 80 0D 02 02 05 FD C3 95 13 29 [17:40:32]Write to MH i2c: E2 0D 00 16 03 80 0D 02 02 05 00 FD C3 95 13 29 00 00 2E [17:40:32]Write i2c OK [17:40:32]MH_I2C_Read... [17:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:32]Read from MH i2c: E2 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 03 00 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [17:40:32]RAPDU: 90 00 [17:40:32]wFMCommunicate OK [17:40:32]wFMCommunicate request_size=4 [17:40:32]MH_SAM_APDU [17:40:32]CAPDU: 80 0D 03 02 [17:40:32]Write to MH i2c: E2 08 00 17 03 80 0D 03 02 00 00 00 00 95 [17:40:32]Write i2c OK [17:40:32]MH_I2C_Read... [17:40:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:32]Read from MH i2c: E2 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 0B 00 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 0B 00 17 03 00 59 13 7C 8C 54 B4 E8 83 90 00 7D [17:40:32]RAPDU: 59 13 7C 8C 54 B4 E8 83 90 00 [17:40:32]wFMCommunicate OK [17:40:32]SAM_PROTO_SignData done [17:40:32]FM_MakeSignedData done [17:40:32]CreateOFDProtocolMessage [17:40:32]wFMCommunicate request_size=4 [17:40:32]MH_SAM_APDU [17:40:32]CAPDU: 80 11 00 00 [17:40:32]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [17:40:32]Write i2c OK [17:40:32]MH_I2C_Read... [17:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:32]Read from MH i2c: E2 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 17 00 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E9 [17:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:40:32]wFMCommunicate OK [17:40:32]CreateOFDProtocolMessage done [17:40:32]OFDSenderStorePacket 73074 [17:40:32]StoreOFDPacket docnum=73074 [17:40:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5F 5A 07 01 86 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 10 C1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1D 01 00 35 04 06 00 90 FD C3 95 13 29 59 13 7C 8C 54 B4 E8 83 [17:40:32]CheckFolder [17:40:32]dirname=/storage/ofd_packets [17:40:32]CheckFolder done [17:40:32]ProducePacketName [17:40:32]name=ofd_packets/00073074 [17:40:32]NVStorageSaveData ofd_packets/00073074 [17:40:32]File name is /storage/ofd_packets/00073074 [17:40:32]Write 301 bytes [17:40:32]NVStorageSaveData done [17:40:32]OFDSenderStorePacket done [17:40:32]KKMCreateOFDPacket done [17:40:32]NVStorageSaveData kkm_last_timestamp [17:40:32]File name is /storage/kkm_last_timestamp [17:40:32]Write 4 bytes [17:40:32]NVStorageSaveData done [17:40:32]ExternCall_PrintAddStr [17:40:32]wPrintStart [17:40:32]Write to MH i2c: 01 00 00 19 03 1C [17:40:32]Write i2c OK [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: 01 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: 01 07 00 [17:40:32]MH_I2C_Read... [17:40:32]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FF 0F 31 [17:40:32]RasterBufferAndPrint [17:40:32]line Счет N : (1)952673 [17:40:32]line ИНН: 02508201610067 [17:40:32]line Контрольно-Кассовый Чек [17:40:32]line ПРОДАЖА [17:40:32]line ТРК (МРК, ГНК) : 52 [17:40:32]line Товар: 2710124500 [17:40:32]line Аи-95-К-3 [17:40:32]line 13.480 * 74.20 [17:40:32]line = 1000.22 [17:40:32]line НДС 12% НСП 1% [17:40:32]line > о реализуемом товаре [17:40:32]line ОКРУГЛЕНИЕ: -0.22 [17:40:32]line ИТОГО: 1000.00 [17:40:32]line Внесено: 1000.00 [17:40:32]line СДАЧА: 0.00 [17:40:32]line НСП 1% : 8.85 [17:40:32]line НДС 12% : 106.22 [17:40:32]line Наличными: 1000.00 [17:40:32]line Безнал.: 0.00 [17:40:32]line Место: АЗС № 113 "Партнер Нефть" [17:40:32]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:40:32]line СНО: Общий режим [17:40:32]line Чек 149 31.10.2024 17:40 [17:40:32]line Смена: 557 ФФД: 1.0 [17:40:32]line ЗНМ: 0300000087 [17:40:32]line РНМ: 0000000000091644 [17:40:32]line Версия ККМ: 001 [17:40:32]line ФМ: 0000000000874662 [17:40:32]line ФД: 73074 [17:40:32]line ФПД: 159419582452521 [17:40:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174032&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73074&fm=159419582452521&tin=02508201610067®Number=0000000000091644&sum=100000 [17:40:33]OFD Sender: Processing packet 73074 [packets to send 282, broken 281] [17:40:33]ProducePacketName [17:40:33]name=ofd_packets/00073074 [17:40:33]OFD Sender: To server: pG, [17:40:33]CommunicateWithHost lk.salyk.kg:30040 [17:40:33]ConnectInit lk.salyk.kg [17:40:33]written 0, free lines is 4095 [17:40:33]Write to MH i2c: 01 00 00 44 03 47 [17:40:33]Write i2c OK [17:40:33]MH_I2C_Read... [17:40:33]Read from MH i2c: 01 [17:40:33]MH_I2C_Read... [17:40:33]Read from MH i2c: 01 07 00 [17:40:33]MH_I2C_Read... [17:40:33]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 D8 0C 32 [17:40:33]RasterBufferAndPrint [17:40:33]line [17:40:33]line [17:40:33]line [17:40:33]line [17:40:33]line [17:40:33]written 0, free lines is 3295 [17:40:33]MH_Cut [17:40:33]Write to MH i2c: D1 01 00 4B 03 01 20 [17:40:33]Write i2c OK [17:40:33]MH_I2C_Read... [17:40:33]Read from MH i2c: D1 [17:40:33]MH_I2C_Read... [17:40:33]Read from MH i2c: D1 01 00 [17:40:33]MH_I2C_Read... [17:40:33]Read from MH i2c: D1 01 00 4B 03 00 1F [17:40:33]Write to MH i2c: 01 00 00 4C 03 4F [17:40:33]Write i2c OK [17:40:33]MH_I2C_Read... [17:40:34]*** Cut start [17:40:34]*** Partial cut [17:40:34]*** CUTSNS_PIN = 1 [17:40:34]*** CUTSNS_PIN = 0 [17:40:34]Connected sock=11 [17:40:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5F 5A 07 01 86 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 10 C1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1D 01 00 35 04 06 00 90 FD C3 95 13 29 59 13 7C 8C 54 B4 E8 83 [17:40:34]*** Brake cut motor [17:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2B 96 47 00 1A 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 34 36 36 32 10 04 04 00 72 1D 01 00 F4 03 04 00 C6 6B 23 67 B6 04 01 00 00 1B 4F 56 0B DD 54 62 A3 [17:40:35]CommunicateWithHost err = 0 [17:40:35]CheckOFDResponse [17:40:35]1017 (14) - 77093643461234 [17:40:35]1041 (16) - 0000000000874662 [17:40:35]1040 (4) - 73074 [17:40:35]1012 (4) - 31.10.2024 11:36 [17:40:35]1206 (1) - 0 [17:40:35]OFD Sender: Remove packet 73074 [17:40:35]ProducePacketName [17:40:35]name=ofd_packets/00073074 [17:40:35]NVStorageDeleteData [17:40:35]Read from MH i2c: 01 [17:40:35]MH_I2C_Read... [17:40:35]*** Stop cut motor [17:40:35]*** Cut end [17:40:35]Read from MH i2c: 01 07 00 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 FF 0F 64 [17:40:35]process_action close_receipt done [17:40:35]requested_data is exist [17:40:35]produce_requested_data [17:40:35]requested_item fm.sn is exist - process it [17:40:35]wFMCommunicate request_size=4 [17:40:35]MH_SAM_APDU [17:40:35]CAPDU: 80 11 00 00 [17:40:35]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [17:40:35]Write i2c OK [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: E2 [17:40:35]MH_I2C_Read... [17:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:35]Read from MH i2c: E2 17 00 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1E [17:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:40:35]wFMCommunicate OK [17:40:35]requested_item fd.num is exist - process it [17:40:35]SAM_PROTO_GetFieldsCounters [17:40:35]wFMCommunicate request_size=4 [17:40:35]MH_SAM_APDU [17:40:35]CAPDU: 80 13 00 00 [17:40:35]Write to MH i2c: E2 08 00 4E 03 80 13 00 00 00 00 00 00 CD [17:40:35]Write i2c OK [17:40:35]MH_I2C_Read... [17:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:35]Read from MH i2c: E2 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: E2 62 00 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: E2 62 00 4E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 72 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [17:40:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 72 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:35]wFMCommunicate OK [17:40:35]SAM_PROTO_GetFieldsCounters done [17:40:35]requested_item shift.num is exist - process it [17:40:35]requested_item shift.opened is exist - process it [17:40:35]req_shift_opened [17:40:35]FM_GetShiftState [17:40:35]SAM_PROTO_GetShiftState [17:40:35]wFMCommunicate request_size=4 [17:40:35]MH_SAM_APDU [17:40:35]CAPDU: 80 13 01 00 [17:40:35]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [17:40:35]Write i2c OK [17:40:35]MH_I2C_Read... [17:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:35]Read from MH i2c: E2 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: E2 0E 00 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 78 [17:40:35]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:40:35]wFMCommunicate OK [17:40:35]SAM_PROTO_GetShiftState done [17:40:35]FM_GetShiftState done [17:40:35]req_shift_opened done [17:40:35]requested_item shift.open_date is exist - process it [17:40:35]req_shift_open_date [17:40:35]req_shift_open_date done [17:40:35]produce_requested_data done [17:40:35]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73074,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [17:40:35]process_action_free close_receipt [17:40:35]json_value_free [17:40:35]json_value_free done [17:40:35]process_json_proto returns [17:40:35]Send response to host [17:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73074,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [17:40:35]free response buf [17:40:35]execute_script done [17:40:35]execute_script returns [17:40:35]free content buf [17:40:35]Sock 10.Close socket [17:40:35]Sock 10.Thread stoped [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]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:41:57]recv_with_timeout no data received [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:24]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:41]accept exits with 9 [17:44:41]New connection [17:44:41]New thread 3067227492 created [17:44:41]Thread 3067370852 joined [17:44:41]Waiting for new connection... [17:44:41] Sock 9.Parse request [17:44:41]Sock 9.Check first char [17:44:41]Sock 9.First char is OK [17:44:41]request: POST /json_proto HTTP/1.0 [17:44:41]Method: POST [17:44:41]URL: /json_proto [17:44:41]Method is POST - this is cgi request [17:44:41]url: /json_proto [17:44:41]query_string will be loaded in cgi processing [17:44:41]execute_cgi json_proto POST (null) [17:44:41]execute_cgi path=json_proto method=POST [17:44:41]POST find Content-Length [17:44:41]Host: 172.17.43.195:8080 [17:44:41]Content-Length: 682 [17:44:41]Content-Type: application/json [17:44:41] [17:44:41]POST finish read [17:44:41]Found Content-Length = 682 [17:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:41]execute_script... [17:44:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:41]POST & json_proto [17:44:41]process_json_proto [17:44:41]json parsed OK: [17:44:41]protocol is kg_v1.0 [17:44:41]action value=close_receipt [17:44:41]process_action close_receipt [17:44:41]cmd_close_receipt [17:44:41]MH_GetDate [17:44:41]Write to MH i2c: F0 00 00 50 03 42 [17:44:41]Write i2c OK [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: F0 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: F0 09 00 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: F0 09 00 50 03 00 0A C2 23 67 74 2C AD 66 54 [17:44:41]GetLastDocTimeStamp 1730396432 [17:44:41]current date 1730396682 [17:44:41]FM_GetShiftState [17:44:41]SAM_PROTO_GetShiftState [17:44:41]wFMCommunicate request_size=4 [17:44:41]MH_SAM_APDU [17:44:41]CAPDU: 80 13 01 00 [17:44:41]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [17:44:41]Write i2c OK [17:44:41]MH_I2C_Read... [17:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:41]Read from MH i2c: E2 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 0E 00 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 7A [17:44:41]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:44:41]wFMCommunicate OK [17:44:41]SAM_PROTO_GetShiftState done [17:44:41]FM_GetShiftState done [17:44:41]opened in 1730333258 [17:44:41]opened+sec_in_day 1730419658 [17:44:41]quantity*price = 100015 [17:44:41]sum+1 = 100017 [17:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 150 31.10.2024 17:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73075 ФПД: 23062066948491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174443&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73075&fm=23062066948491&tin=02508201610067®Number=0000000000091644&sum=100000 [17:44:43]StoreToDocumentArchive [17:44:43]shift 557 fd 73075 [17:44:43]save to /storage/0557/doc_00073075 [17:44:43]save last doc name /storage/0557/doc_00073075 to /storage/kkm_last_doc_name [17:44:43]save OK [17:44:43]Clear old archive folders... [17:44:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:43]tlvbuf is 0188BBD0 [17:44:43]SAM_PROTO_ClearQueue [17:44:43]wFMCommunicate request_size=4 [17:44:43]MH_SAM_APDU [17:44:43]CAPDU: 80 09 00 00 [17:44:43]Write to MH i2c: E2 08 00 5E 03 80 09 00 00 00 00 00 00 D3 [17:44:43]Write i2c OK [17:44:43]MH_I2C_Read... [17:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:43]Read from MH i2c: E2 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 03 00 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [17:44:43]RAPDU: 90 00 [17:44:43]wFMCommunicate OK [17:44:43]SAM_PROTO_ClearQueue done [17:44:43]KKMCreateOFDPacket [17:44:43]OFDProtocolAddRootSTLVToBuf [17:44:43]FM_MakeSignedData [17:44:43]FM_MakeSignedData [17:44:43]SAM_PROTO_SignData [17:44:43]wFMCommunicate request_size=4 [17:44:43]MH_SAM_APDU [17:44:43]CAPDU: 80 0D 01 02 [17:44:43]Write to MH i2c: E2 08 00 5F 03 80 0D 01 02 00 00 00 00 DB [17:44:43]Write i2c OK [17:44:43]MH_I2C_Read... [17:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:43]Read from MH i2c: E2 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 03 00 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [17:44:43]RAPDU: 90 00 [17:44:43]wFMCommunicate OK [17:44:43]wFMCommunicate request_size=255 [17:44:43]MH_SAM_APDU [17:44:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 0B C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1D 01 00 35 04 06 00 14 [17:44:43]Write to MH i2c: E2 02 01 60 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 0B C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1D 01 00 35 04 06 00 14 00 00 25 [17:44:43]Write i2c OK [17:44:43]MH_I2C_Read... [17:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:43]Read from MH i2c: E2 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 03 00 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [17:44:43]RAPDU: 90 00 [17:44:43]wFMCommunicate OK [17:44:43]wFMCommunicate request_size=10 [17:44:43]MH_SAM_APDU [17:44:43]CAPDU: 80 0D 02 02 05 F9 8E 4E E9 8B [17:44:43]Write to MH i2c: E2 0D 00 61 03 80 0D 02 02 05 00 F9 8E 4E E9 8B 00 00 31 [17:44:43]Write i2c OK [17:44:43]MH_I2C_Read... [17:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:43]Read from MH i2c: E2 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 03 00 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [17:44:43]RAPDU: 90 00 [17:44:43]wFMCommunicate OK [17:44:43]wFMCommunicate request_size=4 [17:44:43]MH_SAM_APDU [17:44:43]CAPDU: 80 0D 03 02 [17:44:43]Write to MH i2c: E2 08 00 62 03 80 0D 03 02 00 00 00 00 E0 [17:44:43]Write i2c OK [17:44:43]MH_I2C_Read... [17:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:43]Read from MH i2c: E2 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 0B 00 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 0B 00 62 03 00 8B BF C9 F9 7C 9C 46 7C 90 00 C7 [17:44:43]RAPDU: 8B BF C9 F9 7C 9C 46 7C 90 00 [17:44:43]wFMCommunicate OK [17:44:43]SAM_PROTO_SignData done [17:44:43]FM_MakeSignedData done [17:44:43]CreateOFDProtocolMessage [17:44:43]wFMCommunicate request_size=4 [17:44:43]MH_SAM_APDU [17:44:43]CAPDU: 80 11 00 00 [17:44:43]Write to MH i2c: E2 08 00 63 03 80 11 00 00 00 00 00 00 E0 [17:44:43]Write i2c OK [17:44:43]MH_I2C_Read... [17:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:43]Read from MH i2c: E2 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 17 00 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: E2 17 00 63 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 34 [17:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:44:43]wFMCommunicate OK [17:44:43]CreateOFDProtocolMessage done [17:44:43]OFDSenderStorePacket 73075 [17:44:43]StoreOFDPacket docnum=73075 [17:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 52 0D 07 01 43 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 0B C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1D 01 00 35 04 06 00 14 F9 8E 4E E9 8B 8B BF C9 F9 7C 9C 46 7C [17:44:43]CheckFolder [17:44:43]dirname=/storage/ofd_packets [17:44:43]CheckFolder done [17:44:43]ProducePacketName [17:44:43]name=ofd_packets/00073075 [17:44:43]NVStorageSaveData ofd_packets/00073075 [17:44:43]File name is /storage/ofd_packets/00073075 [17:44:43]Write 301 bytes [17:44:43]NVStorageSaveData done [17:44:43]OFDSenderStorePacket done [17:44:43]KKMCreateOFDPacket done [17:44:43]NVStorageSaveData kkm_last_timestamp [17:44:43]File name is /storage/kkm_last_timestamp [17:44:43]Write 4 bytes [17:44:43]NVStorageSaveData done [17:44:43]ExternCall_PrintAddStr [17:44:43]wPrintStart [17:44:43]Write to MH i2c: 01 00 00 64 03 67 [17:44:43]Write i2c OK [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: 01 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: 01 07 00 [17:44:43]MH_I2C_Read... [17:44:43]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [17:44:43]RasterBufferAndPrint [17:44:43]line Счет N : (1)952674 [17:44:43]line ИНН: 02508201610067 [17:44:43]line Контрольно-Кассовый Чек [17:44:43]line ПРОДАЖА [17:44:43]line ТРК (МРК, ГНК) : 63 [17:44:43]line Товар: 2710124130 [17:44:43]line Аи-92-К-5 [17:44:43]line 14.950 * 66.90 [17:44:43]line = 1000.16 [17:44:43]line НДС 12% НСП 1% [17:44:43]line > о реализуемом товаре [17:44:43]line ОКРУГЛЕНИЕ: -0.16 [17:44:43]line ИТОГО: 1000.00 [17:44:43]line Внесено: 1000.00 [17:44:43]line СДАЧА: 0.00 [17:44:43]line НСП 1% : 8.85 [17:44:43]line НДС 12% : 106.21 [17:44:43]line Наличными: 1000.00 [17:44:43]line Безнал.: 0.00 [17:44:43]line Место: АЗС № 113 "Партнер Нефть" [17:44:43]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:44:43]line СНО: Общий режим [17:44:43]line Чек 150 31.10.2024 17:44 [17:44:43]line Смена: 557 ФФД: 1.0 [17:44:43]line ЗНМ: 0300000087 [17:44:43]line РНМ: 0000000000091644 [17:44:43]line Версия ККМ: 001 [17:44:43]line ФМ: 0000000000874662 [17:44:43]line ФД: 73075 [17:44:43]line ФПД: 23062066948491 [17:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174443&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73075&fm=23062066948491&tin=02508201610067®Number=0000000000091644&sum=100000 [17:44:43]OFD Sender: Processing packet 73075 [packets to send 282, broken 281] [17:44:43]ProducePacketName [17:44:43]name=ofd_packets/00073075 [17:44:43]OFD Sender: To server: pG, [17:44:43]CommunicateWithHost lk.salyk.kg:30040 [17:44:43]ConnectInit lk.salyk.kg [17:44:43]written 0, free lines is 4095 [17:44:44]Write to MH i2c: 01 00 00 8F 03 92 [17:44:44]Write i2c OK [17:44:44]MH_I2C_Read... [17:44:44]Read from MH i2c: 01 [17:44:44]MH_I2C_Read... [17:44:44]Read from MH i2c: 01 07 00 [17:44:44]MH_I2C_Read... [17:44:44]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 D4 0C 79 [17:44:44]RasterBufferAndPrint [17:44:44]line [17:44:44]line [17:44:44]line [17:44:44]line [17:44:44]line [17:44:44]written 0, free lines is 3292 [17:44:44]MH_Cut [17:44:44]Write to MH i2c: D1 01 00 96 03 01 6B [17:44:44]Write i2c OK [17:44:44]MH_I2C_Read... [17:44:44]Read from MH i2c: D1 [17:44:44]MH_I2C_Read... [17:44:44]Read from MH i2c: D1 01 00 [17:44:44]MH_I2C_Read... [17:44:44]Read from MH i2c: D1 01 00 96 03 00 6A [17:44:44]Write to MH i2c: 01 00 00 97 03 9A [17:44:44]Write i2c OK [17:44:44]MH_I2C_Read... [17:44:45]*** Cut start [17:44:45]*** Partial cut [17:44:45]*** CUTSNS_PIN = 1 [17:44:45]*** CUTSNS_PIN = 0 [17:44:45]*** Brake cut motor [17:44:45]Read from MH i2c: 01 [17:44:45]MH_I2C_Read... [17:44:45]*** Stop cut motor [17:44:45]*** Cut end [17:44:45]Read from MH i2c: 01 07 00 [17:44:45]MH_I2C_Read... [17:44:45]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 FF 0F AF [17:44:45]process_action close_receipt done [17:44:45]requested_data is exist [17:44:45]produce_requested_data [17:44:45]requested_item fm.sn is exist - process it [17:44:45]wFMCommunicate request_size=4 [17:44:45]MH_SAM_APDU [17:44:45]CAPDU: 80 11 00 00 [17:44:45]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [17:44:45]Write i2c OK [17:44:45]MH_I2C_Read... [17:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:45]Read from MH i2c: E2 [17:44:45]MH_I2C_Read... [17:44:45]Read from MH i2c: E2 17 00 [17:44:45]MH_I2C_Read... [17:44:45]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 69 [17:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:44:45]wFMCommunicate OK [17:44:45]requested_item fd.num is exist - process it [17:44:45]SAM_PROTO_GetFieldsCounters [17:44:45]wFMCommunicate request_size=4 [17:44:45]MH_SAM_APDU [17:44:45]CAPDU: 80 13 00 00 [17:44:45]Write to MH i2c: E2 08 00 99 03 80 13 00 00 00 00 00 00 18 [17:44:45]Write i2c OK [17:44:45]MH_I2C_Read... [17:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:45]Read from MH i2c: E2 [17:44:45]MH_I2C_Read... [17:44:45]Read from MH i2c: E2 62 00 [17:44:45]MH_I2C_Read... [17:44:45]Read from MH i2c: E2 62 00 99 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 73 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [17:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 73 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:45]wFMCommunicate OK [17:44:45]SAM_PROTO_GetFieldsCounters done [17:44:45]requested_item shift.num is exist - process it [17:44:45]requested_item shift.opened is exist - process it [17:44:45]req_shift_opened [17:44:45]FM_GetShiftState [17:44:45]SAM_PROTO_GetShiftState [17:44:45]wFMCommunicate request_size=4 [17:44:45]MH_SAM_APDU [17:44:45]CAPDU: 80 13 01 00 [17:44:45]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [17:44:45]Write i2c OK [17:44:45]MH_I2C_Read... [17:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:45]Read from MH i2c: E2 [17:44:45]MH_I2C_Read... [17:44:45]Read from MH i2c: E2 0E 00 [17:44:45]MH_I2C_Read... [17:44:45]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C3 [17:44:45]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:44:45]wFMCommunicate OK [17:44:45]SAM_PROTO_GetShiftState done [17:44:45]FM_GetShiftState done [17:44:45]req_shift_opened done [17:44:45]requested_item shift.open_date is exist - process it [17:44:45]req_shift_open_date [17:44:45]req_shift_open_date done [17:44:45]produce_requested_data done [17:44:45]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73075,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [17:44:45]process_action_free close_receipt [17:44:45]json_value_free [17:44:45]json_value_free done [17:44:45]process_json_proto returns [17:44:45]Send response to host [17:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73075,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [17:44:45]free response buf [17:44:45]execute_script done [17:44:45]execute_script returns [17:44:45]free content buf [17:44:45]Sock 9.Close socket [17:44:45]Sock 9.Thread stoped [17:44:46]Connected sock=11 [17:44:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 52 0D 07 01 43 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 0B C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1D 01 00 35 04 06 00 14 F9 8E 4E E9 8B 8B BF C9 F9 7C 9C 46 7C [17:44:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7D 72 47 00 63 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1D 01 00 F4 03 04 00 C3 6C 23 67 B6 04 01 00 00 04 8A 38 69 59 72 0B 0C [17:44:48]CommunicateWithHost err = 0 [17:44:48]CheckOFDResponse [17:44:48]1017 (14) - 77093643461234 [17:44:48]1041 (16) - 0000000000874662 [17:44:48]1040 (4) - 73075 [17:44:48]1012 (4) - 31.10.2024 11:40 [17:44:48]1206 (1) - 0 [17:44:48]OFD Sender: Remove packet 73075 [17:44:48]ProducePacketName [17:44:48]name=ofd_packets/00073075 [17:44:48]NVStorageDeleteData [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:13]recv_with_timeout no data received [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:34]recv_with_timeout no data received [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:17]recv_with_timeout no data received [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:47:59]recv_with_timeout no data received [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:38]recv_with_timeout no data received [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:51]recv_with_timeout no data received [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:49:59]accept exits with 10 [17:49:59]New connection [17:49:59]New thread 3067370852 created [17:49:59]Thread 3067227492 joined [17:49:59]Waiting for new connection... [17:49:59] Sock 10.Parse request [17:49:59]Sock 10.Check first char [17:49:59]Sock 10.First char is OK [17:49:59]request: POST /json_proto HTTP/1.0 [17:49:59]Method: POST [17:49:59]URL: /json_proto [17:49:59]Method is POST - this is cgi request [17:49:59]url: /json_proto [17:49:59]query_string will be loaded in cgi processing [17:49:59]execute_cgi json_proto POST (null) [17:49:59]execute_cgi path=json_proto method=POST [17:49:59]POST find Content-Length [17:49:59]Host: 172.17.43.195:8080 [17:49:59]Content-Length: 677 [17:49:59]Content-Type: application/json [17:49:59] [17:49:59]POST finish read [17:49:59]Found Content-Length = 677 [17:49:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:59]execute_script... [17:49:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:59]POST & json_proto [17:49:59]process_json_proto [17:49:59]json parsed OK: [17:49:59]protocol is kg_v1.0 [17:49:59]action value=close_receipt [17:49:59]process_action close_receipt [17:49:59]cmd_close_receipt [17:49:59]MH_GetDate [17:49:59]Write to MH i2c: F0 00 00 9B 03 8D [17:49:59]Write i2c OK [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: F0 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: F0 09 00 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: F0 09 00 9B 03 00 49 C3 23 67 74 2C AD 66 DF [17:49:59]GetLastDocTimeStamp 1730396683 [17:49:59]current date 1730397001 [17:49:59]FM_GetShiftState [17:49:59]SAM_PROTO_GetShiftState [17:49:59]wFMCommunicate request_size=4 [17:49:59]MH_SAM_APDU [17:49:59]CAPDU: 80 13 01 00 [17:49:59]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [17:49:59]Write i2c OK [17:49:59]MH_I2C_Read... [17:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:00]Read from MH i2c: E2 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 0E 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C5 [17:50:00]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:50:00]wFMCommunicate OK [17:50:00]SAM_PROTO_GetShiftState done [17:50:00]FM_GetShiftState done [17:50:00]opened in 1730333258 [17:50:00]opened+sec_in_day 1730419658 [17:50:00]quantity*price = 40006 [17:50:00]sum+1 = 40007 [17:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 151 31.10.2024 17:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73076 ФПД: 238669503569420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175001&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73076&fm=238669503569420&tin=02508201610067®Number=0000000000091644&sum=40000 [17:50:01]StoreToDocumentArchive [17:50:01]shift 557 fd 73076 [17:50:01]save to /storage/0557/doc_00073076 [17:50:01]save last doc name /storage/0557/doc_00073076 to /storage/kkm_last_doc_name [17:50:01]save OK [17:50:01]Clear old archive folders... [17:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:01]tlvbuf is 018A01A0 [17:50:01]SAM_PROTO_ClearQueue [17:50:01]wFMCommunicate request_size=4 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 09 00 00 [17:50:01]Write to MH i2c: E2 08 00 A9 03 80 09 00 00 00 00 00 00 1E [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [17:50:01]RAPDU: 90 00 [17:50:01]wFMCommunicate OK [17:50:01]SAM_PROTO_ClearQueue done [17:50:01]KKMCreateOFDPacket [17:50:01]OFDProtocolAddRootSTLVToBuf [17:50:01]FM_MakeSignedData [17:50:01]FM_MakeSignedData [17:50:01]SAM_PROTO_SignData [17:50:01]wFMCommunicate request_size=4 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 0D 01 02 [17:50:01]Write to MH i2c: E2 08 00 AA 03 80 0D 01 02 00 00 00 00 26 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [17:50:01]RAPDU: 90 00 [17:50:01]wFMCommunicate OK [17:50:01]wFMCommunicate request_size=255 [17:50:01]MH_SAM_APDU [17:50: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 49 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1D 01 00 35 04 06 00 D9 [17:50:01]Write to MH i2c: E2 02 01 AB 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 49 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1D 01 00 35 04 06 00 D9 00 00 4B [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [17:50:01]RAPDU: 90 00 [17:50:01]wFMCommunicate OK [17:50:01]wFMCommunicate request_size=10 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 0D 02 02 05 11 92 FA 9E 0C [17:50:01]Write to MH i2c: E2 0D 00 AC 03 80 0D 02 02 05 00 11 92 FA 9E 0C 00 00 7A [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [17:50:01]RAPDU: 90 00 [17:50:01]wFMCommunicate OK [17:50:01]wFMCommunicate request_size=4 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 0D 03 02 [17:50:01]Write to MH i2c: E2 08 00 AD 03 80 0D 03 02 00 00 00 00 2B [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 0B 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 0B 00 AD 03 00 30 2A FC 12 C9 56 48 8B 90 00 86 [17:50:01]RAPDU: 30 2A FC 12 C9 56 48 8B 90 00 [17:50:01]wFMCommunicate OK [17:50:01]SAM_PROTO_SignData done [17:50:01]FM_MakeSignedData done [17:50:01]CreateOFDProtocolMessage [17:50:01]wFMCommunicate request_size=4 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 11 00 00 [17:50:01]Write to MH i2c: E2 08 00 AE 03 80 11 00 00 00 00 00 00 2B [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 17 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 17 00 AE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7F [17:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:50:01]wFMCommunicate OK [17:50:01]CreateOFDProtocolMessage done [17:50:01]OFDSenderStorePacket 73076 [17:50:01]StoreOFDPacket docnum=73076 [17:50:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 45 5B 07 01 32 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 49 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1D 01 00 35 04 06 00 D9 11 92 FA 9E 0C 30 2A FC 12 C9 56 48 8B [17:50:01]CheckFolder [17:50:01]dirname=/storage/ofd_packets [17:50:01]CheckFolder done [17:50:01]ProducePacketName [17:50:01]name=ofd_packets/00073076 [17:50:01]NVStorageSaveData ofd_packets/00073076 [17:50:01]File name is /storage/ofd_packets/00073076 [17:50:01]Write 301 bytes [17:50:01]NVStorageSaveData done [17:50:01]OFDSenderStorePacket done [17:50:01]KKMCreateOFDPacket done [17:50:01]NVStorageSaveData kkm_last_timestamp [17:50:01]File name is /storage/kkm_last_timestamp [17:50:01]Write 4 bytes [17:50:01]NVStorageSaveData done [17:50:01]ExternCall_PrintAddStr [17:50:01]wPrintStart [17:50:01]Write to MH i2c: 01 00 00 AF 03 B2 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 FF 0F C7 [17:50:01]RasterBufferAndPrint [17:50:01]line Счет N : (1)952675 [17:50:01]line ИНН: 02508201610067 [17:50:01]line Контрольно-Кассовый Чек [17:50:01]line ПРОДАЖА [17:50:01]line ТРК (МРК, ГНК) : 63 [17:50:01]line Товар: 2710124130 [17:50:01]line Аи-92-К-5 [17:50:01]line 5.980 * 66.90 [17:50:01]line = 400.06 [17:50:01]line НДС 12% НСП 1% [17:50:01]line > о реализуемом товаре [17:50:01]line ОКРУГЛЕНИЕ: -0.06 [17:50:01]line ИТОГО: 400.00 [17:50:01]line Внесено: 400.00 [17:50:01]line СДАЧА: 0.00 [17:50:01]line НСП 1% : 3.54 [17:50:01]line НДС 12% : 42.48 [17:50:01]line Наличными: 400.00 [17:50:01]line Безнал.: 0.00 [17:50:01]line Место: АЗС № 113 "Партнер Нефть" [17:50:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:50:01]line СНО: Общий режим [17:50:01]line Чек 151 31.10.2024 17:50 [17:50:01]line Смена: 557 ФФД: 1.0 [17:50:01]line ЗНМ: 0300000087 [17:50:01]line РНМ: 0000000000091644 [17:50:01]line Версия ККМ: 001 [17:50:01]line ФМ: 0000000000874662 [17:50:01]line ФД: 73076 [17:50:01]line ФПД: 238669503569420 [17:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175001&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73076&fm=238669503569420&tin=02508201610067®Number=0000000000091644&sum=40000 [17:50:01]written 0, free lines is 4095 [17:50:01]OFD Sender: Processing packet 73076 [packets to send 282, broken 281] [17:50:01]ProducePacketName [17:50:01]name=ofd_packets/00073076 [17:50:01]OFD Sender: To server: pG, [17:50:01]CommunicateWithHost lk.salyk.kg:30040 [17:50:01]ConnectInit lk.salyk.kg [17:50:02]Write to MH i2c: 01 00 00 DA 03 DD [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: 01 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: 01 07 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 D7 0C C7 [17:50:02]RasterBufferAndPrint [17:50:02]line [17:50:02]line [17:50:02]line [17:50:02]line [17:50:02]line [17:50:02]written 0, free lines is 3294 [17:50:02]MH_Cut [17:50:02]Write to MH i2c: D1 01 00 E1 03 01 B6 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: D1 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: D1 01 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: D1 01 00 E1 03 00 B5 [17:50:02]Write to MH i2c: 01 00 00 E2 03 E5 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** Cut start [17:50:02]*** Partial cut [17:50:02]*** CUTSNS_PIN = 1 [17:50:02]*** CUTSNS_PIN = 0 [17:50:03]*** Brake cut motor [17:50:03]Read from MH i2c: 01 [17:50:03]MH_I2C_Read... [17:50:03]*** Stop cut motor [17:50:03]*** Cut end [17:50:03]Read from MH i2c: 01 07 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 FF 0F FA [17:50:03]process_action close_receipt done [17:50:03]requested_data is exist [17:50:03]produce_requested_data [17:50:03]requested_item fm.sn is exist - process it [17:50:03]wFMCommunicate request_size=4 [17:50:03]MH_SAM_APDU [17:50:03]CAPDU: 80 11 00 00 [17:50:03]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:03]Read from MH i2c: E2 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 17 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B4 [17:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:50:03]wFMCommunicate OK [17:50:03]requested_item fd.num is exist - process it [17:50:03]SAM_PROTO_GetFieldsCounters [17:50:03]wFMCommunicate request_size=4 [17:50:03]MH_SAM_APDU [17:50:03]CAPDU: 80 13 00 00 [17:50:03]Write to MH i2c: E2 08 00 E4 03 80 13 00 00 00 00 00 00 63 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]recv_with_timeout no data received [17:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:03]Read from MH i2c: E2 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 62 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 62 00 E4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 74 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [17:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 74 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:03]wFMCommunicate OK [17:50:03]SAM_PROTO_GetFieldsCounters done [17:50:03]requested_item shift.num is exist - process it [17:50:03]requested_item shift.opened is exist - process it [17:50:03]req_shift_opened [17:50:03]FM_GetShiftState [17:50:03]SAM_PROTO_GetShiftState [17:50:03]wFMCommunicate request_size=4 [17:50:03]MH_SAM_APDU [17:50:03]CAPDU: 80 13 01 00 [17:50:03]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:03]Read from MH i2c: E2 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 0E 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0E [17:50:03]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:50:03]wFMCommunicate OK [17:50:03]SAM_PROTO_GetShiftState done [17:50:03]FM_GetShiftState done [17:50:03]req_shift_opened done [17:50:03]requested_item shift.open_date is exist - process it [17:50:03]req_shift_open_date [17:50:03]req_shift_open_date done [17:50:03]produce_requested_data done [17:50:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73076,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [17:50:03]process_action_free close_receipt [17:50:03]json_value_free [17:50:03]json_value_free done [17:50:03]process_json_proto returns [17:50:03]Send response to host [17:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73076,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [17:50:03]free response buf [17:50:03]execute_script done [17:50:03]execute_script returns [17:50:03]free content buf [17:50:03]Sock 10.Close socket [17:50:03]Sock 10.Thread stoped [17:50:06]ConnectInit Can't take IP for lk.salyk.kg [17:50:06]CommunicateWithHost connect error [17:50:06]CommunicateWithHost err = -1 [17:50:06]OFD Sender: Server communicate error [17:50:11]OFD Sender: Processing packet 73076 [packets to send 282, broken 281] [17:50:11]ProducePacketName [17:50:11]name=ofd_packets/00073076 [17:50:11]OFD Sender: To server: pG, [17:50:11]CommunicateWithHost lk.salyk.kg:30040 [17:50:11]ConnectInit lk.salyk.kg [17:50:14]Connected sock=10 [17:50:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 45 5B 07 01 32 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 49 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1D 01 00 35 04 06 00 D9 11 [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 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7772379+1722625140=1730397519 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 50 C5 23 67 74 2C AD 66 51 [17:58:40]Current date/time: 31.10.2024 17:58 [17:58:40]FM_Init [17:58:40]wFMConnect [17:58:40]MH_SAM_On [17:58:40]Write to MH i2c: E0 00 00 08 00 E7 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_init finished! [17:58:40]*** atr: [17:58:40]*** 0F 3B D5 18 FF 81 91 FE [17:58:40]*** 1F C3 80 73 C8 21 10 0A [17:58:40]*** 00 00 00 00 00 00 00 00 [17:58:40]*** 00 00 00 00 00 00 00 00 [17:58:40]*** 00 00 00 00 00 00 00 00 [17:58:40]*** 00 00 00 00 00 00 00 00 [17:58:40]*** 00 00 00 00 00 00 00 00 [17:58:40]*** 00 00 00 00 00 00 00 00 [17:58:40]Read from MH i2c: E0 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E0 10 00 [17:58:40]MH_I2C_Read... [17:58:40]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 [17:58:40]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:58:40]wFMCommunicate request_size=10 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:58:40]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:58:40]RAPDU: 90 00 [17:58:40]wFMCommunicate OK [17:58:40]wFMCommunicate request_size=4 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 11 00 00 [17:58:40]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 17 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [17:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:58:40]wFMCommunicate OK [17:58:40]Detected FM SN is 0000000000874662 [17:58:40]Stored FM SN is 0000000000874662 [17:58:40]wFMCommunicate request_size=9 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 16 00 00 04 08 EB 00 00 [17:58:40]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:58:40]RAPDU: 90 00 [17:58:40]wFMCommunicate OK [17:58:40]FM PIN OK [17:58:40]wFMCommunicate request_size=8 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 14 04 00 03 02 00 01 [17:58:40]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:58:40]RAPDU: 90 00 [17:58:40]wFMCommunicate OK [17:58:40]wFMCommunicate request_size=13 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:58:40]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 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:58:40]RAPDU: 90 00 [17:58:40]wFMCommunicate OK [17:58:40]wFMCommunicate request_size=4 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 11 00 00 [17:58:40]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 17 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [17:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:58:40]wFMCommunicate OK [17:58:40]DocumentArchiveInit [17:58:40]Start Httpd... [17:58:40]Httpd thread 3066944868 created [17:58:40]Write to MH i2c: 01 00 00 0F 00 0F [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: 01 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: 01 07 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:58:40]MH Int Process started [17:58:40]Allocated Socket 8 [17:58:40]Bind OK [17:58:40]Listen OK [17:58:40]httpd running on port 8080 [17:58:40]Waiting for new connection... [17:58:40]OFD Sender: Processing packet 73077 [packets to send 282, broken 281] [17:58:40]ProducePacketName [17:58:40]name=ofd_packets/00073077 [17:58:40]OFD Sender: To server: pG, [17:58:40]CommunicateWithHost lk.salyk.kg:30040 [17:58:40]ConnectInit lk.salyk.kg [17:58:41]Connected sock=5 [17:58:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 CA FD 08 01 2C 8F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 60 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1D 01 00 35 04 06 00 B0 5C 1A 60 C9 F7 CC D6 01 C7 8D 3C B1 EF [17:58:41]accept exits with 9 [17:58:41]New connection [17:58:41]New thread 3066658148 created [17:58:41]Waiting for new connection... [17:58:41] Sock 9.Parse request [17:58:41]Sock 9.Check first char [17:58:41]Sock 9.First char is OK [17:58:41]request: POST /json_proto HTTP/1.0 [17:58:41]Method: POST [17:58:41]URL: /json_proto [17:58:41]Method is POST - this is cgi request [17:58:41]url: /json_proto [17:58:41]query_string will be loaded in cgi processing [17:58:41]execute_cgi json_proto POST (null) [17:58:41]execute_cgi path=json_proto method=POST [17:58:41]POST find Content-Length [17:58:41]Host: 172.17.43.195:8080 [17:58:41]Content-Length: 215 [17:58:41]Content-Type: application/json [17:58:41] [17:58:41]POST finish read [17:58:41]Found Content-Length = 215 [17:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:41]execute_script... [17:58:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:41]POST & json_proto [17:58:41]process_json_proto [17:58:41]json parsed OK: [17:58:41]protocol is kg_v1.0 [17:58:41]action value=get_value [17:58:41]process_action get_value [17:58:41]cmd_get_value [17:58:41]process_action get_value done [17:58:41]requested_data is exist [17:58:41]produce_requested_data [17:58:41]requested_item kkm.sn is exist - process it [17:58:41]requested_item kkm.ver is exist - process it [17:58:41]requested_item fm.sn is exist - process it [17:58:41]wFMCommunicate request_size=4 [17:58:41]MH_SAM_APDU [17:58:41]CAPDU: 80 11 00 00 [17:58:41]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:58:41]Write i2c OK [17:58:41]MH_I2C_Read... [17:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:41]Read from MH i2c: E2 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 17 00 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [17:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:58:41]wFMCommunicate OK [17:58:41]requested_item fd.num is exist - process it [17:58:41]SAM_PROTO_GetFieldsCounters [17:58:41]wFMCommunicate request_size=4 [17:58:41]MH_SAM_APDU [17:58:41]CAPDU: 80 13 00 00 [17:58:41]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:58:41]Write i2c OK [17:58:41]MH_I2C_Read... [17:58:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:41]Read from MH i2c: E2 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 62 00 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 75 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [17:58:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 75 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:41]wFMCommunicate OK [17:58:41]SAM_PROTO_GetFieldsCounters done [17:58:41]requested_item shift.num is exist - process it [17:58:41]requested_item shift.opened is exist - process it [17:58:41]req_shift_opened [17:58:41]FM_GetShiftState [17:58:41]SAM_PROTO_GetShiftState [17:58:41]wFMCommunicate request_size=4 [17:58:41]MH_SAM_APDU [17:58:41]CAPDU: 80 13 01 00 [17:58:41]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:58:41]Write i2c OK [17:58:41]MH_I2C_Read... [17:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:42]Read from MH i2c: E2 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 0E 00 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [17:58:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:58:42]wFMCommunicate OK [17:58:42]SAM_PROTO_GetShiftState done [17:58:42]FM_GetShiftState done [17:58:42]req_shift_opened done [17:58:42]requested_item shift.open_date is exist - process it [17:58:42]req_shift_open_date [17:58:42]req_shift_open_date done [17:58:42]produce_requested_data done [17:58:42]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73077,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [17:58:42]process_action_free get_value [17:58:42]json_value_free [17:58:42]json_value_free done [17:58:42]process_json_proto returns [17:58:42]Send response to host [17:58:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73077,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [17:58:42]free response buf [17:58:42]execute_script done [17:58:42]execute_script returns [17:58:42]free content buf [17:58:42]Sock 9.Close socket [17:58:42]Sock 9.Thread stoped [17:58:42]accept exits with 10 [17:58:42]New connection [17:58:42]New thread 3066514788 created [17:58:42]Thread 3066658148 joined [17:58:42]Waiting for new connection... [17:58:42] Sock 10.Parse request [17:58:42]Sock 10.Check first char [17:58:42]Sock 10.First char is OK [17:58:42]request: POST /json_proto HTTP/1.0 [17:58:42]Method: POST [17:58:42]URL: /json_proto [17:58:42]Method is POST - this is cgi request [17:58:42]url: /json_proto [17:58:42]query_string will be loaded in cgi processing [17:58:42]execute_cgi json_proto POST (null) [17:58:42]execute_cgi path=json_proto method=POST [17:58:42]POST find Content-Length [17:58:42]Host: 172.17.43.195:8080 [17:58:42]Content-Length: 331 [17:58:42]Content-Type: application/json [17:58:42] [17:58:42]POST finish read [17:58:42]Found Content-Length = 331 [17:58:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:58:42]execute_script... [17:58:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:58:42]POST & json_proto [17:58:42]process_json_proto [17:58:42]json parsed OK: [17:58:42]protocol is kg_v1.0 [17:58:42]action value=get_value [17:58:42]process_action get_value [17:58:42]cmd_get_value [17:58:42]process_action get_value done [17:58:42]requested_data is exist [17:58:42]produce_requested_data [17:58:42]requested_item fm.sale.total is exist - process it [17:58:42]SAM_PROTO_GetFMData [17:58:42]wFMCommunicate request_size=4 [17:58:42]MH_SAM_APDU [17:58:42]CAPDU: 80 13 03 00 [17:58:42]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:58:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4B A3 47 00 91 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1D 01 00 F4 03 04 00 05 70 23 67 B6 04 01 00 00 99 E4 E7 85 0C 64 2C C9 [17:58:42]CommunicateWithHost err = 0 [17:58:42]CheckOFDResponse [17:58:42]1017 (14) - 77093643461234 [17:58:42]1041 (16) - 0000000000874662 [17:58:42]1040 (4) - 73077 [17:58:42]1012 (4) - 31.10.2024 11:54 [17:58:42]1206 (1) - 0 [17:58:42]OFD Sender: Remove packet 73077 [17:58:42]ProducePacketName [17:58:42]name=ofd_packets/00073077 [17:58:42]NVStorageDeleteData [17:58:42]Write i2c OK [17:58:42]MH_I2C_Read... [17:58:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:58:42]Read from MH i2c: E2 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 FD 00 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 1B 19 01 00 69 04 A3 00 6F 04 04 00 2B 18 01 00 B1 04 05 00 88 63 A8 A4 01 70 04 05 00 B4 2B FD 58 01 72 04 04 00 D4 37 AB 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E C0 AE 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C2 28 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 B9 [17:58:42]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 1B 19 01 00 69 04 A3 00 6F 04 04 00 2B 18 01 00 B1 04 05 00 88 63 A8 A4 01 70 04 05 00 B4 2B FD 58 01 72 04 04 00 D4 37 AB 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E C0 AE 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C2 28 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [17:58:42]wFMCommunicate OK [17:58:42]wFMCommunicate request_size=4 [17:58:42]MH_SAM_APDU [17:58:42]CAPDU: 80 17 00 00 [17:58:42]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:58:42]Write i2c OK [17:58:42]MH_I2C_Read... [17:58:42]OFD Sender: No OFD packet to send [17:58:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 FD 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [17:58:43]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [17:58:43]wFMCommunicate OK [17:58:43]wFMCommunicate request_size=4 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 17 00 00 [17:58:43]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 FD 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [17:58:43]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [17:58:43]wFMCommunicate OK [17:58:43]wFMCommunicate request_size=4 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 17 00 00 [17:58:43]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 FD 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [17:58:43]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [17:58:43]wFMCommunicate OK [17:58:43]wFMCommunicate request_size=4 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 17 00 00 [17:58:43]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [17:58:43]Read from MH i2c: E2 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 E1 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [17:58:43]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:58:43]wFMCommunicate OK [17:58:43]SAM_PROTO_GetFMData done [17:58:43]requested_item fm.sale_refund.total is exist - process it [17:58:43]requested_item fm.buy.total is exist - process it [17:58:43]requested_item shift.sale.total is exist - process it [17:58:43]SAM_PROTO_GetShiftData [17:58:43]wFMCommunicate request_size=4 [17:58:43]MH_SAM_APDU [17:58:43]CAPDU: 80 13 02 00 [17:58:43]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:58:44]Read from MH i2c: E2 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 FD 00 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 98 00 00 00 69 04 9C 00 6F 04 04 00 98 00 00 00 B1 04 03 00 CF F6 91 70 04 03 00 80 22 58 72 04 03 00 4F D4 39 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E3 80 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BA 4A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 B9 [17:58:44]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 98 00 00 00 69 04 9C 00 6F 04 04 00 98 00 00 00 B1 04 03 00 CF F6 91 70 04 03 00 80 22 58 72 04 03 00 4F D4 39 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E3 80 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BA 4A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [17:58:44]wFMCommunicate OK [17:58:44]wFMCommunicate request_size=4 [17:58:44]MH_SAM_APDU [17:58:44]CAPDU: 80 17 00 00 [17:58:44]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:58:44]Write i2c OK [17:58:44]MH_I2C_Read... [17:58:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:58:44]Read from MH i2c: E2 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 FD 00 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [17:58:44]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [17:58:44]wFMCommunicate OK [17:58:44]wFMCommunicate request_size=4 [17:58:44]MH_SAM_APDU [17:58:44]CAPDU: 80 17 00 00 [17:58:44]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:58:44]Write i2c OK [17:58:44]MH_I2C_Read... [17:58:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:58:45]Read from MH i2c: E2 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 FD 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [17:58:45]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [17:58:45]wFMCommunicate OK [17:58:45]wFMCommunicate request_size=4 [17:58:45]MH_SAM_APDU [17:58:45]CAPDU: 80 17 00 00 [17:58:45]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:58:45]Read from MH i2c: E2 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 FD 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [17:58:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [17:58:45]wFMCommunicate OK [17:58:45]wFMCommunicate request_size=4 [17:58:45]MH_SAM_APDU [17:58:45]CAPDU: 80 17 00 00 [17:58:45]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [17:58:45]Read from MH i2c: E2 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 CC 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [17:58:45]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:58:45]wFMCommunicate OK [17:58:45]SAM_PROTO_GetShiftData done [17:58:45]requested_item shift.sale.total_cash is exist - process it [17:58:45]requested_item shift.sale_refund.total is exist - process it [17:58:45]requested_item shift.sale_refund.total_cash is exist - process it [17:58:45]requested_item shift.buy.total is exist - process it [17:58:45]requested_item shift.buy.total_cash is exist - process it [17:58:45]produce_requested_data done [17:58:45]produce_requested_data return {"fm.sale.total":70574662.48,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":95659.03,"shift.sale.total_cash":57760.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} [17:58:45]process_action_free get_value [17:58:45]json_value_free [17:58:45]json_value_free done [17:58:45]process_json_proto returns [17:58:45]Send response to host [17:58:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70574662.48,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":95659.03,"shift.sale.total_cash":57760.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}}} [17:58:45]free response buf [17:58:45]execute_script done [17:58:45]execute_script returns [17:58:45]free content buf [17:58:45]Sock 10.Close socket [17:58:45]Sock 10.Thread stoped [17:58:45]accept exits with 9 [17:58:45]New connection [17:58:45]New thread 3066658148 created [17:58:45]Thread 3066514788 joined [17:58:45]Waiting for new connection... [17:58:45] Sock 9.Parse request [17:58:45]Sock 9.Check first char [17:58:45]Sock 9.First char is OK [17:58:45]request: POST /json_proto HTTP/1.0 [17:58:45]Method: POST [17:58:45]URL: /json_proto [17:58:45]Method is POST - this is cgi request [17:58:45]url: /json_proto [17:58:45]query_string will be loaded in cgi processing [17:58:45]execute_cgi json_proto POST (null) [17:58:45]execute_cgi path=json_proto method=POST [17:58:45]POST find Content-Length [17:58:45]Host: 172.17.43.195:8080 [17:58:45]Content-Length: 144 [17:58:45]Content-Type: application/json [17:58:45] [17:58:45]POST finish read [17:58:45]Found Content-Length = 144 [17:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:58:45]execute_script... [17:58:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:58:45]POST & json_proto [17:58:45]process_json_proto [17:58:45]json parsed OK: [17:58:45]protocol is kg_v1.0 [17:58:45]action value=print_doc [17:58:45]process_action print_doc [17:58:45]ExternCall_PrintAddStr [17:58:45]wPrintStart [17:58:45]Write to MH i2c: 01 00 00 1D 00 1D [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: 01 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: 01 07 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [17:58:45]RasterBufferAndPrint [17:58:45]line Счет N : (1)952676 [17:58:45]line ИНН: 02508201610067 [17:58:45]line Контрольно-Кассовый Чек [17:58:45]line ПРОДАЖА [17:58:45]line ТРК (МРК, ГНК) : 43 [17:58:45]line Товар: 2710194210 [17:58:45]line ДТ(л)-К-5 [17:58:45]line 13.130 * 76.20 [17:58:45]line = 1000.51 [17:58:45]line НДС 12% НСП 1% [17:58:45]line > о реализуемом товаре [17:58:45]line ОКРУГЛЕНИЕ: -0.51 [17:58:45]line ИТОГО: 1000.00 [17:58:45]line Внесено: 1000.00 [17:58:45]line СДАЧА: 0.00 [17:58:45]line НСП 1% : 8.85 [17:58:45]line НДС 12% : 106.25 [17:58:45]line Наличными: 1000.00 [17:58:45]line Безнал.: 0.00 [17:58:45]line Место: АЗС № 113 "Партнер Нефть" [17:58:45]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:58:45]line СНО: Общий режим [17:58:45]line Чек 152 31.10.2024 17:50 [17:58:45]line Смена: 557 ФФД: 1.0 [17:58:45]line ЗНМ: 0300000087 [17:58:45]line РНМ: 0000000000091644 [17:58:45]line Версия ККМ: 001 [17:58:45]line ФМ: 0000000000874662 [17:58:45]line ФД: 73077 [17:58:45]line ФПД: 193909626030583 [17:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175024&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73077&fm=193909626030583&tin=02508201610067®Number=0000000000091644&sum=100000 [17:58:45]written 0, free lines is 4095 [17:58:46]Write to MH i2c: 01 00 00 48 00 48 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 07 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D9 0C 34 [17:58:46]RasterBufferAndPrint [17:58:46]line [17:58:46]line [17:58:46]line [17:58:46]line [17:58:46]line [17:58:46]written 0, free lines is 3308 [17:58:46]MH_Cut [17:58:46]Write to MH i2c: D1 01 00 4F 00 01 21 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: D1 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: D1 01 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: D1 01 00 4F 00 00 20 [17:58:46]Write to MH i2c: 01 00 00 50 00 50 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:47]*** Cut start [17:58:47]*** Partial cut [17:58:47]*** CUTSNS_PIN = 1 [17:58:47]*** CUTSNS_PIN = 0 [17:58:47]*** Brake cut motor [17:58:47]Read from MH i2c: 01 [17:58:47]MH_I2C_Read... [17:58:47]*** Stop cut motor [17:58:47]*** Cut end [17:58:47]Read from MH i2c: 01 07 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [17:58:47]process_action print_doc done [17:58:47]requested_data is exist [17:58:47]produce_requested_data [17:58:47]produce_requested_data return (null) [17:58:47]process_action_free print_doc [17:58:47]json_value_free [17:58:47]json_value_free done [17:58:47]process_json_proto returns [17:58:47]Send response to host [17:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:58:47]free response buf [17:58:47]execute_script done [17:58:47]execute_script returns [17:58:47]free content buf [17:58:47]Sock 9.Close socket [17:58:47]Sock 9.Thread stoped [17:58:47]OFD Sender: No OFD packet to send [17:58:48]accept exits with 10 [17:58:48]New connection [17:58:48]New thread 3066514788 created [17:58:48]Thread 3066658148 joined [17:58:48]Waiting for new connection... [17:58:48] Sock 10.Parse request [17:58:48]Sock 10.Check first char [17:58:48]Sock 10.First char is OK [17:58:48]request: POST /json_proto HTTP/1.0 [17:58:48]Method: POST [17:58:48]URL: /json_proto [17:58:48]Method is POST - this is cgi request [17:58:48]url: /json_proto [17:58:48]query_string will be loaded in cgi processing [17:58:48]execute_cgi json_proto POST (null) [17:58:48]execute_cgi path=json_proto method=POST [17:58:48]POST find Content-Length [17:58:48]Host: 172.17.43.195:8080 [17:58:48]Content-Length: 677 [17:58:48]Content-Type: application/json [17:58:48] [17:58:48]POST finish read [17:58:48]Found Content-Length = 677 [17:58:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:48]execute_script... [17:58:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:48]POST & json_proto [17:58:48]process_json_proto [17:58:48]json parsed OK: [17:58:48]protocol is kg_v1.0 [17:58:48]action value=close_receipt [17:58:48]process_action close_receipt [17:58:48]cmd_close_receipt [17:58:48]MH_GetDate [17:58:48]Write to MH i2c: F0 00 00 51 00 40 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: F0 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: F0 09 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: F0 09 00 51 00 00 58 C5 23 67 74 2C AD 66 A3 [17:58:48]GetLastDocTimeStamp 1730397024 [17:58:48]current date 1730397528 [17:58:48]FM_GetShiftState [17:58:48]SAM_PROTO_GetShiftState [17:58:48]wFMCommunicate request_size=4 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 13 01 00 [17:58:48]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 0E 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 78 [17:58:48]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:58:48]wFMCommunicate OK [17:58:48]SAM_PROTO_GetShiftState done [17:58:48]FM_GetShiftState done [17:58:48]opened in 1730333258 [17:58:48]opened+sec_in_day 1730419658 [17:58:48]quantity*price = 50041 [17:58:48]sum+1 = 50042 [17:58:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 153 31.10.2024 17:58 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73078 ФПД: 20909188237161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175848&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73078&fm=20909188237161&tin=02508201610067®Number=0000000000091644&sum=50000 [17:58:49]StoreToDocumentArchive [17:58:49]shift 557 fd 73078 [17:58:49]save to /storage/0557/doc_00073078 [17:58:49]save last doc name /storage/0557/doc_00073078 to /storage/kkm_last_doc_name [17:58:49]save OK [17:58:49]Clear old archive folders... [17:58:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:49]tlvbuf is 0010CB60 [17:58:49]SAM_PROTO_ClearQueue [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 09 00 00 [17:58:49]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [17:58:49]RAPDU: 90 00 [17:58:49]wFMCommunicate OK [17:58:49]SAM_PROTO_ClearQueue done [17:58:49]KKMCreateOFDPacket [17:58:49]OFDProtocolAddRootSTLVToBuf [17:58:49]FM_MakeSignedData [17:58:49]FM_MakeSignedData [17:58:49]SAM_PROTO_SignData [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 0D 01 02 [17:58:49]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [17:58:49]RAPDU: 90 00 [17:58:49]wFMCommunicate OK [17:58:49]wFMCommunicate request_size=255 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 58 C5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1D 01 00 35 04 06 00 13 [17:58:49]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 58 C5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1D 01 00 35 04 06 00 13 00 00 7E [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]recv_with_timeout no data received [17:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [17:58:50]RAPDU: 90 00 [17:58:50]wFMCommunicate OK [17:58:50]wFMCommunicate request_size=10 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 0D 02 02 05 04 4C BC C7 69 [17:58:50]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 04 4C BC C7 69 00 00 22 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [17:58:50]RAPDU: 90 00 [17:58:50]wFMCommunicate OK [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 0D 03 02 [17:58:50]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 0B 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 0B 00 63 00 00 C7 BD 8D 55 56 F1 7B 23 90 00 2A [17:58:50]RAPDU: C7 BD 8D 55 56 F1 7B 23 90 00 [17:58:50]wFMCommunicate OK [17:58:50]SAM_PROTO_SignData done [17:58:50]FM_MakeSignedData done [17:58:50]CreateOFDProtocolMessage [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 11 00 00 [17:58:50]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 17 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [17:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:58:50]wFMCommunicate OK [17:58:50]CreateOFDProtocolMessage done [17:58:50]OFDSenderStorePacket 73078 [17:58:50]StoreOFDPacket docnum=73078 [17:58:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D7 6F 07 01 99 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 58 C5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1D 01 00 35 04 06 00 13 04 4C BC C7 69 C7 BD 8D 55 56 F1 7B 23 [17:58:50]CheckFolder [17:58:50]dirname=/storage/ofd_packets [17:58:50]CheckFolder done [17:58:50]ProducePacketName [17:58:50]name=ofd_packets/00073078 [17:58:50]NVStorageSaveData ofd_packets/00073078 [17:58:50]File name is /storage/ofd_packets/00073078 [17:58:50]Write 301 bytes [17:58:50]NVStorageSaveData done [17:58:50]OFDSenderStorePacket done [17:58:50]KKMCreateOFDPacket done [17:58:50]NVStorageSaveData kkm_last_timestamp [17:58:50]File name is /storage/kkm_last_timestamp [17:58:50]Write 4 bytes [17:58:50]NVStorageSaveData done [17:58:50]ExternCall_PrintAddStr [17:58:50]wPrintStart [17:58:50]Write to MH i2c: 01 00 00 65 00 65 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 07 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [17:58:50]RasterBufferAndPrint [17:58:50]line Счет N : (1)952677 [17:58:50]line ИНН: 02508201610067 [17:58:50]line Контрольно-Кассовый Чек [17:58:50]line ПРОДАЖА [17:58:50]line ТРК (МРК, ГНК) : 53 [17:58:50]line Товар: 2710124130 [17:58:50]line Аи-92-К-5 [17:58:50]line 7.480 * 66.90 [17:58:50]line = 500.41 [17:58:50]line НДС 12% НСП 1% [17:58:50]line > о реализуемом товаре [17:58:50]line ОКРУГЛЕНИЕ: -0.41 [17:58:50]line ИТОГО: 500.00 [17:58:50]line Внесено: 500.00 [17:58:50]line СДАЧА: 0.00 [17:58:50]line НСП 1% : 4.43 [17:58:50]line НДС 12% : 53.14 [17:58:50]line Наличными: 500.00 [17:58:50]line Безнал.: 0.00 [17:58:50]line Место: АЗС № 113 "Партнер Нефть" [17:58:50]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:58:50]line СНО: Общий режим [17:58:50]line Чек 153 31.10.2024 17:58 [17:58:50]line Смена: 557 ФФД: 1.0 [17:58:50]line ЗНМ: 0300000087 [17:58:50]line РНМ: 0000000000091644 [17:58:50]line Версия ККМ: 001 [17:58:50]line ФМ: 0000000000874662 [17:58:50]line ФД: 73078 [17:58:50]line ФПД: 20909188237161 [17:58:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175848&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73078&fm=20909188237161&tin=02508201610067®Number=0000000000091644&sum=50000 [17:58:50]OFD Sender: Processing packet 73078 [packets to send 282, broken 281] [17:58:50]ProducePacketName [17:58:50]name=ofd_packets/00073078 [17:58:50]OFD Sender: To server: pG, [17:58:50]CommunicateWithHost lk.salyk.kg:30040 [17:58:50]ConnectInit lk.salyk.kg [17:58:50]written 0, free lines is 4095 [17:58:50]Write to MH i2c: 01 00 00 90 00 90 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 07 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 D0 0C 73 [17:58:50]RasterBufferAndPrint [17:58:50]line [17:58:50]line [17:58:50]line [17:58:50]line [17:58:50]line [17:58:50]written 0, free lines is 3307 [17:58:50]MH_Cut [17:58:50]Write to MH i2c: D1 01 00 97 00 01 69 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: D1 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: D1 01 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: D1 01 00 97 00 00 68 [17:58:50]Write to MH i2c: 01 00 00 98 00 98 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:51]*** Cut start [17:58:51]*** Partial cut [17:58:51]*** CUTSNS_PIN = 1 [17:58:51]*** CUTSNS_PIN = 0 [17:58:51]*** Brake cut motor [17:58:52]Read from MH i2c: 01 [17:58:52]MH_I2C_Read... [17:58:52]*** Stop cut motor [17:58:52]*** Cut end [17:58:52]Read from MH i2c: 01 07 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [17:58:52]process_action close_receipt done [17:58:52]requested_data is exist [17:58:52]produce_requested_data [17:58:52]requested_item fm.sn is exist - process it [17:58:52]wFMCommunicate request_size=4 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 11 00 00 [17:58:52]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 17 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 67 [17:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:58:52]wFMCommunicate OK [17:58:52]requested_item fd.num is exist - process it [17:58:52]SAM_PROTO_GetFieldsCounters [17:58:52]wFMCommunicate request_size=4 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 13 00 00 [17:58:52]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 62 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 76 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [17:58:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 76 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:52]wFMCommunicate OK [17:58:52]SAM_PROTO_GetFieldsCounters done [17:58:52]requested_item shift.num is exist - process it [17:58:52]requested_item shift.opened is exist - process it [17:58:52]req_shift_opened [17:58:52]FM_GetShiftState [17:58:52]SAM_PROTO_GetShiftState [17:58:52]wFMCommunicate request_size=4 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 13 01 00 [17:58:52]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 0E 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C1 [17:58:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:58:52]wFMCommunicate OK [17:58:52]SAM_PROTO_GetShiftState done [17:58:52]FM_GetShiftState done [17:58:52]req_shift_opened done [17:58:52]requested_item shift.open_date is exist - process it [17:58:52]req_shift_open_date [17:58:52]req_shift_open_date done [17:58:52]produce_requested_data done [17:58:52]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73078,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [17:58:52]process_action_free close_receipt [17:58:52]json_value_free [17:58:52]json_value_free done [17:58:52]process_json_proto returns [17:58:52]Send response to host [17:58:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73078,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [17:58:52]free response buf [17:58:52]execute_script done [17:58:52]execute_script returns [17:58:52]free content buf [17:58:52]Sock 10.Close socket [17:58:52]Sock 10.Thread stoped [17:58:56]Connected sock=7 [17: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 34 36 36 32 0F 01 00 00 D7 6F 07 01 99 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 58 C5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1D 01 00 35 04 06 00 13 04 4C BC C7 69 C7 BD 8D 55 56 F1 7B 23 [17:59:01]recv_with_timeout no data received [17:59:01]recv_with_timeout no data received [17:59:01]CommunicateWithHost answer receiving error [17:59:01]CommunicateWithHost err = -3 [17:59:01]OFD Sender: Server communicate error [17:59:06]OFD Sender: Processing packet 73078 [packets to send 282, broken 281] [17:59:06]ProducePacketName [17:59:06]name=ofd_packets/00073078 [17:59:06]OFD Sender: To server: pG, [17:59:06]CommunicateWithHost lk.salyk.kg:30040 [17:59:06]ConnectInit lk.salyk.kg [17:59:11]ConnectInit Can't take IP for lk.salyk.kg [17:59:11]CommunicateWithHost connect error [17:59:11]CommunicateWithHost err = -1 [17:59:11]OFD Sender: Server communicate error [17:59:16]OFD Sender: Processing packet 73078 [packets to send 282, broken 281] [17:59:16]ProducePacketName [17:59:16]name=ofd_packets/00073078 [17:59:16]OFD Sender: To server: pG, [17:59:16]CommunicateWithHost lk.salyk.kg:30040 [17:59:16]ConnectInit lk.salyk.kg [17:59:18]recv_with_timeout no data received [17:59:18]Connected sock=10 [17:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D7 6F 07 01 99 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 58 C5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1D 01 00 35 04 06 00 13 04 4C BC C7 69 C7 BD 8D 55 56 F1 7B 23 [17:59:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 06 A9 47 00 C2 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1D 01 00 F4 03 04 00 29 70 23 67 B6 04 01 00 00 1E 93 6D B1 56 1A 6E 10 [17:59:19]CommunicateWithHost err = 0 [17:59:19]CheckOFDResponse [17:59:19]1017 (14) - 77093643461234 [17:59:19]1041 (16) - 0000000000874662 [17:59:19]1040 (4) - 73078 [17:59:19]1012 (4) - 31.10.2024 11:55 [17:59:19]1206 (1) - 0 [17:59:19]OFD Sender: Remove packet 73078 [17:59:19]ProducePacketName [17:59:19]name=ofd_packets/00073078 [17:59:19]NVStorageDeleteData [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:36]accept exits with 9 [17:59:36]New connection [17:59:36]New thread 3066658148 created [17:59:36]Thread 3066514788 joined [17:59:36]Waiting for new connection... [17:59:36] Sock 9.Parse request [17:59:36]Sock 9.Check first char [17:59:36]Sock 9.First char is OK [17:59:36]request: POST /json_proto HTTP/1.0 [17:59:36]Method: POST [17:59:36]URL: /json_proto [17:59:36]Method is POST - this is cgi request [17:59:36]url: /json_proto [17:59:36]query_string will be loaded in cgi processing [17:59:36]execute_cgi json_proto POST (null) [17:59:36]execute_cgi path=json_proto method=POST [17:59:36]POST find Content-Length [17:59:36]Host: 172.17.43.195:8080 [17:59:36]Content-Length: 792 [17:59:36]Content-Type: application/json [17:59:36] [17:59:36]POST finish read [17:59:36]Found Content-Length = 792 [17:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.290, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:36]execute_script... [17:59:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.290, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:36]POST & json_proto [17:59:36]process_json_proto [17:59:36]json parsed OK: [17:59:36]protocol is kg_v1.0 [17:59:36]action value=close_receipt [17:59:36]process_action close_receipt [17:59:36]cmd_close_receipt [17:59:36]MH_GetDate [17:59:36]Write to MH i2c: F0 00 00 9C 00 8B [17:59:36]Write i2c OK [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: F0 [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: F0 09 00 [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: F0 09 00 9C 00 00 88 C5 23 67 74 2C AD 66 1E [17:59:36]GetLastDocTimeStamp 1730397528 [17:59:36]current date 1730397576 [17:59:36]FM_GetShiftState [17:59:36]SAM_PROTO_GetShiftState [17:59:36]wFMCommunicate request_size=4 [17:59:36]MH_SAM_APDU [17:59:36]CAPDU: 80 13 01 00 [17:59:36]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [17:59:36]Write i2c OK [17:59:36]MH_I2C_Read... [17:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:36]Read from MH i2c: E2 [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: E2 0E 00 [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C3 [17:59:36]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:59:36]wFMCommunicate OK [17:59:36]SAM_PROTO_GetShiftState done [17:59:36]FM_GetShiftState done [17:59:36]opened in 1730333258 [17:59:36]opened+sec_in_day 1730419658 [17:59:36]quantity*price = 0 [17:59:36]sum+1 = 1 [17:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 154 31.10.2024 17:59 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 73079 ФПД: 51229691607225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175937&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73079&fm=51229691607225&tin=02508201610067®Number=0000000000091644&sum=0 [17:59:38]StoreToDocumentArchive [17:59:38]shift 557 fd 73079 [17:59:38]save to /storage/0557/doc_00073079 [17:59:38]save last doc name /storage/0557/doc_00073079 to /storage/kkm_last_doc_name [17:59:38]save OK [17:59:38]Clear old archive folders... [17:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:59:38]tlvbuf is 00121190 [17:59:38]SAM_PROTO_ClearQueue [17:59:38]wFMCommunicate request_size=4 [17:59:38]MH_SAM_APDU [17:59:38]CAPDU: 80 09 00 00 [17:59:38]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [17:59:38]RAPDU: 90 00 [17:59:38]wFMCommunicate OK [17:59:38]SAM_PROTO_ClearQueue done [17:59:38]KKMCreateOFDPacket [17:59:38]OFDProtocolAddRootSTLVToBuf [17:59:38]FM_MakeSignedData [17:59:38]FM_MakeSignedData [17:59:38]SAM_PROTO_SignData [17:59:38]wFMCommunicate request_size=4 [17:59:38]MH_SAM_APDU [17:59:38]CAPDU: 80 0D 01 02 [17:59:38]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [17:59:38]RAPDU: 90 00 [17:59:38]wFMCommunicate OK [17:59:38]wFMCommunicate request_size=255 [17:59:38]MH_SAM_APDU [17:59:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 3B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 89 C5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1D 01 00 35 04 06 00 2E [17:59:38]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 3B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 89 C5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1D 01 00 35 04 06 00 2E 00 00 87 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [17:59:38]RAPDU: 90 00 [17:59:38]wFMCommunicate OK [17:59:38]wFMCommunicate request_size=10 [17:59:38]MH_SAM_APDU [17:59:38]CAPDU: 80 0D 02 02 05 97 D7 91 F8 B9 [17:59:38]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 97 D7 91 F8 B9 00 00 E1 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [17:59:38]RAPDU: 90 00 [17:59:38]wFMCommunicate OK [17:59:38]wFMCommunicate request_size=4 [17:59:38]MH_SAM_APDU [17:59:38]CAPDU: 80 0D 03 02 [17:59:38]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 0B 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 0B 00 AE 00 00 D6 8C AE 55 5A 5A B9 96 90 00 92 [17:59:38]RAPDU: D6 8C AE 55 5A 5A B9 96 90 00 [17:59:38]wFMCommunicate OK [17:59:38]SAM_PROTO_SignData done [17:59:38]FM_MakeSignedData done [17:59:38]CreateOFDProtocolMessage [17:59:38]wFMCommunicate request_size=4 [17:59:38]MH_SAM_APDU [17:59:38]CAPDU: 80 11 00 00 [17:59:38]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 17 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [17:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:59:38]wFMCommunicate OK [17:59:38]CreateOFDProtocolMessage done [17:59:38]OFDSenderStorePacket 73079 [17:59:38]StoreOFDPacket docnum=73079 [17:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9B D5 07 01 F6 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 3B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 89 C5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1D 01 00 35 04 06 00 2E 97 D7 91 F8 B9 D6 8C AE 55 5A 5A B9 96 [17:59:38]CheckFolder [17:59:38]dirname=/storage/ofd_packets [17:59:38]CheckFolder done [17:59:38]ProducePacketName [17:59:38]name=ofd_packets/00073079 [17:59:38]NVStorageSaveData ofd_packets/00073079 [17:59:38]File name is /storage/ofd_packets/00073079 [17:59:38]Write 301 bytes [17:59:38]NVStorageSaveData done [17:59:38]OFDSenderStorePacket done [17:59:38]KKMCreateOFDPacket done [17:59:38]NVStorageSaveData kkm_last_timestamp [17:59:38]File name is /storage/kkm_last_timestamp [17:59:38]Write 4 bytes [17:59:38]NVStorageSaveData done [17:59:38]ExternCall_PrintAddStr [17:59:38]wPrintStart [17:59:38]Write to MH i2c: 01 00 00 B0 00 B0 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: 01 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: 01 07 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [17:59:38]RasterBufferAndPrint [17:59:38]line Счет N : (1)952678 [17:59:38]line ИНН: 02508201610067 [17:59:38]line Контрольно-Кассовый Чек [17:59:38]line ПРОДАЖА [17:59:38]line ТРК (МРК, ГНК) : 42 [17:59:38]line Товар: 2710124130 [17:59:38]line Аи-92-К-5 [17:59:38]line 15.290 * 0.00 [17:59:38]line = 0.00 [17:59:38]line НДС 12% НСП 1% [17:59:38]line > о реализуемом товаре [17:59:38]line ИТОГО: 0.00 [17:59:38]line НСП 1% : 0.00 [17:59:38]line НДС 12% : 0.00 [17:59:38]line Наличными: 0.00 [17:59:38]line Безнал.: 0.00 [17:59:38]line Место: АЗС № 113 "Партнер Нефть" [17:59:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:59:38]line СНО: Общий режим [17:59:38]line Чек 154 31.10.2024 17:59 [17:59:38]line Смена: 557 ФФД: 1.0 [17:59:38]line ЗНМ: 0300000087 [17:59:38]line РНМ: 0000000000091644 [17:59:38]line Версия ККМ: 001 [17:59:38]line Талоны: Топливная Карта [17:59:38]line 02645 [17:59:38]line ФМ: 0000000000874662 [17:59:38]line ФД: 73079 [17:59:38]line ФПД: 51229691607225 [17:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175937&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73079&fm=51229691607225&tin=02508201610067®Number=0000000000091644&sum=0 [17:59:38]written 0, free lines is 4095 [17:59:38]OFD Sender: Processing packet 73079 [packets to send 282, broken 281] [17:59:38]ProducePacketName [17:59:38]name=ofd_packets/00073079 [17:59:38]OFD Sender: To server: pG, [17:59:38]CommunicateWithHost lk.salyk.kg:30040 [17:59:38]ConnectInit lk.salyk.kg [17:59:39]Write to MH i2c: 01 00 00 DA 00 DA [17:59:39]Write i2c OK [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: 01 [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: 01 07 00 [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 ED 0C DA [17:59:39]RasterBufferAndPrint [17:59:39]line [17:59:39]line [17:59:39]line [17:59:39]line [17:59:39]line [17:59:39]written 0, free lines is 3324 [17:59:39]MH_Cut [17:59:39]Write to MH i2c: D1 01 00 E1 00 01 B3 [17:59:39]Write i2c OK [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: D1 [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: D1 01 00 [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: D1 01 00 E1 00 00 B2 [17:59:39]Write to MH i2c: 01 00 00 E2 00 E2 [17:59:39]Write i2c OK [17:59:39]MH_I2C_Read... [17:59:39]Connected sock=11 [17: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 34 36 36 32 0F 01 00 00 9B D5 07 01 F6 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 3B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 89 C5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1D 01 00 35 04 06 00 2E 97 D7 91 F8 B9 D6 8C AE 55 5A 5A B9 96 [17:59:39]*** Cut start [17:59:39]*** Partial cut [17:59:39]*** CUTSNS_PIN = 1 [17:59:39]*** CUTSNS_PIN = 0 [17:59:40]*** Brake cut motor [17:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2A E0 47 00 4E 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1D 01 00 F4 03 04 00 3F 70 23 67 B6 04 01 00 00 DF 0B 57 18 90 63 36 6B [17:59:40]CommunicateWithHost err = 0 [17:59:40]CheckOFDResponse [17:59:40]1017 (14) - 77093643461234 [17:59:40]1041 (16) - 0000000000874662 [17:59:40]1040 (4) - 73079 [17:59:40]1012 (4) - 31.10.2024 11:55 [17:59:40]1206 (1) - 0 [17:59:40]OFD Sender: Remove packet 73079 [17:59:40]ProducePacketName [17:59:40]name=ofd_packets/00073079 [17:59:40]NVStorageDeleteData [17:59:40]Read from MH i2c: 01 [17:59:40]MH_I2C_Read... [17:59:40]*** Stop cut motor [17:59:40]*** Cut end [17:59:40]Read from MH i2c: 01 07 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [17:59:40]process_action close_receipt done [17:59:40]requested_data is exist [17:59:40]produce_requested_data [17:59:40]requested_item fm.sn is exist - process it [17:59:40]wFMCommunicate request_size=4 [17:59:40]MH_SAM_APDU [17:59:40]CAPDU: 80 11 00 00 [17:59:40]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [17:59:40]Write i2c OK [17:59:40]MH_I2C_Read... [17:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:40]Read from MH i2c: E2 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 17 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B1 [17:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:59:40]wFMCommunicate OK [17:59:40]requested_item fd.num is exist - process it [17:59:40]SAM_PROTO_GetFieldsCounters [17:59:40]wFMCommunicate request_size=4 [17:59:40]MH_SAM_APDU [17:59:40]CAPDU: 80 13 00 00 [17:59:40]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [17:59:40]Write i2c OK [17:59:40]MH_I2C_Read... [17:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:40]Read from MH i2c: E2 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 62 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 77 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [17:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 77 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:40]wFMCommunicate OK [17:59:40]SAM_PROTO_GetFieldsCounters done [17:59:40]requested_item shift.num is exist - process it [17:59:40]requested_item shift.opened is exist - process it [17:59:40]req_shift_opened [17:59:40]FM_GetShiftState [17:59:40]SAM_PROTO_GetShiftState [17:59:40]wFMCommunicate request_size=4 [17:59:40]MH_SAM_APDU [17:59:40]CAPDU: 80 13 01 00 [17:59:40]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [17:59:40]Write i2c OK [17:59:40]MH_I2C_Read... [17:59:40]OFD Sender: No OFD packet to send [17:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:40]Read from MH i2c: E2 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 0E 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0B [17:59:40]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [17:59:40]wFMCommunicate OK [17:59:40]SAM_PROTO_GetShiftState done [17:59:40]FM_GetShiftState done [17:59:40]req_shift_opened done [17:59:40]requested_item shift.open_date is exist - process it [17:59:40]req_shift_open_date [17:59:40]req_shift_open_date done [17:59:40]produce_requested_data done [17:59:40]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73079,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [17:59:40]process_action_free close_receipt [17:59:40]json_value_free [17:59:40]json_value_free done [17:59:40]process_json_proto returns [17:59:40]Send response to host [17:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73079,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [17:59:40]free response buf [17:59:40]execute_script done [17:59:40]execute_script returns [17:59:40]free content buf [17:59:40]Sock 9.Close socket [17:59:40]Sock 9.Thread stoped [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]recv_with_timeout no data received [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]accept exits with 10 [18:00:45]New connection [18:00:45]New thread 3066514788 created [18:00:45]Thread 3066658148 joined [18:00:45]Waiting for new connection... [18:00:45] Sock 10.Parse request [18:00:45]Sock 10.Check first char [18:00:45]Sock 10.First char is OK [18:00:45]request: POST /json_proto HTTP/1.0 [18:00:45]Method: POST [18:00:45]URL: /json_proto [18:00:45]Method is POST - this is cgi request [18:00:45]url: /json_proto [18:00:45]query_string will be loaded in cgi processing [18:00:45]execute_cgi json_proto POST (null) [18:00:45]execute_cgi path=json_proto method=POST [18:00:45]POST find Content-Length [18:00:45]Host: 172.17.43.195:8080 [18:00:45]Content-Length: 682 [18:00:45]Content-Type: application/json [18:00:45] [18:00:45]POST finish read [18:00:45]Found Content-Length = 682 [18:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:45]execute_script... [18:00:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:45]POST & json_proto [18:00:45]process_json_proto [18:00:45]json parsed OK: [18:00:45]protocol is kg_v1.0 [18:00:45]action value=close_receipt [18:00:45]process_action close_receipt [18:00:45]cmd_close_receipt [18:00:45]MH_GetDate [18:00:45]Write to MH i2c: F0 00 00 E6 00 D5 [18:00:45]Write i2c OK [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: F0 [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: F0 09 00 [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: F0 09 00 E6 00 00 CE C5 23 67 74 2C AD 66 AE [18:00:45]GetLastDocTimeStamp 1730397577 [18:00:45]current date 1730397646 [18:00:45]FM_GetShiftState [18:00:45]SAM_PROTO_GetShiftState [18:00:45]wFMCommunicate request_size=4 [18:00:45]MH_SAM_APDU [18:00:45]CAPDU: 80 13 01 00 [18:00:45]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [18:00:45]Write i2c OK [18:00:45]MH_I2C_Read... [18:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:45]Read from MH i2c: E2 [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: E2 0E 00 [18:00:45]MH_I2C_Read... [18:00:45]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0D [18:00:45]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:00:45]wFMCommunicate OK [18:00:45]SAM_PROTO_GetShiftState done [18:00:45]FM_GetShiftState done [18:00:45]opened in 1730333258 [18:00:45]opened+sec_in_day 1730419658 [18:00:45]quantity*price = 20040 [18:00:45]sum+1 = 20042 [18:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре [18:31:46]line ОКРУГЛЕНИЕ: -0.41 [18:31:46]line ИТОГО: 200.00 [18:31:46]line Внесено: 200.00 [18:31:46]line СДАЧА: 0.00 [18:31:46]line НСП 1% : 1.77 [18:31:46]line НДС 12% : 21.28 [18:31:46]line Наличными: 200.00 [18:31:46]line Безнал.: 0.00 [18:31:46]line Место: АЗС № 113 "Партнер Нефть" [18:31:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:31:46]line СНО: Общий режим [18:31:46]line Чек 155 31.10.2024 18:00 [18:31:46]line Смена: 557 ФФД: 1.0 [18:31:46]line ЗНМ: 0300000087 [18:31:46]line РНМ: 0000000000091644 [18:31:46]line Версия ККМ: 001 [18:31:46]line ФМ: 0000000000874662 [18:31:46]line ФД: 73080 [18:31:46]line ФПД: 193191108397355 [18:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T180046&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73080&fm=193191108397355&tin=02508201610067®Number=0000000000091644&sum=20000 [18:31:46]written 0, free lines is 4095 [18:31:46]Write to MH i2c: 01 00 00 48 00 48 [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: 01 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: 01 07 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D4 0C 2F [18:31:46]RasterBufferAndPrint [18:31:46]line [18:31:46]line [18:31:46]line [18:31:46]line [18:31:46]line [18:31:46]written 0, free lines is 3301 [18:31:46]MH_Cut [18:31:46]Write to MH i2c: D1 01 00 4F 00 01 21 [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: D1 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: D1 01 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: D1 01 00 4F 00 00 20 [18:31:46]Write to MH i2c: 01 00 00 50 00 50 [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:47]*** Cut start [18:31:47]*** Partial cut [18:31:47]*** CUTSNS_PIN = 1 [18:31:47]*** CUTSNS_PIN = 0 [18:31:47]*** Brake cut motor [18:31:48]Read from MH i2c: 01 [18:31:48]MH_I2C_Read... [18:31:48]*** Stop cut motor [18:31:48]*** Cut end [18:31:48]Read from MH i2c: 01 07 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [18:31:48]process_action print_doc done [18:31:48]requested_data is exist [18:31:48]produce_requested_data [18:31:48]produce_requested_data return (null) [18:31:48]process_action_free print_doc [18:31:48]json_value_free [18:31:48]json_value_free done [18:31:48]process_json_proto returns [18:31:48]Send response to host [18:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:31:48]free response buf [18:31:48]execute_script done [18:31:48]execute_script returns [18:31:48]free content buf [18:31:48]Sock 8.Close socket [18:31:48]Sock 8.Thread stoped [18:31:48]accept exits with 10 [18:31:48]New connection [18:31:48]New thread 3067350372 created [18:31:48]Thread 3067493732 joined [18:31:48]Waiting for new connection... [18:31:48] Sock 10.Parse request [18:31:48]Sock 10.Check first char [18:31:48]Sock 10.First char is OK [18:31:48]request: POST /json_proto HTTP/1.0 [18:31:48]Method: POST [18:31:48]URL: /json_proto [18:31:48]Method is POST - this is cgi request [18:31:48]url: /json_proto [18:31:48]query_string will be loaded in cgi processing [18:31:48]execute_cgi json_proto POST (null) [18:31:48]execute_cgi path=json_proto method=POST [18:31:48]POST find Content-Length [18:31:48]Host: 172.17.43.195:8080 [18:31:48]Content-Length: 792 [18:31:48]Content-Type: application/json [18:31:48] [18:31:48]POST finish read [18:31:48]Found Content-Length = 792 [18:31:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53911", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:48]execute_script... [18:31:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53911", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:48]POST & json_proto [18:31:48]process_json_proto [18:31:48]json parsed OK: [18:31:48]protocol is kg_v1.0 [18:31:48]action value=close_receipt [18:31:48]process_action close_receipt [18:31:48]cmd_close_receipt [18:31:48]MH_GetDate [18:31:48]Write to MH i2c: F0 00 00 51 00 40 [18:31:48]Write i2c OK [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: F0 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: F0 09 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: F0 09 00 51 00 00 14 CD 23 67 74 2C AD 66 67 [18:31:48]GetLastDocTimeStamp 1730397646 [18:31:48]current date 1730399508 [18:31:48]FM_GetShiftState [18:31:48]SAM_PROTO_GetShiftState [18:31:48]wFMCommunicate request_size=4 [18:31:48]MH_SAM_APDU [18:31:48]CAPDU: 80 13 01 00 [18:31:48]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [18:31:48]Write i2c OK [18:31:48]MH_I2C_Read... [18:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:48]Read from MH i2c: E2 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 0E 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 78 [18:31:48]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:31:48]wFMCommunicate OK [18:31:48]SAM_PROTO_GetShiftState done [18:31:48]FM_GetShiftState done [18:31:48]opened in 1730333258 [18:31:48]opened+sec_in_day 1730419658 [18:31:48]quantity*price = 0 [18:31:48]sum+1 = 1 [18:31:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 156 31.10.2024 18:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53911 ФМ: 0000000000874662 ФД: 73081 ФПД: 198289069109230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T183148&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73081&fm=198289069109230&tin=02508201610067®Number=0000000000091644&sum=0 [18:31:49]StoreToDocumentArchive [18:31:49]shift 557 fd 73081 [18:31:49]save to /storage/0557/doc_00073081 [18:31:49]save last doc name /storage/0557/doc_00073081 to /storage/kkm_last_doc_name [18:31:49]save OK [18:31:49]Clear old archive folders... [18:31:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:49]tlvbuf is 017CA2F0 [18:31:49]SAM_PROTO_ClearQueue [18:31:49]wFMCommunicate request_size=4 [18:31:49]MH_SAM_APDU [18:31:49]CAPDU: 80 09 00 00 [18:31:49]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [18:31:49]Write i2c OK [18:31:49]MH_I2C_Read... [18:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:49]Read from MH i2c: E2 [18:31:49]MH_I2C_Read... [18:31:49]Read from MH i2c: E2 03 00 [18:31:49]MH_I2C_Read... [18:31:49]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [18:31:49]RAPDU: 90 00 [18:31:49]wFMCommunicate OK [18:31:49]SAM_PROTO_ClearQueue done [18:31:49]KKMCreateOFDPacket [18:31:49]OFDProtocolAddRootSTLVToBuf [18:31:49]FM_MakeSignedData [18:31:49]FM_MakeSignedData [18:31:49]SAM_PROTO_SignData [18:31:49]wFMCommunicate request_size=4 [18:31:49]MH_SAM_APDU [18:31:49]CAPDU: 80 0D 01 02 [18:31:49]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [18:31:49]Write i2c OK [18:31:49]MH_I2C_Read... [18:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:49]Read from MH i2c: E2 [18:31:49]MH_I2C_Read... [18:31:49]Read from MH i2c: E2 03 00 [18:31:49]MH_I2C_Read... [18:31:49]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [18:31:50]RAPDU: 90 00 [18:31:50]wFMCommunicate OK [18:31:50]wFMCommunicate request_size=255 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 14 CD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1D 01 00 35 04 06 00 B4 [18:31:50]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 14 CD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1D 01 00 35 04 06 00 B4 00 00 6D [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 03 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [18:31:50]RAPDU: 90 00 [18:31:50]wFMCommunicate OK [18:31:50]wFMCommunicate request_size=10 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 0D 02 02 05 57 C5 86 EF EE [18:31:50]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 57 C5 86 EF EE 00 00 65 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 03 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [18:31:50]RAPDU: 90 00 [18:31:50]wFMCommunicate OK [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 0D 03 02 [18:31:50]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0B 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0B 00 63 00 00 6D 2E A9 53 05 D2 81 94 90 00 62 [18:31:50]RAPDU: 6D 2E A9 53 05 D2 81 94 90 00 [18:31:50]wFMCommunicate OK [18:31:50]SAM_PROTO_SignData done [18:31:50]FM_MakeSignedData done [18:31:50]CreateOFDProtocolMessage [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 11 00 00 [18:31:50]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:50]E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 17 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [18:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:31:50]wFMCommunicate OK [18:31:50]CreateOFDProtocolMessage done [18:31:50]OFDSenderStorePacket 73081 [18:31:50]StoreOFDPacket docnum=73081 [18:31:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C4 75 07 01 E1 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 14 CD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1D 01 00 35 04 06 00 B4 57 C5 86 EF EE 6D 2E A9 53 05 D2 81 94 [18:31:50]CheckFolder [18:31:50]dirname=/storage/ofd_packets [18:31:50]CheckFolder done [18:31:50]ProducePacketName [18:31:50]name=ofd_packets/00073081 [18:31:50]NVStorageSaveData ofd_packets/00073081 [18:31:50]File name is /storage/ofd_packets/00073081 [18:31:50]Write 301 bytes [18:31:50]NVStorageSaveData done [18:31:50]OFDSenderStorePacket done [18:31:50]KKMCreateOFDPacket done [18:31:50]NVStorageSaveData kkm_last_timestamp [18:31:50]File name is /storage/kkm_last_timestamp [18:31:50]Write 4 bytes [18:31:50]NVStorageSaveData done [18:31:50]ExternCall_PrintAddStr [18:31:50]wPrintStart [18:31:50]Write to MH i2c: 01 00 00 65 00 65 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: 01 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: 01 07 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [18:31:50]RasterBufferAndPrint [18:31:50]line Счет N : (1)952680 [18:31:50]line ИНН: 02508201610067 [18:31:50]line Контрольно-Кассовый Чек [18:31:50]line ПРОДАЖА [18:31:50]line ТРК (МРК, ГНК) : 53 [18:31:50]line Товар: 2710124130 [18:31:50]line Аи-92-К-5 [18:31:50]line 25.000 * 0.00 [18:31:50]line = 0.00 [18:31:50]line НДС 12% НСП 1% [18:31:50]line > о реализуемом товаре [18:31:50]line ИТОГО: 0.00 [18:31:50]line НСП 1% : 0.00 [18:31:50]line НДС 12% : 0.00 [18:31:50]line Наличными: 0.00 [18:31:50]line Безнал.: 0.00 [18:31:50]line Место: АЗС № 113 "Партнер Нефть" [18:31:50]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:31:50]line СНО: Общий режим [18:31:50]line Чек 156 31.10.2024 18:31 [18:31:50]line Смена: 557 ФФД: 1.0 [18:31:50]line ЗНМ: 0300000087 [18:31:50]line РНМ: 0000000000091644 [18:31:50]line Версия ККМ: 001 [18:31:50]line Талоны: Топливная Карта [18:31:50]line 53911 [18:31:50]line ФМ: 0000000000874662 [18:31:50]line ФД: 73081 [18:31:50]line ФПД: 198289069109230 [18:31:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T183148&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73081&fm=198289069109230&tin=02508201610067®Number=0000000000091644&sum=0 [18:31:50]written 0, free lines is 4095 [18:31:50]OFD Sender: Processing packet 73081 [packets to send 282, broken 281] [18:31:50]ProducePacketName [18:31:50]name=ofd_packets/00073081 [18:31:50]OFD Sender: To server: pG, [18:31:50]CommunicateWithHost lk.salyk.kg:30040 [18:31:50]ConnectInit lk.salyk.kg [18:31:51]Connected sock=8 [18:31:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C4 75 07 01 E1 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 14 CD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1D 01 00 35 04 06 00 B4 57 C5 86 EF EE 6D 2E A9 53 05 D2 81 94 [18:31:51]Write to MH i2c: 01 00 00 8F 00 8F [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: 01 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: 01 07 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 C5 0D 68 [18:31:51]RasterBufferAndPrint [18:31:51]line [18:31:51]line [18:31:51]line [18:31:51]line [18:31:51]line [18:31:51]written 0, free lines is 3543 [18:31:51]MH_Cut [18:31:51]Write to MH i2c: D1 01 00 96 00 01 68 [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: D1 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: D1 01 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: D1 01 00 96 00 00 67 [18:31:51]Write to MH i2c: 01 00 00 97 00 97 [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C3 D8 47 00 D9 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1D 01 00 F4 03 04 00 CA 77 23 67 B6 04 01 00 00 2D 51 DC 4B 19 67 34 60 [18:31:51]CommunicateWithHost err = 0 [18:31:51]CheckOFDResponse [18:31:51]1017 (14) - 77093643461234 [18:31:51]1041 (16) - 0000000000874662 [18:31:51]1040 (4) - 73081 [18:31:51]1012 (4) - 31.10.2024 12:27 [18:31:51]1206 (1) - 0 [18:31:51]OFD Sender: Remove packet 73081 [18:31:51]ProducePacketName [18:31:51]name=ofd_packets/00073081 [18:31:51]NVStorageDeleteData [18:31:51]*** Cut start [18:31:51]*** Partial cut [18:31:51]*** CUTSNS_PIN = 1 [18:31:52]*** CUTSNS_PIN = 0 [18:31:52]*** Brake cut motor [18:31:52]OFD Sender: No OFD packet to send [18:31:52]Read from MH i2c: 01 *** Stop cut motor [18:31:52] [18:31:52]*** Cut end [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: 01 07 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [18:31:52]process_action close_receipt done [18:31:52]requested_data is exist [18:31:52]produce_requested_data [18:31:52]requested_item fm.sn is exist - process it [18:31:52]wFMCommunicate request_size=4 [18:31:52]MH_SAM_APDU [18:31:52]CAPDU: 80 11 00 00 [18:31:52]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [18:31:52]Write i2c OK [18:31:52]MH_I2C_Read... [18:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:52]Read from MH i2c: E2 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 17 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [18:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:31:52]wFMCommunicate OK [18:31:52]requested_item fd.num is exist - process it [18:31:52]SAM_PROTO_GetFieldsCounters [18:31:52]wFMCommunicate request_size=4 [18:31:52]MH_SAM_APDU [18:31:52]CAPDU: 80 13 00 00 [18:31:52]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [18:31:52]Write i2c OK [18:31:52]MH_I2C_Read... [18:31:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:52]Read from MH i2c: E2 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 62 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 79 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [18:31:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 79 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:52]wFMCommunicate OK [18:31:52]SAM_PROTO_GetFieldsCounters done [18:31:52]requested_item shift.num is exist - process it [18:31:52]requested_item shift.opened is exist - process it [18:31:52]req_shift_opened [18:31:52]FM_GetShiftState [18:31:52]SAM_PROTO_GetShiftState [18:31:52]wFMCommunicate request_size=4 [18:31:52]MH_SAM_APDU [18:31:52]CAPDU: 80 13 01 00 [18:31:52]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [18:31:52]Write i2c OK [18:31:52]MH_I2C_Read... [18:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:52]Read from MH i2c: E2 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 0E 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C0 [18:31:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:31:52]wFMCommunicate OK [18:31:52]SAM_PROTO_GetShiftState done [18:31:52]FM_GetShiftState done [18:31:52]req_shift_opened done [18:31:52]requested_item shift.open_date is exist - process it [18:31:52]req_shift_open_date [18:31:52]req_shift_open_date done [18:31:52]produce_requested_data done [18:31:52]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73081,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [18:31:52]process_action_free close_receipt [18:31:52]json_value_free [18:31:52]json_value_free done [18:31:52]process_json_proto returns [18:31:52]Send response to host [18:31:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73081,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [18:31:52]free response buf [18:31:52]execute_script done [18:31:52]execute_script returns [18:31:52]free content buf [18:31:52]Sock 10.Close socket [18:31:52]Sock 10.Thread stoped [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:04]recv_with_timeout no data received [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:06]recv_with_timeout no data received [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:25]accept exits with 5 [18:33:25]New connection [18:33:25]New thread 3067493732 created [18:33:25]Thread 3067350372 joined [18:33:25]Waiting for new connection... [18:33:25] Sock 5.Parse request [18:33:25]Sock 5.Check first char [18:33:25]Sock 5.First char is OK [18:33:25]request: POST /json_proto HTTP/1.0 [18:33:25]Method: POST [18:33:25]URL: /json_proto [18:33:25]Method is POST - this is cgi request [18:33:25]url: /json_proto [18:33:25]query_string will be loaded in cgi processing [18:33:25]execute_cgi json_proto POST (null) [18:33:25]execute_cgi path=json_proto method=POST [18:33:25]POST find Content-Length [18:33:25]Host: 172.17.43.195:8080 [18:33:25]Content-Length: 797 [18:33:25]Content-Type: application/json [18:33:25] [18:33:25]POST finish read [18:33:25]Found Content-Length = 797 [18:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 39.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A73047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:25]execute_script... [18:33: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)952681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 39.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A73047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:25]POST & json_proto [18:33:25]process_json_proto [18:33:25]json parsed OK: [18:33:25]protocol is kg_v1.0 [18:33:25]action value=close_receipt [18:33:25]process_action close_receipt [18:33:25]cmd_close_receipt [18:33:25]MH_GetDate [18:33:25]Write to MH i2c: F0 00 00 9B 00 8A [18:33:25]Write i2c OK [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: F0 [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: F0 09 00 [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: F0 09 00 9B 00 00 75 CD 23 67 74 2C AD 66 12 [18:33:25]GetLastDocTimeStamp 1730399508 [18:33:25]current date 1730399605 [18:33:25]FM_GetShiftState [18:33:25]SAM_PROTO_GetShiftState [18:33:25]wFMCommunicate request_size=4 [18:33:25]MH_SAM_APDU [18:33:25]CAPDU: 80 13 01 00 [18:33:25]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [18:33:25]Write i2c OK [18:33:25]MH_I2C_Read... [18:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:25]Read from MH i2c: E2 [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: E2 0E 00 [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C2 [18:33:25]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:33:25]wFMCommunicate OK [18:33:25]SAM_PROTO_GetShiftState done [18:33:25]FM_GetShiftState done [18:33:25]opened in 1730333258 [18:33:25]opened+sec_in_day 1730419658 [18:33:25]quantity*price = 0 [18:33:25]sum+1 = 1 [18:33:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 157 31.10.2024 18:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 73047 ФМ: 0000000000874662 ФД: 73082 ФПД: 107842453075346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T183325&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73082&fm=107842453075346&tin=02508201610067®Number=0000000000091644&sum=0 [18:33:26]StoreToDocumentArchive [18:33:26]shift 557 fd 73082 [18:33:26]save to /storage/0557/doc_00073082 [18:33:26]save last doc name /storage/0557/doc_00073082 to /storage/kkm_last_doc_name [18:33:26]save OK [18:33:26]Clear old archive folders... [18:33:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:33:26]tlvbuf is 0177F1D0 [18:33:26]SAM_PROTO_ClearQueue [18:33:26]wFMCommunicate request_size=4 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 09 00 00 [18:33:26]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [18:33:26]RAPDU: 90 00 [18:33:26]wFMCommunicate OK [18:33:26]SAM_PROTO_ClearQueue done [18:33:26]KKMCreateOFDPacket [18:33:26]OFDProtocolAddRootSTLVToBuf [18:33:26]FM_MakeSignedData [18:33:26]FM_MakeSignedData [18:33:26]SAM_PROTO_SignData [18:33:26]wFMCommunicate request_size=4 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 0D 01 02 [18:33:26]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [18:33:26]RAPDU: 90 00 [18:33:26]wFMCommunicate OK [18:33:26]wFMCommunicate request_size=255 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 75 CD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7A 1D 01 00 35 04 06 00 [18:33:26]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 75 CD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7A 1D 01 00 35 04 06 00 00 00 FB [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [18:33:26]RAPDU: 90 00 [18:33:26]wFMCommunicate OK [18:33:26]wFMCommunicate request_size=11 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 0D 02 02 06 62 15 07 1B 75 92 [18:33:26]Write to MH i2c: E2 0E 00 AC 00 80 0D 02 02 06 00 62 15 07 1B 75 92 00 00 D2 [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [18:33:26]RAPDU: 90 00 [18:33:26]wFMCommunicate OK [18:33:26]wFMCommunicate request_size=4 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 0D 03 02 [18:33:26]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 0B 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 0B 00 AD 00 00 F5 88 E0 CB 0D 4A 4B 3D 90 00 30 [18:33:26]RAPDU: F5 88 E0 CB 0D 4A 4B 3D 90 00 [18:33:26]wFMCommunicate OK [18:33:26]SAM_PROTO_SignData done [18:33:26]FM_MakeSignedData done [18:33:26]CreateOFDProtocolMessage [18:33:26]wFMCommunicate request_size=4 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 11 00 00 [18:33:26]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 17 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [18:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:33:26]wFMCommunicate OK [18:33:26]CreateOFDProtocolMessage done [18:33:26]OFDSenderStorePacket 73082 [18:33:26]StoreOFDPacket docnum=73082 [18:33:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1D 8C 08 01 60 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 75 CD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7A 1D 01 00 35 04 06 00 62 15 07 1B 75 92 F5 88 E0 CB 0D 4A 4B 3D [18:33:26]CheckFolder [18:33:26]dirname=/storage/ofd_packets [18:33:26]CheckFolder done [18:33:26]ProducePacketName [18:33:26]name=ofd_packets/00073082 [18:33:26]NVStorageSaveData ofd_packets/00073082 [18:33:26]File name is /storage/ofd_packets/00073082 [18:33:26]Write 302 bytes [18:33:26]NVStorageSaveData done [18:33:26]OFDSenderStorePacket done [18:33:26]KKMCreateOFDPacket done [18:33:26]NVStorageSaveData kkm_last_timestamp [18:33:26]File name is /storage/kkm_last_timestamp [18:33:26]Write 4 bytes [18:33:26]NVStorageSaveData done [18:33:26]ExternCall_PrintAddStr [18:33:26]wPrintStart [18:33:26]Write to MH i2c: 01 00 00 AF 00 AF [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: 01 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: 01 07 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [18:33:26]RasterBufferAndPrint [18:33:26]line Счет N : (1)952681 [18:33:26]line ИНН: 02508201610067 [18:33:26]line Контрольно-Кассовый Чек [18:33:26]line ПРОДАЖА [18:33:26]line ТРК (МРК, ГНК) : 22 [18:33:26]line Товар: 2710194210 [18:33:26]line ДТ(л)-К-5 [18:33:26]line 39.370 * 0.00 [18:33:26]line = 0.00 [18:33:26]line НДС 12% НСП 1% [18:33:26]line > о реализуемом товаре [18:33:26]line ИТОГО: 0.00 [18:33:26]line НСП 1% : 0.00 [18:33:26]line НДС 12% : 0.00 [18:33:26]line Наличными: 0.00 [18:33:26]line Безнал.: 0.00 [18:33:26]line Место: АЗС № 113 "Партнер Нефть" [18:33:26]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:33:26]line СНО: Общий режим [18:33:26]line Чек 157 31.10.2024 18:33 [18:33:26]line Смена: 557 ФФД: 1.0 [18:33:26]line ЗНМ: 0300000087 [18:33:26]line РНМ: 0000000000091644 [18:33:26]line Версия ККМ: 001 [18:33:26]line Талоны: Топливная Карта [18:33:26]line 73047 [18:33:26]line ФМ: 0000000000874662 [18:33:26]line ФД: 73082 [18:33:26]line ФПД: 107842453075346 [18:33:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T183325&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73082&fm=107842453075346&tin=02508201610067®Number=0000000000091644&sum=0 [18:33:27]written 0, free lines is 4095 [18:33:27]OFD Sender: Processing packet 73082 [packets to send 282, broken 281] [18:33:27]ProducePacketName [18:33:27]name=ofd_packets/00073082 [18:33:27]OFD Sender: To server: pG, [18:33:27]CommunicateWithHost lk.salyk.kg:30040 [18:33:27]ConnectInit lk.salyk.kg [18:33:27]Write to MH i2c: 01 00 00 D9 00 D9 [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: 01 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: 01 07 00 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 DD 0C C9 [18:33:27]RasterBufferAndPrint [18:33:27]line [18:33:27]line [18:33:27]line [18:33:27]line [18:33:27]line [18:33:27]written 0, free lines is 3299 [18:33:27]MH_Cut [18:33:27]Write to MH i2c: D1 01 00 E0 00 01 B2 [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: D1 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: D1 01 00 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: D1 01 00 E0 00 00 B1 [18:33:27]Write to MH i2c: 01 00 00 E1 00 E1 [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:28]*** Cut start [18:33:28]*** Partial cut [18:33:28]*** CUTSNS_PIN = 1 [18:33:28]*** CUTSNS_PIN = 0 [18:33:28]*** Brake cut motor [18:33:28]Read from MH i2c: 01 [18:33:28]MH_I2C_Read... [18:33:28]*** Stop cut motor [18:33:28]*** Cut end [18:33:28]Read from MH i2c: 01 07 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 FF 0F F6 [18:33:28]process_action close_receipt done [18:33:28]requested_data is exist [18:33:28]produce_requested_data [18:33:28]requested_item fm.sn is exist - process it [18:33:28]wFMCommunicate request_size=4 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 11 00 00 [18:33:28]Write to MH i2c: E2 08 00 E2 00 80 11 00 00 00 00 00 00 5C [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 17 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 17 00 E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B0 [18:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:33:28]wFMCommunicate OK [18:33:28]requested_item fd.num is exist - process it [18:33:28]SAM_PROTO_GetFieldsCounters [18:33:28]wFMCommunicate request_size=4 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 13 00 00 [18:33:28]Write to MH i2c: E2 08 00 E3 00 80 13 00 00 00 00 00 00 5F [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 62 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 62 00 E3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [18: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:29]wFMCommunicate OK [18:33:29]SAM_PROTO_GetFieldsCounters done [18:33:29]requested_item shift.num is exist - process it [18:33:29]requested_item shift.opened is exist - process it [18:33:29]req_shift_opened [18:33:29]FM_GetShiftState [18:33:29]SAM_PROTO_GetShiftState [18:33:29]wFMCommunicate request_size=4 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 13 01 00 [18:33:29]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 0E 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0A [18:33:29]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:33:29]wFMCommunicate OK [18:33:29]SAM_PROTO_GetShiftState done [18:33:29]FM_GetShiftState done [18:33:29]req_shift_opened done [18:33:29]requested_item shift.open_date is exist - process it [18:33:29]req_shift_open_date [18:33:29]req_shift_open_date done [18:33:29]produce_requested_data done [18:33:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73082,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [18:33:29]process_action_free close_receipt [18:33:29]json_value_free [18:33:29]json_value_free done [18:33:29]process_json_proto returns [18:33:29]Send response to host [18:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73082,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [18:33:29]free response buf [18:33:29]execute_script done [18:33:29]execute_script returns [18:33:29]free content buf [18:33:29]Sock 5.Close socket [18:33:29]Sock 5.Thread stoped [18:33:30]Connected sock=9 [18:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1D 8C 08 01 60 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 75 CD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7A 1D 01 00 35 04 06 00 62 15 07 1B 75 92 F5 88 E0 CB 0D 4A 4B 3D [18:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A4 89 47 00 A8 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7A 1D 01 00 F4 03 04 00 2D 78 23 67 B6 04 01 00 00 72 58 BE 1A B6 CF 07 ED [18:33:34]CommunicateWithHost err = 0 [18:33:34]CheckOFDResponse [18:33:34]1017 (14) - 77093643461234 [18:33:34]1041 (16) - 0000000000874662 [18:33:34]1040 (4) - 73082 [18:33:34]1012 (4) - 31.10.2024 12:29 [18:33:34]1206 (1) - 0 [18:33:34]OFD Sender: Remove packet 73082 [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00073082 [18:33:34]NVStorageDeleteData [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:49]recv_with_timeout no data received [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:03]recv_with_timeout no data received [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:13]recv_with_timeout no data received [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:23]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:37:56]accept exits with 10 [18:37:56]New connection [18:37:56]New thread 3067350372 created [18:37:56]Thread 3067493732 joined [18:37:56]Waiting for new connection... [18:37:56] Sock 10.Parse request [18:37:56]Sock 10.Check first char [18:37:56]Sock 10.First char is OK [18:37:56]request: POST /json_proto HTTP/1.0 [18:37:56]Method: POST [18:37:56]URL: /json_proto [18:37:56]Method is POST - this is cgi request [18:37:56]url: /json_proto [18:37:56]query_string will be loaded in cgi processing [18:37:56]execute_cgi json_proto POST (null) [18:37:56]execute_cgi path=json_proto method=POST [18:37:56]POST find Content-Length [18:37:56]Host: 172.17.43.195:8080 [18:37:56]Content-Length: 682 [18:37:56]Content-Type: application/json [18:37:56] [18:37:56]POST finish read [18:37:56]Found Content-Length = 682 [18:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:56]execute_script... [18:37:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:56]POST & json_proto [18:37:56]process_json_proto [18:37:56]json parsed OK: [18:37:56]protocol is kg_v1.0 [18:37:56]action value=close_receipt [18:37:56]process_action close_receipt [18:37:56]cmd_close_receipt [18:37:56]MH_GetDate [18:37:56]Write to MH i2c: F0 00 00 E5 00 D4 [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: F0 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: F0 09 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: F0 09 00 E5 00 00 85 CE 23 67 74 2C AD 66 6D [18:37:56]GetLastDocTimeStamp 1730399605 [18:37:56]current date 1730399877 [18:37:56]FM_GetShiftState [18:37:56]SAM_PROTO_GetShiftState [18:37:56]wFMCommunicate request_size=4 [18:37:56]MH_SAM_APDU [18:37:56]CAPDU: 80 13 01 00 [18:37:56]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:56]Read from MH i2c: E2 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 0E 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0C [18:37:56]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:37:56]wFMCommunicate OK [18:37:56]SAM_PROTO_GetShiftState done [18:37:56]FM_GetShiftState done [18:37:56]opened in 1730333258 [18:37:56]opened+sec_in_day 1730419658 [18:37:56]quantity*price = 200043 [18:37:56]sum+1 = 200044 [18:37:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 158 31.10.2024 18:37 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73083 ФПД: 155446121765826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T183757&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73083&fm=155446121765826&tin=02508201610067®Number=0000000000091644&sum=200000 [18:37:58]StoreToDocumentArchive [18:37:58]shift 557 fd 73083 [18:37:58]save to /storage/0557/doc_00073083 [18:37:58]save last doc name /storage/0557/doc_00073083 to /storage/kkm_last_doc_name [18:37:58]save OK [18:37:58]Clear old archive folders... [18:37:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:58]tlvbuf is 017D53D0 [18:37:58]SAM_PROTO_ClearQueue [18:37:58]wFMCommunicate request_size=4 [18:37:58]MH_SAM_APDU [18:37:58]CAPDU: 80 09 00 00 [18:37:58]Write to MH i2c: E2 08 00 F3 00 80 09 00 00 00 00 00 00 65 [18:37:58]Write i2c OK [18:37:58]MH_I2C_Read... [18:37:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:58]Read from MH i2c: E2 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 03 00 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [18:37:58]RAPDU: 90 00 [18:37:58]wFMCommunicate OK [18:37:58]SAM_PROTO_ClearQueue done [18:37:58]KKMCreateOFDPacket [18:37:58]OFDProtocolAddRootSTLVToBuf [18:37:58]FM_MakeSignedData [18:37:58]FM_MakeSignedData [18:37:58]SAM_PROTO_SignData [18:37:58]wFMCommunicate request_size=4 [18:37:58]MH_SAM_APDU [18:37:58]CAPDU: 80 0D 01 02 [18:37:58]Write to MH i2c: E2 08 00 F4 00 80 0D 01 02 00 00 00 00 6D [18:37:58]Write i2c OK [18:37:58]MH_I2C_Read... [18:37:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:58]Read from MH i2c: E2 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 03 00 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [18:37:58]RAPDU: 90 00 [18:37:58]wFMCommunicate OK [18:37:58]wFMCommunicate request_size=255 [18:37:58]MH_SAM_APDU [18:37: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 85 CE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1D 01 00 35 04 06 00 8D [18:37:58]Write to MH i2c: E2 02 01 F5 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 85 CE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1D 01 00 35 04 06 00 8D 00 00 72 [18:37:58]Write i2c OK [18:37:58]MH_I2C_Read... [18:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:58]Read from MH i2c: E2 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 03 00 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [18:37:58]RAPDU: 90 00 [18:37:58]wFMCommunicate OK [18:37:58]wFMCommunicate request_size=10 [18:37:58]MH_SAM_APDU [18:37:58]CAPDU: 80 0D 02 02 05 60 9E DE 9B C2 [18:37:58]Write to MH i2c: E2 0D 00 F6 00 80 0D 02 02 05 00 60 9E DE 9B C2 00 00 B3 [18:37:58]Write i2c OK [18:37:58]MH_I2C_Read... [18:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:58]Read from MH i2c: E2 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 03 00 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [18:37:58]RAPDU: 90 00 [18:37:58]wFMCommunicate OK [18:37:58]wFMCommunicate request_size=4 [18:37:58]MH_SAM_APDU [18:37:58]CAPDU: 80 0D 03 02 [18:37:58]Write to MH i2c: E2 08 00 F7 00 80 0D 03 02 00 00 00 00 72 [18:37:58]Write i2c OK [18:37:58]MH_I2C_Read... [18:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:58]Read from MH i2c: E2 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 0B 00 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 0B 00 F7 00 00 1E C0 C4 79 98 05 92 7C 90 00 39 [18:37:58]RAPDU: 1E C0 C4 79 98 05 92 7C 90 00 [18:37:58]wFMCommunicate OK [18:37:58]SAM_PROTO_SignData done [18:37:58]FM_MakeSignedData done [18:37:58]CreateOFDProtocolMessage [18:37:58]wFMCommunicate request_size=4 [18:37:58]MH_SAM_APDU [18:37:58]CAPDU: 80 11 00 00 [18:37:58]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [18:37:58]Write i2c OK [18:37:58]MH_I2C_Read... [18:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:58]Read from MH i2c: E2 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 17 00 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C6 [18:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:37:58]wFMCommunicate OK [18:37:58]CreateOFDProtocolMessage done [18:37:58]OFDSenderStorePacket 73083 [18:37:58]StoreOFDPacket docnum=73083 [18:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 98 A4 07 01 1B 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 85 CE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1D 01 00 35 04 06 00 8D 60 9E DE 9B C2 1E C0 C4 79 98 05 92 7C [18:37:58]CheckFolder [18:37:58]dirname=/storage/ofd_packets [18:37:58]CheckFolder done [18:37:58]ProducePacketName [18:37:58]name=ofd_packets/00073083 [18:37:58]NVStorageSaveData ofd_packets/00073083 [18:37:58]File name is /storage/ofd_packets/00073083 [18:37:58]Write 301 bytes [18:37:58]NVStorageSaveData done [18:37:58]OFDSenderStorePacket done [18:37:58]KKMCreateOFDPacket done [18:37:58]NVStorageSaveData kkm_last_timestamp [18:37:58]File name is /storage/kkm_last_timestamp [18:37:58]Write 4 bytes [18:37:58]NVStorageSaveData done [18:37:58]ExternCall_PrintAddStr [18:37:58]wPrintStart [18:37:58]Write to MH i2c: 01 00 00 F9 00 F9 [18:37:58]Write i2c OK [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: 01 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: 01 07 00 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [18:37:58]RasterBufferAndPrint [18:37:58]line Счет N : (1)952682 [18:37:58]line ИНН: 02508201610067 [18:37:58]line Контрольно-Кассовый Чек [18:37:58]line ПРОДАЖА [18:37:58]line ТРК (МРК, ГНК) : 52 [18:37:58]line Товар: 2710124500 [18:37:58]line Аи-95-К-3 [18:37:58]line 26.960 * 74.20 [18:37:58]line = 2000.43 [18:37:58]line НДС 12% НСП 1% [18:37:58]line > о реализуемом товаре [18:37:58]line ОКРУГЛЕНИЕ: -0.43 [18:37:58]line ИТОГО: 2000.00 [18:37:58]line Внесено: 2000.00 [18:37:58]line СДАЧА: 0.00 [18:37:58]line НСП 1% : 17.70 [18:37:58]line НДС 12% : 212.43 [18:37:58]line Наличными: 2000.00 [18:37:58]line Безнал.: 0.00 [18:37:58]line Место: АЗС № 113 "Партнер Нефть" [18:37:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:37:58]line СНО: Общий режим [18:37:58]line Чек 158 31.10.2024 18:37 [18:37:58]line Смена: 557 ФФД: 1.0 [18:37:58]line ЗНМ: 0300000087 [18:37:58]line РНМ: 0000000000091644 [18:37:58]line Версия ККМ: 001 [18:37:58]line ФМ: 0000000000874662 [18:37:58]line ФД: 73083 [18:37:58]line ФПД: 155446121765826 [18:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T183757&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73083&fm=155446121765826&tin=02508201610067®Number=0000000000091644&sum=200000 [18:37:58]OFD Sender: Processing packet 73083 [packets to send 282, broken 281] [18:37:58]ProducePacketName [18:37:58]name=ofd_packets/00073083 [18:37:58]OFD Sender: To server: pG, [18:37:58]CommunicateWithHost lk.salyk.kg:30040 [18:37:58]ConnectInit lk.salyk.kg [18:37:58]written 0, free lines is 4095 [18:37:59]Connected sock=8 [18:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 98 A4 07 01 1B 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 85 CE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1D 01 00 35 04 06 00 8D 60 9E DE 9B C2 1E C0 C4 79 98 05 92 7C [18:37:59]Write to MH i2c: 01 00 00 24 01 25 [18:37:59]Write i2c OK [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: 01 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: 01 07 00 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 D8 0C 10 [18:37:59]RasterBufferAndPrint [18:37:59]line [18:37:59]line [18:37:59]line [18:37:59]line [18:37:59]line [18:37:59]written 0, free lines is 3296 [18:37:59]MH_Cut [18:37:59]Write to MH i2c: D1 01 00 2B 01 01 FE [18:37:59]Write i2c OK [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: D1 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: D1 01 00 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: D1 01 00 2B 01 00 FD [18:37:59]Write to MH i2c: 01 00 00 2C 01 2D [18:37:59]Write i2c OK [18:37:59]MH_I2C_Read... [18:38:00]*** Cut start [18:38:00]*** Partial cut [18:38:00]*** CUTSNS_PIN = 1 [18:38:00]*** CUTSNS_PIN = 0 [18:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 29 F8 47 00 B9 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1D 01 00 F4 03 04 00 3A 79 23 67 B6 04 01 00 00 DE 48 90 3C 13 7A 64 BC [18:38:00]CommunicateWithHost err = 0 [18:38:00]CheckOFDResponse [18:38:00]1017 (14) - 77093643461234 [18:38:00]1041 (16) - 0000000000874662 [18:38:00]1040 (4) - 73083 [18:38:00]1012 (4) - 31.10.2024 12:34 [18:38:00]1206 (1) - 0 [18:38:00]OFD Sender: Remove packet 73083 [18:38:00]ProducePacketName [18:38:00]name=ofd_packets/00073083 [18:38:00]NVStorageDeleteData [18:38:00]*** Brake cut motor [18:38:00]Read from MH i2c: 01 [18:38:00]MH_I2C_Read... [18:38:00]*** Stop cut motor [18:38:00]*** Cut end [18:38:00]Read from MH i2c: 01 07 00 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [18:38:00]process_action close_receipt done [18:38:00]requested_data is exist [18:38:00]produce_requested_data [18:38:00]requested_item fm.sn is exist - process it [18:38:00]wFMCommunicate request_size=4 [18:38:00]MH_SAM_APDU [18:38:00]CAPDU: 80 11 00 00 [18:38:00]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [18:38:00]Write i2c OK [18:38:00]MH_I2C_Read... [18:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:00]Read from MH i2c: E2 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 17 00 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FC [18:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:38:00]wFMCommunicate OK [18:38:00]requested_item fd.num is exist - process it [18:38:00]SAM_PROTO_GetFieldsCounters [18:38:00]wFMCommunicate request_size=4 [18:38:00]MH_SAM_APDU [18:38:00]CAPDU: 80 13 00 00 [18:38:00]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [18:38:00]Write i2c OK [18:38:00]MH_I2C_Read... [18:38:00]OFD Sender: No OFD packet to send [18:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:01]Read from MH i2c: E2 [18:38:01]MH_I2C_Read... [18:38:01]Read from MH i2c: E2 62 00 [18:38:01]MH_I2C_Read... [18:38:01]Read from MH i2c: E2 62 00 2E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [18:38:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:01]wFMCommunicate OK [18:38:01]SAM_PROTO_GetFieldsCounters done [18:38:01]requested_item shift.num is exist - process it [18:38:01]requested_item shift.opened is exist - process it [18:38:01]req_shift_opened [18:38:01]FM_GetShiftState [18:38:01]SAM_PROTO_GetShiftState [18:38:01]wFMCommunicate request_size=4 [18:38:01]MH_SAM_APDU [18:38:01]CAPDU: 80 13 01 00 [18:38:01]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [18:38:01]Write i2c OK [18:38:01]MH_I2C_Read... [18:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:01]Read from MH i2c: E2 [18:38:01]MH_I2C_Read... [18:38:01]Read from MH i2c: E2 0E 00 [18:38:01]MH_I2C_Read... [18:38:01]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 56 [18:38:01]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:38:01]wFMCommunicate OK [18:38:01]SAM_PROTO_GetShiftState done [18:38:01]FM_GetShiftState done [18:38:01]req_shift_opened done [18:38:01]requested_item shift.open_date is exist - process it [18:38:01]req_shift_open_date [18:38:01]req_shift_open_date done [18:38:01]produce_requested_data done [18:38:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73083,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [18:38:01]process_action_free close_receipt [18:38:01]json_value_free [18:38:01]json_value_free done [18:38:01]process_json_proto returns [18:38:01]Send response to host [18:38:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73083,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [18:38:01]free response buf [18:38:01]execute_script done [18:38:01]execute_script returns [18:38:01]free content buf [18:38:01]Sock 10.Close socket [18:38:01]Sock 10.Thread stoped [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:19]recv_with_timeout no data received [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:32]recv_with_timeout no data received [18:38:35]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:21]recv_with_timeout no data received [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:52]recv_with_timeout no data received [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:03]recv_with_timeout no data received [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:44]recv_with_timeout no data received [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44: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:00]accept exits with 9 [18:45:00]New connection [18:45:00]New thread 3067493732 created [18:45:00]Thread 3067350372 joined [18:45:00]Waiting for new connection... [18:45:00] Sock 9.Parse request [18:45:00]Sock 9.Check first char [18:45:00]Sock 9.First char is OK [18:45:00]request: POST /json_proto HTTP/1.0 [18:45:00]Method: POST [18:45:00]URL: /json_proto [18:45:00]Method is POST - this is cgi request [18:45:00]url: /json_proto [18:45:00]query_string will be loaded in cgi processing [18:45:00]execute_cgi json_proto POST (null) [18:45:00]execute_cgi path=json_proto method=POST [18:45:00]POST find Content-Length [18:45:00]Host: 172.17.43.195:8080 [18:45:00]Content-Length: 806 [18:45:00]Content-Type: application/json [18:45:00] [18:45:00]POST finish read [18:45:00]Found Content-Length = 806 [18:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:00]execute_script... [18:45:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:00]POST & json_proto [18:45:00]process_json_proto [18:45:00]json parsed OK: [18:45:00]protocol is kg_v1.0 [18:45:00]action value=close_receipt [18:45:00]process_action close_receipt [18:45:00]cmd_close_receipt [18:45:00]MH_GetDate [18:45:00]Write to MH i2c: F0 00 00 30 01 20 [18:45:00]Write i2c OK [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: F0 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: F0 09 00 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: F0 09 00 30 01 00 2C D0 23 67 74 2C AD 66 62 [18:45:00]GetLastDocTimeStamp 1730399877 [18:45:00]current date 1730400300 [18:45:00]FM_GetShiftState [18:45:00]SAM_PROTO_GetShiftState [18:45:00]wFMCommunicate request_size=4 [18:45:00]MH_SAM_APDU [18:45:00]CAPDU: 80 13 01 00 [18:45:00]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [18:45:00]Write i2c OK [18:45:00]MH_I2C_Read... [18:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:00]Read from MH i2c: E2 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: E2 0E 00 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 58 [18:45:00]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:45:00]wFMCommunicate OK [18:45:00]SAM_PROTO_GetShiftState done [18:45:00]FM_GetShiftState done [18:45:00]opened in 1730333258 [18:45:00]opened+sec_in_day 1730419658 [18:45:00]quantity*price = 150037 [18:45:00]sum+1 = 150038 [18:45:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.37 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.37 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 159 31.10.2024 18:45 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73084 ФПД: 251750198794200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T184500&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73084&fm=251750198794200&tin=02508201610067®Number=0000000000091644&sum=150037 [18:45:01]StoreToDocumentArchive [18:45:01]shift 557 fd 73084 [18:45:01]save to /storage/0557/doc_00073084 [18:45:01]save last doc name /storage/0557/doc_00073084 to /storage/kkm_last_doc_name [18:45:01]save OK [18:45:01]Clear old archive folders... [18:45:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:45:01]tlvbuf is 0177BCB0 [18:45:01]SAM_PROTO_ClearQueue [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 09 00 00 [18:45:01]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [18:45:01]RAPDU: 90 00 [18:45:01]wFMCommunicate OK [18:45:01]SAM_PROTO_ClearQueue done [18:45:01]KKMCreateOFDPacket [18:45:01]OFDProtocolAddRootSTLVToBuf [18:45:01]FM_MakeSignedData [18:45:01]FM_MakeSignedData [18:45:01]SAM_PROTO_SignData [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 0D 01 02 [18:45:01]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [18:45:01]RAPDU: 90 00 [18:45:01]wFMCommunicate OK [18:45:01]wFMCommunicate request_size=255 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2C D0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1D 01 00 35 04 06 00 E4 F7 [18:45:01]Write to MH i2c: E2 02 01 40 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2C D0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1D 01 00 35 04 06 00 E4 F7 00 00 85 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]OFD Sender: No OFD packet to send [18:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [18:45:01]RAPDU: 90 00 [18:45:01]wFMCommunicate OK [18:45:01]wFMCommunicate request_size=9 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 0D 02 02 04 29 2B D7 D8 [18:45:01]Write to MH i2c: E2 0C 00 41 01 80 0D 02 02 04 00 29 2B D7 D8 00 00 C7 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [18:45:01]RAPDU: 90 00 [18:45:01]wFMCommunicate OK [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 0D 03 02 [18:45:01]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 0B 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 0B 00 42 01 00 D2 9A F3 4B 71 65 B1 BF 90 00 AF [18:45:01]RAPDU: D2 9A F3 4B 71 65 B1 BF 90 00 [18:45:01]wFMCommunicate OK [18:45:01]SAM_PROTO_SignData done [18:45:01]FM_MakeSignedData done [18:45:01]CreateOFDProtocolMessage [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 11 00 00 [18:45:01]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 17 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [18:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:45:01]wFMCommunicate OK [18:45:01]CreateOFDProtocolMessage done [18:45:01]OFDSenderStorePacket 73084 [18:45:01]StoreOFDPacket docnum=73084 [18:45:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 25 28 06 01 B3 2C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2C D0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1D 01 00 35 04 06 00 E4 F7 29 2B D7 D8 D2 9A F3 4B 71 65 B1 BF [18:45:01]CheckFolder [18:45:01]dirname=/storage/ofd_packets [18:45:01]CheckFolder done [18:45:01]ProducePacketName [18:45:01]name=ofd_packets/00073084 [18:45:01]NVStorageSaveData ofd_packets/00073084 [18:45:01]File name is /storage/ofd_packets/00073084 [18:45:01]Write 300 bytes [18:45:01]NVStorageSaveData done [18:45:01]OFDSenderStorePacket done [18:45:01]KKMCreateOFDPacket done [18:45:01]NVStorageSaveData kkm_last_timestamp [18:45:01]File name is /storage/kkm_last_timestamp [18:45:01]Write 4 bytes [18:45:01]NVStorageSaveData done [18:45:01]ExternCall_PrintAddStr [18:45:01]wPrintStart [18:45:01]Write to MH i2c: 01 00 00 44 01 45 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: 01 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: 01 07 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [18:45:01]RasterBufferAndPrint [18:45:01]line Счет N : (1)952683 [18:45:01]line ИНН: 02508201610067 [18:45:01]line Контрольно-Кассовый Чек [18:45:01]line ПРОДАЖА [18:45:01]line ТРК (МРК, ГНК) : 71 [18:45:01]line Товар: 2711190000 [18:45:01]line ГАЗ-К-3 [18:45:01]line 38.570 * 38.90 [18:45:01]line = 1500.37 [18:45:01]line НДС 12% НСП 1% [18:45:01]line > о реализуемом товаре [18:45:01]line ИТОГО: 1500.37 [18:45:01]line НСП 1% : 13.28 [18:45:01]line НДС 12% : 159.33 [18:45:01]line Наличными: 0.00 [18:45:01]line Безнал.: 1500.37 [18:45:01]line Место: АЗС № 113 "Партнер Нефть" [18:45:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:45:01]line СНО: Общий режим [18:45:01]line Чек 159 31.10.2024 18:45 [18:45:01]line Смена: 557 ФФД: 1.0 [18:45:01]line ЗНМ: 0300000087 [18:45:01]line РНМ: 0000000000091644 [18:45:01]line Версия ККМ: 001 [18:45:01]line Платежная система: O! деньги [18:45:01]line ФМ: 0000000000874662 [18:45:01]line ФД: 73084 [18:45:01]line ФПД: 251750198794200 [18:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T184500&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73084&fm=251750198794200&tin=02508201610067®Number=0000000000091644&sum=150037 [18:45:02]OFD Sender: Processing packet 73084 [packets to send 282, broken 281] [18:45:02]ProducePacketName [18:45:02]name=ofd_packets/00073084 [18:45:02]OFD Sender: To server: pG, [18:45:02]CommunicateWithHost lk.salyk.kg:30040 [18:45:02]ConnectInit lk.salyk.kg [18:45:02]written 0, free lines is 4095 [18:45:02]Write to MH i2c: 01 00 00 6E 01 6F [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: 01 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: 01 07 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 DC 0C 5E [18:45:02]RasterBufferAndPrint [18:45:02]line [18:45:02]line [18:45:02]line [18:45:02]line [18:45:02]line [18:45:02]written 0, free lines is 3298 [18:45:02]MH_Cut [18:45:02]Write to MH i2c: D1 01 00 75 01 01 48 [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: D1 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: D1 01 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: D1 01 00 75 01 00 47 [18:45:02]Write to MH i2c: 01 00 00 76 01 77 [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]Connected sock=8 [18:45:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 25 28 06 01 B3 2C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2C D0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1D 01 00 35 04 06 00 E4 F7 29 2B D7 D8 D2 9A F3 4B 71 65 B1 BF [18:45:03]*** Cut start [18:45:03]*** Partial cut [18:45:03]*** CUTSNS_PIN = 1 [18:45:03]*** CUTSNS_PIN = 0 [18:45:03]*** Brake cut motor [18:45:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C0 72 47 00 E6 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1D 01 00 F4 03 04 00 E2 7A 23 67 B6 04 01 00 00 30 81 42 1E BA 31 4A 9A [18:45:03]CommunicateWithHost err = 0 [18:45:03]CheckOFDResponse [18:45:03]1017 (14) - 77093643461234 [18:45:03]1041 (16) - 0000000000874662 [18:45:03]1040 (4) - 73084 [18:45:03]1012 (4) - 31.10.2024 12:41 [18:45:03]1206 (1) - 0 [18:45:03]OFD Sender: Remove packet 73084 [18:45:03]ProducePacketName [18:45:03]name=ofd_packets/00073084 [18:45:03]NVStorageDeleteData [18:45:04]Read from MH i2c: 01 [18:45:04]MH_I2C_Read... [18:45:04]*** Stop cut motor [18:45:04]*** Cut end [18:45:04]Read from MH i2c: 01 07 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 FF 0F 8C [18:45:04]process_action close_receipt done [18:45:04]requested_data is exist [18:45:04]produce_requested_data [18:45:04]requested_item fm.sn is exist - process it [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 11 00 00 [18:45:04]Write to MH i2c: E2 08 00 77 01 80 11 00 00 00 00 00 00 F2 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 17 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 17 00 77 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 46 [18:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:45:04]wFMCommunicate OK [18:45:04]requested_item fd.num is exist - process it [18:45:04]SAM_PROTO_GetFieldsCounters [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 13 00 00 [18:45:04]Write to MH i2c: E2 08 00 78 01 80 13 00 00 00 00 00 00 F5 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 62 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 62 00 78 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [18:45:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:04]wFMCommunicate OK [18:45:04]SAM_PROTO_GetFieldsCounters done [18:45:04]requested_item shift.num is exist - process it [18:45:04]requested_item shift.opened is exist - process it [18:45:04]req_shift_opened [18:45:04]FM_GetShiftState [18:45:04]SAM_PROTO_GetShiftState [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 13 01 00 [18:45:04]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]OFD Sender: No OFD packet to send [18:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 0E 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A0 [18:45:04]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:45:04]wFMCommunicate OK [18:45:04]SAM_PROTO_GetShiftState done [18:45:04]FM_GetShiftState done [18:45:04]req_shift_opened done [18:45:04]requested_item shift.open_date is exist - process it [18:45:04]req_shift_open_date [18:45:04]req_shift_open_date done [18:45:04]produce_requested_data done [18:45:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73084,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [18:45:04]process_action_free close_receipt [18:45:04]json_value_free [18:45:04]json_value_free done [18:45:04]process_json_proto returns [18:45:04]Send response to host [18:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73084,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [18:45:04]free response buf [18:45:04]execute_script done [18:45:04]execute_script returns [18:45:04]free content buf [18:45:04]Sock 9.Close socket [18:45:04]Sock 9.Thread stoped [18:45:09]OFD Sender: No OFD packet to send [18:45:12]recv_with_timeout no data received [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]recv_with_timeout no data received [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:36]recv_with_timeout no data received [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:28]recv_with_timeout no data received [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:33]recv_with_timeout no data received [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]recv_with_timeout no data received [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:03]recv_with_timeout no data received [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:28]accept exits with 10 [18:54:28]New connection [18:54:28]New thread 3067350372 created [18:54:28]Thread 3067493732 joined [18:54:28]Waiting for new connection... [18:54:28] Sock 10.Parse request [18:54:28]Sock 10.Check first char [18:54:28]Sock 10.First char is OK [18:54:28]request: POST /json_proto HTTP/1.0 [18:54:28]Method: POST [18:54:28]URL: /json_proto [18:54:28]Method is POST - this is cgi request [18:54:28]url: /json_proto [18:54:28]query_string will be loaded in cgi processing [18:54:28]execute_cgi json_proto POST (null) [18:54:28]execute_cgi path=json_proto method=POST [18:54:28]POST find Content-Length [18:54:28]Host: 172.17.43.195:8080 [18:54:28]Content-Length: 792 [18:54:28]Content-Type: application/json [18:54:28] [18:54:28]POST finish read [18:54:28]Found Content-Length = 792 [18:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02315", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:28]execute_script... [18:54: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)952684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02315", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:28]POST & json_proto [18:54:28]process_json_proto [18:54:28]json parsed OK: [18:54:28]protocol is kg_v1.0 [18:54:28]action value=close_receipt [18:54:28]process_action close_receipt [18:54:28]cmd_close_receipt [18:54:28]MH_GetDate [18:54:28]Write to MH i2c: F0 00 00 7A 01 6A [18:54:28]Write i2c OK [18:54:28]MH_I2C_Read... [18:54:28]Read from MH i2c: F0 [18:54:28]MH_I2C_Read... [18:54:28]Read from MH i2c: F0 09 00 [18:54:28]MH_I2C_Read... [18:54:28]Read from MH i2c: F0 09 00 7A 01 00 64 D2 23 67 74 2C AD 66 E6 [18:54:28]GetLastDocTimeStamp 1730400300 [18:54:28]current date 1730400868 [18:54:28]FM_GetShiftState [18:54:28]SAM_PROTO_GetShiftState [18:54:28]wFMCommunicate request_size=4 [18:54:28]MH_SAM_APDU [18:54:28]CAPDU: 80 13 01 00 [18:54:28]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [18:54:28]Write i2c OK [18:54:28]MH_I2C_Read... [18:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:28]Read from MH i2c: E2 [18:54:28]MH_I2C_Read... [18:54:28]Read from MH i2c: E2 0E 00 [18:54:28]MH_I2C_Read... [18:54:28]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A2 [18:54:28]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:54:28]wFMCommunicate OK [18:54:28]SAM_PROTO_GetShiftState done [18:54:28]FM_GetShiftState done [18:54:28]opened in 1730333258 [18:54:28]opened+sec_in_day 1730419658 [18:54:28]quantity*price = 0 [18:54:28]sum+1 = 1 [18:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 160 31.10.2024 18:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02315 ФМ: 0000000000874662 ФД: 73085 ФПД: 194910647054328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185428&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73085&fm=194910647054328&tin=02508201610067®Number=0000000000091644&sum=0 [18:54:29]StoreToDocumentArchive [18:54:29]shift 557 fd 73085 [18:54:29]save to /storage/0557/doc_00073085 [18:54:29]save last doc name /storage/0557/doc_00073085 to /storage/kkm_last_doc_name [18:54:29]save OK [18:54:29]Clear old archive folders... [18:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:29]tlvbuf is 017D8FB0 [18:54:29]SAM_PROTO_ClearQueue [18:54:29]wFMCommunicate request_size=4 [18:54:29]MH_SAM_APDU [18:54:29]CAPDU: 80 09 00 00 [18:54:29]Write to MH i2c: E2 08 00 88 01 80 09 00 00 00 00 00 00 FB [18:54:29]Write i2c OK [18:54:29]MH_I2C_Read... [18:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:29]Read from MH i2c: E2 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 03 00 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [18:54:29]RAPDU: 90 00 [18:54:29]wFMCommunicate OK [18:54:29]SAM_PROTO_ClearQueue done [18:54:29]KKMCreateOFDPacket [18:54:29]OFDProtocolAddRootSTLVToBuf [18:54:29]FM_MakeSignedData [18:54:29]FM_MakeSignedData [18:54:29]SAM_PROTO_SignData [18:54:29]wFMCommunicate request_size=4 [18:54:29]MH_SAM_APDU [18:54:29]CAPDU: 80 0D 01 02 [18:54:29]Write to MH i2c: E2 08 00 89 01 80 0D 01 02 00 00 00 00 03 [18:54:29]Write i2c OK [18:54:29]MH_I2C_Read... [18:54:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:29]Read from MH i2c: E2 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 03 00 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [18:54:29]RAPDU: 90 00 [18:54:29]wFMCommunicate OK [18:54:29]wFMCommunicate request_size=255 [18:54:29]MH_SAM_APDU [18:54:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 9D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 64 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1D 01 00 35 04 06 00 B1 [18:54:29]Write to MH i2c: E2 02 01 8A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 9D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 64 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1D 01 00 35 04 06 00 B1 00 00 75 [18:54:29]Write i2c OK [18:54:29]MH_I2C_Read... [18:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:29]Read from MH i2c: E2 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 03 00 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [18:54:29]RAPDU: 90 00 [18:54:29]wFMCommunicate OK [18:54:29]wFMCommunicate request_size=10 [18:54:29]MH_SAM_APDU [18:54:29]CAPDU: 80 0D 02 02 05 45 2B E1 6F F8 [18:54:29]Write to MH i2c: E2 0D 00 8B 01 80 0D 02 02 05 00 45 2B E1 6F F8 00 00 C8 [18:54:29]Write i2c OK [18:54:29]MH_I2C_Read... [18:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:29]Read from MH i2c: E2 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 03 00 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [18:54:29]RAPDU: 90 00 [18:54:29]wFMCommunicate OK [18:54:29]wFMCommunicate request_size=4 [18:54:29]MH_SAM_APDU [18:54:29]CAPDU: 80 0D 03 02 [18:54:29]Write to MH i2c: E2 08 00 8C 01 80 0D 03 02 00 00 00 00 08 [18:54:29]Write i2c OK [18:54:29]MH_I2C_Read... [18:54:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:29]Read from MH i2c: E2 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 0B 00 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 0B 00 8C 01 00 C4 DD B7 5E 31 D0 80 1D 90 00 5D [18:54:29]RAPDU: C4 DD B7 5E 31 D0 80 1D 90 00 [18:54:29]wFMCommunicate OK [18:54:29]SAM_PROTO_SignData done [18:54:29]FM_MakeSignedData done [18:54:29]CreateOFDProtocolMessage [18:54:29]wFMCommunicate request_size=4 [18:54:29]MH_SAM_APDU [18:54:29]CAPDU: 80 11 00 00 [18:54:29]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [18:54:29]Write i2c OK [18:54:29]MH_I2C_Read... [18:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:29]Read from MH i2c: E2 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 17 00 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [18:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:54:29]wFMCommunicate OK [18:54:29]CreateOFDProtocolMessage done [18:54:29]OFDSenderStorePacket 73085 [18:54:29]StoreOFDPacket docnum=73085 [18:54:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E9 A7 07 01 A4 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 9D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 64 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1D 01 00 35 04 06 00 B1 45 2B E1 6F F8 C4 DD B7 5E 31 D0 80 1D [18:54:29]CheckFolder [18:54:29]dirname=/storage/ofd_packets [18:54:29]CheckFolder done [18:54:29]ProducePacketName [18:54:29]name=ofd_packets/00073085 [18:54:29]NVStorageSaveData ofd_packets/00073085 [18:54:29]File name is /storage/ofd_packets/00073085 [18:54:29]Write 301 bytes [18:54:29]NVStorageSaveData done [18:54:29]OFDSenderStorePacket done [18:54:29]KKMCreateOFDPacket done [18:54:29]NVStorageSaveData kkm_last_timestamp [18:54:29]File name is /storage/kkm_last_timestamp [18:54:29]Write 4 bytes [18:54:29]NVStorageSaveData done [18:54:29]ExternCall_PrintAddStr [18:54:29]wPrintStart [18:54:29]Write to MH i2c: 01 00 00 8E 01 8F [18:54:29]Write i2c OK [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: 01 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: 01 07 00 [18:54:29]MH_I2C_Read... [18:54:29]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [18:54:29]RasterBufferAndPrint [18:54:29]line Счет N : (1)952684 [18:54:29]line ИНН: 02508201610067 [18:54:29]line Контрольно-Кассовый Чек [18:54:29]line ПРОДАЖА [18:54:29]line ТРК (МРК, ГНК) : 62 [18:54:29]line Товар: 2710124500 [18:54:29]line Аи-95-К-3 [18:54:29]line 40.430 * 0.00 [18:54:29]line = 0.00 [18:54:29]line НДС 12% НСП 1% [18:54:29]line > о реализуемом товаре [18:54:29]line ИТОГО: 0.00 [18:54:29]line НСП 1% : 0.00 [18:54:29]line НДС 12% : 0.00 [18:54:29]line Наличными: 0.00 [18:54:29]line Безнал.: 0.00 [18:54:29]line Место: АЗС № 113 "Партнер Нефть" [18:54:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:54:29]line СНО: Общий режим [18:54:29]line Чек 160 31.10.2024 18:54 [18:54:29]line Смена: 557 ФФД: 1.0 [18:54:29]line ЗНМ: 0300000087 [18:54:29]line РНМ: 0000000000091644 [18:54:29]line Версия ККМ: 001 [18:54:29]line Талоны: Топливная Карта [18:54:29]line 02315 [18:54:29]line ФМ: 0000000000874662 [18:54:29]line ФД: 73085 [18:54:29]line ФПД: 194910647054328 [18:54:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185428&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73085&fm=194910647054328&tin=02508201610067®Number=0000000000091644&sum=0 [18:54:29]written 0, free lines is 4095 [18:54:29]OFD Sender: Processing packet 73085 [packets to send 282, broken 281] [18:54:29]ProducePacketName [18:54:29]name=ofd_packets/00073085 [18:54:29]OFD Sender: To server: pG, [18:54:29]CommunicateWithHost lk.salyk.kg:30040 [18:54:29]ConnectInit lk.salyk.kg [18:54:30]Write to MH i2c: 01 00 00 B8 01 B9 [18:54:30]Write i2c OK [18:54:30]MH_I2C_Read... [18:54:30]Read from MH i2c: 01 [18:54:30]MH_I2C_Read... [18:54:30]Read from MH i2c: 01 07 00 [18:54:30]MH_I2C_Read... [18:54:30]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 DC 0C A8 [18:54:30]RasterBufferAndPrint [18:54:30]line [18:54:30]line [18:54:30]line [18:54:30]line [18:54:30]line [18:54:30]written 0, free lines is 3299 [18:54:30]MH_Cut [18:54:30]Write to MH i2c: D1 01 00 BF 01 01 92 [18:54:30]Write i2c OK [18:54:30]MH_I2C_Read... [18:54:30]Read from MH i2c: D1 [18:54:30]MH_I2C_Read... [18:54:30]Read from MH i2c: D1 01 00 [18:54:30]MH_I2C_Read... [18:54:30]Read from MH i2c: D1 01 00 BF 01 00 91 [18:54:30]Write to MH i2c: 01 00 00 C0 01 C1 [18:54:30]Write i2c OK [18:54:30]MH_I2C_Read... [18:54:30]Connected sock=9 [18:54:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E9 A7 07 01 A4 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 9D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 64 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1D 01 00 35 04 06 00 B1 45 2B E1 6F F8 C4 DD B7 5E 31 D0 80 1D [18:54:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 82 35 47 00 3D 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1D 01 00 F4 03 04 00 19 7D 23 67 B6 04 01 00 00 69 7E 97 3F 4F E3 03 1F [18:54:30]CommunicateWithHost err = 0 [18:54:30]CheckOFDResponse [18:54:30]1017 (14) - 77093643461234 [18:54:30]1041 (16) - 0000000000874662 [18:54:30]1040 (4) - 73085 [18:54:30]1012 (4) - 31.10.2024 12:50 [18:54:30]1206 (1) - 0 [18:54:30]OFD Sender: Remove packet 73085 [18:54:30]ProducePacketName [18:54:30]name=ofd_packets/00073085 [18:54:30]NVStorageDeleteData [18:54:30]*** Cut start [18:54:30]*** Partial cut [18:54:30]*** CUTSNS_PIN = 1 [18:54:31]*** CUTSNS_PIN = 0 [18:54:31]*** Brake cut motor [18:54:31]OFD Sender: No OFD packet to send [18:54:31]Read from MH i2c: 01 [18:54:31]MH_I2C_Read... [18:54:31]*** Stop cut motor [18:54:31]*** Cut end [18:54:31]Read from MH i2c: 01 07 00 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 FF 0F D6 [18:54:31]process_action close_receipt done [18:54:31]requested_data is exist [18:54:31]produce_requested_data [18:54:31]requested_item fm.sn is exist - process it [18:54:31]wFMCommunicate request_size=4 [18:54:31]MH_SAM_APDU [18:54:31]CAPDU: 80 11 00 00 [18:54:31]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [18:54:31]Write i2c OK [18:54:31]MH_I2C_Read... [18:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:31]Read from MH i2c: E2 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: E2 17 00 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 90 [18:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:54:31]wFMCommunicate OK [18:54:31]requested_item fd.num is exist - process it [18:54:31]SAM_PROTO_GetFieldsCounters [18:54:31]wFMCommunicate request_size=4 [18:54:31]MH_SAM_APDU [18:54:31]CAPDU: 80 13 00 00 [18:54:31]Write to MH i2c: E2 08 00 C2 01 80 13 00 00 00 00 00 00 3F [18:54:31]Write i2c OK [18:54:31]MH_I2C_Read... [18:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:31]Read from MH i2c: E2 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: E2 62 00 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: E2 62 00 C2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [18:54:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:31]wFMCommunicate OK [18:54:31]SAM_PROTO_GetFieldsCounters done [18:54:31]requested_item shift.num is exist - process it [18:54:31]requested_item shift.opened is exist - process it [18:54:31]req_shift_opened [18:54:31]FM_GetShiftState [18:54:31]SAM_PROTO_GetShiftState [18:54:31]wFMCommunicate request_size=4 [18:54:31]MH_SAM_APDU [18:54:31]CAPDU: 80 13 01 00 [18:54:31]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [18:54:31]Write i2c OK [18:54:31]MH_I2C_Read... [18:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:31]Read from MH i2c: E2 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: E2 0E 00 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 EA [18:54:31]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:54:31]wFMCommunicate OK [18:54:31]SAM_PROTO_GetShiftState done [18:54:31]FM_GetShiftState done [18:54:31]req_shift_opened done [18:54:31]requested_item shift.open_date is exist - process it [18:54:31]req_shift_open_date [18:54:31]req_shift_open_date done [18:54:31]produce_requested_data done [18:54:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73085,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [18:54:31]process_action_free close_receipt [18:54:31]json_value_free [18:54:31]json_value_free done [18:54:31]process_json_proto returns [18:54:31]Send response to host [18:54:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73085,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [18:54:31]free response buf [18:54:31]execute_script done [18:54:31]execute_script returns [18:54:31]free content buf [18:54:31]Sock 10.Close socket [18:54:31]Sock 10.Thread stoped [18:54:36]OFD Sender: No OFD packet to send [18:54:38]accept exits with 8 [18:54:38]New connection [18:54:38]New thread 3067493732 created [18:54:38]Thread 3067350372 joined [18:54:38]Waiting for new connection... [18:54:38] Sock 8.Parse request [18:54:38]Sock 8.Check first char [18:54:38]Sock 8.First char is OK [18:54:38]request: POST /json_proto HTTP/1.0 [18:54:38]Method: POST [18:54:38]URL: /json_proto [18:54:38]Method is POST - this is cgi request [18:54:38]url: /json_proto [18:54:38]query_string will be loaded in cgi processing [18:54:38]execute_cgi json_proto POST (null) [18:54:38]execute_cgi path=json_proto method=POST [18:54:38]POST find Content-Length [18:54:38]Host: 172.17.43.195:8080 [18:54:38]Content-Length: 682 [18:54:38]Content-Type: application/json [18:54:38] [18:54:38]POST finish read [18:54:38]Found Content-Length = 682 [18:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:38]execute_script... [18:54:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:38]POST & json_proto [18:54:38]process_json_proto [18:54:38]json parsed OK: [18:54:38]protocol is kg_v1.0 [18:54:38]action value=close_receipt [18:54:38]process_action close_receipt [18:54:38]cmd_close_receipt [18:54:38]MH_GetDate [18:54:38]Write to MH i2c: F0 00 00 C4 01 B4 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: F0 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: F0 09 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: F0 09 00 C4 01 00 6F D2 23 67 74 2C AD 66 3B [18:54:38]GetLastDocTimeStamp 1730400868 [18:54:38]current date 1730400879 [18:54:38]FM_GetShiftState [18:54:38]SAM_PROTO_GetShiftState [18:54:38]wFMCommunicate request_size=4 [18:54:38]MH_SAM_APDU [18:54:38]CAPDU: 80 13 01 00 [18:54:38]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:39]Read from MH i2c: E2 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 0E 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 EC [18:54:39]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:54:39]wFMCommunicate OK [18:54:39]SAM_PROTO_GetShiftState done [18:54:39]FM_GetShiftState done [18:54:39]opened in 1730333258 [18:54:39]opened+sec_in_day 1730419658 [18:54:39]quantity*price = 300046 [18:54:39]sum+1 = 300048 [18:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 161 31.10.2024 18:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73086 ФПД: 179355122002447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185439&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73086&fm=179355122002447&tin=02508201610067®Number=0000000000091644&sum=300000 [18:54:40]StoreToDocumentArchive [18:54:40]shift 557 fd 73086 [18:54:40]save to /storage/0557/doc_00073086 [18:54:40]save last doc name /storage/0557/doc_00073086 to /storage/kkm_last_doc_name [18:54:40]save OK [18:54:40]Clear old archive folders... [18:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:40]tlvbuf is 017E7CB0 [18:54:40]SAM_PROTO_ClearQueue [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 09 00 00 [18:54:40]Write to MH i2c: E2 08 00 D2 01 80 09 00 00 00 00 00 00 45 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]SAM_PROTO_ClearQueue done [18:54:40]KKMCreateOFDPacket [18:54:40]OFDProtocolAddRootSTLVToBuf [18:54:40]FM_MakeSignedData [18:54:40]FM_MakeSignedData [18:54:40]SAM_PROTO_SignData [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 0D 01 02 [18:54:40]Write to MH i2c: E2 08 00 D3 01 80 0D 01 02 00 00 00 00 4D [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]wFMCommunicate request_size=255 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 6F D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1D 01 00 35 04 06 00 A3 [18:54:40]Write to MH i2c: E2 02 01 D4 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 6F D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1D 01 00 35 04 06 00 A3 00 00 3F [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]wFMCommunicate request_size=10 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 0D 02 02 05 1F 5E 55 EA 0F [18:54:40]Write to MH i2c: E2 0D 00 D5 01 80 0D 02 02 05 00 1F 5E 55 EA 0F 00 00 25 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 0D 03 02 [18:54:40]Write to MH i2c: E2 08 00 D6 01 80 0D 03 02 00 00 00 00 52 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 0B 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 0B 00 D6 01 00 8B E8 F5 1A F7 1C 7E 3B 90 00 A1 [18:54:40]RAPDU: 8B E8 F5 1A F7 1C 7E 3B 90 00 [18:54:40]wFMCommunicate OK [18:54:40]SAM_PROTO_SignData done [18:54:40]FM_MakeSignedData done [18:54:40]CreateOFDProtocolMessage [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 11 00 00 [18:54:40]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 17 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [18:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:54:40]wFMCommunicate OK [18:54:40]CreateOFDProtocolMessage done [18:54:40]OFDSenderStorePacket 73086 [18:54:40]StoreOFDPacket docnum=73086 [18:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8A CB 07 01 6D 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 6F D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1D 01 00 35 04 06 00 A3 1F 5E 55 EA 0F 8B E8 F5 1A F7 1C 7E 3B [18:54:40]CheckFolder [18:54:40]dirname=/storage/ofd_packets [18:54:40]CheckFolder done [18:54:40]ProducePacketName [18:54:40]name=ofd_packets/00073086 [18:54:40]NVStorageSaveData ofd_packets/00073086 [18:54:40]File name is /storage/ofd_packets/00073086 [18:54:40]Write 301 bytes [18:54:40]NVStorageSaveData done [18:54:40]OFDSenderStorePacket done [18:54:40]KKMCreateOFDPacket done [18:54:40]NVStorageSaveData kkm_last_timestamp [18:54:40]File name is /storage/kkm_last_timestamp [18:54:40]Write 4 bytes [18:54:40]NVStorageSaveData done [18:54:40]ExternCall_PrintAddStr [18:54:40]wPrintStart [18:54:40]Write to MH i2c: 01 00 00 D8 01 D9 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 07 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [18:54:40]RasterBufferAndPrint [18:54:40]line Счет N : (1)952685 [18:54:40]line ИНН: 02508201610067 [18:54:40]line Контрольно-Кассовый Чек [18:54:40]line ПРОДАЖА [18:54:40]line ТРК (МРК, ГНК) : 53 [18:54:40]line Товар: 2710124130 [18:54:40]line Аи-92-К-5 [18:54:40]line 44.850 * 66.90 [18:54:40]line = 3000.47 [18:54:40]line НДС 12% НСП 1% [18:54:40]line > о реализуемом товаре [18:54:40]line ОКРУГЛЕНИЕ: -0.47 [18:54:40]line ИТОГО: 3000.00 [18:54:40]line Внесено: 3000.00 [18:54:40]line СДАЧА: 0.00 [18:54:40]line НСП 1% : 26.55 [18:54:40]line НДС 12% : 318.63 [18:54:40]line Наличными: 3000.00 [18:54:40]line Безнал.: 0.00 [18:54:40]line Место: АЗС № 113 "Партнер Нефть" [18:54:40]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:54:40]line СНО: Общий режим [18:54:40]line Чек 161 31.10.2024 18:54 [18:54:40]line Смена: 557 ФФД: 1.0 [18:54:40]line ЗНМ: 0300000087 [18:54:40]line РНМ: 0000000000091644 [18:54:40]line Версия ККМ: 001 [18:54:40]line ФМ: 0000000000874662 [18:54:40]line ФД: 73086 [18:54:40]line ФПД: 179355122002447 [18:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185439&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73086&fm=179355122002447&tin=02508201610067®Number=0000000000091644&sum=300000 [18:54:40]written 0, free lines is 4095 [18:54:40]OFD Sender: Processing packet 73086 [packets to send 282, broken 281] [18:54:40]ProducePacketName [18:54:40]name=ofd_packets/00073086 [18:54:40]OFD Sender: To server: pG, [18:54:40]CommunicateWithHost lk.salyk.kg:30040 [18:54:40]ConnectInit lk.salyk.kg [18:54:41]Write to MH i2c: 01 00 00 03 02 05 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 07 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 07 00 03 02 00 00 00 00 00 E5 0C FD [18:54:41]RasterBufferAndPrint [18:54:41]line [18:54:41]line [18:54:41]line [18:54:41]line [18:54:41]line [18:54:41]written 0, free lines is 3310 [18:54:41]MH_Cut [18:54:41]Write to MH i2c: D1 01 00 0A 02 01 DE [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: D1 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: D1 01 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: D1 01 00 0A 02 00 DD [18:54:41]Write to MH i2c: 01 00 00 0B 02 0D [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:42]*** Cut start [18:54:42]*** Partial cut [18:54:42]*** CUTSNS_PIN = 1 [18:54:42]*** CUTSNS_PIN = 0 [18:54:42]*** Brake cut motor [18:54:42]Read from MH i2c: 01 [18:54:42]MH_I2C_Read... [18:54:42]*** Stop cut motor [18:54:42]*** Cut end [18:54:42]Read from MH i2c: 01 07 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 FF 0F 22 [18:54:42]process_action close_receipt done [18:54:42]requested_data is exist [18:54:42]produce_requested_data [18:54:42]requested_item fm.sn is exist - process it [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 11 00 00 [18:54:42]Write to MH i2c: E2 08 00 0C 02 80 11 00 00 00 00 00 00 88 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 17 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 17 00 0C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [18:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:54:42]wFMCommunicate OK [18:54:42]requested_item fd.num is exist - process it [18:54:42]SAM_PROTO_GetFieldsCounters [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 13 00 00 [18:54:42]Write to MH i2c: E2 08 00 0D 02 80 13 00 00 00 00 00 00 8B [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 62 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 62 00 0D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [18:54:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:42]wFMCommunicate OK [18:54:42]SAM_PROTO_GetFieldsCounters done [18:54:42]requested_item shift.num is exist - process it [18:54:42]requested_item shift.opened is exist - process it [18:54:42]req_shift_opened [18:54:42]FM_GetShiftState [18:54:42]SAM_PROTO_GetShiftState [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 13 01 00 [18:54:42]Write to MH i2c: E2 08 00 0E 02 80 13 01 00 00 00 00 00 8D [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 0E 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 0E 00 0E 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 36 [18:54:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [18:54:42]wFMCommunicate OK [18:54:42]SAM_PROTO_GetShiftState done [18:54:42]FM_GetShiftState done [18:54:42]req_shift_opened done [18:54:42]requested_item shift.open_date is exist - process it [18:54:42]req_shift_open_date [18:54:42]req_shift_open_date done [18:54:42]produce_requested_data done [18:54:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73086,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [18:54:42]process_action_free close_receipt [18:54:42]json_value_free [18:54:42]json_value_free done [18:54:42]process_json_proto returns [18:54:42]Send response to host [18:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73086,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [18:54:42]free response buf [18:54:42]execute_script done [18:54:42]execute_script returns [18:54:42]free content buf [18:54:42]Sock 8.Close socket [18:54:42]Sock 8.Thread stoped [18:54:46]recv_with_timeout no data received [18:54:50]Connected sock=11 [18: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 34 36 36 32 0F 01 00 00 8A CB 07 01 6D 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 6F D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1D 01 00 35 04 06 00 A3 1F 5E 55 EA 0F 8B E8 F5 1A F7 1C 7E 3B [18:54:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4D F5 47 00 E0 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 34 36 36 32 10 04 04 00 7E 1D 01 00 F4 03 04 00 2E 7D 23 67 B6 04 01 00 00 1C 5E BE 00 E0 AD 10 3C [18:54:51]CommunicateWithHost err = 0 [18:54:51]CheckOFDResponse [18:54:51]1017 (14) - 77093643461234 [18:54:51]1041 (16) - 0000000000874662 [18:54:51]1040 (4) - 73086 [18:54:51]1012 (4) - 31.10.2024 12:50 [18:54:51]1206 (1) - 0 [18:54:51]OFD Sender: Remove packet 73086 [18:54:51]ProducePacketName [18:54:51]name=ofd_packets/00073086 [18:54:51]NVStorageDeleteData [18:54:51]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:39]recv_with_timeout no data received [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:55]recv_with_timeout no data received [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:06]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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:56]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:25]recv_with_timeout no data received [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:48]recv_with_timeout no data received [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:13]recv_with_timeout no data received [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:35]recv_with_timeout no data received [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:02]recv_with_timeout no data received [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:09]recv_with_timeout no data received [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:19]recv_with_timeout no data received [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:51]recv_with_timeout no data received [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:39]recv_with_timeout no data received [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:57]recv_with_timeout no data received [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:34]recv_with_timeout no data received [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [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:25]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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]recv_with_timeout no data received [19:16:24]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:05]recv_with_timeout no data received [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:49]recv_with_timeout no data received [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:00]ConnectInit Can't connect to host [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:11]recv_with_timeout no data received [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:24]recv_with_timeout no data received [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:00]recv_with_timeout no data received [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:35]accept exits with 9 [19:29:35]New connection [19:29:35]New thread 3067350372 created [19:29:35]Thread 3067493732 joined [19:29:35]Waiting for new connection... [19:29:35] Sock 9.Parse request [19:29:35]Sock 9.Check first char [19:29:35]Sock 9.First char is OK [19:29:35]request: POST /json_proto HTTP/1.0 [19:29:35]Method: POST [19:29:35]URL: /json_proto [19:29:35]Method is POST - this is cgi request [19:29:35]url: /json_proto [19:29:35]query_string will be loaded in cgi processing [19:29:35]execute_cgi json_proto POST (null) [19:29:35]execute_cgi path=json_proto method=POST [19:29:35]POST find Content-Length [19:29:35]Host: 172.17.43.195:8080 [19:29:35]Content-Length: 792 [19:29:35]Content-Type: application/json [19:29:35] [19:29:35]POST finish read [19:29:35]Found Content-Length = 792 [19:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A72963", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:35]execute_script... [19:29:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A72963", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:35]POST & json_proto [19:29:35]process_json_proto [19:29:35]json parsed OK: [19:29:35]protocol is kg_v1.0 [19:29:35]action value=close_receipt [19:29:35]process_action close_receipt [19:29:35]cmd_close_receipt [19:29:35]MH_GetDate [19:29:35]Write to MH i2c: F0 00 00 0F 02 00 [19:29:35]Write i2c OK [19:29:35]MH_I2C_Read... [19:29:35]Read from MH i2c: F0 [19:29:35]MH_I2C_Read... [19:29:35]Read from MH i2c: F0 09 00 [19:29:35]MH_I2C_Read... [19:29:35]Read from MH i2c: F0 09 00 0F 02 00 A0 DA 23 67 74 2C AD 66 C0 [19:29:35]GetLastDocTimeStamp 1730400879 [19:29:35]current date 1730402976 [19:29:35]FM_GetShiftState [19:29:35]SAM_PROTO_GetShiftState [19:29:35]wFMCommunicate request_size=4 [19:29:35]MH_SAM_APDU [19:29:35]CAPDU: 80 13 01 00 [19:29:35]Write to MH i2c: E2 08 00 10 02 80 13 01 00 00 00 00 00 8F [19:29:35]Write i2c OK [19:29:35]MH_I2C_Read... [19:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:35]Read from MH i2c: E2 [19:29:35]MH_I2C_Read... [19:29:35]Read from MH i2c: E2 0E 00 [19:29:35]MH_I2C_Read... [19:29:35]Read from MH i2c: E2 0E 00 10 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [19:29:35]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:29:35]wFMCommunicate OK [19:29:35]SAM_PROTO_GetShiftState done [19:29:35]FM_GetShiftState done [19:29:35]opened in 1730333258 [19:29:35]opened+sec_in_day 1730419658 [19:29:35]quantity*price = 0 [19:29:35]sum+1 = 1 [19:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 162 31.10.2024 19:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 72963 ФМ: 0000000000874662 ФД: 73087 ФПД: 182553401637081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T192936&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73087&fm=182553401637081&tin=02508201610067®Number=0000000000091644&sum=0 [19:29:36]StoreToDocumentArchive [19:29:36]shift 557 fd 73087 [19:29:36]save to /storage/0557/doc_00073087 [19:29:36]save last doc name /storage/0557/doc_00073087 to /storage/kkm_last_doc_name [19:29:36]save OK [19:29:36]Clear old archive folders... [19:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:36]tlvbuf is 017F8320 [19:29:36]SAM_PROTO_ClearQueue [19:29:36]wFMCommunicate request_size=4 [19:29:36]MH_SAM_APDU [19:29:36]CAPDU: 80 09 00 00 [19:29:36]Write to MH i2c: E2 08 00 1D 02 80 09 00 00 00 00 00 00 91 [19:29:36]Write i2c OK [19:29:36]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:37]Read from MH i2c: E2 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [19:29:37]RAPDU: 90 00 [19:29:37]wFMCommunicate OK [19:29:37]SAM_PROTO_ClearQueue done [19:29:37]KKMCreateOFDPacket [19:29:37]OFDProtocolAddRootSTLVToBuf [19:29:37]FM_MakeSignedData [19:29:37]FM_MakeSignedData [19:29:37]SAM_PROTO_SignData [19:29:37]wFMCommunicate request_size=4 [19:29:37]MH_SAM_APDU [19:29:37]CAPDU: 80 0D 01 02 [19:29:37]Write to MH i2c: E2 08 00 1E 02 80 0D 01 02 00 00 00 00 99 [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:37]Read from MH i2c: E2 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [19:29:37]RAPDU: 90 00 [19:29:37]wFMCommunicate OK [19:29:37]wFMCommunicate request_size=255 [19:29:37]MH_SAM_APDU [19:29:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A0 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1D 01 00 35 04 06 00 A6 [19:29:37]Write to MH i2c: E2 02 01 1F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A0 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1D 01 00 35 04 06 00 A6 00 00 3F [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:37]Read from MH i2c: E2 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [19:29:37]RAPDU: 90 00 [19:29:37]wFMCommunicate OK [19:29:37]wFMCommunicate request_size=10 [19:29:37]MH_SAM_APDU [19:29:37]CAPDU: 80 0D 02 02 05 08 06 A8 38 D9 [19:29:37]Write to MH i2c: E2 0D 00 20 02 80 0D 02 02 05 00 08 06 A8 38 D9 00 00 6D [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:37]Read from MH i2c: E2 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [19:29:37]RAPDU: 90 00 [19:29:37]wFMCommunicate OK [19:29:37]wFMCommunicate request_size=4 [19:29:37]MH_SAM_APDU [19:29:37]CAPDU: 80 0D 03 02 [19:29:37]Write to MH i2c: E2 08 00 21 02 80 0D 03 02 00 00 00 00 9E [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:37]Read from MH i2c: E2 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 0B 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 0B 00 21 02 00 6A 02 7F 05 E5 30 E5 DA 90 00 63 [19:29:37]RAPDU: 6A 02 7F 05 E5 30 E5 DA 90 00 [19:29:37]wFMCommunicate OK [19:29:37]SAM_PROTO_SignData done [19:29:37]FM_MakeSignedData done [19:29:37]CreateOFDProtocolMessage [19:29:37]wFMCommunicate request_size=4 [19:29:37]MH_SAM_APDU [19:29:37]CAPDU: 80 11 00 00 [19:29:37]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:37]Read from MH i2c: E2 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 17 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [19:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:29:37]wFMCommunicate OK [19:29:37]CreateOFDProtocolMessage done [19:29:37]OFDSenderStorePacket 73087 [19:29:37]StoreOFDPacket docnum=73087 [19:29:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A3 FA 07 01 11 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A0 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1D 01 00 35 04 06 00 A6 08 06 A8 38 D9 6A 02 7F 05 E5 30 E5 DA [19:29:37]CheckFolder [19:29:37]dirname=/storage/ofd_packets [19:29:37]CheckFolder done [19:29:37]ProducePacketName [19:29:37]name=ofd_packets/00073087 [19:29:37]NVStorageSaveData ofd_packets/00073087 [19:29:37]File name is /storage/ofd_packets/00073087 [19:29:37]Write 301 bytes [19:29:37]NVStorageSaveData done [19:29:37]OFDSenderStorePacket done [19:29:37]KKMCreateOFDPacket done [19:29:37]NVStorageSaveData kkm_last_timestamp [19:29:37]File name is /storage/kkm_last_timestamp [19:29:37]Write 4 bytes [19:29:37]NVStorageSaveData done [19:29:37]ExternCall_PrintAddStr [19:29:37]wPrintStart [19:29:37]Write to MH i2c: 01 00 00 23 02 25 [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: 01 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: 01 07 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [19:29:37]RasterBufferAndPrint [19:29:37]line Счет N : (1)952686 [19:29:37]line ИНН: 02508201610067 [19:29:37]line Контрольно-Кассовый Чек [19:29:37]line ПРОДАЖА [19:29:37]line ТРК (МРК, ГНК) : 52 [19:29:37]line Товар: 2710124500 [19:29:37]line Аи-95-К-3 [19:29:37]line 70.000 * 0.00 [19:29:37]line = 0.00 [19:29:37]line НДС 12% НСП 1% [19:29:37]line > о реализуемом товаре [19:29:37]line ИТОГО: 0.00 [19:29:37]line НСП 1% : 0.00 [19:29:37]line НДС 12% : 0.00 [19:29:37]line Наличными: 0.00 [19:29:37]line Безнал.: 0.00 [19:29:37]line Место: АЗС № 113 "Партнер Нефть" [19:29:37]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:29:37]line СНО: Общий режим [19:29:37]line Чек 162 31.10.2024 19:29 [19:29:37]line Смена: 557 ФФД: 1.0 [19:29:37]line ЗНМ: 0300000087 [19:29:37]line РНМ: 0000000000091644 [19:29:37]line Версия ККМ: 001 [19:29:37]line Талоны: Топливная Карта [19:29:37]line 72963 [19:29:37]line ФМ: 0000000000874662 [19:29:37]line ФД: 73087 [19:29:37]line ФПД: 182553401637081 [19:29:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T192936&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73087&fm=182553401637081&tin=02508201610067®Number=0000000000091644&sum=0 [19:29:37]OFD Sender: Processing packet 73087 [packets to send 282, broken 281] [19:29:37]ProducePacketName [19:29:37]name=ofd_packets/00073087 [19:29:37]OFD Sender: To server: pG, [19:29:37]CommunicateWithHost lk.salyk.kg:30040 [19:29:37]ConnectInit lk.salyk.kg [19:29:37]written 0, free lines is 4095 [19:29:37]Connected sock=10 [19:29:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A3 FA 07 01 11 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A0 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1D 01 00 35 04 06 00 A6 08 06 A8 38 D9 6A 02 7F 05 E5 30 E5 DA [19:29:38]Write to MH i2c: 01 00 00 4D 02 4F [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: 01 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: 01 07 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 FB 0C 5D [19:29:38]RasterBufferAndPrint [19:29:38]line [19:29:38]line [19:29:38]line [19:29:38]line [19:29:38]line [19:29:38]written 0, free lines is 3329 [19:29:38]MH_Cut [19:29:38]Write to MH i2c: D1 01 00 54 02 01 28 [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: D1 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: D1 01 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: D1 01 00 54 02 00 27 [19:29:38]Write to MH i2c: 01 00 00 55 02 57 [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A5 D7 47 00 E0 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1D 01 00 F4 03 04 00 55 85 23 67 B6 04 01 00 00 5E D4 0F BF 43 32 C9 69 [19:29:38]CommunicateWithHost err = 0 [19:29:38]CheckOFDResponse [19:29:38]1017 (14) - 77093643461234 [19:29:38]1041 (16) - 0000000000874662 [19:29:38]1040 (4) - 73087 [19:29:38]1012 (4) - 31.10.2024 13:25 [19:29:38]1206 (1) - 0 [19:29:38]OFD Sender: Remove packet 73087 [19:29:38]ProducePacketName [19:29:38]name=ofd_packets/00073087 [19:29:38]NVStorageDeleteData [19:29:38]*** Cut start [19:29:38]*** Partial cut [19:29:38]*** CUTSNS_PIN = 1 [19:29:38]*** CUTSNS_PIN = 0 [19:29:38]OFD Sender: No OFD packet to send [19:29:39]*** Brake cut motor [19:29:39]Read from MH i2c: 01 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: *** Stop cut motor [19:29:39]01 07 *** Cut end [19:29:39]00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 FF 0F 6C [19:29:39]process_action close_receipt done [19:29:39]requested_data is exist [19:29:39]produce_requested_data [19:29:39]requested_item fm.sn is exist - process it [19:29:39]wFMCommunicate request_size=4 [19:29:39]MH_SAM_APDU [19:29:39]CAPDU: 80 11 00 00 [19:29:39]Write to MH i2c: E2 08 00 56 02 80 11 00 00 00 00 00 00 D2 [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:39]Read from MH i2c: E2 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 17 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 17 00 56 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 26 [19:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:29:39]wFMCommunicate OK [19:29:39]requested_item fd.num is exist - process it [19:29:39]SAM_PROTO_GetFieldsCounters [19:29:39]wFMCommunicate request_size=4 [19:29:39]MH_SAM_APDU [19:29:39]CAPDU: 80 13 00 00 [19:29:39]Write to MH i2c: E2 08 00 57 02 80 13 00 00 00 00 00 00 D5 [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:39]Read from MH i2c: E2 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 62 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 62 00 57 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [19:29:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:39]wFMCommunicate OK [19:29:39]SAM_PROTO_GetFieldsCounters done [19:29:39]requested_item shift.num is exist - process it [19:29:39]requested_item shift.opened is exist - process it [19:29:39]req_shift_opened [19:29:39]FM_GetShiftState [19:29:39]SAM_PROTO_GetShiftState [19:29:39]wFMCommunicate request_size=4 [19:29:39]MH_SAM_APDU [19:29:39]CAPDU: 80 13 01 00 [19:29:39]Write to MH i2c: E2 08 00 58 02 80 13 01 00 00 00 00 00 D7 [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:39]Read from MH i2c: E2 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 0E 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 0E 00 58 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 80 [19:29:39]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:29:39]wFMCommunicate OK [19:29:39]SAM_PROTO_GetShiftState done [19:29:39]FM_GetShiftState done [19:29:39]req_shift_opened done [19:29:39]requested_item shift.open_date is exist - process it [19:29:39]req_shift_open_date [19:29:39]req_shift_open_date done [19:29:39]produce_requested_data done [19:29:39]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73087,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [19:29:39]process_action_free close_receipt [19:29:39]json_value_free [19:29:39]json_value_free done [19:29:39]process_json_proto returns [19:29:39]Send response to host [19:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73087,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [19:29:39]free response buf [19:29:39]execute_script done [19:29:39]execute_script returns [19:29:39]free content buf [19:29:39]Sock 9.Close socket [19:29:39]Sock 9.Thread stoped [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:58]OFD Sender: No OFD packet to send [19:30:00]recv_with_timeout no data received [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:22]recv_with_timeout no data received [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:56]recv_with_timeout no data received [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:41]recv_with_timeout no data received [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:52]recv_with_timeout no data received [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:34]OFD Sender: No OFD packet to send [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:07]accept exits with 8 [19:33:07]New connection [19:33:07]New thread 3067493732 created [19:33:07]Thread 3067350372 joined [19:33:07]Waiting for new connection... [19:33:07] Sock 8.Parse request [19:33:07]Sock 8.Check first char [19:33:07]Sock 8.First char is OK [19:33:07]request: POST /json_proto HTTP/1.0 [19:33:07]Method: POST [19:33:07]URL: /json_proto [19:33:07]Method is POST - this is cgi request [19:33:07]url: /json_proto [19:33:07]query_string will be loaded in cgi processing [19:33:07]execute_cgi json_proto POST (null) [19:33:07]execute_cgi path=json_proto method=POST [19:33:07]POST find Content-Length [19:33:07]Host: 172.17.43.195:8080 [19:33:07]Content-Length: 678 [19:33:07]Content-Type: application/json [19:33:07] [19:33:07]POST finish read [19:33:07]Found Content-Length = 678 [19:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:07]execute_script... [19:33:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:07]POST & json_proto [19:33:07]process_json_proto [19:33:07]json parsed OK: [19:33:07]protocol is kg_v1.0 [19:33:07]action value=close_receipt [19:33:07]process_action close_receipt [19:33:07]cmd_close_receipt [19:33:07]MH_GetDate [19:33:07]Write to MH i2c: F0 00 00 59 02 4A [19:33:07]Write i2c OK [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: F0 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: F0 09 00 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: F0 09 00 59 02 00 74 DB 23 67 74 2C AD 66 DF [19:33:07]GetLastDocTimeStamp 1730402976 [19:33:07]current date 1730403188 [19:33:07]FM_GetShiftState [19:33:07]SAM_PROTO_GetShiftState [19:33:07]wFMCommunicate request_size=4 [19:33:07]MH_SAM_APDU [19:33:07]CAPDU: 80 13 01 00 [19:33:07]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [19:33:07]Write i2c OK [19:33:07]MH_I2C_Read... [19:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:07]Read from MH i2c: E2 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 0E 00 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 82 [19:33:07]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:33:07]wFMCommunicate OK [19:33:07]SAM_PROTO_GetShiftState done [19:33:07]FM_GetShiftState done [19:33:07]opened in 1730333258 [19:33:07]opened+sec_in_day 1730419658 [19:33:07]quantity*price = 80061 [19:33:07]sum+1 = 80063 [19:33:07]Check (price>sum+1) || (price+1 о реализуемом товаре [19:33:09]line ОКРУГЛЕНИЕ: -0.62 [19:33:09]line ИТОГО: 800.00 [19:33:09]line Внесено: 800.00 [19:33:09]line СДАЧА: 0.00 [19:33:09]line НСП 1% : 7.08 [19:33:09]line НДС 12% : 85.02 [19:33:09]line Наличными: 800.00 [19:33:09]line Безнал.: 0.00 [19:33:09]line Место: АЗС № 113 "Партнер Нефть" [19:33:09]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:33:09]line СНО: Общий режим [19:33:09]line Чек 163 31.10.2024 19:33 [19:33:09]line Смена: 557 ФФД: 1.0 [19:33:09]line ЗНМ: 0300000087 [19:33:09]line РНМ: 0000000000091644 [19:33:09]line Версия ККМ: 001 [19:33:09]line ФМ: 0000000000874662 [19:33:09]line ФД: 73088 [19:33:09]line ФПД: 12915796698378 [19:33:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193308&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73088&fm=12915796698378&tin=02508201610067®Number=0000000000091644&sum=80000 [19:33:09]OFD Sender: Processing packet 73088 [packets to send 282, broken 281] [19:33:09]ProducePacketName [19:33:09]name=ofd_packets/00073088 [19:33:09]OFD Sender: To server: pG, [19:33:09]CommunicateWithHost lk.salyk.kg:30040 [19:33:09]ConnectInit lk.salyk.kg [19:33:09]written 0, free lines is 4095 [19:33:10]Write to MH i2c: 01 00 00 98 02 9A [19:33:10]Write i2c OK [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: 01 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: 01 07 00 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: 01 07 00 98 02 00 00 00 00 00 CC 0C 79 [19:33:10]RasterBufferAndPrint [19:33:10]line [19:33:10]line [19:33:10]line [19:33:10]line [19:33:10]line [19:33:10]written 0, free lines is 3280 [19:33:10]MH_Cut [19:33:10]Write to MH i2c: D1 01 00 9F 02 01 73 [19:33:10]Write i2c OK [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: D1 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: D1 01 00 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: D1 01 00 9F 02 00 72 [19:33:10]Write to MH i2c: 01 00 00 A0 02 A2 [19:33:10]Write i2c OK [19:33:10]MH_I2C_Read... [19:33:10]*** Cut start [19:33:10]*** Partial cut [19:33:10]*** CUTSNS_PIN = 1 [19:33:11]*** CUTSNS_PIN = 0 [19:33:11]*** Brake cut motor [19:33:11]Read from MH i2c: 01 [19:33:11]MH_I2C_Read... [19:33:11]*** Stop cut motor [19:33:11]*** Cut end [19:33:11]Read from MH i2c: 01 07 00 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: 01 07 00 A0 02 00 00 00 00 00 FF 0F B7 [19:33:11]process_action close_receipt done [19:33:11]requested_data is exist [19:33:11]produce_requested_data [19:33:11]requested_item fm.sn is exist - process it [19:33:11]wFMCommunicate request_size=4 [19:33:11]MH_SAM_APDU [19:33:11]CAPDU: 80 11 00 00 [19:33:11]Write to MH i2c: E2 08 00 A1 02 80 11 00 00 00 00 00 00 1D [19:33:11]Write i2c OK [19:33:11]MH_I2C_Read... [19:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:11]Read from MH i2c: E2 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: E2 17 00 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: E2 17 00 A1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 71 [19:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:33:11]wFMCommunicate OK [19:33:11]requested_item fd.num is exist - process it [19:33:11]SAM_PROTO_GetFieldsCounters [19:33:11]wFMCommunicate request_size=4 [19:33:11]MH_SAM_APDU [19:33:11]CAPDU: 80 13 00 00 [19:33:11]Write to MH i2c: E2 08 00 A2 02 80 13 00 00 00 00 00 00 20 [19:33:11]Write i2c OK [19:33:11]MH_I2C_Read... [19:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:11]Read from MH i2c: E2 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: E2 62 00 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: E2 62 00 A2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 80 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [19:33:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 80 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:11]wFMCommunicate OK [19:33:11]SAM_PROTO_GetFieldsCounters done [19:33:11]requested_item shift.num is exist - process it [19:33:11]requested_item shift.opened is exist - process it [19:33:11]req_shift_opened [19:33:11]FM_GetShiftState [19:33:11]SAM_PROTO_GetShiftState [19:33:11]wFMCommunicate request_size=4 [19:33:11]MH_SAM_APDU [19:33:11]CAPDU: 80 13 01 00 [19:33:11]Write to MH i2c: E2 08 00 A3 02 80 13 01 00 00 00 00 00 22 [19:33:11]Write i2c OK [19:33:11]MH_I2C_Read... [19:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:11]Read from MH i2c: E2 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: E2 0E 00 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: E2 0E 00 A3 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 CB [19:33:11]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:33:11]wFMCommunicate OK [19:33:11]SAM_PROTO_GetShiftState done [19:33:11]FM_GetShiftState done [19:33:11]req_shift_opened done [19:33:11]requested_item shift.open_date is exist - process it [19:33:11]req_shift_open_date [19:33:11]req_shift_open_date done [19:33:11]produce_requested_data done [19:33:11]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73088,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [19:33:11]process_action_free close_receipt [19:33:11]json_value_free [19:33:11]json_value_free done [19:33:11]process_json_proto returns [19:33:11]Send response to host [19:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73088,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [19:33:11]free response buf [19:33:11]execute_script done [19:33:11]execute_script returns [19:33:11]free content buf [19:33:11]Sock 8.Close socket [19:33:11]Sock 8.Thread stoped [19:33:13]recv_with_timeout no data received [19:33:14]ConnectInit Can't take IP for lk.salyk.kg [19:33:14]CommunicateWithHost connect error [19:33:14]CommunicateWithHost err = -1 [19:33:14]OFD Sender: Server communicate error [19:33:19]OFD Sender: Processing packet 73088 [packets to send 282, broken 281] [19:33:19]ProducePacketName [19:33:19]name=ofd_packets/00073088 [19:33:19]OFD Sender: To server: pG, [19:33:19]CommunicateWithHost lk.salyk.kg:30040 [19:33:19]ConnectInit lk.salyk.kg [19:33:29]recv_with_timeout no data received [19:33:43]Connected sock=10 [19:33:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 76 45 07 01 9B A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 74 DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1D 01 00 35 04 06 00 0B BF 31 79 65 0A 3D DA 85 1E 15 B9 76 11 [19:33:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4F 7A 47 00 E8 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1D 01 00 F4 03 04 00 4C 86 23 67 B6 04 01 00 00 EB 3F A8 B9 8F BE 3D CD [19:33:45]CommunicateWithHost err = 0 [19:33:45]CheckOFDResponse [19:33:45]1017 (14) - 77093643461234 [19:33:45]1041 (16) - 0000000000874662 [19:33:45]1040 (4) - 73088 [19:33:45]1012 (4) - 31.10.2024 13:29 [19:33:45]1206 (1) - 0 [19:33:45]OFD Sender: Remove packet 73088 [19:33:45]ProducePacketName [19:33:45]name=ofd_packets/00073088 [19:33:45]NVStorageDeleteData [19:33:46]OFD Sender: No OFD packet to send [19:33:50]recv_with_timeout no data received [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:06]recv_with_timeout no data received [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:23]accept exits with 9 [19:34:23]New connection [19:34:23]New thread 3067350372 created [19:34:23]Thread 3067493732 joined [19:34:23]Waiting for new connection... [19:34:23] Sock 9.Parse request [19:34:23]Sock 9.Check first char [19:34:23]Sock 9.First char is OK [19:34:23]request: POST /json_proto HTTP/1.0 [19:34:23]Method: POST [19:34:23]URL: /json_proto [19:34:23]Method is POST - this is cgi request [19:34:23]url: /json_proto [19:34:23]query_string will be loaded in cgi processing [19:34:23]execute_cgi json_proto POST (null) [19:34:23]execute_cgi path=json_proto method=POST [19:34:23]POST find Content-Length [19:34:23]Host: 172.17.43.195:8080 [19:34:23]Content-Length: 685 [19:34:23]Content-Type: application/json [19:34:23] [19:34:23]POST finish read [19:34:23]Found Content-Length = 685 [19:34:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 34.970, "sum" : 1360.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1360.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:23]execute_script... [19:34:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 34.970, "sum" : 1360.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1360.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:23]POST & json_proto [19:34:23]process_json_proto [19:34:23]json parsed OK: [19:34:23]protocol is kg_v1.0 [19:34:23]action value=close_receipt [19:34:23]process_action close_receipt [19:34:23]cmd_close_receipt [19:34:23]MH_GetDate [19:34:23]Write to MH i2c: F0 00 00 A4 02 95 [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: F0 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: F0 09 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: F0 09 00 A4 02 00 BF DB 23 67 74 2C AD 66 75 [19:34:23]GetLastDocTimeStamp 1730403188 [19:34:23]current date 1730403263 [19:34:23]FM_GetShiftState [19:34:23]SAM_PROTO_GetShiftState [19:34:23]wFMCommunicate request_size=4 [19:34:23]MH_SAM_APDU [19:34:23]CAPDU: 80 13 01 00 [19:34:23]Write to MH i2c: E2 08 00 A5 02 80 13 01 00 00 00 00 00 24 [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:23]Read from MH i2c: E2 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 0E 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 0E 00 A5 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 CD [19:34:23]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:34:23]wFMCommunicate OK [19:34:23]SAM_PROTO_GetShiftState done [19:34:23]FM_GetShiftState done [19:34:23]opened in 1730333258 [19:34:23]opened+sec_in_day 1730419658 [19:34:23]quantity*price = 136033 [19:34:23]sum+1 = 136034 [19:34:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1360.00 Внесено: 1360.00 СДАЧА: 0.00 НСП 1% : 12.04 НДС 12% : 144.46 Наличными: 1360.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 164 31.10.2024 19:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73089 ФПД: 52188141310345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193423&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73089&fm=52188141310345&tin=02508201610067®Number=0000000000091644&sum=136000 [19:34:24]StoreToDocumentArchive [19:34:24]shift 557 fd 73089 [19:34:24]save to /storage/0557/doc_00073089 [19:34:24]save last doc name /storage/0557/doc_00073089 to /storage/kkm_last_doc_name [19:34:24]save OK [19:34:24]Clear old archive folders... [19:34:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:34:24]tlvbuf is 018081A0 [19:34:24]SAM_PROTO_ClearQueue [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 09 00 00 [19:34:24]Write to MH i2c: E2 08 00 B2 02 80 09 00 00 00 00 00 00 26 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]SAM_PROTO_ClearQueue done [19:34:24]KKMCreateOFDPacket [19:34:24]OFDProtocolAddRootSTLVToBuf [19:34:24]FM_MakeSignedData [19:34:24]FM_MakeSignedData [19:34:24]SAM_PROTO_SignData [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 0D 01 02 [19:34:24]Write to MH i2c: E2 08 00 B3 02 80 0D 01 02 00 00 00 00 2E [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]wFMCommunicate request_size=255 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 9A 88 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 61 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 BF DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1D 01 00 35 04 06 00 2F 76 [19:34:24]Write to MH i2c: E2 02 01 B4 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 9A 88 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 61 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 BF DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1D 01 00 35 04 06 00 2F 76 00 00 F9 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]wFMCommunicate request_size=9 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 0D 02 02 04 FF 9F D1 89 [19:34:24]Write to MH i2c: E2 0C 00 B5 02 80 0D 02 02 04 00 FF 9F D1 89 00 00 31 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 0D 03 02 [19:34:24]Write to MH i2c: E2 08 00 B6 02 80 0D 03 02 00 00 00 00 33 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 0B 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 0B 00 B6 02 00 C5 0C A6 13 E9 6E 90 21 90 00 C6 [19:34:24]RAPDU: C5 0C A6 13 E9 6E 90 21 90 00 [19:34:24]wFMCommunicate OK [19:34:24]SAM_PROTO_SignData done [19:34:24]FM_MakeSignedData done [19:34:24]CreateOFDProtocolMessage [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 11 00 00 [19:34:24]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 17 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 87 [19:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:34:24]wFMCommunicate OK [19:34:24]CreateOFDProtocolMessage done [19:34:24]OFDSenderStorePacket 73089 [19:34:24]StoreOFDPacket docnum=73089 [19:34:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 20 5C 06 01 A6 EC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 9A 88 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 61 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 BF DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1D 01 00 35 04 06 00 2F 76 FF 9F D1 89 C5 0C A6 13 E9 6E 90 21 [19:34:24]CheckFolder [19:34:24]dirname=/storage/ofd_packets [19:34:24]CheckFolder done [19:34:24]ProducePacketName [19:34:24]name=ofd_packets/00073089 [19:34:24]NVStorageSaveData ofd_packets/00073089 [19:34:24]File name is /storage/ofd_packets/00073089 [19:34:24]Write 300 bytes [19:34:24]NVStorageSaveData done [19:34:24]OFDSenderStorePacket done [19:34:24]KKMCreateOFDPacket done [19:34:24]NVStorageSaveData kkm_last_timestamp [19:34:24]File name is /storage/kkm_last_timestamp [19:34:24]Write 4 bytes [19:34:24]NVStorageSaveData done [19:34:24]ExternCall_PrintAddStr [19:34:24]wPrintStart [19:34:24]Write to MH i2c: 01 00 00 B8 02 BA [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 FF 0F CF [19:34:24]RasterBufferAndPrint [19:34:24]line Счет N : (1)952687 [19:34:24]line ИНН: 02508201610067 [19:34:24]line Контрольно-Кассовый Чек [19:34:24]line ПРОДАЖА [19:34:24]line ТРК (МРК, ГНК) : 71 [19:34:24]line Товар: 2711190000 [19:34:24]line ГАЗ-К-3 [19:34:24]line 34.970 * 38.90 [19:34:24]line = 1360.33 [19:34:24]line НДС 12% НСП 1% [19:34:24]line > о реализуемом товаре [19:34:24]line ОКРУГЛЕНИЕ: -0.33 [19:34:24]line ИТОГО: 1360.00 [19:34:24]line Внесено: 1360.00 [19:34:24]line СДАЧА: 0.00 [19:34:24]line НСП 1% : 12.04 [19:34:24]line НДС 12% : 144.46 [19:34:24]line Наличными: 1360.00 [19:34:24]line Безнал.: 0.00 [19:34:24]line Место: АЗС № 113 "Партнер Нефть" [19:34:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:34:24]line СНО: Общий режим [19:34:24]line Чек 164 31.10.2024 19:34 [19:34:24]line Смена: 557 ФФД: 1.0 [19:34:24]line ЗНМ: 0300000087 [19:34:24]line РНМ: 0000000000091644 [19:34:24]line Версия ККМ: 001 [19:34:24]line ФМ: 0000000000874662 [19:34:24]line ФД: 73089 [19:34:24]line ФПД: 52188141310345 [19:34:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193423&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73089&fm=52188141310345&tin=02508201610067®Number=0000000000091644&sum=136000 [19:34:24]written 0, free lines is 4095 [19:34:25]OFD Sender: Processing packet 73089 [packets to send 282, broken 281] [19:34:25]ProducePacketName [19:34:25]name=ofd_packets/00073089 [19:34:25]OFD Sender: To server: pG, [19:34:25]CommunicateWithHost lk.salyk.kg:30040 [19:34:25]ConnectInit lk.salyk.kg [19:34:25]Write to MH i2c: 01 00 00 E3 02 E5 [19:34:25]Write i2c OK [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: 01 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: 01 07 00 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 CF 0C C7 [19:34:25]RasterBufferAndPrint [19:34:25]line [19:34:25]line [19:34:25]line [19:34:25]line [19:34:25]line [19:34:25]written 0, free lines is 3286 [19:34:25]MH_Cut [19:34:25]Write to MH i2c: D1 01 00 EA 02 01 BE [19:34:25]Write i2c OK [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: D1 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: D1 01 00 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: D1 01 00 EA 02 00 BD [19:34:25]Write to MH i2c: 01 00 00 EB 02 ED [19:34:25]Write i2c OK [19:34:25]MH_I2C_Read... [19:34:25]Connected sock=8 [19:34:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 20 5C 06 01 A6 EC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 9A 88 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 61 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 BF DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1D 01 00 35 04 06 00 2F 76 FF 9F D1 89 C5 0C A6 13 E9 6E 90 21 [19:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D7 95 47 00 1C 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1D 01 00 F4 03 04 00 74 86 23 67 B6 04 01 00 00 3B 15 BA C5 A7 2A 3A C9 [19:34:26]CommunicateWithHost err = 0 [19:34:26]CheckOFDResponse [19:34:26]1017 (14) - 77093643461234 [19:34:26]1041 (16) - 0000000000874662 [19:34:26]1040 (4) - 73089 [19:34:26]1012 (4) - 31.10.2024 13:30 [19:34:26]1206 (1) - 0 [19:34:26]OFD Sender: Remove packet 73089 [19:34:26]ProducePacketName [19:34:26]name=ofd_packets/00073089 [19:34:26]NVStorageDeleteData [19:34:26]*** Cut start [19:34:26]*** Partial cut [19:34:26]*** CUTSNS_PIN = 1 [19:34:26]*** CUTSNS_PIN = 0 [19:34:26]*** Brake cut motor [19:34:26]OFD Sender: No OFD packet to send [19:34:26]Read from MH i2c: 01 [19:34:26]MH_I2C_Read... [19:34:26]*** Stop cut motor [19:34:26]*** Cut end [19:34:26]Read from MH i2c: 01 07 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 FF 0F 02 [19:34:26]process_action close_receipt done [19:34:26]requested_data is exist [19:34:26]produce_requested_data [19:34:26]requested_item fm.sn is exist - process it [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 11 00 00 [19:34:26]Write to MH i2c: E2 08 00 EC 02 80 11 00 00 00 00 00 00 68 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 17 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 17 00 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BC [19:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:34:26]wFMCommunicate OK [19:34:26]requested_item fd.num is exist - process it [19:34:26]SAM_PROTO_GetFieldsCounters [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 13 00 00 [19:34:26]Write to MH i2c: E2 08 00 ED 02 80 13 00 00 00 00 00 00 6B [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 62 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 62 00 ED 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 81 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [19:34:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 81 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:27]wFMCommunicate OK [19:34:27]SAM_PROTO_GetFieldsCounters done [19:34:27]requested_item shift.num is exist - process it [19:34:27]requested_item shift.opened is exist - process it [19:34:27]req_shift_opened [19:34:27]FM_GetShiftState [19:34:27]SAM_PROTO_GetShiftState [19:34:27]wFMCommunicate request_size=4 [19:34:27]MH_SAM_APDU [19:34:27]CAPDU: 80 13 01 00 [19:34:27]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 0E 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 16 [19:34:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:34:27]wFMCommunicate OK [19:34:27]SAM_PROTO_GetShiftState done [19:34:27]FM_GetShiftState done [19:34:27]req_shift_opened done [19:34:27]requested_item shift.open_date is exist - process it [19:34:27]req_shift_open_date [19:34:27]req_shift_open_date done [19:34:27]produce_requested_data done [19:34:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73089,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [19:34:27]process_action_free close_receipt [19:34:27]json_value_free [19:34:27]json_value_free done [19:34:27]process_json_proto returns [19:34:27]Send response to host [19:34:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73089,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [19:34:27]free response buf [19:34:27]execute_script done [19:34:27]execute_script returns [19:34:27]free content buf [19:34:27]Sock 9.Close socket [19:34:27]Sock 9.Thread stoped [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:17]recv_with_timeout no data received [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:20]recv_with_timeout no data received [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]recv_with_timeout no data received [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:48]recv_with_timeout no data received [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:19]recv_with_timeout no data received [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:43]recv_with_timeout no data received [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:22]recv_with_timeout no data received [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:15]accept exits with 10 [19:40:15]New connection [19:40:15]New thread 3067493732 created [19:40:15]Thread 3067350372 joined [19:40:15]Waiting for new connection... [19:40:15] Sock 10.Parse request [19:40:15]Sock 10.Check first char [19:40:15]Sock 10.First char is OK [19:40:15]request: POST /json_proto HTTP/1.0 [19:40:15]Method: POST [19:40:15]URL: /json_proto [19:40:15]Method is POST - this is cgi request [19:40:15]url: /json_proto [19:40:15]query_string will be loaded in cgi processing [19:40:15]execute_cgi json_proto POST (null) [19:40:15]execute_cgi path=json_proto method=POST [19:40:15]POST find Content-Length [19:40:15]Host: 172.17.43.195:8080 [19:40:15]Content-Length: 677 [19:40:15]Content-Type: application/json [19:40:15] [19:40:15]POST finish read [19:40:15]Found Content-Length = 677 [19:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:15]execute_script... [19:40:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:15]POST & json_proto [19:40:15]process_json_proto [19:40:15]json parsed OK: [19:40:15]protocol is kg_v1.0 [19:40:15]action value=close_receipt [19:40:15]process_action close_receipt [19:40:15]cmd_close_receipt [19:40:15]MH_GetDate [19:40:15]Write to MH i2c: F0 00 00 EF 02 E0 [19:40:15]Write i2c OK [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: F0 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: F0 09 00 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: F0 09 00 EF 02 00 20 DD 23 67 74 2C AD 66 23 [19:40:15]GetLastDocTimeStamp 1730403263 [19:40:15]current date 1730403616 [19:40:15]FM_GetShiftState [19:40:15]SAM_PROTO_GetShiftState [19:40:15]wFMCommunicate request_size=4 [19:40:15]MH_SAM_APDU [19:40:15]CAPDU: 80 13 01 00 [19:40:15]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [19:40:15]Write i2c OK [19:40:15]MH_I2C_Read... [19:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:15]Read from MH i2c: E2 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: E2 0E 00 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 18 [19:40:15]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:40:15]wFMCommunicate OK [19:40:15]SAM_PROTO_GetShiftState done [19:40:15]FM_GetShiftState done [19:40:15]opened in 1730333258 [19:40:15]opened+sec_in_day 1730419658 [19:40:15]quantity*price = 60009 [19:40:15]sum+1 = 60010 [19:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 165 31.10.2024 19:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73090 ФПД: 107989204016357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T194016&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73090&fm=107989204016357&tin=02508201610067®Number=0000000000091644&sum=60000 [19:40:16]StoreToDocumentArchive [19:40:16]shift 557 fd 73090 [19:40:16]save to /storage/0557/doc_00073090 [19:40:16]save last doc name /storage/0557/doc_00073090 to /storage/kkm_last_doc_name [19:40:16]save OK [19:40:16]Clear old archive folders... [19:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:16]tlvbuf is 0180EC50 [19:40:16]SAM_PROTO_ClearQueue [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 09 00 00 [19:40:16]Write to MH i2c: E2 08 00 FD 02 80 09 00 00 00 00 00 00 71 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 03 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [19:40:16]RAPDU: 90 00 [19:40:16]wFMCommunicate OK [19:40:16]SAM_PROTO_ClearQueue done [19:40:16]KKMCreateOFDPacket [19:40:16]OFDProtocolAddRootSTLVToBuf [19:40:16]FM_MakeSignedData [19:40:16]FM_MakeSignedData [19:40:16]SAM_PROTO_SignData [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 0D 01 02 [19:40:16]Write to MH i2c: E2 08 00 FE 02 80 0D 01 02 00 00 00 00 79 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 03 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [19:40:16]RAPDU: 90 00 [19:40:16]wFMCommunicate OK [19:40:16]wFMCommunicate request_size=255 [19:40:16]MH_SAM_APDU [19:40: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 20 DD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1D 01 00 35 04 06 00 62 [19:40:16]Write to MH i2c: E2 02 01 FF 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 20 DD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1D 01 00 35 04 06 00 62 00 00 42 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:17]OFD Sender: No OFD packet to send [19:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 03 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [19:40:17]RAPDU: 90 00 [19:40:17]wFMCommunicate OK [19:40:17]wFMCommunicate request_size=10 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 0D 02 02 05 37 32 25 1C E5 [19:40:17]Write to MH i2c: E2 0D 00 00 03 80 0D 02 02 05 00 37 32 25 1C E5 00 00 16 [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 03 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [19:40:17]RAPDU: 90 00 [19:40:17]wFMCommunicate OK [19:40:17]wFMCommunicate request_size=4 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 0D 03 02 [19:40:17]Write to MH i2c: E2 08 00 01 03 80 0D 03 02 00 00 00 00 7F [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 0B 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 0B 00 01 03 00 60 AB 0C 06 1C 99 F4 4E 90 00 94 [19:40:17]RAPDU: 60 AB 0C 06 1C 99 F4 4E 90 00 [19:40:17]wFMCommunicate OK [19:40:17]SAM_PROTO_SignData done [19:40:17]FM_MakeSignedData done [19:40:17]CreateOFDProtocolMessage [19:40:17]wFMCommunicate request_size=4 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 11 00 00 [19:40:17]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 17 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D3 [19:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:40:17]wFMCommunicate OK [19:40:17]CreateOFDProtocolMessage done [19:40:17]OFDSenderStorePacket 73090 [19:40:17]StoreOFDPacket docnum=73090 [19:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1A 9E 07 01 CF C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 20 DD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1D 01 00 35 04 06 00 62 37 32 25 1C E5 60 AB 0C 06 1C 99 F4 4E [19:40:17]CheckFolder [19:40:17]dirname=/storage/ofd_packets [19:40:17]CheckFolder done [19:40:17]ProducePacketName [19:40:17]name=ofd_packets/00073090 [19:40:17]NVStorageSaveData ofd_packets/00073090 [19:40:17]File name is /storage/ofd_packets/00073090 [19:40:17]Write 301 bytes [19:40:17]NVStorageSaveData done [19:40:17]OFDSenderStorePacket done [19:40:17]KKMCreateOFDPacket done [19:40:17]NVStorageSaveData kkm_last_timestamp [19:40:17]File name is /storage/kkm_last_timestamp [19:40:17]Write 4 bytes [19:40:17]NVStorageSaveData done [19:40:17]ExternCall_PrintAddStr [19:40:17]wPrintStart [19:40:17]Write to MH i2c: 01 00 00 03 03 06 [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: 01 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: 01 07 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 FF 0F 1B [19:40:17]RasterBufferAndPrint [19:40:17]line Счет N : (1)952689 [19:40:17]line ИНН: 02508201610067 [19:40:17]line Контрольно-Кассовый Чек [19:40:17]line ПРОДАЖА [19:40:17]line ТРК (МРК, ГНК) : 53 [19:40:17]line Товар: 2710124130 [19:40:17]line Аи-92-К-5 [19:40:17]line 8.970 * 66.90 [19:40:17]line = 600.09 [19:40:17]line НДС 12% НСП 1% [19:40:17]line > о реализуемом товаре [19:40:17]line ОКРУГЛЕНИЕ: -0.09 [19:40:17]line ИТОГО: 600.00 [19:40:17]line Внесено: 600.00 [19:40:17]line СДАЧА: 0.00 [19:40:17]line НСП 1% : 5.31 [19:40:17]line НДС 12% : 63.73 [19:40:17]line Наличными: 600.00 [19:40:17]line Безнал.: 0.00 [19:40:17]line Место: АЗС № 113 "Партнер Нефть" [19:40:17]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:40:17]line СНО: Общий режим [19:40:17]line Чек 165 31.10.2024 19:40 [19:40:17]line Смена: 557 ФФД: 1.0 [19:40:17]line ЗНМ: 0300000087 [19:40:17]line РНМ: 0000000000091644 [19:40:17]line Версия ККМ: 001 [19:40:17]line ФМ: 0000000000874662 [19:40:17]line ФД: 73090 [19:40:17]line ФПД: 107989204016357 [19:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T194016&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73090&fm=107989204016357&tin=02508201610067®Number=0000000000091644&sum=60000 [19:40:17]OFD Sender: Processing packet 73090 [packets to send 282, broken 281] [19:40:17]ProducePacketName [19:40:17]name=ofd_packets/00073090 [19:40:17]OFD Sender: To server: pG, [19:40:17]CommunicateWithHost lk.salyk.kg:30040 [19:40:17]ConnectInit lk.salyk.kg [19:40:17]written 0, free lines is 4095 [19:40:18]Write to MH i2c: 01 00 00 2E 03 31 [19:40:18]Write i2c OK [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: 01 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: 01 07 00 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 CD 0C 11 [19:40:18]RasterBufferAndPrint [19:40:18]line [19:40:18]line [19:40:18]line [19:40:18]line [19:40:18]line [19:40:18]written 0, free lines is 3283 [19:40:18]MH_Cut [19:40:18]Write to MH i2c: D1 01 00 35 03 01 0A [19:40:18]Write i2c OK [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: D1 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: D1 01 00 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: D1 01 00 35 03 00 09 [19:40:18]Write to MH i2c: 01 00 00 36 03 39 [19:40:18]Write i2c OK [19:40:18]MH_I2C_Read... [19:40:18]*** Cut start [19:40:18]*** Partial cut [19:40:18]*** CUTSNS_PIN = 1 [19:40:18]*** CUTSNS_PIN = 0 [19:40:19]*** Brake cut motor [19:40:19]Read from MH i2c: 01 [19:40:19]MH_I2C_Read... [19:40:19]*** Stop cut motor [19:40:19]*** Cut end [19:40:19]Read from MH i2c: 01 07 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: 01 07 00 36 03 00 00 00 00 00 FF 0F 4E [19:40:19]process_action close_receipt done [19:40:19]requested_data is exist [19:40:19]produce_requested_data [19:40:19]requested_item fm.sn is exist - process it [19:40:19]wFMCommunicate request_size=4 [19:40:19]MH_SAM_APDU [19:40:19]CAPDU: 80 11 00 00 [19:40:19]Write to MH i2c: E2 08 00 37 03 80 11 00 00 00 00 00 00 B4 [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:19]Read from MH i2c: E2 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 17 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 17 00 37 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 08 [19:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:40:19]wFMCommunicate OK [19:40:19]requested_item fd.num is exist - process it [19:40:19]SAM_PROTO_GetFieldsCounters [19:40:19]wFMCommunicate request_size=4 [19:40:19]MH_SAM_APDU [19:40:19]CAPDU: 80 13 00 00 [19:40:19]Write to MH i2c: E2 08 00 38 03 80 13 00 00 00 00 00 00 B7 [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:19]Read from MH i2c: E2 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 62 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 62 00 38 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 82 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [19:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 82 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:19]wFMCommunicate OK [19:40:19]SAM_PROTO_GetFieldsCounters done [19:40:19]requested_item shift.num is exist - process it [19:40:19]requested_item shift.opened is exist - process it [19:40:19]req_shift_opened [19:40:19]FM_GetShiftState [19:40:19]SAM_PROTO_GetShiftState [19:40:19]wFMCommunicate request_size=4 [19:40:19]MH_SAM_APDU [19:40:19]CAPDU: 80 13 01 00 [19:40:19]Write to MH i2c: E2 08 00 39 03 80 13 01 00 00 00 00 00 B9 [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:19]Read from MH i2c: E2 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 0E 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 0E 00 39 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 62 [19:40:19]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:40:19]wFMCommunicate OK [19:40:19]SAM_PROTO_GetShiftState done [19:40:19]FM_GetShiftState done [19:40:19]req_shift_opened done [19:40:19]requested_item shift.open_date is exist - process it [19:40:19]req_shift_open_date [19:40:19]req_shift_open_date done [19:40:19]produce_requested_data done [19:40:19]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73090,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [19:40:19]process_action_free close_receipt [19:40:19]json_value_free [19:40:19]json_value_free done [19:40:19]process_json_proto returns [19:40:19]Send response to host [19:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73090,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [19:40:19]free response buf [19:40:19]execute_script done [19:40:19]execute_script returns [19:40:19]free content buf [19:40:19]Sock 10.Close socket [19:40:19]Sock 10.Thread stoped [19:40:19]Connected sock=11 [19:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1A 9E 07 01 CF C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 20 DD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1D 01 00 35 04 06 00 62 37 32 25 1C E5 60 AB 0C 06 1C 99 F4 4E [19:40:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B0 9B 47 00 70 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1D 01 00 F4 03 04 00 D8 87 23 67 B6 04 01 00 00 E4 B6 09 FD 8E D1 5C 55 [19:40:23]CommunicateWithHost err = 0 [19:40:23]CheckOFDResponse [19:40:23]1017 (14) - 77093643461234 [19:40:23]1041 (16) - 0000000000874662 [19:40:23]1040 (4) - 73090 [19:40:23]1012 (4) - 31.10.2024 13:36 [19:40:23]1206 (1) - 0 [19:40:23]OFD Sender: Remove packet 73090 [19:40:23]ProducePacketName [19:40:23]name=ofd_packets/00073090 [19:40:23]NVStorageDeleteData [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:29]recv_with_timeout no data received [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:41]recv_with_timeout no data received [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:16]recv_with_timeout no data received [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:47]recv_with_timeout no data received [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:20]recv_with_timeout no data received [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:25]recv_with_timeout no data received [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:43:59]recv_with_timeout no data received [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]accept exits with 9 [19:44:49]New connection [19:44:49]New thread 3067350372 created [19:44:49]Thread 3067493732 joined [19:44:49]Waiting for new connection... [19:44:49] Sock 9.Parse request [19:44:49]Sock 9.Check first char [19:44:49]Sock 9.First char is OK [19:44:49]request: POST /json_proto HTTP/1.0 [19:44:49]Method: POST [19:44:49]URL: /json_proto [19:44:49]Method is POST - this is cgi request [19:44:49]url: /json_proto [19:44:49]query_string will be loaded in cgi processing [19:44:49]execute_cgi json_proto POST (null) [19:44:49]execute_cgi path=json_proto method=POST [19:44:49]POST find Content-Length [19:44:49]Host: 172.17.43.195:8080 [19:44:49]Content-Length: 677 [19:44:49]Content-Type: application/json [19:44:49] [19:44:49]POST finish read [19:44:49]Found Content-Length = 677 [19:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:49]execute_script... [19:44:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:49]POST & json_proto [19:44:49]process_json_proto [19:44:49]json parsed OK: [19:44:49]protocol is kg_v1.0 [19:44:49]action value=close_receipt [19:44:49]process_action close_receipt [19:44:49]cmd_close_receipt [19:44:49]MH_GetDate [19:44:49]Write to MH i2c: F0 00 00 3A 03 2C [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: F0 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: F0 09 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: F0 09 00 3A 03 00 31 DE 23 67 74 2C AD 66 81 [19:44:49]GetLastDocTimeStamp 1730403616 [19:44:49]current date 1730403889 [19:44:49]FM_GetShiftState [19:44:49]SAM_PROTO_GetShiftState [19:44:49]wFMCommunicate request_size=4 [19:44:49]MH_SAM_APDU [19:44:49]CAPDU: 80 13 01 00 [19:44:49]Write to MH i2c: E2 08 00 3B 03 80 13 01 00 00 00 00 00 BB [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:49]Read from MH i2c: E2 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 0E 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 0E 00 3B 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 64 [19:44:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:44:49]wFMCommunicate OK [19:44:49]SAM_PROTO_GetShiftState done [19:44:49]FM_GetShiftState done [19:44:49]opened in 1730333258 [19:44:49]opened+sec_in_day 1730419658 [19:44:49]quantity*price = 20003 [19:44:49]sum+1 = 20004 [19:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 166 31.10.2024 19:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73091 ФПД: 89856498460375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T194449&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73091&fm=89856498460375&tin=02508201610067®Number=0000000000091644&sum=20000 [19:44:50]StoreToDocumentArchive [19:44:50]shift 557 fd 73091 [19:44:50]save to /storage/0557/doc_00073091 [19:44:50]save last doc name /storage/0557/doc_00073091 to /storage/kkm_last_doc_name [19:44:50]save OK [19:44:50]Clear old archive folders... [19:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:50]tlvbuf is 01805600 [19:44:50]SAM_PROTO_ClearQueue [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 09 00 00 [19:44:50]Write to MH i2c: E2 08 00 48 03 80 09 00 00 00 00 00 00 BD [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]SAM_PROTO_ClearQueue done [19:44:50]KKMCreateOFDPacket [19:44:50]OFDProtocolAddRootSTLVToBuf [19:44:50]FM_MakeSignedData [19:44:50]FM_MakeSignedData [19:44:50]SAM_PROTO_SignData [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 01 02 [19:44:50]Write to MH i2c: E2 08 00 49 03 80 0D 01 02 00 00 00 00 C5 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]wFMCommunicate request_size=255 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 31 DE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1D 01 00 35 04 06 00 51 [19:44:50]Write to MH i2c: E2 02 01 4A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 31 DE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1D 01 00 35 04 06 00 51 00 00 76 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]wFMCommunicate request_size=10 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 02 02 05 B9 58 AB E6 D7 [19:44:50]Write to MH i2c: E2 0D 00 4B 03 80 0D 02 02 05 00 B9 58 AB E6 D7 00 00 4B [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 03 02 [19:44:50]Write to MH i2c: E2 08 00 4C 03 80 0D 03 02 00 00 00 00 CA [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 0B 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 0B 00 4C 03 00 70 CB 3B 85 66 A3 70 E7 90 00 26 [19:44:50]RAPDU: 70 CB 3B 85 66 A3 70 E7 90 00 [19:44:50]wFMCommunicate OK [19:44:50]SAM_PROTO_SignData done [19:44:50]FM_MakeSignedData done [19:44:50]CreateOFDProtocolMessage [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 11 00 00 [19:44:50]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 17 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1E [19:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:44:50]wFMCommunicate OK [19:44:50]CreateOFDProtocolMessage done [19:44:50]OFDSenderStorePacket 73091 [19:44:50]StoreOFDPacket docnum=73091 [19:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 FF 2E 07 01 C9 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 31 DE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1D 01 00 35 04 06 00 51 B9 58 AB E6 D7 70 CB 3B 85 66 A3 70 E7 [19:44:50]CheckFolder [19:44:50]dirname=/storage/ofd_packets [19:44:50]CheckFolder done [19:44:50]ProducePacketName [19:44:50]name=ofd_packets/00073091 [19:44:50]NVStorageSaveData ofd_packets/00073091 [19:44:50]File name is /storage/ofd_packets/00073091 [19:44:50]Write 301 bytes [19:44:50]NVStorageSaveData done [19:44:50]OFDSenderStorePacket done [19:44:50]KKMCreateOFDPacket done [19:44:50]NVStorageSaveData kkm_last_timestamp [19:44:50]File name is /storage/kkm_last_timestamp [19:44:50]Write 4 bytes [19:44:50]NVStorageSaveData done [19:44:50]ExternCall_PrintAddStr [19:44:50]wPrintStart [19:44:50]Write to MH i2c: 01 00 00 4E 03 51 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: 01 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: 01 07 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FF 0F 66 [19:44:50]RasterBufferAndPrint [19:44:50]line Счет N : (1)952690 [19:44:50]line ИНН: 02508201610067 [19:44:50]line Контрольно-Кассовый Чек [19:44:50]line ПРОДАЖА [19:44:50]line ТРК (МРК, ГНК) : 53 [19:44:50]line Товар: 2710124130 [19:44:50]line Аи-92-К-5 [19:44:50]line 2.990 * 66.90 [19:44:50]line = 200.03 [19:44:50]line НДС 12% НСП 1% [19:44:50]line > о реализуемом товаре [19:44:50]line ОКРУГЛЕНИЕ: -0.03 [19:44:50]line ИТОГО: 200.00 [19:44:50]line Внесено: 200.00 [19:44:50]line СДАЧА: 0.00 [19:44:50]line НСП 1% : 1.77 [19:44:50]line НДС 12% : 21.24 [19:44:50]line Наличными: 200.00 [19:44:50]line Безнал.: 0.00 [19:44:50]line Место: АЗС № 113 "Партнер Нефть" [19:44:50]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:44:50]line СНО: Общий режим [19:44:50]line Чек 166 31.10.2024 19:44 [19:44:50]line Смена: 557 ФФД: 1.0 [19:44:50]line ЗНМ: 0300000087 [19:44:50]line РНМ: 0000000000091644 [19:44:50]line Версия ККМ: 001 [19:44:50]line ФМ: 0000000000874662 [19:44:50]line ФД: 73091 [19:44:50]line ФПД: 89856498460375 [19:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T194449&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73091&fm=89856498460375&tin=02508201610067®Number=0000000000091644&sum=20000 [19:44:50]written 0, free lines is 4095 [19:44:50]OFD Sender: Processing packet 73091 [packets to send 282, broken 281] [19:44:50]ProducePacketName [19:44:50]name=ofd_packets/00073091 [19:44:50]OFD Sender: To server: pG, [19:44:50]CommunicateWithHost lk.salyk.kg:30040 [19:44:50]ConnectInit lk.salyk.kg [19:44:51]Write to MH i2c: 01 00 00 79 03 7C [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 07 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 D4 0C 63 [19:44:51]RasterBufferAndPrint [19:44:51]line [19:44:51]line [19:44:51]line [19:44:51]line [19:44:51]line [19:44:51]written 0, free lines is 3292 [19:44:51]MH_Cut [19:44:51]Write to MH i2c: D1 01 00 80 03 01 55 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: D1 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: D1 01 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: D1 01 00 80 03 00 54 [19:44:51]Write to MH i2c: 01 00 00 81 03 84 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]Connected sock=10 [19:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 FF 2E 07 01 C9 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 31 DE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1D 01 00 35 04 06 00 51 B9 58 AB E6 D7 70 CB 3B 85 66 A3 70 E7 [19:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A8 51 47 00 F9 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1D 01 00 F4 03 04 00 E6 88 23 67 B6 04 01 00 00 0D B6 DE BB 04 6F FE 54 [19:44:51]CommunicateWithHost err = 0 [19:44:51]CheckOFDResponse [19:44:51]1017 (14) - 77093643461234 [19:44:51]1041 (16) - 0000000000874662 [19:44:51]1040 (4) - 73091 [19:44:51]1012 (4) - 31.10.2024 13:40 [19:44:51]1206 (1) - 0 [19:44:51]OFD Sender: Remove packet 73091 [19:44:51]ProducePacketName [19:44:51]name=ofd_packets/00073091 [19:44:51]NVStorageDeleteData [19:44:51]*** Cut start [19:44:51]*** Partial cut [19:44:51]*** CUTSNS_PIN = 1 [19:44:52]*** CUTSNS_PIN = 0 [19:44:52]*** Brake cut motor [19:44:52]OFD Sender: No OFD packet to send [19:44:52]Read from MH i2c: 01 [19:44:52]MH_I2C_Read... [19:44:52]Read from MH i2c: 01 07 00 [19:44:52]MH_I2C_Read... [19:44:52]*** Stop cut motor [19:44:52]Read from MH i2c: 01 07 00 81 03 00 00 00 00 00 FF 0F 99 [19:44:52]process_action close_receipt done [19:44:52]requested_data is exist [19:44:52]produce_requested_data [19:44:52]requested_item fm.sn is exist - process it [19:44:52]wFMCommunicate request_size=4 [19:44:52]MH_SAM_APDU [19:44:52]CAPDU: 80 11 00 00 [19:44:52]Write to MH i2c: E2 08 00 82 03 80 11 00 00 00 00 00 00 FF [19:44:52]*** Cut end [19:44:52]Write i2c OK [19:44:52]MH_I2C_Read... [19:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:52]Read from MH i2c: E2 [19:44:52]MH_I2C_Read... [19:44:52]Read from MH i2c: E2 17 00 [19:44:52]MH_I2C_Read... [19:44:52]Read from MH i2c: E2 17 00 82 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 53 [19:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:44:52]wFMCommunicate OK [19:44:52]requested_item fd.num is exist - process it [19:44:52]SAM_PROTO_GetFieldsCounters [19:44:52]wFMCommunicate request_size=4 [19:44:52]MH_SAM_APDU [19:44:52]CAPDU: 80 13 00 00 [19:44:52]Write to MH i2c: E2 08 00 83 03 80 13 00 00 00 00 00 00 02 [19:44:52]Write i2c OK [19:44:52]MH_I2C_Read... [19:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:52]Read from MH i2c: E2 [19:44:52]MH_I2C_Read... [19:44:52]Read from MH i2c: E2 62 00 [19:44:52]MH_I2C_Read... [19:44:52]Read from MH i2c: E2 62 00 83 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 83 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [19:44:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 83 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:52]wFMCommunicate OK [19:44:52]SAM_PROTO_GetFieldsCounters done [19:44:52]requested_item shift.num is exist - process it [19:44:52]requested_item shift.opened is exist - process it [19:44:52]req_shift_opened [19:44:52]FM_GetShiftState [19:44:52]SAM_PROTO_GetShiftState [19:44:52]wFMCommunicate request_size=4 [19:44:52]MH_SAM_APDU [19:44:52]CAPDU: 80 13 01 00 [19:44:52]Write to MH i2c: E2 08 00 84 03 80 13 01 00 00 00 00 00 04 [19:44:52]Write i2c OK [19:44:52]MH_I2C_Read... [19:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:52]Read from MH i2c: E2 [19:44:52]MH_I2C_Read... [19:44:52]Read from MH i2c: E2 0E 00 [19:44:52]MH_I2C_Read... [19:44:52]Read from MH i2c: E2 0E 00 84 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 AD [19:44:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:44:52]wFMCommunicate OK [19:44:52]SAM_PROTO_GetShiftState done [19:44:52]FM_GetShiftState done [19:44:52]req_shift_opened done [19:44:52]requested_item shift.open_date is exist - process it [19:44:52]req_shift_open_date [19:44:52]req_shift_open_date done [19:44:52]produce_requested_data done [19:44:52]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73091,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [19:44:52]process_action_free close_receipt [19:44:52]json_value_free [19:44:52]json_value_free done [19:44:52]process_json_proto returns [19:44:52]Send response to host [19:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73091,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [19:44:52]free response buf [19:44:52]execute_script done [19:44:52]execute_script returns [19:44:52]free content buf [19:44:52]Sock 9.Close socket [19:44:52]Sock 9.Thread stoped [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:10]recv_with_timeout no data received [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:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:30]recv_with_timeout no data received [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:47:59]recv_with_timeout no data received [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:16]recv_with_timeout no data received [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]recv_with_timeout no data received [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:13]recv_with_timeout no data received [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]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:16]recv_with_timeout no data received [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:35]accept exits with 8 [19:51:35]New connection [19:51:35]New thread 3067493732 created [19:51:35]Thread 3067350372 joined [19:51:35]Waiting for new connection... [19:51:35] Sock 8.Parse request [19:51:35]Sock 8.Check first char [19:51:35]Sock 8.First char is OK [19:51:35]request: POST /json_proto HTTP/1.0 [19:51:35]Method: POST [19:51:35]URL: /json_proto [19:51:35]Method is POST - this is cgi request [19:51:35]url: /json_proto [19:51:35]query_string will be loaded in cgi processing [19:51:35]execute_cgi json_proto POST (null) [19:51:35]execute_cgi path=json_proto method=POST [19:51:35]POST find Content-Length [19:51:35]Host: 172.17.43.195:8080 [19:51:35]Content-Length: 820 [19:51:35]Content-Type: application/json [19:51:35] [19:51:35]POST finish read [19:51:35]Found Content-Length = 820 [19:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:35]execute_script... [19:51:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:35]POST & json_proto [19:51:35]process_json_proto [19:51:35]json parsed OK: [19:51:35]protocol is kg_v1.0 [19:51:35]action value=close_receipt [19:51:35]process_action close_receipt [19:51:35]cmd_close_receipt [19:51:35]MH_GetDate [19:51:35]Write to MH i2c: F0 00 00 85 03 77 [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: F0 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: F0 09 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: F0 09 00 85 03 00 C8 DF 23 67 74 2C AD 66 64 [19:51:35]GetLastDocTimeStamp 1730403889 [19:51:35]current date 1730404296 [19:51:35]FM_GetShiftState [19:51:35]SAM_PROTO_GetShiftState [19:51:35]wFMCommunicate request_size=4 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 13 01 00 [19:51:35]Write to MH i2c: E2 08 00 86 03 80 13 01 00 00 00 00 00 06 [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 0E 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 0E 00 86 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 AF [19:51:35]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:51:35]wFMCommunicate OK [19:51:35]SAM_PROTO_GetShiftState done [19:51:35]FM_GetShiftState done [19:51:35]opened in 1730333258 [19:51:35]opened+sec_in_day 1730419658 [19:51:35]quantity*price = 60022 [19:51:35]sum+1 = 60024 [19:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.23 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.23 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 167 31.10.2024 19:51 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 73092 ФПД: 46705497606179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T195136&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73092&fm=46705497606179&tin=02508201610067®Number=0000000000091644&sum=60023 [19:51:36]StoreToDocumentArchive [19:51:36]shift 557 fd 73092 [19:51:36]save to /storage/0557/doc_00073092 [19:51:36]save last doc name /storage/0557/doc_00073092 to /storage/kkm_last_doc_name [19:51:36]save OK [19:51:36]Clear old archive folders... [19:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:51:36]tlvbuf is 01811C90 [19:51:36]SAM_PROTO_ClearQueue [19:51:36]wFMCommunicate request_size=4 [19:51:36]MH_SAM_APDU [19:51:36]CAPDU: 80 09 00 00 [19:51:36]Write to MH i2c: E2 08 00 93 03 80 09 00 00 00 00 00 00 08 [19:51:36]Write i2c OK [19:51:36]MH_I2C_Read... [19:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:36]Read from MH i2c: E2 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: E2 03 00 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [19:51:36]RAPDU: 90 00 [19:51:36]wFMCommunicate OK [19:51:36]SAM_PROTO_ClearQueue done [19:51:36]KKMCreateOFDPacket [19:51:36]OFDProtocolAddRootSTLVToBuf [19:51:36]FM_MakeSignedData [19:51:36]FM_MakeSignedData [19:51:36]SAM_PROTO_SignData [19:51:36]wFMCommunicate request_size=4 [19:51:36]MH_SAM_APDU [19:51:36]CAPDU: 80 0D 01 02 [19:51:36]Write to MH i2c: E2 08 00 94 03 80 0D 01 02 00 00 00 00 10 [19:51:36]Write i2c OK [19:51:36]MH_I2C_Read... [19:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:36]Read from MH i2c: E2 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: E2 03 00 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [19:51:36]RAPDU: 90 00 [19:51:36]wFMCommunicate OK [19:51:36]wFMCommunicate request_size=255 [19:51:36]MH_SAM_APDU [19:51:36]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 C8 DF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1D 01 00 35 04 06 00 2A 7A [19:51:36]Write to MH i2c: E2 02 01 95 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 C8 DF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1D 01 00 35 04 06 00 2A 7A 00 00 05 [19:51:36]Write i2c OK [19:51:36]MH_I2C_Read... [19:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:37]Read from MH i2c: E2 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 03 00 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [19:51:37]RAPDU: 90 00 [19:51:37]wFMCommunicate OK [19:51:37]wFMCommunicate request_size=9 [19:51:37]MH_SAM_APDU [19:51:37]CAPDU: 80 0D 02 02 04 78 98 08 23 [19:51:37]Write to MH i2c: E2 0C 00 96 03 80 0D 02 02 04 00 78 98 08 23 00 00 56 [19:51:37]Write i2c OK [19:51:37]MH_I2C_Read... [19:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:37]Read from MH i2c: E2 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 03 00 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [19:51:37]RAPDU: 90 00 [19:51:37]wFMCommunicate OK [19:51:37]wFMCommunicate request_size=4 [19:51:37]MH_SAM_APDU [19:51:37]CAPDU: 80 0D 03 02 [19:51:37]Write to MH i2c: E2 08 00 97 03 80 0D 03 02 00 00 00 00 15 [19:51:37]Write i2c OK [19:51:37]MH_I2C_Read... [19:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:37]Read from MH i2c: E2 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 0B 00 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 0B 00 97 03 00 91 41 94 50 87 29 C5 42 90 00 83 [19:51:37]RAPDU: 91 41 94 50 87 29 C5 42 90 00 [19:51:37]wFMCommunicate OK [19:51:37]SAM_PROTO_SignData done [19:51:37]FM_MakeSignedData done [19:51:37]CreateOFDProtocolMessage [19:51:37]wFMCommunicate request_size=4 [19:51:37]MH_SAM_APDU [19:51:37]CAPDU: 80 11 00 00 [19:51:37]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [19:51:37]Write i2c OK [19:51:37]MH_I2C_Read... [19:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:37]Read from MH i2c: E2 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 17 00 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 69 [19:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:51:37]wFMCommunicate OK [19:51:37]CreateOFDProtocolMessage done [19:51:37]OFDSenderStorePacket 73092 [19:51:37]StoreOFDPacket docnum=73092 [19:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 BD BA 06 01 52 C0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 C8 DF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1D 01 00 35 04 06 00 2A 7A 78 98 08 23 91 41 94 50 87 29 C5 42 [19:51:37]CheckFolder [19:51:37]dirname=/storage/ofd_packets [19:51:37]CheckFolder done [19:51:37]ProducePacketName [19:51:37]name=ofd_packets/00073092 [19:51:37]NVStorageSaveData ofd_packets/00073092 [19:51:37]File name is /storage/ofd_packets/00073092 [19:51:37]Write 300 bytes [19:51:37]NVStorageSaveData done [19:51:37]OFDSenderStorePacket done [19:51:37]KKMCreateOFDPacket done [19:51:37]NVStorageSaveData kkm_last_timestamp [19:51:37]File name is /storage/kkm_last_timestamp [19:51:37]Write 4 bytes [19:51:37]NVStorageSaveData done [19:51:37]ExternCall_PrintAddStr [19:51:37]wPrintStart [19:51:37]Write to MH i2c: 01 00 00 99 03 9C [19:51:37]Write i2c OK [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: 01 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: 01 07 00 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [19:51:37]RasterBufferAndPrint [19:51:37]line Счет N : (1)952691 [19:51:37]line ИНН: 02508201610067 [19:51:37]line Контрольно-Кассовый Чек [19:51:37]line ПРОДАЖА [19:51:37]line ТРК (МРК, ГНК) : 71 [19:51:37]line Товар: 2711190000 [19:51:37]line ГАЗ-К-3 [19:51:37]line 15.430 * 38.90 [19:51:37]line = 600.23 [19:51:37]line НДС 12% НСП 1% [19:51:37]line > о реализуемом товаре [19:51:37]line ИТОГО: 600.23 [19:51:37]line НСП 1% : 5.31 [19:51:37]line НДС 12% : 63.74 [19:51:37]line Наличными: 0.00 [19:51:37]line Безнал.: 600.23 [19:51:37]line Место: АЗС № 113 "Партнер Нефть" [19:51:37]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:51:37]line СНО: Общий режим [19:51:37]line Чек 167 31.10.2024 19:51 [19:51:37]line Смена: 557 ФФД: 1.0 [19:51:37]line ЗНМ: 0300000087 [19:51:37]line РНМ: 0000000000091644 [19:51:37]line Версия ККМ: 001 [19:51:37]line Платежная система: Бакай банк [19:51:37]line ФМ: 0000000000874662 [19:51:37]line ФД: 73092 [19:51:37]line ФПД: 46705497606179 [19:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T195136&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73092&fm=46705497606179&tin=02508201610067®Number=0000000000091644&sum=60023 [19:51:37]written 0, free lines is 4095 [19:51:37]OFD Sender: Processing packet 73092 [packets to send 282, broken 281] [19:51:37]ProducePacketName [19:51:37]name=ofd_packets/00073092 [19:51:37]OFD Sender: To server: pG, [19:51:37]CommunicateWithHost lk.salyk.kg:30040 [19:51:37]ConnectInit lk.salyk.kg [19:51:37]Write to MH i2c: 01 00 00 C3 03 C6 [19:51:37]Write i2c OK [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: 01 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: 01 07 00 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 E1 0C BA [19:51:37]RasterBufferAndPrint [19:51:37]line [19:51:37]line [19:51:37]line [19:51:37]line [19:51:37]line [19:51:37]written 0, free lines is 3303 [19:51:37]MH_Cut [19:51:37]Write to MH i2c: D1 01 00 CA 03 01 9F [19:51:37]Write i2c OK [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: D1 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: D1 01 00 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: D1 01 00 CA 03 00 9E [19:51:37]Write to MH i2c: 01 00 00 CB 03 CE [19:51:37]Write i2c OK [19:51:37]MH_I2C_Read... [19:51:38]*** Cut start [19:51:38]*** Partial cut [19:51:38]*** CUTSNS_PIN = 1 [19:51:38]*** CUTSNS_PIN = 0 [19:51:38]*** Brake cut motor [19:51:39]Read from MH i2c: 01 [19:51:39]MH_I2C_Read... [19:51:39]*** Stop cut motor [19:51:39]*** Cut end [19:51:39]Read from MH i2c: 01 07 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 FF 0F E3 [19:51:39]process_action close_receipt done [19:51:39]requested_data is exist [19:51:39]produce_requested_data [19:51:39]requested_item fm.sn is exist - process it [19:51:39]wFMCommunicate request_size=4 [19:51:39]MH_SAM_APDU [19:51:39]CAPDU: 80 11 00 00 [19:51:39]Write to MH i2c: E2 08 00 CC 03 80 11 00 00 00 00 00 00 49 [19:51:39]Write i2c OK [19:51:39]MH_I2C_Read... [19:51:39]recv_with_timeout no data received [19:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:39]Read from MH i2c: E2 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 17 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 17 00 CC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9D [19:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:51:39]wFMCommunicate OK [19:51:39]requested_item fd.num is exist - process it [19:51:39]SAM_PROTO_GetFieldsCounters [19:51:39]wFMCommunicate request_size=4 [19:51:39]MH_SAM_APDU [19:51:39]CAPDU: 80 13 00 00 [19:51:39]Write to MH i2c: E2 08 00 CD 03 80 13 00 00 00 00 00 00 4C [19:51:39]Write i2c OK [19:51:39]MH_I2C_Read... [19:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:39]Read from MH i2c: E2 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 62 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 62 00 CD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 84 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [19:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 84 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:39]wFMCommunicate OK [19:51:39]SAM_PROTO_GetFieldsCounters done [19:51:39]requested_item shift.num is exist - process it [19:51:39]requested_item shift.opened is exist - process it [19:51:39]req_shift_opened [19:51:39]FM_GetShiftState [19:51:39]SAM_PROTO_GetShiftState [19:51:39]wFMCommunicate request_size=4 [19:51:39]MH_SAM_APDU [19:51:39]CAPDU: 80 13 01 00 [19:51:39]Write to MH i2c: E2 08 00 CE 03 80 13 01 00 00 00 00 00 4E [19:51:39]Write i2c OK [19:51:39]MH_I2C_Read... [19:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:39]Read from MH i2c: E2 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 0E 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 0E 00 CE 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 F7 [19:51:39]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:51:39]wFMCommunicate OK [19:51:39]SAM_PROTO_GetShiftState done [19:51:39]FM_GetShiftState done [19:51:39]req_shift_opened done [19:51:39]requested_item shift.open_date is exist - process it [19:51:39]req_shift_open_date [19:51:39]req_shift_open_date done [19:51:39]produce_requested_data done [19:51:39]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73092,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [19:51:39]process_action_free close_receipt [19:51:39]json_value_free [19:51:39]json_value_free done [19:51:39]process_json_proto returns [19:51:39]Send response to host [19:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73092,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [19:51:39]free response buf [19:51:39]execute_script done [19:51:39]execute_script returns [19:51:39]free content buf [19:51:39]Sock 8.Close socket [19:51:39]Sock 8.Thread stoped [19:51:40]Connected sock=11 [19:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 BD BA 06 01 52 C0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 C8 DF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1D 01 00 35 04 06 00 2A 7A 78 98 08 23 91 41 94 50 87 29 C5 42 [19:51:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C7 EF 47 00 E4 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1D 01 00 F4 03 04 00 80 8A 23 67 B6 04 01 00 00 82 4F CE 49 B8 E1 E5 BE [19:51:41]CommunicateWithHost err = 0 [19:51:41]CheckOFDResponse [19:51:41]1017 (14) - 77093643461234 [19:51:41]1041 (16) - 0000000000874662 [19:51:41]1040 (4) - 73092 [19:51:41]1012 (4) - 31.10.2024 13:47 [19:51:41]1206 (1) - 0 [19:51:41]OFD Sender: Remove packet 73092 [19:51:41]ProducePacketName [19:51:41]name=ofd_packets/00073092 [19:51:41]NVStorageDeleteData [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:50]recv_with_timeout no data received [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:03]recv_with_timeout no data received [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:15]recv_with_timeout no data received [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:02]recv_with_timeout no data received [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:19]recv_with_timeout no data received [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:30]recv_with_timeout no data received [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:21]recv_with_timeout no data received [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]recv_with_timeout no data received [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:48]accept exits with 10 [19:55:48]New connection [19:55:48]New thread 3067350372 created [19:55:48]Thread 3067493732 joined [19:55:48]Waiting for new connection... [19:55:48] Sock 10.Parse request [19:55:48]Sock 10.Check first char [19:55:48]Sock 10.First char is OK [19:55:48]request: POST /json_proto HTTP/1.0 [19:55:48]Method: POST [19:55:48]URL: /json_proto [19:55:48]Method is POST - this is cgi request [19:55:48]url: /json_proto [19:55:48]query_string will be loaded in cgi processing [19:55:48]execute_cgi json_proto POST (null) [19:55:48]execute_cgi path=json_proto method=POST [19:55:48]POST find Content-Length [19:55:48]Host: 172.17.43.195:8080 [19:55:48]Content-Length: 792 [19:55:48]Content-Type: application/json [19:55:48] [19:55:48]POST finish read [19:55:48]Found Content-Length = 792 [19:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53911", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:48]execute_script... [19:55:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53911", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:48]POST & json_proto [19:55:48]process_json_proto [19:55:48]json parsed OK: [19:55:48]protocol is kg_v1.0 [19:55:48]action value=close_receipt [19:55:48]process_action close_receipt [19:55:48]cmd_close_receipt [19:55:48]MH_GetDate [19:55:48]Write to MH i2c: F0 00 00 CF 03 C1 [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: F0 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: F0 09 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: F0 09 00 CF 03 00 C4 E0 23 67 74 2C AD 66 AB [19:55:48]GetLastDocTimeStamp 1730404296 [19:55:48]current date 1730404548 [19:55:48]FM_GetShiftState [19:55:48]SAM_PROTO_GetShiftState [19:55:48]wFMCommunicate request_size=4 [19:55:48]MH_SAM_APDU [19:55:48]CAPDU: 80 13 01 00 [19:55:48]Write to MH i2c: E2 08 00 D0 03 80 13 01 00 00 00 00 00 50 [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:48]Read from MH i2c: E2 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 0E 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 0E 00 D0 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 F9 [19:55:48]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:55:48]wFMCommunicate OK [19:55:48]SAM_PROTO_GetShiftState done [19:55:48]FM_GetShiftState done [19:55:48]opened in 1730333258 [19:55:48]opened+sec_in_day 1730419658 [19:55:48]quantity*price = 0 [19:55:48]sum+1 = 1 [19:55:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 168 31.10.2024 19:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53911 ФМ: 0000000000874662 ФД: 73093 ФПД: 188132541520915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T195548&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73093&fm=188132541520915&tin=02508201610067®Number=0000000000091644&sum=0 [19:55:49]StoreToDocumentArchive [19:55:49]shift 557 fd 73093 [19:55:49]save to /storage/0557/doc_00073093 [19:55:49]save last doc name /storage/0557/doc_00073093 to /storage/kkm_last_doc_name [19:55:49]save OK [19:55:49]Clear old archive folders... [19:55:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:49]tlvbuf is 017FAA20 [19:55:49]SAM_PROTO_ClearQueue [19:55:49]wFMCommunicate request_size=4 [19:55:49]MH_SAM_APDU [19:55:49]CAPDU: 80 09 00 00 [19:55:49]Write to MH i2c: E2 08 00 DD 03 80 09 00 00 00 00 00 00 52 [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:49]Read from MH i2c: E2 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 03 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [19:55:49]RAPDU: 90 00 [19:55:49]wFMCommunicate OK [19:55:49]SAM_PROTO_ClearQueue done [19:55:49]KKMCreateOFDPacket [19:55:49]OFDProtocolAddRootSTLVToBuf [19:55:49]FM_MakeSignedData [19:55:49]FM_MakeSignedData [19:55:49]SAM_PROTO_SignData [19:55:49]wFMCommunicate request_size=4 [19:55:49]MH_SAM_APDU [19:55:49]CAPDU: 80 0D 01 02 [19:55:49]Write to MH i2c: E2 08 00 DE 03 80 0D 01 02 00 00 00 00 5A [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:49]Read from MH i2c: E2 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 03 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [19:55:49]RAPDU: 90 00 [19:55:49]wFMCommunicate OK [19:55:49]wFMCommunicate request_size=255 [19:55:49]MH_SAM_APDU [19:55:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C4 E0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1D 01 00 35 04 06 00 AB [19:55:49]Write to MH i2c: E2 02 01 DF 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C4 E0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1D 01 00 35 04 06 00 AB 00 00 93 [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:49]Read from MH i2c: E2 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 03 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [19:55:49]RAPDU: 90 00 [19:55:49]wFMCommunicate OK [19:55:49]wFMCommunicate request_size=10 [19:55:49]MH_SAM_APDU [19:55:49]CAPDU: 80 0D 02 02 05 1B 05 4E DC 13 [19:55:49]Write to MH i2c: E2 0D 00 E0 03 80 0D 02 02 05 00 1B 05 4E DC 13 00 00 C4 [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:49]Read from MH i2c: E2 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 03 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [19:55:49]RAPDU: 90 00 [19:55:49]wFMCommunicate OK [19:55:49]wFMCommunicate request_size=4 [19:55:49]MH_SAM_APDU [19:55:49]CAPDU: 80 0D 03 02 [19:55:49]Write to MH i2c: E2 08 00 E1 03 80 0D 03 02 00 00 00 00 5F [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:49]Read from MH i2c: E2 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 0B 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 0B 00 E1 03 00 22 96 11 3E DD E7 CF 1B 90 00 15 [19:55:49]RAPDU: 22 96 11 3E DD E7 CF 1B 90 00 [19:55:49]wFMCommunicate OK [19:55:49]SAM_PROTO_SignData done [19:55:49]FM_MakeSignedData done [19:55:49]CreateOFDProtocolMessage [19:55:49]wFMCommunicate request_size=4 [19:55:49]MH_SAM_APDU [19:55:49]CAPDU: 80 11 00 00 [19:55:49]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:49]Read from MH i2c: E2 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 17 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B3 [19:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:55:49]wFMCommunicate OK [19:55:49]CreateOFDProtocolMessage done [19:55:49]OFDSenderStorePacket 73093 [19:55:49]StoreOFDPacket docnum=73093 [19:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 23 EF 07 01 E2 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C4 E0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1D 01 00 35 04 06 00 AB 1B 05 4E DC 13 22 96 11 3E DD E7 CF 1B [19:55:49]CheckFolder [19:55:49]dirname=/storage/ofd_packets [19:55:49]CheckFolder done [19:55:49]ProducePacketName [19:55:49]name=ofd_packets/00073093 [19:55:49]NVStorageSaveData ofd_packets/00073093 [19:55:49]File name is /storage/ofd_packets/00073093 [19:55:49]Write 301 bytes [19:55:49]NVStorageSaveData done [19:55:49]OFDSenderStorePacket done [19:55:49]KKMCreateOFDPacket done [19:55:49]NVStorageSaveData kkm_last_timestamp [19:55:49]File name is /storage/kkm_last_timestamp [19:55:49]Write 4 bytes [19:55:49]NVStorageSaveData done [19:55:49]OFD Sender: Processing packet 73093 [packets to send 282, broken 281] [19:55:49]ProducePacketName [19:55:49]name=ofd_packets/00073093 [19:55:49]OFD Sender: To server: pG, [19:55:49]CommunicateWithHost lk.salyk.kg:30040 [19:55:49]ConnectInit lk.salyk.kg [19:55:49]ExternCall_PrintAddStr [19:55:49]wPrintStart [19:55:49]Write to MH i2c: 01 00 00 E3 03 E6 [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: 01 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: 01 07 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: 01 07 00 E3 03 00 00 00 00 00 FF 0F FB [19:55:49]RasterBufferAndPrint [19:55:49]line Счет N : (1)952692 [19:55:49]line ИНН: 02508201610067 [19:55:49]line Контрольно-Кассовый Чек [19:55:49]line ПРОДАЖА [19:55:49]line ТРК (МРК, ГНК) : 53 [19:55:49]line Товар: 2710124130 [19:55:49]line Аи-92-К-5 [19:55:49]line 40.000 * 0.00 [19:55:49]line = 0.00 [19:55:49]line НДС 12% НСП 1% [19:55:49]line > о реализуемом товаре [19:55:49]line ИТОГО: 0.00 [19:55:49]line НСП 1% : 0.00 [19:55:49]line НДС 12% : 0.00 [19:55:49]line Наличными: 0.00 [19:55:49]line Безнал.: 0.00 [19:55:49]line Место: АЗС № 113 "Партнер Нефть" [19:55:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:55:49]line СНО: Общий режим [19:55:49]line Чек 168 31.10.2024 19:55 [19:55:49]line Смена: 557 ФФД: 1.0 [19:55:49]line ЗНМ: 0300000087 [19:55:49]line РНМ: 0000000000091644 [19:55:49]line Версия ККМ: 001 [19:55:49]line Талоны: Топливная Карта [19:55:49]line 53911 [19:55:49]line ФМ: 0000000000874662 [19:55:49]line ФД: 73093 [19:55:49]line ФПД: 188132541520915 [19:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T195548&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73093&fm=188132541520915&tin=02508201610067®Number=0000000000091644&sum=0 [19:55:49]written 0, free lines is 4095 [19:55:50]Write to MH i2c: 01 00 00 0D 04 11 [19:55:50]Write i2c OK [19:55:50]MH_I2C_Read... [19:55:50]Read from MH i2c: 01 [19:55:50]MH_I2C_Read... [19:55:50]Read from MH i2c: 01 07 00 [19:55:50]MH_I2C_Read... [19:55:50]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 DF 0C 03 [19:55:50]RasterBufferAndPrint [19:55:50]line [19:55:50]line [19:55:50]line [19:55:50]line [19:55:50]line [19:55:50]written 0, free lines is 3301 [19:55:50]MH_Cut [19:55:50]Write to MH i2c: D1 01 00 14 04 01 EA [19:55:50]Write i2c OK [19:55:50]MH_I2C_Read... [19:55:50]Read from MH i2c: D1 [19:55:50]MH_I2C_Read... [19:55:50]Read from MH i2c: D1 01 00 [19:55:50]MH_I2C_Read... [19:55:50]Read from MH i2c: D1 01 00 14 04 00 E9 [19:55:50]Write to MH i2c: 01 00 00 15 04 19 [19:55:50]Write i2c OK [19:55:50]MH_I2C_Read... [19:55:51]*** Cut start [19:55:51]*** Partial cut [19:55:51]*** CUTSNS_PIN = 1 [19:55:51]*** CUTSNS_PIN = 0 [19:55:51]*** Brake cut motor [19:55:51]Read from MH i2c: 01 [19:55:51]MH_I2C_Read... [19:55:51]*** Stop cut motor [19:55:51]*** Cut end [19:55:51]Read from MH i2c: 01 07 00 [19:55:51]MH_I2C_Read... [19:55:51]Read from MH i2c: 01 07 00 15 04 00 00 00 00 00 FF 0F 2E [19:55:51]process_action close_receipt done [19:55:51]requested_data is exist [19:55:51]produce_requested_data [19:55:51]requested_item fm.sn is exist - process it [19:55:51]wFMCommunicate request_size=4 [19:55:51]MH_SAM_APDU [19:55:51]CAPDU: 80 11 00 00 [19:55:51]Write to MH i2c: E2 08 00 16 04 80 11 00 00 00 00 00 00 94 [19:55:51]Write i2c OK [19:55:51]MH_I2C_Read... [19:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:51]Read from MH i2c: E2 [19:55:51]MH_I2C_Read... [19:55:51]Read from MH i2c: E2 17 00 [19:55:51]MH_I2C_Read... [19:55:51]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 34 36 36 32 90 00 E8 [19:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:55:51]wFMCommunicate OK [19:55:51]requested_item fd.num is exist - process it [19:55:51]SAM_PROTO_GetFieldsCounters [19:55:51]wFMCommunicate request_size=4 [19:55:51]MH_SAM_APDU [19:55:51]CAPDU: 80 13 00 00 [19:55:51]Write to MH i2c: E2 08 00 17 04 80 13 00 00 00 00 00 00 97 [19:55:51]Write i2c OK [19:55:51]MH_I2C_Read... [19:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:51]Read from MH i2c: E2 [19:55:51]MH_I2C_Read... [19:55:51]Read from MH i2c: E2 62 00 [19:55:51]MH_I2C_Read... [19:55:51]Read from MH i2c: E2 62 00 17 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 85 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [19:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 85 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:51]wFMCommunicate OK [19:55:51]SAM_PROTO_GetFieldsCounters done [19:55:51]requested_item shift.num is exist - process it [19:55:51]requested_item shift.opened is exist - process it [19:55:51]req_shift_opened [19:55:51]FM_GetShiftState [19:55:51]SAM_PROTO_GetShiftState [19:55:51]wFMCommunicate request_size=4 [19:55:51]MH_SAM_APDU [19:55:51]CAPDU: 80 13 01 00 [19:55:51]Write to MH i2c: E2 08 00 18 04 80 13 01 00 00 00 00 00 99 [19:55:51]Write i2c OK [19:55:51]MH_I2C_Read... [19:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:51]Read from MH i2c: E2 [19:55:51]MH_I2C_Read... [19:55:51]Read from MH i2c: E2 0E 00 [19:55:51]MH_I2C_Read... [19:55:51]Read from MH i2c: E2 0E 00 18 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 42 [19:55:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [19:55:51]wFMCommunicate OK [19:55:51]SAM_PROTO_GetShiftState done [19:55:51]FM_GetShiftState done [19:55:51]req_shift_opened done [19:55:51]requested_item shift.open_date is exist - process it [19:55:51]req_shift_open_date [19:55:51]req_shift_open_date done [19:55:51]produce_requested_data done [19:55:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73093,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [19:55:51]process_action_free close_receipt [19:55:51]json_value_free [19:55:51]json_value_free done [19:55:51]process_json_proto returns [19:55:51]Send response to host [19:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73093,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [19:55:51]free response buf [19:55:51]execute_script done [19:55:51]execute_script returns [19:55:51]free content buf [19:55:51]Sock 10.Close socket [19:55:51]Sock 10.Thread stoped [19:55:54]ConnectInit Can't take IP for lk.salyk.kg [19:55:54]CommunicateWithHost connect error [19:55:54]CommunicateWithHost err = -1 [19:55:54]OFD Sender: Server communicate error [19:55:59]OFD Sender: Processing packet 73093 [packets to send 282, broken 281] [19:55:59]ProducePacketName [19:55:59]name=ofd_packets/00073093 [19:55:59]OFD Sender: To server: pG, [19:55:59]CommunicateWithHost lk.salyk.kg:30040 [19:55:59]ConnectInit lk.salyk.kg [19:56:00]Connected sock=9 [19:56:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 23 EF 07 01 E2 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C4 E0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1D 01 00 35 04 06 00 AB 1B 05 4E DC 13 22 96 11 3E DD E7 CF 1B [19:56:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9E 61 47 00 83 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 34 36 36 32 10 04 04 00 85 1D 01 00 F4 03 04 00 83 8B 23 67 B6 04 01 00 00 54 CF D5 84 C2 B5 3C 91 [19:56:00]CommunicateWithHost err = 0 [19:56:00]CheckOFDResponse [19:56:00]1017 (14) - 77093643461234 [19:56:00]1041 (16) - 0000000000874662 [19:56:00]1040 (4) - 73093 [19:56:00]1012 (4) - 31.10.2024 13:52 [19:56:00]1206 (1) - 0 [19:56:00]OFD Sender: Remove packet 73093 [19:56:00]ProducePacketName [19:56:00]name=ofd_packets/00073093 [19:56:00]NVStorageDeleteData [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:17]recv_with_timeout no data received [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:39]recv_with_timeout no data received [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:56:59]recv_with_timeout no data received [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:27]recv_with_timeout no data received [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:57:58]recv_with_timeout no data received [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59: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:00:57]recv_with_timeout no data received [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:27]recv_with_timeout no data received [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:17]recv_with_timeout no data received [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:38]recv_with_timeout no data received [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:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:17]recv_with_timeout no data received [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:39]recv_with_timeout no data received [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:12]recv_with_timeout no data received [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:17]recv_with_timeout no data received [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:39]accept exits with 8 [20:05:39]New connection [20:05:39]New thread 3067493732 created [20:05:39]Thread 3067350372 joined [20:05:39]Waiting for new connection... [20:05:39] Sock 8.Parse request [20:05:39]Sock 8.Check first char [20:05:39]Sock 8.First char is OK [20:05:39]request: POST /json_proto HTTP/1.0 [20:05:39]Method: POST [20:05:39]URL: /json_proto [20:05:39]Method is POST - this is cgi request [20:05:39]url: /json_proto [20:05:39]query_string will be loaded in cgi processing [20:05:39]execute_cgi json_proto POST (null) [20:05:39]execute_cgi path=json_proto method=POST [20:05:39]POST find Content-Length [20:05:39]Host: 172.17.43.195:8080 [20:05:39]Content-Length: 685 [20:05:39]Content-Type: application/json [20:05:39] [20:05:39]POST finish read [20:05:39]Found Content-Length = 685 [20:05:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:39]execute_script... [20:05:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:39]POST & json_proto [20:05:39]process_json_proto [20:05:39]json parsed OK: [20:05:39]protocol is kg_v1.0 [20:05:39]action value=close_receipt [20:05:39]process_action close_receipt [20:05:39]cmd_close_receipt [20:05:39]MH_GetDate [20:05:39]Write to MH i2c: F0 00 00 19 04 0C [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: F0 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: F0 09 00 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: F0 09 00 19 04 00 14 E3 23 67 74 2C AD 66 49 [20:05:39]GetLastDocTimeStamp 1730404548 [20:05:39]current date 1730405140 [20:05:39]FM_GetShiftState [20:05:39]SAM_PROTO_GetShiftState [20:05:39]wFMCommunicate request_size=4 [20:05:39]MH_SAM_APDU [20:05:39]CAPDU: 80 13 01 00 [20:05:39]Write to MH i2c: E2 08 00 1A 04 80 13 01 00 00 00 00 00 9B [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:39]Read from MH i2c: E2 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: E2 0E 00 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: E2 0E 00 1A 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 44 [20:05:39]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [20:05:39]wFMCommunicate OK [20:05:39]SAM_PROTO_GetShiftState done [20:05:39]FM_GetShiftState done [20:05:39]opened in 1730333258 [20:05:39]opened+sec_in_day 1730419658 [20:05:39]quantity*price = 150037 [20:05:39]sum+1 = 150038 [20:05:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 169 31.10.2024 20:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73094 ФПД: 24028089381897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T200540&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73094&fm=24028089381897&tin=02508201610067®Number=0000000000091644&sum=150000 [20:05:40]StoreToDocumentArchive [20:05:40]shift 557 fd 73094 [20:05:40]save to /storage/0557/doc_00073094 [20:05:40]save last doc name /storage/0557/doc_00073094 to /storage/kkm_last_doc_name [20:05:40]save OK [20:05:40]Clear old archive folders... [20:05:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:05:40]tlvbuf is 017FAEA0 [20:05:40]SAM_PROTO_ClearQueue [20:05:40]wFMCommunicate request_size=4 [20:05:40]MH_SAM_APDU [20:05:40]CAPDU: 80 09 00 00 [20:05:40]Write to MH i2c: E2 08 00 27 04 80 09 00 00 00 00 00 00 9D [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:40]Read from MH i2c: E2 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 03 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [20:05:40]RAPDU: 90 00 [20:05:40]wFMCommunicate OK [20:05:40]SAM_PROTO_ClearQueue done [20:05:40]KKMCreateOFDPacket [20:05:40]OFDProtocolAddRootSTLVToBuf [20:05:40]FM_MakeSignedData [20:05:40]FM_MakeSignedData [20:05:40]SAM_PROTO_SignData [20:05:40]wFMCommunicate request_size=4 [20:05:40]MH_SAM_APDU [20:05:40]CAPDU: 80 0D 01 02 [20:05:40]Write to MH i2c: E2 08 00 28 04 80 0D 01 02 00 00 00 00 A5 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:40]Read from MH i2c: E2 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 03 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [20:05:40]RAPDU: 90 00 [20:05:40]wFMCommunicate OK [20:05:40]wFMCommunicate request_size=255 [20:05:40]MH_SAM_APDU [20:05:40]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 14 E3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1D 01 00 35 04 06 00 15 DA [20:05:40]Write to MH i2c: E2 02 01 29 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 14 E3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1D 01 00 35 04 06 00 15 DA 00 00 48 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:40]Read from MH i2c: E2 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 03 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [20:05:40]RAPDU: 90 00 [20:05:40]wFMCommunicate OK [20:05:40]wFMCommunicate request_size=9 [20:05:40]MH_SAM_APDU [20:05:40]CAPDU: 80 0D 02 02 04 79 BB 74 09 [20:05:40]Write to MH i2c: E2 0C 00 2A 04 80 0D 02 02 04 00 79 BB 74 09 00 00 61 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:40]Read from MH i2c: E2 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 03 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 03 00 2A 04 00 90 00 A2 [20:05:40]RAPDU: 90 00 [20:05:40]wFMCommunicate OK [20:05:40]wFMCommunicate request_size=4 [20:05:40]MH_SAM_APDU [20:05:40]CAPDU: 80 0D 03 02 [20:05:41]Write to MH i2c: E2 08 00 2B 04 80 0D 03 02 00 00 00 00 AA [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:41]Read from MH i2c: E2 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 0B 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 0B 00 2B 04 00 9C 76 AE B6 18 07 8B AA 90 00 75 [20:05:41]RAPDU: 9C 76 AE B6 18 07 8B AA 90 00 [20:05:41]wFMCommunicate OK [20:05:41]SAM_PROTO_SignData done [20:05:41]FM_MakeSignedData done [20:05:41]CreateOFDProtocolMessage [20:05:41]wFMCommunicate request_size=4 [20:05:41]MH_SAM_APDU [20:05:41]CAPDU: 80 11 00 00 [20:05:41]Write to MH i2c: E2 08 00 2C 04 80 11 00 00 00 00 00 00 AA [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:41]Read from MH i2c: E2 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 17 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 17 00 2C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [20:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:05:41]wFMCommunicate OK [20:05:41]CreateOFDProtocolMessage done [20:05:41]OFDSenderStorePacket 73094 [20:05:41]StoreOFDPacket docnum=73094 [20:05:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 AE 99 06 01 0F A7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 14 E3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1D 01 00 35 04 06 00 15 DA 79 BB 74 09 9C 76 AE B6 18 07 8B AA [20:05:41]CheckFolder [20:05:41]dirname=/storage/ofd_packets [20:05:41]CheckFolder done [20:05:41]ProducePacketName [20:05:41]name=ofd_packets/00073094 [20:05:41]NVStorageSaveData ofd_packets/00073094 [20:05:41]File name is /storage/ofd_packets/00073094 [20:05:41]Write 300 bytes [20:05:41]NVStorageSaveData done [20:05:41]OFDSenderStorePacket done [20:05:41]KKMCreateOFDPacket done [20:05:41]NVStorageSaveData kkm_last_timestamp [20:05:41]File name is /storage/kkm_last_timestamp [20:05:41]Write 4 bytes [20:05:41]NVStorageSaveData done [20:05:41]OFD Sender: Processing packet 73094 [packets to send 282, broken 281] [20:05:41]ProducePacketName [20:05:41]name=ofd_packets/00073094 [20:05:41]OFD Sender: To server: pG, [20:05:41]CommunicateWithHost lk.salyk.kg:30040 [20:05:41]ConnectInit lk.salyk.kg [20:05:41]ExternCall_PrintAddStr [20:05:41]wPrintStart [20:05:41]Write to MH i2c: 01 00 00 2D 04 31 [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: 01 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: 01 07 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 FF 0F 46 [20:05:41]RasterBufferAndPrint [20:05:41]line Счет N : (1)952693 [20:05:41]line ИНН: 02508201610067 [20:05:41]line Контрольно-Кассовый Чек [20:05:41]line ПРОДАЖА [20:05:41]line ТРК (МРК, ГНК) : 71 [20:05:41]line Товар: 2711190000 [20:05:41]line ГАЗ-К-3 [20:05:41]line 38.570 * 38.90 [20:05:41]line = 1500.37 [20:05:41]line НДС 12% НСП 1% [20:05:41]line > о реализуемом товаре [20:05:41]line ОКРУГЛЕНИЕ: -0.37 [20:05:41]line ИТОГО: 1500.00 [20:05:41]line Внесено: 1500.00 [20:05:41]line СДАЧА: 0.00 [20:05:41]line НСП 1% : 13.28 [20:05:41]line НДС 12% : 159.33 [20:05:41]line Наличными: 1500.00 [20:05:41]line Безнал.: 0.00 [20:05:41]line Место: АЗС № 113 "Партнер Нефть" [20:05:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:05:41]line СНО: Общий режим [20:05:41]line Чек 169 31.10.2024 20:05 [20:05:41]line Смена: 557 ФФД: 1.0 [20:05:41]line ЗНМ: 0300000087 [20:05:41]line РНМ: 0000000000091644 [20:05:41]line Версия ККМ: 001 [20:05:41]line ФМ: 0000000000874662 [20:05:41]line ФД: 73094 [20:05:41]line ФПД: 24028089381897 [20:05:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T200540&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73094&fm=24028089381897&tin=02508201610067®Number=0000000000091644&sum=150000 [20:05:41]written 0, free lines is 4095 [20:05:41]Write to MH i2c: 01 00 00 58 04 5C [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: 01 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: 01 07 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 D0 0C 3F [20:05:41]RasterBufferAndPrint [20:05:41]line [20:05:41]line [20:05:41]line [20:05:41]line [20:05:41]line [20:05:41]written 0, free lines is 3287 [20:05:41]MH_Cut [20:05:41]Write to MH i2c: D1 01 00 5F 04 01 35 [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: D1 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: D1 01 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: D1 01 00 5F 04 00 34 [20:05:41]Write to MH i2c: 01 00 00 60 04 64 [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:42]Connected sock=10 [20:05:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 AE 99 06 01 0F A7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 14 E3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1D 01 00 35 04 06 00 15 DA 79 BB 74 09 9C 76 AE B6 18 07 8B AA [20:05:42]*** Cut start [20:05:42]*** Partial cut [20:05:42]*** CUTSNS_PIN = 1 [20:05:42]*** CUTSNS_PIN = 0 [20:05:42]*** Brake cut motor [20:05:43]Read from MH i2c: 01 [20:05:43]MH_I2C_Read... [20:05:43]*** Stop cut motor [20:05:43]*** Cut end [20:05:43]Read from MH i2c: 01 07 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 60 04 00 00 00 00 00 FF 0F 79 [20:05:43]process_action close_receipt done [20:05:43]requested_data is exist [20:05:43]produce_requested_data [20:05:43]requested_item fm.sn is exist - process it [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 11 00 00 [20:05:43]Write to MH i2c: E2 08 00 61 04 80 11 00 00 00 00 00 00 DF [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 17 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 17 00 61 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [20:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:05:43]wFMCommunicate OK [20:05:43]requested_item fd.num is exist - process it [20:05:43]SAM_PROTO_GetFieldsCounters [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 13 00 00 [20:05:43]Write to MH i2c: E2 08 00 62 04 80 13 00 00 00 00 00 00 E2 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 62 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 62 00 62 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 86 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [20:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 86 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:43]wFMCommunicate OK [20:05:43]SAM_PROTO_GetFieldsCounters done [20:05:43]requested_item shift.num is exist - process it [20:05:43]requested_item shift.opened is exist - process it [20:05:43]req_shift_opened [20:05:43]FM_GetShiftState [20:05:43]SAM_PROTO_GetShiftState [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 13 01 00 [20:05:43]Write to MH i2c: E2 08 00 63 04 80 13 01 00 00 00 00 00 E4 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0E 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0E 00 63 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8D [20:05:43]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [20:05:43]wFMCommunicate OK [20:05:43]SAM_PROTO_GetShiftState done [20:05:43]FM_GetShiftState done [20:05:43]req_shift_opened done [20:05:43]requested_item shift.open_date is exist - process it [20:05:43]req_shift_open_date [20:05:43]req_shift_open_date done [20:05:43]produce_requested_data done [20:05:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73094,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [20:05:43]process_action_free close_receipt [20:05:43]json_value_free [20:05:43]json_value_free done [20:05:43]process_json_proto returns [20:05:43]Send response to host [20:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73094,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [20:05:43]free response buf [20:05:43]execute_script done [20:05:43]execute_script returns [20:05:43]free content buf [20:05:43]Sock 8.Close socket [20:05:43]Sock 8.Thread stoped [20:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 05 F6 47 00 58 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1D 01 00 F4 03 04 00 C9 8D 23 67 B6 04 01 00 00 B1 77 8B A7 7E 7C 94 81 [20:05:43]CommunicateWithHost err = 0 [20:05:43]CheckOFDResponse [20:05:43]1017 (14) - 77093643461234 [20:05:43]1041 (16) - 0000000000874662 [20:05:43]1040 (4) - 73094 [20:05:43]1012 (4) - 31.10.2024 14:01 [20:05:43]1206 (1) - 0 [20:05:43]OFD Sender: Remove packet 73094 [20:05:43]ProducePacketName [20:05:43]name=ofd_packets/00073094 [20:05:43]NVStorageDeleteData [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:21]recv_with_timeout no data received [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:10]recv_with_timeout no data received [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:47]recv_with_timeout no data received [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:33]recv_with_timeout no data received [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]recv_with_timeout no data received [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:41]recv_with_timeout no data received [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:01]accept exits with 9 [20:12:01]New connection [20:12:01]New thread 3067350372 created [20:12:01]Thread 3067493732 joined [20:12:01]Waiting for new connection... [20:12:01] Sock 9.Parse request [20:12:01]Sock 9.Check first char [20:12:01]Sock 9.First char is OK [20:12:01]request: POST /json_proto HTTP/1.0 [20:12:01]Method: POST [20:12:01]URL: /json_proto [20:12:01]Method is POST - this is cgi request [20:12:01]url: /json_proto [20:12:01]query_string will be loaded in cgi processing [20:12:01]execute_cgi json_proto POST (null) [20:12:01]execute_cgi path=json_proto method=POST [20:12:01]POST find Content-Length [20:12:01]Host: 172.17.43.195:8080 [20:12:01]Content-Length: 658 [20:12:01]Content-Type: application/json [20:12:01] [20:12:01]POST finish read [20:12:01]Found Content-Length = 658 [20:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:01]execute_script... [20:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:01]POST & json_proto [20:12:01]process_json_proto [20:12:01]json parsed OK: [20:12:01]protocol is kg_v1.0 [20:12:01]action value=close_receipt [20:12:01]process_action close_receipt [20:12:01]cmd_close_receipt [20:12:01]MH_GetDate [20:12:01]Write to MH i2c: F0 00 00 64 04 57 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: F0 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: F0 09 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: F0 09 00 64 04 00 91 E4 23 67 74 2C AD 66 12 [20:12:01]GetLastDocTimeStamp 1730405140 [20:12:01]current date 1730405521 [20:12:01]FM_GetShiftState [20:12:01]SAM_PROTO_GetShiftState [20:12:01]wFMCommunicate request_size=4 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 13 01 00 [20:12:01]Write to MH i2c: E2 08 00 65 04 80 13 01 00 00 00 00 00 E6 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:01]Read from MH i2c: E2 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 0E 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 0E 00 65 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8F [20:12:01]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [20:12:01]wFMCommunicate OK [20:12:01]SAM_PROTO_GetShiftState done [20:12:01]FM_GetShiftState done [20:12:01]opened in 1730333258 [20:12:01]opened+sec_in_day 1730419658 [20:12:01]quantity*price = 20041 [20:12:01]sum+1 = 20042 [20:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 170 31.10.2024 20:12 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73095 ФПД: 135129086850596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201201&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73095&fm=135129086850596&tin=02508201610067®Number=0000000000091644&sum=20000 [20:12:02]StoreToDocumentArchive [20:12:02]shift 557 fd 73095 [20:12:02]save to /storage/0557/doc_00073095 [20:12:02]save last doc name /storage/0557/doc_00073095 to /storage/kkm_last_doc_name [20:12:02]save OK [20:12:02]Clear old archive folders... [20:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:12:02]tlvbuf is 017D3CC0 [20:12:02]SAM_PROTO_ClearQueue [20:12:02]wFMCommunicate request_size=4 [20:12:02]MH_SAM_APDU [20:12:02]CAPDU: 80 09 00 00 [20:12:02]Write to MH i2c: E2 08 00 72 04 80 09 00 00 00 00 00 00 E8 [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 03 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 03 00 72 04 00 90 00 EA [20:12:02]RAPDU: 90 00 [20:12:02]wFMCommunicate OK [20:12:02]SAM_PROTO_ClearQueue done [20:12:02]KKMCreateOFDPacket [20:12:02]OFDProtocolAddRootSTLVToBuf [20:12:02]FM_MakeSignedData [20:12:02]FM_MakeSignedData [20:12:02]SAM_PROTO_SignData [20:12:02]wFMCommunicate request_size=4 [20:12:02]MH_SAM_APDU [20:12:02]CAPDU: 80 0D 01 02 [20:12:02]Write to MH i2c: E2 08 00 73 04 80 0D 01 02 00 00 00 00 F0 [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 03 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [20:12:02]RAPDU: 90 00 [20:12:02]wFMCommunicate OK [20:12:02]wFMCommunicate request_size=253 [20:12:02]MH_SAM_APDU [20:12:02]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 91 E4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1D 01 00 35 04 06 00 7A E6 31 38 76 24 [20:12:02]Write to MH i2c: E2 00 01 74 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 91 E4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1D 01 00 35 04 06 00 7A E6 31 38 76 24 00 00 0E [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 03 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [20:12:02]RAPDU: 90 00 [20:12:02]wFMCommunicate OK [20:12:02]wFMCommunicate request_size=4 [20:12:02]MH_SAM_APDU [20:12:02]CAPDU: 80 0D 03 02 [20:12:02]Write to MH i2c: E2 08 00 75 04 80 0D 03 02 00 00 00 00 F4 [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 0B 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 0B 00 75 04 00 BB BB 66 6C E5 B3 43 BC 90 00 D4 [20:12:02]RAPDU: BB BB 66 6C E5 B3 43 BC 90 00 [20:12:02]wFMCommunicate OK [20:12:02]SAM_PROTO_SignData done [20:12:02]FM_MakeSignedData done [20:12:02]CreateOFDProtocolMessage [20:12:02]wFMCommunicate request_size=4 [20:12:02]MH_SAM_APDU [20:12:02]CAPDU: 80 11 00 00 [20:12:02]Write to MH i2c: E2 08 00 76 04 80 11 00 00 00 00 00 00 F4 [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 17 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 17 00 76 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [20:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:12:02]wFMCommunicate OK [20:12:02]CreateOFDProtocolMessage done [20:12:02]OFDSenderStorePacket 73095 [20:12:02]StoreOFDPacket docnum=73095 [20:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 B2 A8 00 01 95 DB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 91 E4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1D 01 00 35 04 06 00 7A E6 31 38 76 24 BB BB 66 6C E5 B3 43 BC [20:12:02]CheckFolder [20:12:02]dirname=/storage/ofd_packets [20:12:02]CheckFolder done [20:12:02]ProducePacketName [20:12:02]name=ofd_packets/00073095 [20:12:02]NVStorageSaveData ofd_packets/00073095 [20:12:02]File name is /storage/ofd_packets/00073095 [20:12:02]Write 294 bytes [20:12:02]NVStorageSaveData done [20:12:02]OFDSenderStorePacket done [20:12:02]KKMCreateOFDPacket done [20:12:02]NVStorageSaveData kkm_last_timestamp [20:12:02]File name is /storage/kkm_last_timestamp [20:12:02]Write 4 bytes [20:12:02]NVStorageSaveData done [20:12:02]ExternCall_PrintAddStr [20:12:02]wPrintStart [20:12:02]Write to MH i2c: 01 00 00 77 04 7B [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: 01 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: 01 07 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: 01 07 00 77 04 00 00 00 00 00 FF 0F 90 [20:12:02]RasterBufferAndPrint [20:12:02]line Счет N : (1)952694 [20:12:02]line ИНН: 02508201610067 [20:12:02]line Контрольно-Кассовый Чек [20:12:02]line ПРОДАЖА [20:12:02]line ТРК (МРК, ГНК) : 51 [20:12:02]line Товар: 50.50.0 [20:12:02]line Super 92 [20:12:02]line 2.930 * 68.40 [20:12:02]line = 200.41 [20:12:02]line НДС 12% НСП 1% [20:12:02]line > о реализуемом товаре [20:12:02]line ОКРУГЛЕНИЕ: -0.41 [20:12:02]line ИТОГО: 200.00 [20:12:02]line Внесено: 200.00 [20:12:02]line СДАЧА: 0.00 [20:12:02]line НСП 1% : 1.77 [20:12:02]line НДС 12% : 21.28 [20:12:02]line Наличными: 200.00 [20:12:02]line Безнал.: 0.00 [20:12:02]line Место: АЗС № 113 "Партнер Нефть" [20:12:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:12:02]line СНО: Общий режим [20:12:02]line Чек 170 31.10.2024 20:12 [20:12:02]line Смена: 557 ФФД: 1.0 [20:12:02]line ЗНМ: 0300000087 [20:12:02]line РНМ: 0000000000091644 [20:12:02]line Версия ККМ: 001 [20:12:02]line ФМ: 0000000000874662 [20:12:02]line ФД: 73095 [20:12:02]line ФПД: 135129086850596 [20:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201201&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73095&fm=135129086850596&tin=02508201610067®Number=0000000000091644&sum=20000 [20:12:03]OFD Sender: Processing packet 73095 [packets to send 282, broken 281] [20:12:03]ProducePacketName [20:12:03]name=ofd_packets/00073095 [20:12:03]OFD Sender: To server: pG, [20:12:03]CommunicateWithHost lk.salyk.kg:30040 [20:12:03]ConnectInit lk.salyk.kg [20:12:03]written 0, free lines is 4095 [20:12:03]Write to MH i2c: 01 00 00 A2 04 A6 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: 01 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: 01 07 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: 01 07 00 A2 04 00 00 00 00 00 D7 0C 90 [20:12:03]RasterBufferAndPrint [20:12:03]line [20:12:03]line [20:12:03]line [20:12:03]line [20:12:03]line [20:12:03]written 0, free lines is 3294 [20:12:03]MH_Cut [20:12:03]Write to MH i2c: D1 01 00 A9 04 01 7F [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: D1 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: D1 01 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: D1 01 00 A9 04 00 7E [20:12:03]Write to MH i2c: 01 00 00 AA 04 AE [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:04]*** Cut start [20:12:04]*** Partial cut [20:12:04]*** CUTSNS_PIN = 1 [20:12:04]*** CUTSNS_PIN = 0 [20:12:04]*** Brake cut motor [20:12:04]Read from MH i2c: 01 [20:12:04]MH_I2C_Read... [20:12:04]*** Stop cut motor [20:12:04]*** Cut end [20:12:04]Read from MH i2c: 01 07 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 07 00 AA 04 00 00 00 00 00 FF 0F C3 [20:12:04]process_action close_receipt done [20:12:04]requested_data is exist [20:12:04]produce_requested_data [20:12:04]requested_item fm.sn is exist - process it [20:12:04]wFMCommunicate request_size=4 [20:12:04]MH_SAM_APDU [20:12:04]CAPDU: 80 11 00 00 [20:12:04]Write to MH i2c: E2 08 00 AB 04 80 11 00 00 00 00 00 00 29 [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:05]Read from MH i2c: E2 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: E2 17 00 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: E2 17 00 AB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [20:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:12:05]wFMCommunicate OK [20:12:05]requested_item fd.num is exist - process it [20:12:05]SAM_PROTO_GetFieldsCounters [20:12:05]wFMCommunicate request_size=4 [20:12:05]MH_SAM_APDU [20:12:05]CAPDU: 80 13 00 00 [20:12:05]Write to MH i2c: E2 08 00 AC 04 80 13 00 00 00 00 00 00 2C [20:12:05]Write i2c OK [20:12:05]MH_I2C_Read... [20:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:05]Read from MH i2c: E2 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: E2 62 00 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: E2 62 00 AC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 87 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [20:12:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 87 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:05]wFMCommunicate OK [20:12:05]SAM_PROTO_GetFieldsCounters done [20:12:05]requested_item shift.num is exist - process it [20:12:05]requested_item shift.opened is exist - process it [20:12:05]req_shift_opened [20:12:05]FM_GetShiftState [20:12:05]SAM_PROTO_GetShiftState [20:12:05]wFMCommunicate request_size=4 [20:12:05]MH_SAM_APDU [20:12:05]CAPDU: 80 13 01 00 [20:12:05]Write to MH i2c: E2 08 00 AD 04 80 13 01 00 00 00 00 00 2E [20:12:05]Write i2c OK [20:12:05]MH_I2C_Read... [20:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:05]Read from MH i2c: E2 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: E2 0E 00 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: E2 0E 00 AD 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D7 [20:12:05]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [20:12:05]wFMCommunicate OK [20:12:05]SAM_PROTO_GetShiftState done [20:12:05]FM_GetShiftState done [20:12:05]req_shift_opened done [20:12:05]requested_item shift.open_date is exist - process it [20:12:05]req_shift_open_date [20:12:05]req_shift_open_date done [20:12:05]produce_requested_data done [20:12:05]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73095,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [20:12:05]process_action_free close_receipt [20:12:05]json_value_free [20:12:05]json_value_free done [20:12:05]process_json_proto returns [20:12:05]Send response to host [20:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73095,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [20:12:05]free response buf [20:12:05]execute_script done [20:12:05]execute_script returns [20:12:05]free content buf [20:12:05]Sock 9.Close socket [20:12:05]Sock 9.Thread stoped [20:12:06]Connected sock=11 [20:12:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 B2 A8 00 01 95 DB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 91 E4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1D 01 00 35 04 06 00 7A E6 31 38 76 24 BB BB 66 6C E5 B3 43 BC [20:12:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 37 64 47 00 41 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1D 01 00 F4 03 04 00 49 8F 23 67 B6 04 01 00 00 88 60 74 8A CB 4A C1 8D [20:12:07]CommunicateWithHost err = 0 [20:12:07]CheckOFDResponse [20:12:07]1017 (14) - 77093643461234 [20:12:07]1041 (16) - 0000000000874662 [20:12:07]1040 (4) - 73095 [20:12:07]1012 (4) - 31.10.2024 14:08 [20:12:07]1206 (1) - 0 [20:12:07]OFD Sender: Remove packet 73095 [20:12:07]ProducePacketName [20:12:07]name=ofd_packets/00073095 [20:12:07]NVStorageDeleteData [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:50]recv_with_timeout no data received [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:00]recv_with_timeout no data received [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:29]recv_with_timeout no data received [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]recv_with_timeout no data received [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]recv_with_timeout no data received [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]recv_with_timeout no data received [20:16:27]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:16]recv_with_timeout no data received [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:39]recv_with_timeout no data received [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:50]recv_with_timeout no data received [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:13]recv_with_timeout no data received [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:26]recv_with_timeout no data received [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:10]accept exits with 10 [20:23:10]New connection [20:23:10]New thread 3067493732 created [20:23:10]Thread 3067350372 joined [20:23:10]Waiting for new connection... [20:23:10] Sock 10.Parse request [20:23:10]Sock 10.Check first char [20:23:10]Sock 10.First char is OK [20:23:10]request: POST /json_proto HTTP/1.0 [20:23:10]Method: POST [20:23:10]URL: /json_proto [20:23:10]Method is POST - this is cgi request [20:23:10]url: /json_proto [20:23:10]query_string will be loaded in cgi processing [20:23:10]execute_cgi json_proto POST (null) [20:23:10]execute_cgi path=json_proto method=POST [20:23:10]POST find Content-Length [20:23:10]Host: 172.17.43.195:8080 [20:23:10]Content-Length: 685 [20:23:10]Content-Type: application/json [20:23:10] [20:23:10]POST finish read [20:23:10]Found Content-Length = 685 [20:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 26.440, "sum" : 1028.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1028.00, "payments": [ { "type": 0, "sum" : 1028.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:10]execute_script... [20:23:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 26.440, "sum" : 1028.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1028.00, "payments": [ { "type": 0, "sum" : 1028.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:10]POST & json_proto [20:23:10]process_json_proto [20:23:10]json parsed OK: [20:23:10]protocol is kg_v1.0 [20:23:10]action value=close_receipt [20:23:10]process_action close_receipt [20:23:10]cmd_close_receipt [20:23:10]MH_GetDate [20:23:10]Write to MH i2c: F0 00 00 AE 04 A1 [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: F0 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: F0 09 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: F0 09 00 AE 04 00 2F E7 23 67 74 2C AD 66 FD [20:23:10]GetLastDocTimeStamp 1730405521 [20:23:10]current date 1730406191 [20:23:10]FM_GetShiftState [20:23:10]SAM_PROTO_GetShiftState [20:23:10]wFMCommunicate request_size=4 [20:23:10]MH_SAM_APDU [20:23:10]CAPDU: 80 13 01 00 [20:23:10]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:10]Read from MH i2c: E2 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 0E 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D9 [20:23:10]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [20:23:10]wFMCommunicate OK [20:23:10]SAM_PROTO_GetShiftState done [20:23:10]FM_GetShiftState done [20:23:10]opened in 1730333258 [20:23:10]opened+sec_in_day 1730419658 [20:23:10]quantity*price = 102851 [20:23:10]sum+1 = 102853 [20:23:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1028.00 Внесено: 1200.00 СДАЧА: 172.00 НСП 1% : 9.10 НДС 12% : 109.22 Наличными: 1028.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 171 31.10.2024 20:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73096 ФПД: 142056778919049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T202311&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73096&fm=142056778919049&tin=02508201610067®Number=0000000000091644&sum=102800 [20:23:11]StoreToDocumentArchive [20:23:11]shift 557 fd 73096 [20:23:11]save to /storage/0557/doc_00073096 [20:23:11]save last doc name /storage/0557/doc_00073096 to /storage/kkm_last_doc_name [20:23:11]save OK [20:23:11]Clear old archive folders... [20:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:23:11]tlvbuf is 018009A0 [20:23:11]SAM_PROTO_ClearQueue [20:23:11]wFMCommunicate request_size=4 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 09 00 00 [20:23:11]Write to MH i2c: E2 08 00 BC 04 80 09 00 00 00 00 00 00 32 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [20:23:11]RAPDU: 90 00 [20:23:11]wFMCommunicate OK [20:23:11]SAM_PROTO_ClearQueue done [20:23:11]KKMCreateOFDPacket [20:23:11]OFDProtocolAddRootSTLVToBuf [20:23:11]FM_MakeSignedData [20:23:11]FM_MakeSignedData [20:23:11]SAM_PROTO_SignData [20:23:11]wFMCommunicate request_size=4 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 0D 01 02 [20:23:11]Write to MH i2c: E2 08 00 BD 04 80 0D 01 02 00 00 00 00 3A [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [20:23:11]RAPDU: 90 00 [20:23:11]wFMCommunicate OK [20:23:11]wFMCommunicate request_size=255 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 48 67 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 91 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 91 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 2A 00 00 00 00 07 04 06 00 90 91 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2F E7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1D 01 00 35 04 06 00 81 33 [20:23:11]Write to MH i2c: E2 02 01 BE 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 48 67 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 91 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 91 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 2A 00 00 00 00 07 04 06 00 90 91 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2F E7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1D 01 00 35 04 06 00 81 33 00 00 AC [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [20:23:11]RAPDU: 90 00 [20:23:11]wFMCommunicate OK [20:23:11]wFMCommunicate request_size=9 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 0D 02 02 04 2B D8 6C 89 [20:23:11]Write to MH i2c: E2 0C 00 BF 04 80 0D 02 02 04 00 2B D8 6C 89 00 00 3D [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [20:23:11]RAPDU: 90 00 [20:23:11]wFMCommunicate OK [20:23:11]wFMCommunicate request_size=4 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 0D 03 02 [20:23:11]Write to MH i2c: E2 08 00 C0 04 80 0D 03 02 00 00 00 00 3F [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:12]Read from MH i2c: E2 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 0B 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 0B 00 C0 04 00 DC 22 2C C4 91 A7 B6 52 90 00 6E [20:23:12]RAPDU: DC 22 2C C4 91 A7 B6 52 90 00 [20:23:12]wFMCommunicate OK [20:23:12]SAM_PROTO_SignData done [20:23:12]FM_MakeSignedData done [20:23:12]CreateOFDProtocolMessage [20:23:12]wFMCommunicate request_size=4 [20:23:12]MH_SAM_APDU [20:23:12]CAPDU: 80 11 00 00 [20:23:12]Write to MH i2c: E2 08 00 C1 04 80 11 00 00 00 00 00 00 3F [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:12]Read from MH i2c: E2 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 17 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 17 00 C1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 93 [20:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:23:12]wFMCommunicate OK [20:23:12]CreateOFDProtocolMessage done [20:23:12]OFDSenderStorePacket 73096 [20:23:12]StoreOFDPacket docnum=73096 [20:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 B4 46 06 01 70 E3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 48 67 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 91 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 91 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 2A 00 00 00 00 07 04 06 00 90 91 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2F E7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1D 01 00 35 04 06 00 81 33 2B D8 6C 89 DC 22 2C C4 91 A7 B6 52 [20:23:12]CheckFolder [20:23:12]dirname=/storage/ofd_packets [20:23:12]CheckFolder done [20:23:12]ProducePacketName [20:23:12]name=ofd_packets/00073096 [20:23:12]NVStorageSaveData ofd_packets/00073096 [20:23:12]File name is /storage/ofd_packets/00073096 [20:23:12]Write 300 bytes [20:23:12]NVStorageSaveData done [20:23:12]OFDSenderStorePacket done [20:23:12]KKMCreateOFDPacket done [20:23:12]NVStorageSaveData kkm_last_timestamp [20:23:12]File name is /storage/kkm_last_timestamp [20:23:12]Write 4 bytes [20:23:12]NVStorageSaveData done [20:23:12]ExternCall_PrintAddStr [20:23:12]wPrintStart [20:23:12]Write to MH i2c: 01 00 00 C2 04 C6 [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 07 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 07 00 C2 04 00 00 00 00 00 FF 0F DB [20:23:12]RasterBufferAndPrint [20:23:12]line Счет N : (1)952695 [20:23:12]line ИНН: 02508201610067 [20:23:12]line Контрольно-Кассовый Чек [20:23:12]line ПРОДАЖА [20:23:12]line ТРК (МРК, ГНК) : 71 [20:23:12]line Товар: 2711190000 [20:23:12]line ГАЗ-К-3 [20:23:12]line 26.440 * 38.90 [20:23:12]line = 1028.52 [20:23:12]line НДС 12% НСП 1% [20:23:12]line > о реализуемом товаре [20:23:12]line ОКРУГЛЕНИЕ: -0.52 [20:23:12]line ИТОГО: 1028.00 [20:23:12]line Внесено: 1200.00 [20:23:12]line СДАЧА: 172.00 [20:23:12]line НСП 1% : 9.10 [20:23:12]line НДС 12% : 109.22 [20:23:12]line Наличными: 1028.00 [20:23:12]line Безнал.: 0.00 [20:23:12]line Место: АЗС № 113 "Партнер Нефть" [20:23:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:23:12]line СНО: Общий режим [20:23:12]line Чек 171 31.10.2024 20:23 [20:23:12]line Смена: 557 ФФД: 1.0 [20:23:12]line ЗНМ: 0300000087 [20:23:12]line РНМ: 0000000000091644 [20:23:12]line Версия ККМ: 001 [20:23:12]line ФМ: 0000000000874662 [20:23:12]line ФД: 73096 [20:23:12]line ФПД: 142056778919049 [20:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T202311&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73096&fm=142056778919049&tin=02508201610067®Number=0000000000091644&sum=102800 [20:23:12]written 0, free lines is 4095 [20:23:12]OFD Sender: Processing packet 73096 [packets to send 282, broken 281] [20:23:12]ProducePacketName [20:23:12]name=ofd_packets/00073096 [20:23:12]OFD Sender: To server: pG, [20:23:12]CommunicateWithHost lk.salyk.kg:30040 [20:23:12]ConnectInit lk.salyk.kg [20:23:12]Write to MH i2c: 01 00 00 ED 04 F1 [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 07 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 07 00 ED 04 00 00 00 00 00 D4 0C D8 [20:23:12]RasterBufferAndPrint [20:23:12]line [20:23:12]line [20:23:12]line [20:23:12]line [20:23:12]line [20:23:12]written 0, free lines is 3292 [20:23:12]MH_Cut [20:23:12]Write to MH i2c: D1 01 00 F4 04 01 CA [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: D1 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: D1 01 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: D1 01 00 F4 04 00 C9 [20:23:12]Write to MH i2c: 01 00 00 F5 04 F9 [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:13]Connected sock=11 [20:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 B4 46 06 01 70 E3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 48 67 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 91 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 91 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 2A 00 00 00 00 07 04 06 00 90 91 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2F E7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1D 01 00 35 04 06 00 81 33 2B D8 6C 89 DC 22 2C C4 91 A7 B6 52 [20:23:13]*** Cut start [20:23:13]*** Partial cut [20:23:13]*** CUTSNS_PIN = 1 [20:23:13]*** CUTSNS_PIN = 0 [20:23:13]*** Brake cut motor [20:23:13]Read from MH i2c: 01 [20:23:13]MH_I2C_Read... [20:23:13]*** Stop cut motor [20:23:13]*** Cut end [20:23:13]Read from MH i2c: 01 07 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: 01 07 00 F5 04 00 00 00 00 00 FF 0F 0E [20:23:13]process_action close_receipt done [20:23:13]requested_data is exist [20:23:13]produce_requested_data [20:23:13]requested_item fm.sn is exist - process it [20:23:13]wFMCommunicate request_size=4 [20:23:13]MH_SAM_APDU [20:23:13]CAPDU: 80 11 00 00 [20:23:13]Write to MH i2c: E2 08 00 F6 04 80 11 00 00 00 00 00 00 74 [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:14]Read from MH i2c: E2 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 17 00 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 17 00 F6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C8 [20:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:23:14]wFMCommunicate OK [20:23:14]requested_item fd.num is exist - process it [20:23:14]SAM_PROTO_GetFieldsCounters [20:23:14]wFMCommunicate request_size=4 [20:23:14]MH_SAM_APDU [20:23:14]CAPDU: 80 13 00 00 [20:23:14]Write to MH i2c: E2 08 00 F7 04 80 13 00 00 00 00 00 00 77 [20:23:14]Write i2c OK [20:23:14]MH_I2C_Read... [20:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:14]Read from MH i2c: E2 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 62 00 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 62 00 F7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 88 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [20:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 88 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:14]wFMCommunicate OK [20:23:14]SAM_PROTO_GetFieldsCounters done [20:23:14]requested_item shift.num is exist - process it [20:23:14]requested_item shift.opened is exist - process it [20:23:14]req_shift_opened [20:23:14]FM_GetShiftState [20:23:14]SAM_PROTO_GetShiftState [20:23:14]wFMCommunicate request_size=4 [20:23:14]MH_SAM_APDU [20:23:14]CAPDU: 80 13 01 00 [20:23:14]Write to MH i2c: E2 08 00 F8 04 80 13 01 00 00 00 00 00 79 [20:23:14]Write i2c OK [20:23:14]MH_I2C_Read... [20:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:14]Read from MH i2c: E2 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 0E 00 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: E2 0E 00 F8 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 22 [20:23:14]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [20:23:14]wFMCommunicate OK [20:23:14]SAM_PROTO_GetShiftState done [20:23:14]FM_GetShiftState done [20:23:14]req_shift_opened done [20:23:14]requested_item shift.open_date is exist - process it [20:23:14]req_shift_open_date [20:23:14]req_shift_open_date done [20:23:14]produce_requested_data done [20:23:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73096,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [20:23:14]process_action_free close_receipt [20:23:14]json_value_free [20:23:14]json_value_free done [20:23:14]process_json_proto returns [20:23:14]Send response to host [20:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73096,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [20:23:14]free response buf [20:23:14]execute_script done [20:23:14]execute_script returns [20:23:14]free content buf [20:23:14]Sock 10.Close socket [20:23:14]Sock 10.Thread stoped [20:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BC 92 47 00 A0 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1D 01 00 F4 03 04 00 E5 91 23 67 B6 04 01 00 00 69 2A 6F 70 3A 61 E7 14 [20:23:14]CommunicateWithHost err = 0 [20:23:14]CheckOFDResponse [20:23:14]1017 (14) - 77093643461234 [20:23:14]1041 (16) - 0000000000874662 [20:23:14]1040 (4) - 73096 [20:23:14]1012 (4) - 31.10.2024 14:19 [20:23:14]1206 (1) - 0 [20:23:14]OFD Sender: Remove packet 73096 [20:23:14]ProducePacketName [20:23:14]name=ofd_packets/00073096 [20:23:14]NVStorageDeleteData [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:32]ConnectInit Can't connect to host [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:43]recv_with_timeout no data received [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:53]recv_with_timeout no data received [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:20]recv_with_timeout no data received [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]recv_with_timeout no data received [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:20]recv_with_timeout no data received [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:46]recv_with_timeout no data received [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:05]recv_with_timeout no data received [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:22]recv_with_timeout no data received [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:36]recv_with_timeout no data received [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:46]recv_with_timeout no data received [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:02]recv_with_timeout no data received [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:08]recv_with_timeout no data received [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:01]recv_with_timeout no data received [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:54]recv_with_timeout no data received [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]recv_with_timeout no data received [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:19]accept exits with 9 [20:40:19]New connection [20:40:19]New thread 3067350372 created [20:40:19]Thread 3067493732 joined [20:40:19]Waiting for new connection... [20:40:19] Sock 9.Parse request [20:40:19]Sock 9.Check first char [20:40:19]Sock 9.First char is OK [20:40:19]request: POST /json_proto HTTP/1.0 [20:40:19]Method: POST [20:40:19]URL: /json_proto [20:40:19]Method is POST - this is cgi request [20:40:19]url: /json_proto [20:40:19]query_string will be loaded in cgi processing [20:40:19]execute_cgi json_proto POST (null) [20:40:19]execute_cgi path=json_proto method=POST [20:40:19]POST find Content-Length [20:40:19]Host: 172.17.43.195:8080 [20:40:19]Content-Length: 819 [20:40:19]Content-Type: application/json [20:40:19] [20:40:19]POST finish read [20:40:19]Found Content-Length = 819 [20:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.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: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:19]execute_script... [20:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.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: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:19]POST & json_proto [20:40:19]process_json_proto [20:40:19]json parsed OK: [20:40:19]protocol is kg_v1.0 [20:40:19]action value=close_receipt [20:40:19]process_action close_receipt [20:40:19]cmd_close_receipt [20:40:19]MH_GetDate [20:40:19]Write to MH i2c: F0 00 00 F9 04 EC [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: F0 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: F0 09 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: F0 09 00 F9 04 00 34 EB 23 67 74 2C AD 66 51 [20:40:19]GetLastDocTimeStamp 1730406191 [20:40:19]current date 1730407220 [20:40:19]FM_GetShiftState [20:40:19]SAM_PROTO_GetShiftState [20:40:19]wFMCommunicate request_size=4 [20:40:19]MH_SAM_APDU [20:40:19]CAPDU: 80 13 01 00 [20:40:19]Write to MH i2c: E2 08 00 FA 04 80 13 01 00 00 00 00 00 7B [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:19]Read from MH i2c: E2 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 0E 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 0E 00 FA 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 24 [20:40:19]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [20:40:19]wFMCommunicate OK [20:40:19]SAM_PROTO_GetShiftState done [20:40:19]FM_GetShiftState done [20:40:19]opened in 1730333258 [20:40:19]opened+sec_in_day 1730419658 [20:40:19]quantity*price = 300064 [20:40:19]sum+1 = 300066 [20:40:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 173 31.10.2024 21:01 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73098 ФПД: 192202096775537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210145&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73098&fm=192202096775537&tin=02508201610067®Number=0000000000091644&sum=300000 [21:01:46]StoreToDocumentArchive [21:01:46]shift 557 fd 73098 [21:01:46]save to /storage/0557/doc_00073098 [21:01:46]save last doc name /storage/0557/doc_00073098 to /storage/kkm_last_doc_name [21:01:46]save OK [21:01:46]Clear old archive folders... [21:01:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:01:46]tlvbuf is 009EDA00 [21:01:46]SAM_PROTO_ClearQueue [21:01:46]wFMCommunicate request_size=4 [21:01:46]MH_SAM_APDU [21:01:46]CAPDU: 80 09 00 00 [21:01:46]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:46]Read from MH i2c: E2 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 03 00 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [21:01:46]RAPDU: 90 00 [21:01:46]wFMCommunicate OK [21:01:46]SAM_PROTO_ClearQueue done [21:01:46]KKMCreateOFDPacket [21:01:46]OFDProtocolAddRootSTLVToBuf [21:01:46]FM_MakeSignedData [21:01:46]FM_MakeSignedData [21:01:46]SAM_PROTO_SignData [21:01:46]wFMCommunicate request_size=4 [21:01:46]MH_SAM_APDU [21:01:46]CAPDU: 80 0D 01 02 [21:01:46]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:46]Read from MH i2c: E2 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 03 00 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [21:01:46]RAPDU: 90 00 [21:01:46]wFMCommunicate OK [21:01:46]wFMCommunicate request_size=255 [21:01:46]MH_SAM_APDU [21:01:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 39 F0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1D 01 00 35 04 06 00 [21:01:46]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 39 F0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1D 01 00 35 04 06 00 00 00 80 [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:46]Read from MH i2c: E2 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 03 00 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [21:01:46]RAPDU: 90 00 [21:01:46]wFMCommunicate OK [21:01:46]wFMCommunicate request_size=11 [21:01:46]MH_SAM_APDU [21:01:46]CAPDU: 80 0D 02 02 06 AE CE 89 B4 11 71 [21:01:46]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 AE CE 89 B4 11 71 00 00 EF [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:46]Read from MH i2c: E2 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 03 00 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [21:01:46]RAPDU: 90 00 [21:01:46]wFMCommunicate OK [21:01:46]wFMCommunicate request_size=4 [21:01:46]MH_SAM_APDU [21:01:46]CAPDU: 80 0D 03 02 [21:01:46]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:46]Read from MH i2c: E2 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 0B 00 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 0B 00 2F 00 00 AC E8 E9 92 9F 47 30 A8 90 00 78 [21:01:46]RAPDU: AC E8 E9 92 9F 47 30 A8 90 00 [21:01:46]wFMCommunicate OK [21:01:46]SAM_PROTO_SignData done [21:01:46]FM_MakeSignedData done [21:01:46]CreateOFDProtocolMessage [21:01:46]wFMCommunicate request_size=4 [21:01:46]MH_SAM_APDU [21:01:46]CAPDU: 80 11 00 00 [21:01:46]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:46]Read from MH i2c: E2 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 17 00 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [21:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:01:46]wFMCommunicate OK [21:01:46]CreateOFDProtocolMessage done [21:01:46]OFDSenderStorePacket 73098 [21:01:46]StoreOFDPacket docnum=73098 [21:01:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 82 A2 08 01 17 BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 39 F0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1D 01 00 35 04 06 00 AE CE 89 B4 11 71 AC E8 E9 92 9F 47 30 A8 [21:01:46]CheckFolder [21:01:46]dirname=/storage/ofd_packets [21:01:46]CheckFolder done [21:01:46]ProducePacketName [21:01:46]name=ofd_packets/00073098 [21:01:46]NVStorageSaveData ofd_packets/00073098 [21:01:46]File name is /storage/ofd_packets/00073098 [21:01:46]Write 302 bytes [21:01:46]NVStorageSaveData done [21:01:46]OFDSenderStorePacket done [21:01:46]KKMCreateOFDPacket done [21:01:46]NVStorageSaveData kkm_last_timestamp [21:01:46]File name is /storage/kkm_last_timestamp [21:01:46]Write 4 bytes [21:01:46]NVStorageSaveData done [21:01:46]ExternCall_PrintAddStr [21:01:46]wPrintStart [21:01:46]Write to MH i2c: 01 00 00 31 00 31 [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: 01 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: 01 07 00 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [21:01:46]RasterBufferAndPrint [21:01:46]line Счет N : (1)952697 [21:01:46]line ИНН: 02508201610067 [21:01:46]line Контрольно-Кассовый Чек [21:01:46]line ПРОДАЖА [21:01:46]line ТРК (МРК, ГНК) : 43 [21:01:46]line Товар: 2710194210 [21:01:46]line ДТ(л)-К-5 [21:01:46]line 39.380 * 76.20 [21:01:46]line = 3000.76 [21:01:46]line НДС 12% НСП 1% [21:01:46]line > о реализуемом товаре [21:01:46]line ОКРУГЛЕНИЕ: -0.76 [21:01:46]line ИТОГО: 3000.00 [21:01:46]line Внесено: 3000.00 [21:01:46]line СДАЧА: 0.00 [21:01:46]line НСП 1% : 26.55 [21:01:46]line НДС 12% : 318.66 [21:01:46]line Наличными: 3000.00 [21:01:46]line Безнал.: 0.00 [21:01:46]line Место: АЗС № 113 "Партнер Нефть" [21:01:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:01:46]line СНО: Общий режим [21:01:46]line Чек 173 31.10.2024 21:01 [21:01:46]line Смена: 557 ФФД: 1.0 [21:01:46]line ЗНМ: 0300000087 [21:01:46]line РНМ: 0000000000091644 [21:01:46]line Версия ККМ: 001 [21:01:46]line ФМ: 0000000000874662 [21:01:46]line ФД: 73098 [21:01:46]line ФПД: 192202096775537 [21:01:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210145&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73098&fm=192202096775537&tin=02508201610067®Number=0000000000091644&sum=300000 [21:01:46]written 0, free lines is 4095 [21:01:46]OFD Sender: Processing packet 73098 [packets to send 282, broken 281] [21:01:47]ProducePacketName [21:01:47]name=ofd_packets/00073098 [21:01:47]OFD Sender: To server: pG, [21:01:47]CommunicateWithHost lk.salyk.kg:30040 [21:01:47]ConnectInit lk.salyk.kg [21:01:47]Write to MH i2c: 01 00 00 5C 00 5C [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: 01 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: 01 07 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E7 0C 56 [21:01:47]RasterBufferAndPrint [21:01:47]line [21:01:47]line [21:01:47]line [21:01:47]line [21:01:47]line [21:01:47]written 0, free lines is 3328 [21:01:47]MH_Cut [21:01:47]Write to MH i2c: D1 01 00 63 00 01 35 [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: D1 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: D1 01 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: D1 01 00 63 00 00 34 [21:01:47]Write to MH i2c: 01 00 00 64 00 64 [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:48]*** Cut start [21:01:48]*** Partial cut [21:01:48]*** CUTSNS_PIN = 1 [21:01:48]*** CUTSNS_PIN = 0 [21:01:48]*** Brake cut motor [21:01:48]Read from MH i2c: 01 [21:01:48]MH_I2C_Read... [21:01:48]*** Stop cut motor [21:01:48]*** Cut end [21:01:48]Read from MH i2c: 01 07 00 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [21:01:48]process_action close_receipt done [21:01:48]requested_data is exist [21:01:48]produce_requested_data [21:01:48]requested_item fm.sn is exist - process it [21:01:48]wFMCommunicate request_size=4 [21:01:48]MH_SAM_APDU [21:01:48]CAPDU: 80 11 00 00 [21:01:48]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [21:01:48]Write i2c OK [21:01:48]MH_I2C_Read... [21:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:48]Read from MH i2c: E2 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: E2 17 00 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [21:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:01:48]wFMCommunicate OK [21:01:48]requested_item fd.num is exist - process it [21:01:48]SAM_PROTO_GetFieldsCounters [21:01:48]wFMCommunicate request_size=4 [21:01:48]MH_SAM_APDU [21:01:48]CAPDU: 80 13 00 00 [21:01:48]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [21:01:48]Write i2c OK [21:01:48]MH_I2C_Read... [21:01:49]recv_with_timeout no data received [21:01:49]Read from MH i2c: E2 [21:01:49]MH_I2C_Read... [21:01:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:49]Read from MH i2c: E2 62 00 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [21:01: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:49]wFMCommunicate OK [21:01:49]SAM_PROTO_GetFieldsCounters done [21:01:49]requested_item shift.num is exist - process it [21:01:49]requested_item shift.opened is exist - process it [21:01:49]req_shift_opened [21:01:49]FM_GetShiftState [21:01:49]SAM_PROTO_GetShiftState [21:01:49]wFMCommunicate request_size=4 [21:01:49]MH_SAM_APDU [21:01:49]CAPDU: 80 13 01 00 [21:01:49]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [21:01:49]Write i2c OK [21:01:49]MH_I2C_Read... [21:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:49]Read from MH i2c: E2 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 0E 00 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8D [21:01:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:01:49]wFMCommunicate OK [21:01:49]SAM_PROTO_GetShiftState done [21:01:49]FM_GetShiftState done [21:01:49]req_shift_opened done [21:01:49]requested_item shift.open_date is exist - process it [21:01:49]req_shift_open_date [21:01:49]req_shift_open_date done [21:01:49]produce_requested_data done [21:01:49]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73098,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:01:49]process_action_free close_receipt [21:01:49]json_value_free [21:01:49]json_value_free done [21:01:49]process_json_proto returns [21:01:49]Send response to host [21:01:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73098,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:01:49]free response buf [21:01:49]execute_script done [21:01:49]execute_script returns [21:01:49]free content buf [21:01:49]Sock 9.Close socket [21:01:49]Sock 9.Thread stoped [21:01:54]Connected sock=11 [21:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 82 A2 08 01 17 BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 39 F0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1D 01 00 35 04 06 00 AE CE 89 B4 11 71 AC E8 E9 92 9F 47 30 A8 [21:01:59]recv_with_timeout no data received [21:02:00]recv_with_timeout no data received [21:02:00]CommunicateWithHost answer receiving error [21:02:00]CommunicateWithHost err = -3 [21:02:00]OFD Sender: Server communicate error [21:02:05]OFD Sender: Processing packet 73098 [packets to send 282, broken 281] [21:02:05]ProducePacketName [21:02:05]name=ofd_packets/00073098 [21:02:05]OFD Sender: To server: pG, [21:02:05]CommunicateWithHost lk.salyk.kg:30040 [21:02:05]ConnectInit lk.salyk.kg [21:02:08]Connected sock=10 [21: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 34 36 36 32 10 01 00 00 82 A2 08 01 17 BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 39 F0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1D 01 00 35 04 06 00 AE CE 89 B4 11 71 AC E8 E9 92 9F 47 30 A8 [21:02:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7E B4 47 00 9F F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1D 01 00 F4 03 04 00 03 9B 23 67 B6 04 01 00 00 E7 A7 04 55 C2 BC A1 BC [21:02:10]CommunicateWithHost err = 0 [21:02:10]CheckOFDResponse [21:02:10]1017 (14) - 77093643461234 [21:02:10]1041 (16) - 0000000000874662 [21:02:10]1040 (4) - 73098 [21:02:10]1012 (4) - 31.10.2024 14:58 [21:02:10]1206 (1) - 0 [21:02:10]OFD Sender: Remove packet 73098 [21:02:10]ProducePacketName [21:02:10]name=ofd_packets/00073098 [21:02:10]NVStorageDeleteData [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:22]recv_with_timeout no data received [21:02:26]OFD Sender: No OFD packet to send [21:02:29]accept exits with 8 [21:02:29]New connection [21:02:29]New thread 3066928484 created [21:02:29]Thread 3067071844 joined [21:02:29]Waiting for new connection... [21:02:29] Sock 8.Parse request [21:02:29]Sock 8.Check first char [21:02:29]Sock 8.First char is OK [21:02:29]request: POST /json_proto HTTP/1.0 [21:02:29]Method: POST [21:02:29]URL: /json_proto [21:02:29]Method is POST - this is cgi request [21:02:29]url: /json_proto [21:02:29]query_string will be loaded in cgi processing [21:02:29]execute_cgi json_proto POST (null) [21:02:29]execute_cgi path=json_proto method=POST [21:02:29]POST find Content-Length [21:02:29]Host: 172.17.43.195:8080 [21:02:29]Content-Length: 677 [21:02:29]Content-Type: application/json [21:02:29] [21:02:29]POST finish read [21:02:29]Found Content-Length = 677 [21:02:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:29]execute_script... [21:02: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)952698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:29]POST & json_proto [21:02:29]process_json_proto [21:02:29]json parsed OK: [21:02:29]protocol is kg_v1.0 [21:02:29]action value=close_receipt [21:02:29]process_action close_receipt [21:02:29]cmd_close_receipt [21:02:29]MH_GetDate [21:02:29]Write to MH i2c: F0 00 00 68 00 57 [21:02:29]Write i2c OK [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: F0 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: F0 09 00 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: F0 09 00 68 00 00 66 F0 23 67 74 2C AD 66 F3 [21:02:29]GetLastDocTimeStamp 1730408505 [21:02:29]current date 1730408550 [21:02:29]FM_GetShiftState [21:02:29]SAM_PROTO_GetShiftState [21:02:29]wFMCommunicate request_size=4 [21:02:29]MH_SAM_APDU [21:02:29]CAPDU: 80 13 01 00 [21:02:29]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [21:02:29]Write i2c OK [21:02:29]MH_I2C_Read... [21:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:29]Read from MH i2c: E2 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 0E 00 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8F [21:02:29]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:02:29]wFMCommunicate OK [21:02:29]SAM_PROTO_GetShiftState done [21:02:29]FM_GetShiftState done [21:02:29]opened in 1730333258 [21:02:29]opened+sec_in_day 1730419658 [21:02:29]quantity*price = 50041 [21:02:29]sum+1 = 50042 [21:02:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 174 31.10.2024 21:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73099 ФПД: 169951374585912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210230&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73099&fm=169951374585912&tin=02508201610067®Number=0000000000091644&sum=50000 [21:02:30]StoreToDocumentArchive [21:02:30]shift 557 fd 73099 [21:02:30]save to /storage/0557/doc_00073099 [21:02:30]save last doc name /storage/0557/doc_00073099 to /storage/kkm_last_doc_name [21:02:30]save OK [21:02:30]Clear old archive folders... [21:02:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:30]tlvbuf is 0098BEE0 [21:02:30]SAM_PROTO_ClearQueue [21:02:30]wFMCommunicate request_size=4 [21:02:30]MH_SAM_APDU [21:02:30]CAPDU: 80 09 00 00 [21:02:30]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:30]Read from MH i2c: E2 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [21:02:30]RAPDU: 90 00 [21:02:30]wFMCommunicate OK [21:02:30]SAM_PROTO_ClearQueue done [21:02:30]KKMCreateOFDPacket [21:02:30]OFDProtocolAddRootSTLVToBuf [21:02:30]FM_MakeSignedData [21:02:30]FM_MakeSignedData [21:02:30]SAM_PROTO_SignData [21:02:30]wFMCommunicate request_size=4 [21:02:30]MH_SAM_APDU [21:02:30]CAPDU: 80 0D 01 02 [21:02:30]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:30]Read from MH i2c: E2 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [21:02:30]RAPDU: 90 00 [21:02:30]wFMCommunicate OK [21:02:30]wFMCommunicate request_size=255 [21:02:30]MH_SAM_APDU [21:02:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 66 F0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1D 01 00 35 04 06 00 9A [21:02:30]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 66 F0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1D 01 00 35 04 06 00 9A 00 00 7F [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:31]Read from MH i2c: E2 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: E2 03 00 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [21:02:31]RAPDU: 90 00 [21:02:31]wFMCommunicate OK [21:02:31]wFMCommunicate request_size=10 [21:02:31]MH_SAM_APDU [21:02:31]CAPDU: 80 0D 02 02 05 91 E3 4F B0 38 [21:02:31]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 91 E3 4F B0 38 00 00 A8 [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:31]OFD Sender: No OFD packet to send [21:02:31]Read from MH i2c: E2 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: E2 03 00 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [21:02:31]RAPDU: 90 00 [21:02:31]wFMCommunicate OK [21:02:31]wFMCommunicate request_size=4 [21:02:31]MH_SAM_APDU [21:02:31]CAPDU: 80 0D 03 02 [21:02:31]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:31]Read from MH i2c: E2 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: E2 0B 00 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: E2 0B 00 7A 00 00 6B 6D 3F 9B 19 F5 38 E9 90 00 D7 [21:02:31]RAPDU: 6B 6D 3F 9B 19 F5 38 E9 90 00 [21:02:31]wFMCommunicate OK [21:02:31]SAM_PROTO_SignData done [21:02:31]FM_MakeSignedData done [21:02:31]CreateOFDProtocolMessage [21:02:31]wFMCommunicate request_size=4 [21:02:31]MH_SAM_APDU [21:02:31]CAPDU: 80 11 00 00 [21:02:31]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:31]Read from MH i2c: E2 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: E2 17 00 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 49 [21:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:02:31]wFMCommunicate OK [21:02:31]CreateOFDProtocolMessage done [21:02:31]OFDSenderStorePacket 73099 [21:02:31]StoreOFDPacket docnum=73099 [21:02:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E DE 07 01 2F 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 66 F0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1D 01 00 35 04 06 00 9A 91 E3 4F B0 38 6B 6D 3F 9B 19 F5 38 E9 [21:02:31]CheckFolder [21:02:31]dirname=/storage/ofd_packets [21:02:31]CheckFolder done [21:02:31]ProducePacketName [21:02:31]name=ofd_packets/00073099 [21:02:31]NVStorageSaveData ofd_packets/00073099 [21:02:31]File name is /storage/ofd_packets/00073099 [21:02:31]Write 301 bytes [21:02:31]NVStorageSaveData done [21:02:31]OFDSenderStorePacket done [21:02:31]KKMCreateOFDPacket done [21:02:31]NVStorageSaveData kkm_last_timestamp [21:02:31]File name is /storage/kkm_last_timestamp [21:02:31]Write 4 bytes [21:02:31]NVStorageSaveData done [21:02:31]ExternCall_PrintAddStr [21:02:31]wPrintStart [21:02:31]Write to MH i2c: 01 00 00 7C 00 7C [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: 01 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: 01 07 00 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [21:02:31]RasterBufferAndPrint [21:02:31]line Счет N : (1)952698 [21:02:31]line ИНН: 02508201610067 [21:02:31]line Контрольно-Кассовый Чек [21:02:31]line ПРОДАЖА [21:02:31]line ТРК (МРК, ГНК) : 63 [21:02:31]line Товар: 2710124130 [21:02:31]line Аи-92-К-5 [21:02:31]line 7.480 * 66.90 [21:02:31]line = 500.41 [21:02:31]line НДС 12% НСП 1% [21:02:31]line > о реализуемом товаре [21:02:31]line ОКРУГЛЕНИЕ: -0.41 [21:02:31]line ИТОГО: 500.00 [21:02:31]line Внесено: 500.00 [21:02:31]line СДАЧА: 0.00 [21:02:31]line НСП 1% : 4.43 [21:02:31]line НДС 12% : 53.14 [21:02:31]line Наличными: 500.00 [21:02:31]line Безнал.: 0.00 [21:02:31]line Место: АЗС № 113 "Партнер Нефть" [21:02:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:02:31]line СНО: Общий режим [21:02:31]line Чек 174 31.10.2024 21:02 [21:02:31]line Смена: 557 ФФД: 1.0 [21:02:31]line ЗНМ: 0300000087 [21:02:31]line РНМ: 0000000000091644 [21:02:31]line Версия ККМ: 001 [21:02:31]line ФМ: 0000000000874662 [21:02:31]line ФД: 73099 [21:02:31]line ФПД: 169951374585912 [21:02:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210230&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73099&fm=169951374585912&tin=02508201610067®Number=0000000000091644&sum=50000 [21:02:31]written 0, free lines is 4095 [21:02:31]OFD Sender: Processing packet 73099 [packets to send 282, broken 281] [21:02:31]ProducePacketName [21:02:31]name=ofd_packets/00073099 [21:02:31]OFD Sender: To server: pG, [21:02:31]CommunicateWithHost lk.salyk.kg:30040 [21:02:31]ConnectInit lk.salyk.kg [21:02:31]Write to MH i2c: 01 00 00 A7 00 A7 [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: 01 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: 01 07 00 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 D3 0C 8D [21:02:31]RasterBufferAndPrint [21:02:31]line [21:02:31]line [21:02:31]line [21:02:31]line [21:02:31]line [21:02:31]written 0, free lines is 3297 [21:02:31]MH_Cut [21:02:31]Write to MH i2c: D1 01 00 AE 00 01 80 [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: D1 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: D1 01 00 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: D1 01 00 AE 00 00 7F [21:02:31]Write to MH i2c: 01 00 00 AF 00 AF [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:32]*** Cut start [21:02:32]*** Partial cut [21:02:32]*** CUTSNS_PIN = 1 [21:02:32]*** CUTSNS_PIN = 0 [21:02:32]Connected sock=9 [21:02:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8E DE 07 01 2F 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 66 F0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1D 01 00 35 04 06 00 9A 91 E3 4F B0 38 6B 6D 3F 9B 19 F5 38 E9 [21:02:32]*** Brake cut motor [21:02:33]Read from MH i2c: 01 [21:02:33]MH_I2C_Read... [21:02:33]*** Stop cut motor [21:02:33]*** Cut end [21:02:33]Read from MH i2c: 01 07 00 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [21:02:33]process_action close_receipt done [21:02:33]requested_data is exist [21:02:33]produce_requested_data [21:02:33]requested_item fm.sn is exist - process it [21:02:33]wFMCommunicate request_size=4 [21:02:33]MH_SAM_APDU [21:02:33]CAPDU: 80 11 00 00 [21:02:33]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [21:02:33]Write i2c OK [21:02:33]MH_I2C_Read... [21:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:33]Read from MH i2c: E2 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 17 00 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7E [21:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:02:33]wFMCommunicate OK [21:02:33]requested_item fd.num is exist - process it [21:02:33]SAM_PROTO_GetFieldsCounters [21:02:33]wFMCommunicate request_size=4 [21:02:33]MH_SAM_APDU [21:02:33]CAPDU: 80 13 00 00 [21:02:33]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [21:02:33]Write i2c OK [21:02:33]MH_I2C_Read... [21:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:33]Read from MH i2c: E2 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 62 00 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [21:02:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:33]wFMCommunicate OK [21:02:33]SAM_PROTO_GetFieldsCounters done [21:02:33]requested_item shift.num is exist - process it [21:02:33]requested_item shift.opened is exist - process it [21:02:33]req_shift_opened [21:02:33]FM_GetShiftState [21:02:33]SAM_PROTO_GetShiftState [21:02:33]wFMCommunicate request_size=4 [21:02:33]MH_SAM_APDU [21:02:33]CAPDU: 80 13 01 00 [21:02:33]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [21:02:33]Write i2c OK [21:02:33]MH_I2C_Read... [21:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:33]Read from MH i2c: E2 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 0E 00 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D8 [21:02:33]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:02:33]wFMCommunicate OK [21:02:33]SAM_PROTO_GetShiftState done [21:02:33]FM_GetShiftState done [21:02:33]req_shift_opened done [21:02:33]requested_item shift.open_date is exist - process it [21:02:33]req_shift_open_date [21:02:33]req_shift_open_date done [21:02:33]produce_requested_data done [21:02:33]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73099,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:02:33]process_action_free close_receipt [21:02:33]json_value_free [21:02:33]json_value_free done [21:02:33]process_json_proto returns [21:02:33]Send response to host [21:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73099,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:02:33]free response buf [21:02:33]execute_script done [21:02:33]execute_script returns [21:02:33]free content buf [21:02:33]Sock 8.Close socket [21:02:33]Sock 8.Thread stoped [21:02:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 5F 17 47 00 EA 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1D 01 00 F4 03 04 00 1D 9B 23 67 B6 04 01 00 00 48 7D 15 63 1D 16 E9 1B [21:02:34]CommunicateWithHost err = 0 [21:02:34]CheckOFDResponse [21:02:34]1017 (14) - 77093643461234 [21:02:34]1041 (16) - 0000000000874662 [21:02:34]1040 (4) - 73099 [21:02:34]1012 (4) - 31.10.2024 14:58 [21:02:34]1206 (1) - 0 [21:02:34]OFD Sender: Remove packet 73099 [21:02:34]ProducePacketName [21:02:34]name=ofd_packets/00073099 [21:02:34]NVStorageDeleteData [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:41]recv_with_timeout no data received [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:02:58]recv_with_timeout no data received [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:18]recv_with_timeout no data received [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:33]recv_with_timeout no data received [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:12]recv_with_timeout no data received [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:04:55]recv_with_timeout no data received [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:17]recv_with_timeout no data received [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:05:59]recv_with_timeout no data received [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]recv_with_timeout no data received [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:28]recv_with_timeout no data received [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:26]recv_with_timeout no data received [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:05]ConnectInit Can't connect to host [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:27]accept exits with 10 [21:14:27]New connection [21:14:27]New thread 3067071844 created [21:14:27]Thread 3066928484 joined [21:14:27]Waiting for new connection... [21:14:27] Sock 10.Parse request [21:14:27]Sock 10.Check first char [21:14:27]Sock 10.First char is OK [21:14:27]request: POST /json_proto HTTP/1.0 [21:14:27]Method: POST [21:14:27]URL: /json_proto [21:14:27]Method is POST - this is cgi request [21:14:27]url: /json_proto [21:14:27]query_string will be loaded in cgi processing [21:14:27]execute_cgi json_proto POST (null) [21:14:27]execute_cgi path=json_proto method=POST [21:14:27]POST find Content-Length [21:14:27]Host: 172.17.43.195:8080 [21:14:27]Content-Length: 620 [21:14:27]Content-Type: application/json [21:14:27] [21:14:27]POST finish read [21:14:27]Found Content-Length = 620 [21:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:27]execute_script... [21:14:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:27]POST & json_proto [21:14:27]process_json_proto [21:14:27]json parsed OK: [21:14:27]protocol is kg_v1.0 [21:14:27]action value=close_receipt [21:14:27]process_action close_receipt [21:14:27]cmd_close_receipt [21:14:27]MH_GetDate [21:14:27]Write to MH i2c: F0 00 00 B3 00 A2 [21:14:27]Write i2c OK [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: F0 [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: F0 09 00 [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: F0 09 00 B3 00 00 33 F3 23 67 74 2C AD 66 0E [21:14:27]GetLastDocTimeStamp 1730408550 [21:14:27]current date 1730409267 [21:14:27]FM_GetShiftState [21:14:27]SAM_PROTO_GetShiftState [21:14:27]wFMCommunicate request_size=4 [21:14:27]MH_SAM_APDU [21:14:27]CAPDU: 80 13 01 00 [21:14:27]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [21:14:27]Write i2c OK [21:14:27]MH_I2C_Read... [21:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:27]Read from MH i2c: E2 [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: E2 0E 00 [21:14:27]MH_I2C_Read... [21:14:27]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 DA [21:14:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:14:27]wFMCommunicate OK [21:14:27]SAM_PROTO_GetShiftState done [21:14:27]FM_GetShiftState done [21:14:27]opened in 1730333258 [21:14:27]opened+sec_in_day 1730419658 [21:14:27]quantity*price = 50000 [21:14:27]sum+1 = 50001 [21:14:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 175 31.10.2024 21:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73100 ФПД: 46898268227180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T211428&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73100&fm=46898268227180&tin=02508201610067®Number=0000000000091644&sum=50000 [21:14:28]StoreToDocumentArchive [21:14:28]shift 557 fd 73100 [21:14:28]save to /storage/0557/doc_00073100 [21:14:28]save last doc name /storage/0557/doc_00073100 to /storage/kkm_last_doc_name [21:14:28]save OK [21:14:28]Clear old archive folders... [21:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:14:28]tlvbuf is 0098FDE0 [21:14:28]SAM_PROTO_ClearQueue [21:14:28]wFMCommunicate request_size=4 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 09 00 00 [21:14:28]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:28]Read from MH i2c: E2 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [21:14:28]RAPDU: 90 00 [21:14:28]wFMCommunicate OK [21:14:28]SAM_PROTO_ClearQueue done [21:14:28]KKMCreateOFDPacket [21:14:28]OFDProtocolAddRootSTLVToBuf [21:14:28]FM_MakeSignedData [21:14:28]FM_MakeSignedData [21:14:28]SAM_PROTO_SignData [21:14:28]wFMCommunicate request_size=4 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 0D 01 02 [21:14:28]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:28]Read from MH i2c: E2 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [21:14:28]RAPDU: 90 00 [21:14:28]wFMCommunicate OK [21:14:28]wFMCommunicate request_size=253 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 34 F3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1D 01 00 35 04 06 00 2A A7 5A 9E 46 6C [21:14:28]Write to MH i2c: E2 00 01 C3 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 34 F3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1D 01 00 35 04 06 00 2A A7 5A 9E 46 6C 00 00 A4 [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:28]Read from MH i2c: E2 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [21:14:28]RAPDU: 90 00 [21:14:28]wFMCommunicate OK [21:14:28]wFMCommunicate request_size=4 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 0D 03 02 [21:14:28]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:28]Read from MH i2c: E2 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 0B 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 0B 00 C4 00 00 9E 87 5D 1E 2B 02 88 D4 90 00 69 [21:14:28]RAPDU: 9E 87 5D 1E 2B 02 88 D4 90 00 [21:14:28]wFMCommunicate OK [21:14:28]SAM_PROTO_SignData done [21:14:28]FM_MakeSignedData done [21:14:28]CreateOFDProtocolMessage [21:14:28]wFMCommunicate request_size=4 [21:14:28]MH_SAM_APDU [21:14:28]CAPDU: 80 11 00 00 [21:14:28]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:28]Read from MH i2c: E2 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 17 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 93 [21:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:14:28]wFMCommunicate OK [21:14:28]CreateOFDProtocolMessage done [21:14:28]OFDSenderStorePacket 73100 [21:14:28]StoreOFDPacket docnum=73100 [21:14:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 63 25 00 01 EF F0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 34 F3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1D 01 00 35 04 06 00 2A A7 5A 9E 46 6C 9E 87 5D 1E 2B 02 88 D4 [21:14:28]CheckFolder [21:14:28]dirname=/storage/ofd_packets [21:14:28]CheckFolder done [21:14:28]ProducePacketName [21:14:28]name=ofd_packets/00073100 [21:14:28]NVStorageSaveData ofd_packets/00073100 [21:14:28]File name is /storage/ofd_packets/00073100 [21:14:28]Write 294 bytes [21:14:28]NVStorageSaveData done [21:14:28]OFDSenderStorePacket done [21:14:28]KKMCreateOFDPacket done [21:14:28]NVStorageSaveData kkm_last_timestamp [21:14:28]File name is /storage/kkm_last_timestamp [21:14:28]Write 4 bytes [21:14:28]NVStorageSaveData done [21:14:28]ExternCall_PrintAddStr [21:14:28]wPrintStart [21:14:28]Write to MH i2c: 01 00 00 C6 00 C6 [21:14:28]Write i2c OK [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: 01 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: 01 07 00 [21:14:28]MH_I2C_Read... [21:14:28]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [21:14:28]RasterBufferAndPrint [21:14:28]line Счет N : (1)952699 [21:14:28]line ИНН: 02508201610067 [21:14:28]line Контрольно-Кассовый Чек [21:14:28]line ПРОДАЖА [21:14:28]line ТРК (МРК, ГНК) : 61 [21:14:28]line Товар: 50.50.0 [21:14:28]line Super 92 [21:14:28]line 7.310 * 68.40 [21:14:28]line = 500.00 [21:14:28]line НДС 12% НСП 1% [21:14:28]line > о реализуемом товаре [21:14:28]line ИТОГО: 500.00 [21:14:28]line НСП 1% : 4.42 [21:14:28]line НДС 12% : 53.10 [21:14:28]line Наличными: 500.00 [21:14:28]line Безнал.: 0.00 [21:14:28]line Место: АЗС № 113 "Партнер Нефть" [21:14:28]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:14:28]line СНО: Общий режим [21:14:28]line Чек 175 31.10.2024 21:14 [21:14:28]line Смена: 557 ФФД: 1.0 [21:14:28]line ЗНМ: 0300000087 [21:14:28]line РНМ: 0000000000091644 [21:14:28]line Версия ККМ: 001 [21:14:28]line ФМ: 0000000000874662 [21:14:28]line ФД: 73100 [21:14:28]line ФПД: 46898268227180 [21:14:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T211428&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73100&fm=46898268227180&tin=02508201610067®Number=0000000000091644&sum=50000 [21:14:29]OFD Sender: Processing packet 73100 [packets to send 282, broken 281] [21:14:29]ProducePacketName [21:14:29]name=ofd_packets/00073100 [21:14:29]OFD Sender: To server: pG, [21:14:29]CommunicateWithHost lk.salyk.kg:30040 [21:14:29]ConnectInit lk.salyk.kg [21:14:29]written 0, free lines is 4095 [21:14:29]Write to MH i2c: 01 00 00 EE 00 EE [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: 01 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: 01 07 00 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 04 0D 06 [21:14:29]RasterBufferAndPrint [21:14:29]line [21:14:29]line [21:14:29]line [21:14:29]line [21:14:29]line [21:14:29]written 0, free lines is 3338 [21:14:29]MH_Cut [21:14:29]Write to MH i2c: D1 01 00 F5 00 01 C7 [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: D1 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: D1 01 00 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: D1 01 00 F5 00 00 C6 [21:14:29]Write to MH i2c: 01 00 00 F6 00 F6 [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:30]*** Cut start [21:14:30]*** Partial cut [21:14:30]*** CUTSNS_PIN = 1 [21:14:30]*** CUTSNS_PIN = 0 [21:14:30]*** Brake cut motor [21:14:30]Connected sock=8 [21:14:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 63 25 00 01 EF F0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 34 F3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1D 01 00 35 04 06 00 2A A7 5A 9E 46 6C 9E 87 5D 1E 2B 02 88 D4 [21:14:31]Read from MH i2c: 01 [21:14:31]MH_I2C_Read... [21:14:31]*** Stop cut motor [21:14:31]*** Cut end [21:14:31]Read from MH i2c: 01 07 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [21:14:31]process_action close_receipt done [21:14:31]requested_data is exist [21:14:31]produce_requested_data [21:14:31]requested_item fm.sn is exist - process it [21:14:31]wFMCommunicate request_size=4 [21:14:31]MH_SAM_APDU [21:14:31]CAPDU: 80 11 00 00 [21:14:31]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:31]Read from MH i2c: E2 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 17 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [21:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:14:31]wFMCommunicate OK [21:14:31]requested_item fd.num is exist - process it [21:14:31]SAM_PROTO_GetFieldsCounters [21:14:31]wFMCommunicate request_size=4 [21:14:31]MH_SAM_APDU [21:14:31]CAPDU: 80 13 00 00 [21:14:31]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:31]Read from MH i2c: E2 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 62 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 62 00 F8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [21:14:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:31]wFMCommunicate OK [21:14:31]SAM_PROTO_GetFieldsCounters done [21:14:31]requested_item shift.num is exist - process it [21:14:31]requested_item shift.opened is exist - process it [21:14:31]req_shift_opened [21:14:31]FM_GetShiftState [21:14:31]SAM_PROTO_GetShiftState [21:14:31]wFMCommunicate request_size=4 [21:14:31]MH_SAM_APDU [21:14:31]CAPDU: 80 13 01 00 [21:14:31]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:31]Read from MH i2c: E2 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 0E 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 1F [21:14:31]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:14:31]wFMCommunicate OK [21:14:31]SAM_PROTO_GetShiftState done [21:14:31]FM_GetShiftState done [21:14:31]req_shift_opened done [21:14:31]requested_item shift.open_date is exist - process it [21:14:31]req_shift_open_date [21:14:31]req_shift_open_date done [21:14:31]produce_requested_data done [21:14:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73100,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:14:31]process_action_free close_receipt [21:14:31]json_value_free [21:14:31]json_value_free done [21:14:31]process_json_proto returns [21:14:31]Send response to host [21:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73100,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:14:31]free response buf [21:14:31]execute_script done [21:14:31]execute_script returns [21:14:31]free content buf [21:14:31]Sock 10.Close socket [21:14:31]Sock 10.Thread stoped [21:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 99 21 47 00 7E A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1D 01 00 F4 03 04 00 EA 9D 23 67 B6 04 01 00 00 79 D5 51 EE 9B EB F8 4B [21:14:33]CommunicateWithHost err = 0 [21:14:33]CheckOFDResponse [21:14:33]1017 (14) - 77093643461234 [21:14:33]1041 (16) - 0000000000874662 [21:14:33]1040 (4) - 73100 [21:14:33]1012 (4) - 31.10.2024 15:10 [21:14:33]1206 (1) - 0 [21:14:33]OFD Sender: Remove packet 73100 [21:14:33]ProducePacketName [21:14:33]name=ofd_packets/00073100 [21:14:33]NVStorageDeleteData [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]recv_with_timeout no data received [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:12]recv_with_timeout no data received [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:44]accept exits with 9 [21:15:44]New connection [21:15:44]New thread 3066928484 created [21:15:44]Thread 3067071844 joined [21:15:44]Waiting for new connection... [21:15:44] Sock 9.Parse request [21:15:44]Sock 9.Check first char [21:15:44]Sock 9.First char is OK [21:15:44]request: POST /json_proto HTTP/1.0 [21:15:44]Method: POST [21:15:44]URL: /json_proto [21:15:44]Method is POST - this is cgi request [21:15:44]url: /json_proto [21:15:44]query_string will be loaded in cgi processing [21:15:44]execute_cgi json_proto POST (null) [21:15:44]execute_cgi path=json_proto method=POST [21:15:44]POST find Content-Length [21:15:44]Host: 172.17.43.195:8080 [21:15:44]Content-Length: 800 [21:15:44]Content-Type: application/json [21:15:44] [21:15:44]POST finish read [21:15:44]Found Content-Length = 800 [21:15:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:44]execute_script... [21:15:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:44]POST & json_proto [21:15:44]process_json_proto [21:15:44]json parsed OK: [21:15:44]protocol is kg_v1.0 [21:15:44]action value=close_receipt [21:15:44]process_action close_receipt [21:15:44]cmd_close_receipt [21:15:44]MH_GetDate [21:15:44]Write to MH i2c: F0 00 00 FA 00 E9 [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: F0 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: F0 09 00 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: F0 09 00 FA 00 00 81 F3 23 67 74 2C AD 66 A3 [21:15:44]GetLastDocTimeStamp 1730409268 [21:15:44]current date 1730409345 [21:15:44]FM_GetShiftState [21:15:44]SAM_PROTO_GetShiftState [21:15:44]wFMCommunicate request_size=4 [21:15:44]MH_SAM_APDU [21:15:44]CAPDU: 80 13 01 00 [21:15:44]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:44]Read from MH i2c: E2 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: E2 0E 00 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 21 [21:15:44]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:15:44]wFMCommunicate OK [21:15:44]SAM_PROTO_GetShiftState done [21:15:44]FM_GetShiftState done [21:15:44]opened in 1730333258 [21:15:44]opened+sec_in_day 1730419658 [21:15:44]quantity*price = 30038 [21:15:44]sum+1 = 30039 [21:15:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 176 31.10.2024 21:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73101 ФПД: 22195355687837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T211545&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73101&fm=22195355687837&tin=02508201610067®Number=0000000000091644&sum=30038 [21:15:45]StoreToDocumentArchive [21:15:45]shift 557 fd 73101 [21:15:45]save to /storage/0557/doc_00073101 [21:15:45]save last doc name /storage/0557/doc_00073101 to /storage/kkm_last_doc_name [21:15:45]save OK [21:15:45]Clear old archive folders... [21:15:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:45]tlvbuf is 00981A80 [21:15:45]SAM_PROTO_ClearQueue [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 09 00 00 [21:15:45]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:46]Read from MH i2c: E2 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 03 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [21:15:46]RAPDU: 90 00 [21:15:46]wFMCommunicate OK [21:15:46]SAM_PROTO_ClearQueue done [21:15:46]KKMCreateOFDPacket [21:15:46]OFDProtocolAddRootSTLVToBuf [21:15:46]FM_MakeSignedData [21:15:46]FM_MakeSignedData [21:15:46]SAM_PROTO_SignData [21:15:46]wFMCommunicate request_size=4 [21:15:46]MH_SAM_APDU [21:15:46]CAPDU: 80 0D 01 02 [21:15:46]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:46]Read from MH i2c: E2 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 03 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [21:15:46]RAPDU: 90 00 [21:15:46]wFMCommunicate OK [21:15:46]wFMCommunicate request_size=255 [21:15:46]MH_SAM_APDU [21:15:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 81 F3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1D 01 00 35 04 06 00 14 [21:15:46]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 81 F3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1D 01 00 35 04 06 00 14 00 00 EE [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:46]Read from MH i2c: E2 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 03 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [21:15:46]RAPDU: 90 00 [21:15:46]wFMCommunicate OK [21:15:46]wFMCommunicate request_size=10 [21:15:46]MH_SAM_APDU [21:15:46]CAPDU: 80 0D 02 02 05 2F C2 4A 9B 9D [21:15:46]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 2F C2 4A 9B 9D 00 00 03 [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:46]Read from MH i2c: E2 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 03 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [21:15:46]RAPDU: 90 00 [21:15:46]wFMCommunicate OK [21:15:46]wFMCommunicate request_size=4 [21:15:46]MH_SAM_APDU [21:15:46]CAPDU: 80 0D 03 02 [21:15:46]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:46]Read from MH i2c: E2 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 0B 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 0B 00 0C 01 00 92 D6 A7 1D 63 10 04 A7 90 00 D3 [21:15:46]RAPDU: 92 D6 A7 1D 63 10 04 A7 90 00 [21:15:46]wFMCommunicate OK [21:15:46]SAM_PROTO_SignData done [21:15:46]FM_MakeSignedData done [21:15:46]CreateOFDProtocolMessage [21:15:46]wFMCommunicate request_size=4 [21:15:46]MH_SAM_APDU [21:15:46]CAPDU: 80 11 00 00 [21:15:46]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:46]Read from MH i2c: E2 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 17 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [21:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:15:46]wFMCommunicate OK [21:15:46]CreateOFDProtocolMessage done [21:15:46]OFDSenderStorePacket 73101 [21:15:46]StoreOFDPacket docnum=73101 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 7785866+1722625140=1730411006 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 FF F9 23 67 74 2C AD 66 34 [21:43:27]Current date/time: 31.10.2024 21:43 [21:43:27]FM_Init [21:43:27]wFMConnect [21:43:27]MH_SAM_On [21:43:27]Write to MH i2c: E0 00 00 08 00 E7 [21:43:27]Write i2c OK [21:43:27]MH_I2C_Read... [21:43:27]*** iso7816_init finished! [21:43:27]*** atr: [21:43:27]*** 0F 3B D5 18 FF 81 91 FE [21:43:27]*** 1F C3 80 73 C8 21 10 0A [21:43:27]*** 00 00 00 00 00 00 00 00 [21:43:27]*** 00 00 00 00 00 00 00 00 [21:43:27]*** 00 00 00 00 00 00 00 00 [21:43:27]*** 00 00 00 00 00 00 00 00 [21:43:27]*** 00 00 00 00 00 00 00 00 [21:43:27]*** 00 00 00 00 00 00 00 00 [21:43:27]Read from MH i2c: E0 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E0 10 00 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [21:43:27]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:43:27]wFMCommunicate request_size=10 [21:43:27]MH_SAM_APDU [21:43:27]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:43:27]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:43:27]Write i2c OK [21:43:27]MH_I2C_Read... [21:43:27]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:43:27]Read from MH i2c: E2 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 03 00 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:43:27]RAPDU: 90 00 [21:43:27]wFMCommunicate OK [21:43:27]wFMCommunicate request_size=4 [21:43:27]MH_SAM_APDU [21:43:27]CAPDU: 80 11 00 00 [21:43:27]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:43:27]Write i2c OK [21:43:27]MH_I2C_Read... [21:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:27]Read from MH i2c: E2 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 17 00 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [21:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:43:27]wFMCommunicate OK [21:43:27]Detected FM SN is 0000000000874662 [21:43:27]Stored FM SN is 0000000000874662 [21:43:27]wFMCommunicate request_size=9 [21:43:27]MH_SAM_APDU [21:43:27]CAPDU: 80 16 00 00 04 08 EB 00 00 [21:43:27]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [21:43:27]Write i2c OK [21:43:27]MH_I2C_Read... [21:43:27]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:43:27]Read from MH i2c: E2 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 03 00 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:43:27]RAPDU: 90 00 [21:43:27]wFMCommunicate OK [21:43:27]FM PIN OK [21:43:27]wFMCommunicate request_size=8 [21:43:27]MH_SAM_APDU [21:43:27]CAPDU: 80 14 04 00 03 02 00 01 [21:43:27]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:43:27]Write i2c OK [21:43:27]MH_I2C_Read... [21:43:27]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:43:27]Read from MH i2c: E2 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 03 00 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:43:27]RAPDU: 90 00 [21:43:27]wFMCommunicate OK [21:43:27]wFMCommunicate request_size=13 [21:43:27]MH_SAM_APDU [21:43:27]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:43:27]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [21:43:27]Write i2c OK [21:43:27]MH_I2C_Read... [21:43:27]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:43:27]Read from MH i2c: E2 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 03 00 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:43:27]RAPDU: 90 00 [21:43:27]wFMCommunicate OK [21:43:27]wFMCommunicate request_size=4 [21:43:27]MH_SAM_APDU [21:43:27]CAPDU: 80 11 00 00 [21:43:27]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:43:27]Write i2c OK [21:43:27]MH_I2C_Read... [21:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:27]Read from MH i2c: E2 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 17 00 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [21:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:43:27]wFMCommunicate OK [21:43:27]DocumentArchiveInit [21:43:27]Start Httpd... [21:43:27]Httpd thread 3067665764 created [21:43:27]Write to MH i2c: 01 00 00 0F 00 0F [21:43:27]Write i2c OK [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: 01 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: 01 07 00 [21:43:27]MH_I2C_Read... [21:43:27]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:43:27]MH Int Process started [21:43:27]Allocated Socket 5 [21:43:27]Bind OK [21:43:27]Listen OK [21:43:27]httpd running on port 8080 [21:43:27]Waiting for new connection... [21:43:27]OFD Sender: Processing packet 73101 [packets to send 282, broken 281] [21:43:27]ProducePacketName [21:43:27]name=ofd_packets/00073101 [21:43:27]OFD Sender: To server: pG, [21:43:27]CommunicateWithHost lk.salyk.kg:30040 [21:43:27]ConnectInit lk.salyk.kg [21:43:28]Connected sock=8 [21:43:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 89 D9 07 01 D1 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 81 F3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1D 01 00 35 04 06 00 14 2F C2 4A 9B 9D 92 D6 A7 1D 63 10 04 A7 [21:43:28]accept exits with 7 [21:43:28]New connection [21:43:28]New thread 3067379044 created [21:43:28]Waiting for new connection... [21:43:28] Sock 7.Parse request [21:43:28]Sock 7.Check first char [21:43:28]Sock 7.First char is OK [21:43:28]request: POST /json_proto HTTP/1.0 [21:43:28]Method: POST [21:43:28]URL: /json_proto [21:43:28]Method is POST - this is cgi request [21:43:28]url: /json_proto [21:43:28]query_string will be loaded in cgi processing [21:43:28]execute_cgi json_proto POST (null) [21:43:28]execute_cgi path=json_proto method=POST [21:43:28]POST find Content-Length [21:43:28]Host: 172.17.43.195:8080 [21:43:28]Content-Length: 215 [21:43:28]Content-Type: application/json [21:43:28] [21:43:28]POST finish read [21:43:28]Found Content-Length = 215 [21:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:28]execute_script... [21:43:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:28]POST & json_proto [21:43:28]process_json_proto [21:43:28]json parsed OK: [21:43:28]protocol is kg_v1.0 [21:43:28]action value=get_value [21:43:28]process_action get_value [21:43:28]cmd_get_value [21:43:28]process_action get_value done [21:43:28]requested_data is exist [21:43:28]produce_requested_data [21:43:28]requested_item kkm.sn is exist - process it [21:43:28]requested_item kkm.ver is exist - process it [21:43:28]requested_item fm.sn is exist - process it [21:43:28]wFMCommunicate request_size=4 [21:43:28]MH_SAM_APDU [21:43:28]CAPDU: 80 11 00 00 [21:43:28]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:43:28]Write i2c OK [21:43:28]MH_I2C_Read... [21:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:28]Read from MH i2c: E2 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: E2 17 00 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [21:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:43:28]wFMCommunicate OK [21:43:28]requested_item fd.num is exist - process it [21:43:28]SAM_PROTO_GetFieldsCounters [21:43:28]wFMCommunicate request_size=4 [21:43:28]MH_SAM_APDU [21:43:28]CAPDU: 80 13 00 00 [21:43:28]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:43:28]Write i2c OK [21:43:28]MH_I2C_Read... [21:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:28]Read from MH i2c: E2 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: E2 62 00 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [21:43: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:28]wFMCommunicate OK [21:43:28]SAM_PROTO_GetFieldsCounters done [21:43:28]requested_item shift.num is exist - process it [21:43:28]requested_item shift.opened is exist - process it [21:43:28]req_shift_opened [21:43:28]FM_GetShiftState [21:43:28]SAM_PROTO_GetShiftState [21:43:28]wFMCommunicate request_size=4 [21:43:28]MH_SAM_APDU [21:43:28]CAPDU: 80 13 01 00 [21:43:28]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:43:28]Write i2c OK [21:43:28]MH_I2C_Read... [21:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:28]Read from MH i2c: E2 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: E2 0E 00 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [21:43:28]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:43:28]wFMCommunicate OK [21:43:28]SAM_PROTO_GetShiftState done [21:43:28]FM_GetShiftState done [21:43:28]req_shift_opened done [21:43:28]requested_item shift.open_date is exist - process it [21:43:28]req_shift_open_date [21:43:28]req_shift_open_date done [21:43:28]produce_requested_data done [21:43:28]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73101,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:43:28]process_action_free get_value [21:43:28]json_value_free [21:43:28]json_value_free done [21:43:28]process_json_proto returns [21:43:28]Send response to host [21:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73101,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:43:28]free response buf [21:43:28]execute_script done [21:43:28]execute_script returns [21:43:28]free content buf [21:43:28]Sock 7.Close socket [21:43:28]Sock 7.Thread stoped [21:43:28]accept exits with 10 [21:43:28]New connection [21:43:28]New thread 3067235684 created [21:43:28]Thread 3067379044 joined [21:43:28]Waiting for new connection... [21:43:28] Sock 10.Parse request [21:43:28]Sock 10.Check first char [21:43:28]Sock 10.First char is OK [21:43:28]request: POST /json_proto HTTP/1.0 [21:43:28]Method: POST [21:43:28]URL: /json_proto [21:43:28]Method is POST - this is cgi request [21:43:28]url: /json_proto [21:43:28]query_string will be loaded in cgi processing [21:43:28]execute_cgi json_proto POST (null) [21:43:28]execute_cgi path=json_proto method=POST [21:43:28]POST find Content-Length [21:43:28]Host: 172.17.43.195:8080 [21:43:28]Content-Length: 331 [21:43:28]Content-Type: application/json [21:43:28] [21:43:28]POST finish read [21:43:28]Found Content-Length = 331 [21:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:43:28]execute_script... [21:43:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:43:28]POST & json_proto [21:43:28]process_json_proto [21:43:28]json parsed OK: [21:43:28]protocol is kg_v1.0 [21:43:28]action value=get_value [21:43:28]process_action get_value [21:43:28]cmd_get_value [21:43:28]process_action get_value done [21:43:28]requested_data is exist [21:43:28]produce_requested_data [21:43:28]requested_item fm.sale.total is exist - process it [21:43:28]SAM_PROTO_GetFMData [21:43:28]wFMCommunicate request_size=4 [21:43:28]MH_SAM_APDU [21:43:28]CAPDU: 80 13 03 00 [21:43:28]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:43:29]Write i2c OK [21:43:29]MH_I2C_Read... [21:43:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CA 72 47 00 5A B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1D 01 00 F4 03 04 00 B3 A4 23 67 B6 04 01 00 00 B1 A2 39 31 CB 01 F9 20 [21:43:29]CommunicateWithHost err = 0 [21:43:29]CheckOFDResponse [21:43:29]1017 (14) - 77093643461234 [21:43:29]1041 (16) - 0000000000874662 [21:43:29]1040 (4) - 73101 [21:43:29]1012 (4) - 31.10.2024 15:39 [21:43:29]1206 (1) - 0 [21:43:29]OFD Sender: Remove packet 73101 [21:43:29]ProducePacketName [21:43:29]name=ofd_packets/00073101 [21:43:29]NVStorageDeleteData [21:43:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:43:29]Read from MH i2c: E2 [21:43:29]MH_I2C_Read... [21:43:29]Read from MH i2c: E2 FD 00 [21:43:29]MH_I2C_Read... [21:43:29]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 33 19 01 00 69 04 A3 00 6F 04 04 00 43 18 01 00 B1 04 05 00 7B 1C C8 A4 01 70 04 05 00 A4 A6 14 59 01 72 04 04 00 D7 75 B3 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DA 1E B2 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A2 70 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 A7 [21:43:29]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 33 19 01 00 69 04 A3 00 6F 04 04 00 43 18 01 00 B1 04 05 00 7B 1C C8 A4 01 70 04 05 00 A4 A6 14 59 01 72 04 04 00 D7 75 B3 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DA 1E B2 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A2 70 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [21:43:29]wFMCommunicate OK [21:43:29]wFMCommunicate request_size=4 [21:43:29]MH_SAM_APDU [21:43:29]CAPDU: 80 17 00 00 [21:43:29]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:43:29]Write i2c OK [21:43:29]MH_I2C_Read... [21:43:29]OFD Sender: No OFD packet to send [21:43:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:29]Read from MH i2c: E2 [21:43:29]MH_I2C_Read... [21:43:29]Read from MH i2c: E2 FD 00 [21:43:29]MH_I2C_Read... [21:43:29]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [21:43:29]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [21:43:29]wFMCommunicate OK [21:43:29]wFMCommunicate request_size=4 [21:43:29]MH_SAM_APDU [21:43:29]CAPDU: 80 17 00 00 [21:43:29]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:43:29]Write i2c OK [21:43:29]MH_I2C_Read... [21:43:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:30]Read from MH i2c: E2 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 FD 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [21:43:30]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [21:43:30]wFMCommunicate OK [21:43:30]wFMCommunicate request_size=4 [21:43:30]MH_SAM_APDU [21:43:30]CAPDU: 80 17 00 00 [21:43:30]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:30]Read from MH i2c: E2 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 FD 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [21:43:30]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [21:43:30]wFMCommunicate OK [21:43:30]wFMCommunicate request_size=4 [21:43:30]MH_SAM_APDU [21:43:30]CAPDU: 80 17 00 00 [21:43:30]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [21:43:30]Read from MH i2c: E2 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 E1 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [21:43:30]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:43:30]wFMCommunicate OK [21:43:30]SAM_PROTO_GetFMData done [21:43:30]requested_item fm.sale_refund.total is exist - process it [21:43:30]requested_item fm.buy.total is exist - process it [21:43:30]requested_item shift.sale.total is exist - process it [21:43:30]SAM_PROTO_GetShiftData [21:43:30]wFMCommunicate request_size=4 [21:43:30]MH_SAM_APDU [21:43:30]CAPDU: 80 13 02 00 [21:43:30]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:43:31]Read from MH i2c: E2 [21:43:31]MH_I2C_Read... [21:43:31]Read from MH i2c: E2 FD 00 [21:43:31]MH_I2C_Read... [21:43:31]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 B0 00 00 00 69 04 9C 00 6F 04 04 00 B0 00 00 00 B1 04 03 00 C2 AF B1 70 04 03 00 70 9D 6F 72 04 03 00 52 12 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7F DF 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A 92 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 A7 [21:43:31]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 B0 00 00 00 69 04 9C 00 6F 04 04 00 B0 00 00 00 B1 04 03 00 C2 AF B1 70 04 03 00 70 9D 6F 72 04 03 00 52 12 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7F DF 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A 92 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [21:43:31]wFMCommunicate OK [21:43:31]wFMCommunicate request_size=4 [21:43:31]MH_SAM_APDU [21:43:31]CAPDU: 80 17 00 00 [21:43:31]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:43:31]Write i2c OK [21:43:31]MH_I2C_Read... [21:43:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:31]Read from MH i2c: E2 [21:43:31]MH_I2C_Read... [21:43:31]Read from MH i2c: E2 FD 00 [21:43:31]MH_I2C_Read... [21:43:31]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [21:43:31]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [21:43:31]wFMCommunicate OK [21:43:31]wFMCommunicate request_size=4 [21:43:31]MH_SAM_APDU [21:43:31]CAPDU: 80 17 00 00 [21:43:31]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:43:31]Write i2c OK [21:43:31]MH_I2C_Read... [21:43:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:31]Read from MH i2c: E2 [21:43:31]MH_I2C_Read... [21:43:31]Read from MH i2c: E2 FD 00 [21:43:31]MH_I2C_Read... [21:43:31]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [21:43:31]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [21:43:31]wFMCommunicate OK [21:43:31]wFMCommunicate request_size=4 [21:43:31]MH_SAM_APDU [21:43:31]CAPDU: 80 17 00 00 [21:43:31]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:43:31]Write i2c OK [21:43:31]MH_I2C_Read... [21:43:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:43:32]Read from MH i2c: E2 [21:43:32]MH_I2C_Read... [21:43:32]Read from MH i2c: E2 FD 00 [21:43:32]MH_I2C_Read... [21:43:32]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [21:43:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [21:43:32]wFMCommunicate OK [21:43:32]wFMCommunicate request_size=4 [21:43:32]MH_SAM_APDU [21:43:32]CAPDU: 80 17 00 00 [21:43:32]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:43:32]Write i2c OK [21:43:32]MH_I2C_Read... [21:43:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [21:43:32]Read from MH i2c: E2 [21:43:32]MH_I2C_Read... [21:43:32]Read from MH i2c: E2 CC 00 [21:43:32]MH_I2C_Read... [21:43:32]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [21:43:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:43:32]wFMCommunicate OK [21:43:32]SAM_PROTO_GetShiftData done [21:43:32]requested_item shift.sale.total_cash is exist - process it [21:43:32]requested_item shift.sale_refund.total is exist - process it [21:43:32]requested_item shift.sale_refund.total_cash is exist - process it [21:43:32]requested_item shift.buy.total is exist - process it [21:43:32]requested_item shift.buy.total_cash is exist - process it [21:43:32]produce_requested_data done [21:43:32]produce_requested_data return {"fm.sale.total":70595452.11,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":116448.66,"shift.sale.total_cash":73148.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:43:32]process_action_free get_value [21:43:32]json_value_free [21:43:32]json_value_free done [21:43:32]process_json_proto returns [21:43:32]Send response to host [21:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70595452.11,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":116448.66,"shift.sale.total_cash":73148.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:43:32]free response buf [21:43:32]execute_script done [21:43:32]execute_script returns [21:43:32]free content buf [21:43:32]Sock 10.Close socket [21:43:32]Sock 10.Thread stoped [21:43:32]accept exits with 7 [21:43:32]New connection [21:43:32]New thread 3067379044 created [21:43:32]Thread 3067235684 joined [21:43:32]Waiting for new connection... [21:43:32] Sock 7.Parse request [21:43:32]Sock 7.Check first char [21:43:32]Sock 7.First char is OK [21:43:32]request: POST /json_proto HTTP/1.0 [21:43:32]Method: POST [21:43:32]URL: /json_proto [21:43:32]Method is POST - this is cgi request [21:43:32]url: /json_proto [21:43:32]query_string will be loaded in cgi processing [21:43:32]execute_cgi json_proto POST (null) [21:43:32]execute_cgi path=json_proto method=POST [21:43:32]POST find Content-Length [21:43:32]Host: 172.17.43.195:8080 [21:43:32]Content-Length: 685 [21:43:32]Content-Type: application/json [21:43:32] [21:43:32]POST finish read [21:43:32]Found Content-Length = 685 [21:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:32]execute_script... [21:43:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:32]POST & json_proto [21:43:32]process_json_proto [21:43:32]json parsed OK: [21:43:32]protocol is kg_v1.0 [21:43:32]action value=close_receipt [21:43:32]process_action close_receipt [21:43:32]cmd_close_receipt [21:43:32]MH_GetDate [21:43:32]Write to MH i2c: F0 00 00 1D 00 0C [21:43:32]Write i2c OK [21:43:32]MH_I2C_Read... [21:43:32]Read from MH i2c: F0 [21:43:32]MH_I2C_Read... [21:43:32]Read from MH i2c: F0 09 00 [21:43:32]MH_I2C_Read... [21:43:32]Read from MH i2c: F0 09 00 1D 00 00 05 FA 23 67 74 2C AD 66 51 [21:43:32]GetLastDocTimeStamp 1730409345 [21:43:32]current date 1730411013 [21:43:32]FM_GetShiftState [21:43:32]SAM_PROTO_GetShiftState [21:43:32]wFMCommunicate request_size=4 [21:43:32]MH_SAM_APDU [21:43:32]CAPDU: 80 13 01 00 [21:43:32]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [21:43:32]Write i2c OK [21:43:32]MH_I2C_Read... [21:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:32]Read from MH i2c: E2 [21:43:32]MH_I2C_Read... [21:43:32]Read from MH i2c: E2 0E 00 [21:43:32]MH_I2C_Read... [21:43:32]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 44 [21:43:32]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:43:32]wFMCommunicate OK [21:43:32]SAM_PROTO_GetShiftState done [21:43:32]FM_GetShiftState done [21:43:32]opened in 1730333258 [21:43:32]opened+sec_in_day 1730419658 [21:43:32]quantity*price = 100011 [21:43:32]sum+1 = 100013 [21:43:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 177 31.10.2024 21:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73102 ФПД: 95568956178621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214333&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73102&fm=95568956178621&tin=02508201610067®Number=0000000000091644&sum=100000 [21:43:33]StoreToDocumentArchive [21:43:33]shift 557 fd 73102 [21:43:33]save to /storage/0557/doc_00073102 [21:43:33]save last doc name /storage/0557/doc_00073102 to /storage/kkm_last_doc_name [21:43:33]save OK [21:43:33]Clear old archive folders... [21:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:43:33]tlvbuf is 01A9AD10 [21:43:33]SAM_PROTO_ClearQueue [21:43:33]wFMCommunicate request_size=4 [21:43:33]MH_SAM_APDU [21:43:33]CAPDU: 80 09 00 00 [21:43:33]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [21:43:33]Write i2c OK [21:43:33]MH_I2C_Read... [21:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:33]Read from MH i2c: E2 [21:43:33]MH_I2C_Read... [21:43:33]Read from MH i2c: E2 03 00 [21:43:33]MH_I2C_Read... [21:43:33]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [21:43:33]RAPDU: 90 00 [21:43:33]wFMCommunicate OK [21:43:33]SAM_PROTO_ClearQueue done [21:43:33]KKMCreateOFDPacket [21:43:33]OFDProtocolAddRootSTLVToBuf [21:43:33]FM_MakeSignedData [21:43:33]FM_MakeSignedData [21:43:33]SAM_PROTO_SignData [21:43:33]wFMCommunicate request_size=4 [21:43:33]MH_SAM_APDU [21:43:33]CAPDU: 80 0D 01 02 [21:43:33]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [21:43:33]Write i2c OK [21:43:33]MH_I2C_Read... [21:43:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:34]Read from MH i2c: E2 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 03 00 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [21:43:34]RAPDU: 90 00 [21:43:34]wFMCommunicate OK [21:43:34]wFMCommunicate request_size=255 [21:43:34]MH_SAM_APDU [21:43:34]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 05 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8E 1D 01 00 35 04 06 00 56 EB [21:43:34]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 05 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8E 1D 01 00 35 04 06 00 56 EB 00 00 5C [21:43:34]Write i2c OK [21:43:34]MH_I2C_Read... [21:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:34]Read from MH i2c: E2 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 03 00 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [21:43:34]RAPDU: 90 00 [21:43:34]wFMCommunicate OK [21:43:34]wFMCommunicate request_size=9 [21:43:34]MH_SAM_APDU [21:43:34]CAPDU: 80 0D 02 02 04 61 AF 40 BD [21:43:34]Write to MH i2c: E2 0C 00 2E 00 80 0D 02 02 04 00 61 AF 40 BD 00 00 BD [21:43:34]Write i2c OK [21:43:34]MH_I2C_Read... [21:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:34]Read from MH i2c: E2 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 03 00 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [21:43:34]RAPDU: 90 00 [21:43:34]wFMCommunicate OK [21:43:34]wFMCommunicate request_size=4 [21:43:34]MH_SAM_APDU [21:43:34]CAPDU: 80 0D 03 02 [21:43:34]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [21:43:34]OFD Sender: No OFD packet to send [21:43:34]Write i2c OK [21:43:34]MH_I2C_Read... [21:43:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:34]Read from MH i2c: E2 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 0B 00 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 0B 00 2F 00 00 8C AE 6D C4 8D BE 80 44 90 00 25 [21:43:34]RAPDU: 8C AE 6D C4 8D BE 80 44 90 00 [21:43:34]wFMCommunicate OK [21:43:34]SAM_PROTO_SignData done [21:43:34]FM_MakeSignedData done [21:43:34]CreateOFDProtocolMessage [21:43:34]wFMCommunicate request_size=4 [21:43:34]MH_SAM_APDU [21:43:34]CAPDU: 80 11 00 00 [21:43:34]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [21:43:34]Write i2c OK [21:43:34]MH_I2C_Read... [21:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:34]Read from MH i2c: E2 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 17 00 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [21:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:43:34]wFMCommunicate OK [21:43:34]CreateOFDProtocolMessage done [21:43:34]OFDSenderStorePacket 73102 [21:43:34]StoreOFDPacket docnum=73102 [21:43:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 92 5F 06 01 61 19 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 05 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8E 1D 01 00 35 04 06 00 56 EB 61 AF 40 BD 8C AE 6D C4 8D BE 80 44 [21:43:34]CheckFolder [21:43:34]dirname=/storage/ofd_packets [21:43:34]CheckFolder done [21:43:34]ProducePacketName [21:43:34]name=ofd_packets/00073102 [21:43:34]NVStorageSaveData ofd_packets/00073102 [21:43:34]File name is /storage/ofd_packets/00073102 [21:43:34]Write 300 bytes [21:43:34]NVStorageSaveData done [21:43:34]OFDSenderStorePacket done [21:43:34]KKMCreateOFDPacket done [21:43:34]NVStorageSaveData kkm_last_timestamp [21:43:34]File name is /storage/kkm_last_timestamp [21:43:34]Write 4 bytes [21:43:34]NVStorageSaveData done [21:43:34]ExternCall_PrintAddStr [21:43:34]wPrintStart [21:43:34]Write to MH i2c: 01 00 00 31 00 31 [21:43:34]Write i2c OK [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: 01 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: 01 07 00 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [21:43:34]RasterBufferAndPrint [21:43:34]line Счет N : (1)952701 [21:43:34]line ИНН: 02508201610067 [21:43:34]line Контрольно-Кассовый Чек [21:43:34]line ПРОДАЖА [21:43:34]line ТРК (МРК, ГНК) : 71 [21:43:34]line Товар: 2711190000 [21:43:34]line ГАЗ-К-3 [21:43:34]line 25.710 * 38.90 [21:43:34]line = 1000.12 [21:43:34]line НДС 12% НСП 1% [21:43:34]line > о реализуемом товаре [21:43:34]line ОКРУГЛЕНИЕ: -0.12 [21:43:34]line ИТОГО: 1000.00 [21:43:34]line Внесено: 1000.00 [21:43:34]line СДАЧА: 0.00 [21:43:34]line НСП 1% : 8.85 [21:43:34]line НДС 12% : 106.21 [21:43:34]line Наличными: 1000.00 [21:43:34]line Безнал.: 0.00 [21:43:34]line Место: АЗС № 113 "Партнер Нефть" [21:43:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:43:34]line СНО: Общий режим [21:43:34]line Чек 177 31.10.2024 21:43 [21:43:34]line Смена: 557 ФФД: 1.0 [21:43:34]line ЗНМ: 0300000087 [21:43:34]line РНМ: 0000000000091644 [21:43:34]line Версия ККМ: 001 [21:43:34]line ФМ: 0000000000874662 [21:43:34]line ФД: 73102 [21:43:34]line ФПД: 95568956178621 [21:43:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214333&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73102&fm=95568956178621&tin=02508201610067®Number=0000000000091644&sum=100000 [21:43:34]written 0, free lines is 4095 [21:43:35]OFD Sender: Processing packet 73102 [packets to send 282, broken 281] [21:43:35]ProducePacketName [21:43:35]name=ofd_packets/00073102 [21:43:35]OFD Sender: To server: pG, [21:43:35]CommunicateWithHost lk.salyk.kg:30040 [21:43:35]ConnectInit lk.salyk.kg [21:43:35]Write to MH i2c: 01 00 00 5C 00 5C [21:43:35]Write i2c OK [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: 01 [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: 01 07 00 [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 DD 0C 4C [21:43:35]RasterBufferAndPrint [21:43:35]line [21:43:35]line [21:43:35]line [21:43:35]line [21:43:35]line [21:43:35]written 0, free lines is 3317 [21:43:35]MH_Cut [21:43:35]Write to MH i2c: D1 01 00 63 00 01 35 [21:43:35]Write i2c OK [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: D1 [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: D1 01 00 [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: D1 01 00 63 00 00 34 [21:43:35]Write to MH i2c: 01 00 00 64 00 64 [21:43:35]Write i2c OK [21:43:35]MH_I2C_Read... [21:43:36]*** Cut start [21:43:36]*** Partial cut [21:43:36]*** CUTSNS_PIN = 1 [21:43:36]Connected sock=11 [21:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 92 5F 06 01 61 19 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 *** CUTSNS_PIN = 0 [21:43:36]01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 05 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8E 1D 01 00 35 04 06 00 56 EB 61 AF 40 BD 8C AE 6D C4 8D BE 80 44 [21:43:36]*** Brake cut motor [21:43:36]Read from MH i2c: 01 [21:43:36]MH_I2C_Read... [21:43:36]*** Stop cut motor [21:43:36]*** Cut end [21:43:36]Read from MH i2c: 01 07 00 [21:43:36]MH_I2C_Read... [21:43:36]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [21:43:36]process_action close_receipt done [21:43:36]requested_data is exist [21:43:36]produce_requested_data [21:43:36]requested_item fm.sn is exist - process it [21:43:36]wFMCommunicate request_size=4 [21:43:36]MH_SAM_APDU [21:43:36]CAPDU: 80 11 00 00 [21:43:36]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [21:43:36]Write i2c OK [21:43:36]MH_I2C_Read... [21:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 58 BA 47 00 A7 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8E 1D 01 00 F4 03 04 00 BB A4 23 67 B6 04 01 00 00 42 E5 5F 69 59 89 D2 50 [21:43:36]CommunicateWithHost err = 0 [21:43:36]CheckOFDResponse [21:43:36]1017 (14) - 77093643461234 [21:43:36]1041 (16) - 0000000000874662 [21:43:36]1040 (4) - 73102 [21:43:36]1012 (4) - 31.10.2024 15:39 [21:43:36]1206 (1) - 0 [21:43:36]OFD Sender: Remove packet 73102 [21:43:36]ProducePacketName [21:43:36]name=ofd_packets/00073102 [21:43:36]NVStorageDeleteData [21:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:36]Read from MH i2c: E2 [21:43:36]MH_I2C_Read... [21:43:36]Read from MH i2c: E2 17 00 [21:43:36]MH_I2C_Read... [21:43:36]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [21:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:43:36]wFMCommunicate OK [21:43:36]requested_item fd.num is exist - process it [21:43:36]SAM_PROTO_GetFieldsCounters [21:43:36]wFMCommunicate request_size=4 [21:43:36]MH_SAM_APDU [21:43:36]CAPDU: 80 13 00 00 [21:43:37]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [21:43:37]Write i2c OK [21:43:37]MH_I2C_Read... [21:43:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:37]Read from MH i2c: E2 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 62 00 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [21:43:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:37]wFMCommunicate OK [21:43:37]SAM_PROTO_GetFieldsCounters done [21:43:37]requested_item shift.num is exist - process it [21:43:37]requested_item shift.opened is exist - process it [21:43:37]req_shift_opened [21:43:37]FM_GetShiftState [21:43:37]SAM_PROTO_GetShiftState [21:43:37]wFMCommunicate request_size=4 [21:43:37]MH_SAM_APDU [21:43:37]CAPDU: 80 13 01 00 [21:43:37]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [21:43:37]Write i2c OK [21:43:37]MH_I2C_Read... [21:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:37]Read from MH i2c: E2 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 0E 00 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8D [21:43:37]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:43:37]wFMCommunicate OK [21:43:37]SAM_PROTO_GetShiftState done [21:43:37]FM_GetShiftState done [21:43:37]req_shift_opened done [21:43:37]requested_item shift.open_date is exist - process it [21:43:37]req_shift_open_date [21:43:37]req_shift_open_date done [21:43:37]produce_requested_data done [21:43:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73102,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:43:37]process_action_free close_receipt [21:43:37]json_value_free [21:43:37]json_value_free done [21:43:37]process_json_proto returns [21:43:37]Send response to host [21:43:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73102,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:43:37]free response buf [21:43:37]execute_script done [21:43:37]execute_script returns [21:43:37]free content buf [21:43:37]Sock 7.Close socket [21:43:37]Sock 7.Thread stoped [21:43:37]OFD Sender: No OFD packet to send [21:43:37]accept exits with 10 [21:43:37]New connection [21:43:37]New thread 3067235684 created [21:43:37]Thread 3067379044 joined [21:43:37]Waiting for new connection... [21:43:37] Sock 10.Parse request [21:43:37]Sock 10.Check first char [21:43:37]Sock 10.First char is OK [21:43:37]request: POST /json_proto HTTP/1.0 [21:43:37]Method: POST [21:43:37]URL: /json_proto [21:43:37]Method is POST - this is cgi request [21:43:37]url: /json_proto [21:43:37]query_string will be loaded in cgi processing [21:43:37]execute_cgi json_proto POST (null) [21:43:37]execute_cgi path=json_proto method=POST [21:43:37]POST find Content-Length [21:43:37]Host: 172.17.43.195:8080 [21:43:37]Content-Length: 677 [21:43:37]Content-Type: application/json [21:43:37] [21:43:37]POST finish read [21:43:37]Found Content-Length = 677 [21:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.670, "sum" : 513.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 513.00, "total" : 513.00, "payments": [ { "type": 0, "sum" : 513.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:37]execute_script... [21:43:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.670, "sum" : 513.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 513.00, "total" : 513.00, "payments": [ { "type": 0, "sum" : 513.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:37]POST & json_proto [21:43:37]process_json_proto [21:43:37]json parsed OK: [21:43:37]protocol is kg_v1.0 [21:43:37]action value=close_receipt [21:43:37]process_action close_receipt [21:43:37]cmd_close_receipt [21:43:37]MH_GetDate [21:43:37]Write to MH i2c: F0 00 00 68 00 57 [21:43:37]Write i2c OK [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: F0 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: F0 09 00 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: F0 09 00 68 00 00 0A FA 23 67 74 2C AD 66 A1 [21:43:37]GetLastDocTimeStamp 1730411013 [21:43:37]current date 1730411018 [21:43:37]FM_GetShiftState [21:43:37]SAM_PROTO_GetShiftState [21:43:37]wFMCommunicate request_size=4 [21:43:37]MH_SAM_APDU [21:43:37]CAPDU: 80 13 01 00 [21:43:37]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [21:43:37]Write i2c OK [21:43:37]MH_I2C_Read... [21:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:37]Read from MH i2c: E2 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 0E 00 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8F [21:43:37]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:43:37]wFMCommunicate OK [21:43:37]SAM_PROTO_GetShiftState done [21:43:37]FM_GetShiftState done [21:43:37]opened in 1730333258 [21:43:37]opened+sec_in_day 1730419658 [21:43:37]quantity*price = 51312 [21:43:37]sum+1 = 51313 [21:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 513.00 Внесено: 513.00 СДАЧА: 0.00 НСП 1% : 4.54 НДС 12% : 54.49 Наличными: 513.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 178 31.10.2024 21:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73103 ФПД: 260398738497812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214338&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73103&fm=260398738497812&tin=02508201610067®Number=0000000000091644&sum=51300 [21:43:39]StoreToDocumentArchive [21:43:39]shift 557 fd 73103 [21:43:39]save to /storage/0557/doc_00073103 [21:43:39]save last doc name /storage/0557/doc_00073103 to /storage/kkm_last_doc_name [21:43:39]save OK [21:43:39]Clear old archive folders... [21:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:39]tlvbuf is 01AB7E70 [21:43:39]SAM_PROTO_ClearQueue [21:43:39]wFMCommunicate request_size=4 [21:43:39]MH_SAM_APDU [21:43:39]CAPDU: 80 09 00 00 [21:43:39]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [21:43:39]Write i2c OK [21:43:39]MH_I2C_Read... [21:43:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:39]Read from MH i2c: E2 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 03 00 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [21:43:39]RAPDU: 90 00 [21:43:39]wFMCommunicate OK [21:43:39]SAM_PROTO_ClearQueue done [21:43:39]KKMCreateOFDPacket [21:43:39]OFDProtocolAddRootSTLVToBuf [21:43:39]FM_MakeSignedData [21:43:39]FM_MakeSignedData [21:43:39]SAM_PROTO_SignData [21:43:39]wFMCommunicate request_size=4 [21:43:39]MH_SAM_APDU [21:43:39]CAPDU: 80 0D 01 02 [21:43:39]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [21:43:39]Write i2c OK [21:43:39]MH_I2C_Read... [21:43:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:39]Read from MH i2c: E2 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 03 00 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [21:43:39]RAPDU: 90 00 [21:43:39]wFMCommunicate OK [21:43:39]wFMCommunicate request_size=255 [21:43:39]MH_SAM_APDU [21:43:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 70 C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 15 00 00 00 00 07 04 06 00 64 C8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0A FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1D 01 00 35 04 06 00 EC [21:43:39]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 70 C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 15 00 00 00 00 07 04 06 00 64 C8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0A FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1D 01 00 35 04 06 00 EC 00 00 06 [21:43:39]Write i2c OK [21:43:39]MH_I2C_Read... [21:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:40]Read from MH i2c: E2 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 03 00 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [21:43:40]RAPDU: 90 00 [21:43:40]wFMCommunicate OK [21:43:40]wFMCommunicate request_size=10 [21:43:40]MH_SAM_APDU [21:43:40]CAPDU: 80 0D 02 02 05 D4 CE 4E E1 14 [21:43:40]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 D4 CE 4E E1 14 00 00 E2 [21:43:40]Write i2c OK [21:43:40]MH_I2C_Read... [21:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:40]Read from MH i2c: E2 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 03 00 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [21:43:40]RAPDU: 90 00 [21:43:40]wFMCommunicate OK [21:43:40]wFMCommunicate request_size=4 [21:43:40]MH_SAM_APDU [21:43:40]CAPDU: 80 0D 03 02 [21:43:40]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [21:43:40]Write i2c OK [21:43:40]MH_I2C_Read... [21:43:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:40]Read from MH i2c: E2 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 0B 00 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 0B 00 7A 00 00 C8 FD D2 9B FE 81 7B AC 90 00 CE [21:43:40]RAPDU: C8 FD D2 9B FE 81 7B AC 90 00 [21:43:40]wFMCommunicate OK [21:43:40]SAM_PROTO_SignData done [21:43:40]FM_MakeSignedData done [21:43:40]CreateOFDProtocolMessage [21:43:40]wFMCommunicate request_size=4 [21:43:40]MH_SAM_APDU [21:43:40]CAPDU: 80 11 00 00 [21:43:40]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [21:43:40]Write i2c OK [21:43:40]MH_I2C_Read... [21:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:40]Read from MH i2c: E2 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 17 00 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 49 [21:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:43:40]wFMCommunicate OK [21:43:40]CreateOFDProtocolMessage done [21:43:40]OFDSenderStorePacket 73103 [21:43:40]StoreOFDPacket docnum=73103 [21:43:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8B 0C 07 01 D9 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 70 C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 15 00 00 00 00 07 04 06 00 64 C8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0A FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1D 01 00 35 04 06 00 EC D4 CE 4E E1 14 C8 FD D2 9B FE 81 7B AC [21:43:40]CheckFolder [21:43:40]dirname=/storage/ofd_packets [21:43:40]CheckFolder done [21:43:40]ProducePacketName [21:43:40]name=ofd_packets/00073103 [21:43:40]NVStorageSaveData ofd_packets/00073103 [21:43:40]File name is /storage/ofd_packets/00073103 [21:43:40]Write 301 bytes [21:43:40]NVStorageSaveData done [21:43:40]OFDSenderStorePacket done [21:43:40]KKMCreateOFDPacket done [21:43:40]NVStorageSaveData kkm_last_timestamp [21:43:40]File name is /storage/kkm_last_timestamp [21:43:40]Write 4 bytes [21:43:40]NVStorageSaveData done [21:43:40]ExternCall_PrintAddStr [21:43:40]wPrintStart [21:43:40]Write to MH i2c: 01 00 00 7C 00 7C [21:43:40]Write i2c OK [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: 01 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: 01 07 00 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [21:43:40]RasterBufferAndPrint [21:43:40]line Счет N : (1)952702 [21:43:40]line ИНН: 02508201610067 [21:43:40]line Контрольно-Кассовый Чек [21:43:40]line ПРОДАЖА [21:43:40]line ТРК (МРК, ГНК) : 63 [21:43:40]line Товар: 2710124130 [21:43:40]line Аи-92-К-5 [21:43:40]line 7.670 * 66.90 [21:43:40]line = 513.12 [21:43:40]line НДС 12% НСП 1% [21:43:40]line > о реализуемом товаре [21:43:40]line ОКРУГЛЕНИЕ: -0.12 [21:43:40]line ИТОГО: 513.00 [21:43:40]line Внесено: 513.00 [21:43:40]line СДАЧА: 0.00 [21:43:40]line НСП 1% : 4.54 [21:43:40]line НДС 12% : 54.49 [21:43:40]line Наличными: 513.00 [21:43:40]line Безнал.: 0.00 [21:43:40]line Место: АЗС № 113 "Партнер Нефть" [21:43:40]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:43:40]line СНО: Общий режим [21:43:40]line Чек 178 31.10.2024 21:43 [21:43:40]line Смена: 557 ФФД: 1.0 [21:43:40]line ЗНМ: 0300000087 [21:43:40]line РНМ: 0000000000091644 [21:43:40]line Версия ККМ: 001 [21:43:40]line ФМ: 0000000000874662 [21:43:40]line ФД: 73103 [21:43:40]line ФПД: 260398738497812 [21:43:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214338&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73103&fm=260398738497812&tin=02508201610067®Number=0000000000091644&sum=51300 [21:43:40]OFD Sender: Processing packet 73103 [packets to send 282, broken 281] [21:43:40]ProducePacketName [21:43:40]name=ofd_packets/00073103 [21:43:40]OFD Sender: To server: pG, [21:43:40]CommunicateWithHost lk.salyk.kg:30040 [21:43:40]ConnectInit lk.salyk.kg [21:43:40]written 0, free lines is 4095 [21:43:40]Connected sock=9 [21:43:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8B 0C 07 01 D9 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 70 C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 15 00 00 00 00 07 04 06 00 64 C8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0A FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 Write to MH i2c: 04 01 04 00 00 00 8F A7 1D 00 01 A7 00 [21:43:41]35 04 06 00 EC D4 CE Write i2c OK [21:43:41]4E MH_I2C_Read... [21:43:41]E1 Read from MH i2c: 14 01 C8 [21:43:41]FD MH_I2C_Read... [21:43:41]D2 9B FE 81 7B AC [21:43:41]Read from MH i2c: 01 07 00 [21:43:41]MH_I2C_Read... [21:43:41]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 6D 0E 29 [21:43:41]RasterBufferAndPrint [21:43:41]line [21:43:41]line [21:43:41]line [21:43:41]line [21:43:41]line [21:43:41]written 0, free lines is 3764 [21:43:41]MH_Cut [21:43:41]Write to MH i2c: D1 01 00 AE 00 01 80 [21:43:41]Write i2c OK [21:43:41]MH_I2C_Read... [21:43:41]Read from MH i2c: D1 [21:43:41]MH_I2C_Read... [21:43:41]Read from MH i2c: D1 01 00 [21:43:41]MH_I2C_Read... [21:43:41]Read from MH i2c: D1 01 00 AE 00 00 7F [21:43:41]Write to MH i2c: 01 00 00 AF 00 AF [21:43:41]Write i2c OK [21:43:41]MH_I2C_Read... [21:43:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8A DA 47 00 34 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 *** Cut start [21:43:41]30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 *** Partial cut [21:43:41]30 38 37 34 36 36 32 10 04 04 00 8F 1D 01 00 *** CUTSNS_PIN = 1 [21:43:41]F4 03 04 00 C0 A4 23 67 B6 04 01 00 00 F5 25 8E *** CUTSNS_PIN = 0 [21:43:41]6C E8 5B FD 90 [21:43:41]CommunicateWithHost err = 0 [21:43:41]CheckOFDResponse [21:43:41]1017 (14) - 77093643461234 [21:43:41]1041 (16) - 0000000000874662 [21:43:41]1040 (4) - 73103 [21:43:41]1012 (4) - 31.10.2024 15:39 [21:43:41]1206 (1) - 0 [21:43:41]OFD Sender: Remove packet 73103 [21:43:41]ProducePacketName [21:43:41]name=ofd_packets/00073103 [21:43:41]NVStorageDeleteData [21:43:41]*** Brake cut motor [21:43:42]Read from MH i2c: 01 [21:43:42]MH_I2C_Read... [21:43:42]*** Stop cut motor [21:43:42]*** Cut end [21:43:42]Read from MH i2c: 01 07 00 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [21:43:42]process_action close_receipt done [21:43:42]requested_data is exist [21:43:42]produce_requested_data [21:43:42]requested_item fm.sn is exist - process it [21:43:42]wFMCommunicate request_size=4 [21:43:42]MH_SAM_APDU [21:43:42]CAPDU: 80 11 00 00 [21:43:42]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [21:43:42]Write i2c OK [21:43:42]MH_I2C_Read... [21:43:42]OFD Sender: No OFD packet to send [21:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:42]Read from MH i2c: E2 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 17 00 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7E [21:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:43:42]wFMCommunicate OK [21:43:42]requested_item fd.num is exist - process it [21:43:42]SAM_PROTO_GetFieldsCounters [21:43:42]wFMCommunicate request_size=4 [21:43:42]MH_SAM_APDU [21:43:42]CAPDU: 80 13 00 00 [21:43:42]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [21:43:42]Write i2c OK [21:43:42]MH_I2C_Read... [21:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:42]Read from MH i2c: E2 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 62 00 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [21:43:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:42]wFMCommunicate OK [21:43:42]SAM_PROTO_GetFieldsCounters done [21:43:42]requested_item shift.num is exist - process it [21:43:42]requested_item shift.opened is exist - process it [21:43:42]req_shift_opened [21:43:42]FM_GetShiftState [21:43:42]SAM_PROTO_GetShiftState [21:43:42]wFMCommunicate request_size=4 [21:43:42]MH_SAM_APDU [21:43:42]CAPDU: 80 13 01 00 [21:43:42]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [21:43:42]Write i2c OK [21:43:42]MH_I2C_Read... [21:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:42]Read from MH i2c: E2 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 0E 00 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D8 [21:43:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:43:42]wFMCommunicate OK [21:43:42]SAM_PROTO_GetShiftState done [21:43:42]FM_GetShiftState done [21:43:42]req_shift_opened done [21:43:42]requested_item shift.open_date is exist - process it [21:43:42]req_shift_open_date [21:43:42]req_shift_open_date done [21:43:42]produce_requested_data done [21:43:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73103,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:43:42]process_action_free close_receipt [21:43:42]json_value_free [21:43:42]json_value_free done [21:43:42]process_json_proto returns [21:43:42]Send response to host [21:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73103,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:43:42]free response buf [21:43:42]execute_script done [21:43:42]execute_script returns [21:43:42]free content buf [21:43:42]Sock 10.Close socket [21:43:42]Sock 10.Thread stoped [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:12]recv_with_timeout no data received [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:24]recv_with_timeout no data received [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:42]recv_with_timeout no data received [21:44:47]OFD Sender: No OFD packet to send [21:44:48]accept exits with 8 [21:44:48]New connection [21:44:48]New thread 3067379044 created [21:44:48]Thread 3067235684 joined [21:44:48]Waiting for new connection... [21:44:48] Sock 8.Parse request [21:44:48]Sock 8.Check first char [21:44:48]Sock 8.First char is OK [21:44:48]request: POST /json_proto HTTP/1.0 [21:44:48]Method: POST [21:44:48]URL: /json_proto [21:44:48]Method is POST - this is cgi request [21:44:48]url: /json_proto [21:44:48]query_string will be loaded in cgi processing [21:44:48]execute_cgi json_proto POST (null) [21:44:48]execute_cgi path=json_proto method=POST [21:44:48]POST find Content-Length [21:44:48]Host: 172.17.43.195:8080 [21:44:48]Content-Length: 663 [21:44:48]Content-Type: application/json [21:44:48] [21:44:48]POST finish read [21:44:48]Found Content-Length = 663 [21:44:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:48]execute_script... [21:44:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:48]POST & json_proto [21:44:48]process_json_proto [21:44:48]json parsed OK: [21:44:48]protocol is kg_v1.0 [21:44:48]action value=close_receipt [21:44:48]process_action close_receipt [21:44:48]cmd_close_receipt [21:44:48]MH_GetDate [21:44:48]Write to MH i2c: F0 00 00 B3 00 A2 [21:44:48]Write i2c OK [21:44:48]MH_I2C_Read... [21:44:48]Read from MH i2c: F0 [21:44:48]MH_I2C_Read... [21:44:49]Read from MH i2c: F0 09 00 [21:44:49]MH_I2C_Read... [21:44:49]Read from MH i2c: F0 09 00 B3 00 00 51 FA 23 67 74 2C AD 66 33 [21:44:49]GetLastDocTimeStamp 1730411018 [21:44:49]current date 1730411089 [21:44:49]FM_GetShiftState [21:44:49]SAM_PROTO_GetShiftState [21:44:49]wFMCommunicate request_size=4 [21:44:49]MH_SAM_APDU [21:44:49]CAPDU: 80 13 01 00 [21:44:49]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [21:44:49]Write i2c OK [21:44:49]MH_I2C_Read... [21:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:49]Read from MH i2c: E2 [21:44:49]MH_I2C_Read... [21:44:49]Read from MH i2c: E2 0E 00 [21:44:49]MH_I2C_Read... [21:44:49]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 DA [21:44:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:44:49]wFMCommunicate OK [21:44:49]SAM_PROTO_GetShiftState done [21:44:49]FM_GetShiftState done [21:44:49]opened in 1730333258 [21:44:49]opened+sec_in_day 1730419658 [21:44:49]quantity*price = 200001 [21:44:49]sum+1 = 200003 [21:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 179 31.10.2024 21:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73104 ФПД: 65751702608268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214449&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73104&fm=65751702608268&tin=02508201610067®Number=0000000000091644&sum=200000 [21:44:50]StoreToDocumentArchive [21:44:50]shift 557 fd 73104 [21:44:50]save to /storage/0557/doc_00073104 [21:44:50]save last doc name /storage/0557/doc_00073104 to /storage/kkm_last_doc_name [21:44:50]save OK [21:44:50]Clear old archive folders... [21:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:44:50]tlvbuf is 01A428C0 [21:44:50]SAM_PROTO_ClearQueue [21:44:50]wFMCommunicate request_size=4 [21:44:50]MH_SAM_APDU [21:44:50]CAPDU: 80 09 00 00 [21:44:50]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [21:44:50]Write i2c OK [21:44:50]MH_I2C_Read... [21:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:50]Read from MH i2c: E2 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [21:44:50]RAPDU: 90 00 [21:44:50]wFMCommunicate OK [21:44:50]SAM_PROTO_ClearQueue done [21:44:50]KKMCreateOFDPacket [21:44:50]OFDProtocolAddRootSTLVToBuf [21:44:50]FM_MakeSignedData [21:44:50]FM_MakeSignedData [21:44:50]SAM_PROTO_SignData [21:44:50]wFMCommunicate request_size=4 [21:44:50]MH_SAM_APDU [21:44:50]CAPDU: 80 0D 01 02 [21:44:50]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [21:44:50]Write i2c OK [21:44:50]MH_I2C_Read... [21:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:50]Read from MH i2c: E2 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [21:44:50]RAPDU: 90 00 [21:44:50]wFMCommunicate OK [21:44:50]wFMCommunicate request_size=253 [21:44:50]MH_SAM_APDU [21:44:50]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 51 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1D 01 00 35 04 06 00 3B CD 02 E0 99 8C [21:44:50]Write to MH i2c: E2 00 01 C3 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 51 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1D 01 00 35 04 06 00 3B CD 02 E0 99 8C 00 00 C9 [21:44:50]Write i2c OK [21:44:50]MH_I2C_Read... [21:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:50]Read from MH i2c: E2 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [21:44:50]RAPDU: 90 00 [21:44:50]wFMCommunicate OK [21:44:50]wFMCommunicate request_size=4 [21:44:50]MH_SAM_APDU [21:44:50]CAPDU: 80 0D 03 02 [21:44:50]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [21:44:50]Write i2c OK [21:44:50]MH_I2C_Read... [21:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:50]Read from MH i2c: E2 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 0B 00 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 0B 00 C4 00 00 E0 37 1C 0E 65 E6 63 DE 90 00 0D [21:44:50]RAPDU: E0 37 1C 0E 65 E6 63 DE 90 00 [21:44:50]wFMCommunicate OK [21:44:50]SAM_PROTO_SignData done [21:44:50]FM_MakeSignedData done [21:44:50]CreateOFDProtocolMessage [21:44:50]wFMCommunicate request_size=4 [21:44:50]MH_SAM_APDU [21:44:50]CAPDU: 80 11 00 00 [21:44:50]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [21:44:50]Write i2c OK [21:44:50]MH_I2C_Read... [21:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:50]Read from MH i2c: E2 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 17 00 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 93 [21:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:44:50]wFMCommunicate OK [21:44:50]CreateOFDProtocolMessage done [21:44:50]OFDSenderStorePacket 73104 [21:44:50]StoreOFDPacket docnum=73104 [21:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 A5 BA 00 01 52 9B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 51 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1D 01 00 35 04 06 00 3B CD 02 E0 99 8C E0 37 1C 0E 65 E6 63 DE [21:44:50]CheckFolder [21:44:50]dirname=/storage/ofd_packets [21:44:50]CheckFolder done [21:44:50]ProducePacketName [21:44:50]name=ofd_packets/00073104 [21:44:50]NVStorageSaveData ofd_packets/00073104 [21:44:50]File name is /storage/ofd_packets/00073104 [21:44:50]Write 294 bytes [21:44:50]NVStorageSaveData done [21:44:50]OFDSenderStorePacket done [21:44:50]KKMCreateOFDPacket done [21:44:50]NVStorageSaveData kkm_last_timestamp [21:44:50]File name is /storage/kkm_last_timestamp [21:44:50]Write 4 bytes [21:44:50]NVStorageSaveData done [21:44:50]ExternCall_PrintAddStr [21:44:50]wPrintStart [21:44:50]Write to MH i2c: 01 00 00 C6 00 C6 [21:44:50]Write i2c OK [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: 01 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: 01 07 00 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [21:44:50]RasterBufferAndPrint [21:44:50]line Счет N : (1)952703 [21:44:50]line ИНН: 02508201610067 [21:44:50]line Контрольно-Кассовый Чек [21:44:50]line ПРОДАЖА [21:44:50]line ТРК (МРК, ГНК) : 61 [21:44:50]line Товар: 50.50.0 [21:44:50]line Super 92 [21:44:50]line 29.240 * 68.40 [21:44:50]line = 2000.02 [21:44:50]line НДС 12% НСП 1% [21:44:50]line > о реализуемом товаре [21:44:50]line ОКРУГЛЕНИЕ: -0.02 [21:44:50]line ИТОГО: 2000.00 [21:44:50]line Внесено: 2000.00 [21:44:50]line СДАЧА: 0.00 [21:44:50]line НСП 1% : 17.70 [21:44:50]line НДС 12% : 212.39 [21:44:50]line Наличными: 2000.00 [21:44:50]line Безнал.: 0.00 [21:44:50]line Место: АЗС № 113 "Партнер Нефть" [21:44:50]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:44:50]line СНО: Общий режим [21:44:50]line Чек 179 31.10.2024 21:44 [21:44:50]line Смена: 557 ФФД: 1.0 [21:44:50]line ЗНМ: 0300000087 [21:44:50]line РНМ: 0000000000091644 [21:44:50]line Версия ККМ: 001 [21:44:50]line ФМ: 0000000000874662 [21:44:50]line ФД: 73104 [21:44:50]line ФПД: 65751702608268 [21:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214449&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73104&fm=65751702608268&tin=02508201610067®Number=0000000000091644&sum=200000 [21:44:50]written 0, free lines is 4095 [21:44:50]OFD Sender: Processing packet 73104 [packets to send 282, broken 281] [21:44:50]ProducePacketName [21:44:50]name=ofd_packets/00073104 [21:44:50]OFD Sender: To server: pG, [21:44:50]CommunicateWithHost lk.salyk.kg:30040 [21:44:50]ConnectInit lk.salyk.kg [21:44:51]Write to MH i2c: 01 00 00 F1 00 F1 [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: 01 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: 01 07 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 E5 0C E9 [21:44:51]RasterBufferAndPrint [21:44:51]line [21:44:51]line [21:44:51]line [21:44:51]line [21:44:51]line [21:44:51]written 0, free lines is 3313 [21:44:51]MH_Cut [21:44:51]Write to MH i2c: D1 01 00 F8 00 01 CA [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: D1 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: D1 01 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: D1 01 00 F8 00 00 C9 [21:44:51]Write to MH i2c: 01 00 00 F9 00 F9 [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]*** Cut start [21:44:51]*** Partial cut [21:44:51]*** CUTSNS_PIN = 1 [21:44:51]*** CUTSNS_PIN = 0 [21:44:52]*** Brake cut motor [21:44:52]Read from MH i2c: 01 [21:44:52]MH_I2C_Read... [21:44:52]*** Stop cut motor [21:44:52]*** Cut end [21:44:52]Read from MH i2c: 01 07 00 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [21:44:52]process_action close_receipt done [21:44:52]requested_data is exist [21:44:52]produce_requested_data [21:44:52]requested_item fm.sn is exist - process it [21:44:52]wFMCommunicate request_size=4 [21:44:52]MH_SAM_APDU [21:44:52]CAPDU: 80 11 00 00 [21:44:52]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [21:44:52]Write i2c OK [21:44:52]MH_I2C_Read... [21:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:52]Read from MH i2c: E2 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 17 00 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C8 [21:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:44:52]wFMCommunicate OK [21:44:52]requested_item fd.num is exist - process it [21:44:52]SAM_PROTO_GetFieldsCounters [21:44:52]wFMCommunicate request_size=4 [21:44:52]MH_SAM_APDU [21:44:52]CAPDU: 80 13 00 00 [21:44:52]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [21:44:52]Write i2c OK [21:44:52]MH_I2C_Read... [21:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:52]Read from MH i2c: E2 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 62 00 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 90 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [21:44:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 90 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:52]wFMCommunicate OK [21:44:52]SAM_PROTO_GetFieldsCounters done [21:44:52]requested_item shift.num is exist - process it [21:44:52]requested_item shift.opened is exist - process it [21:44:52]req_shift_opened [21:44:52]FM_GetShiftState [21:44:52]SAM_PROTO_GetShiftState [21:44:52]wFMCommunicate request_size=4 [21:44:52]MH_SAM_APDU [21:44:52]CAPDU: 80 13 01 00 [21:44:52]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [21:44:52]Write i2c OK [21:44:52]MH_I2C_Read... [21:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:52]Read from MH i2c: E2 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 0E 00 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 22 [21:44:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:44:52]wFMCommunicate OK [21:44:52]SAM_PROTO_GetShiftState done [21:44:52]FM_GetShiftState done [21:44:52]req_shift_opened done [21:44:52]requested_item shift.open_date is exist - process it [21:44:52]req_shift_open_date [21:44:52]req_shift_open_date done [21:44:52]produce_requested_data done [21:44:52]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73104,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:44:52]process_action_free close_receipt [21:44:52]json_value_free [21:44:52]json_value_free done [21:44:52]process_json_proto returns [21:44:52]Send response to host [21:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73104,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:44:52]free response buf [21:44:52]execute_script done [21:44:52]execute_script returns [21:44:52]free content buf [21:44:52]Sock 8.Close socket [21:44:52]Sock 8.Thread stoped [21:44:54]recv_with_timeout no data received [21:44:55]ConnectInit Can't take IP for lk.salyk.kg [21:44:55]CommunicateWithHost connect error [21:44:55]CommunicateWithHost err = -1 [21:44:55]OFD Sender: Server communicate error [21:45:00]OFD Sender: Processing packet 73104 [packets to send 282, broken 281] [21:45:00]ProducePacketName [21:45:00]name=ofd_packets/00073104 [21:45:00]OFD Sender: To server: pG, [21:45:00]CommunicateWithHost lk.salyk.kg:30040 [21:45:00]ConnectInit lk.salyk.kg [21:45:08]recv_with_timeout no data received [21:45:21]Connected sock=9 [21:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 A5 BA 00 01 52 9B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 51 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1D 01 00 35 04 06 00 3B CD 02 E0 99 8C E0 37 1C 0E 65 E6 63 DE [21:45:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B0 01 47 00 E2 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1D 01 00 F4 03 04 00 25 A5 23 67 B6 04 01 00 00 E3 5E DA F9 82 6A BA 0A [21:45:25]CommunicateWithHost err = 0 [21:45:25]CheckOFDResponse [21:45:25]1017 (14) - 77093643461234 [21:45:25]1041 (16) - 0000000000874662 [21:45:25]1040 (4) - 73104 [21:45:25]1012 (4) - 31.10.2024 15:41 [21:45:25]1206 (1) - 0 [21:45:25]OFD Sender: Remove packet 73104 [21:45:25]ProducePacketName [21:45:25]name=ofd_packets/00073104 [21:45:25]NVStorageDeleteData [21:45:25]OFD Sender: No OFD packet to send [21:45:27]recv_with_timeout no data received [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]recv_with_timeout no data received [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]recv_with_timeout no data received [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:06]recv_with_timeout no data received [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:18]recv_with_timeout no data received [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:30]accept exits with 10 [21:47:30]New connection [21:47:30]New thread 3067235684 created [21:47:30]Thread 3067379044 joined [21:47:30]Waiting for new connection... [21:47:30] Sock 10.Parse request [21:47:30]Sock 10.Check first char [21:47:30]Sock 10.First char is OK [21:47:30]request: POST /json_proto HTTP/1.0 [21:47:30]Method: POST [21:47:30]URL: /json_proto [21:47:30]Method is POST - this is cgi request [21:47:30]url: /json_proto [21:47:30]query_string will be loaded in cgi processing [21:47:30]execute_cgi json_proto POST (null) [21:47:30]execute_cgi path=json_proto method=POST [21:47:30]POST find Content-Length [21:47:30]Host: 172.17.43.195:8080 [21:47:30]Content-Length: 800 [21:47:30]Content-Type: application/json [21:47:30] [21:47:30]POST finish read [21:47:30]Found Content-Length = 800 [21:47:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:30]execute_script... [21:47: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)952704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:30]POST & json_proto [21:47:30]process_json_proto [21:47:30]json parsed OK: [21:47:30]protocol is kg_v1.0 [21:47:30]action value=close_receipt [21:47:30]process_action close_receipt [21:47:30]cmd_close_receipt [21:47:30]MH_GetDate [21:47:30]Write to MH i2c: F0 00 00 FD 00 EC [21:47:30]Write i2c OK [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: F0 [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: F0 09 00 [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: F0 09 00 FD 00 00 F3 FA 23 67 74 2C AD 66 1F [21:47:30]GetLastDocTimeStamp 1730411089 [21:47:30]current date 1730411251 [21:47:30]FM_GetShiftState [21:47:30]SAM_PROTO_GetShiftState [21:47:30]wFMCommunicate request_size=4 [21:47:30]MH_SAM_APDU [21:47:30]CAPDU: 80 13 01 00 [21:47:30]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [21:47:30]Write i2c OK [21:47:30]MH_I2C_Read... [21:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:30]Read from MH i2c: E2 [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: E2 0E 00 [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 24 [21:47:30]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:47:30]wFMCommunicate OK [21:47:30]SAM_PROTO_GetShiftState done [21:47:30]FM_GetShiftState done [21:47:30]opened in 1730333258 [21:47:30]opened+sec_in_day 1730419658 [21:47:30]quantity*price = 30038 [21:47:30]sum+1 = 30039 [21:47:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 180 31.10.2024 21:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73105 ФПД: 2712200684294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214731&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73105&fm=2712200684294&tin=02508201610067®Number=0000000000091644&sum=30038 [21:47:32]StoreToDocumentArchive [21:47:32]shift 557 fd 73105 [21:47:32]save to /storage/0557/doc_00073105 [21:47:32]save last doc name /storage/0557/doc_00073105 to /storage/kkm_last_doc_name [21:47:32]save OK [21:47:32]Clear old archive folders... [21:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:32]tlvbuf is 01A3ED80 [21:47:32]SAM_PROTO_ClearQueue [21:47:32]wFMCommunicate request_size=4 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 09 00 00 [21:47:32]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [21:47:32]RAPDU: 90 00 [21:47:32]wFMCommunicate OK [21:47:32]SAM_PROTO_ClearQueue done [21:47:32]KKMCreateOFDPacket [21:47:32]OFDProtocolAddRootSTLVToBuf [21:47:32]FM_MakeSignedData [21:47:32]FM_MakeSignedData [21:47:32]SAM_PROTO_SignData [21:47:32]wFMCommunicate request_size=4 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 0D 01 02 [21:47:32]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [21:47:32]RAPDU: 90 00 [21:47:32]wFMCommunicate OK [21:47:32]wFMCommunicate request_size=255 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 F3 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1D 01 00 35 04 06 00 02 [21:47:32]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 F3 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1D 01 00 35 04 06 00 02 00 00 60 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [21:47:32]RAPDU: 90 00 [21:47:32]wFMCommunicate OK [21:47:32]wFMCommunicate request_size=10 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 0D 02 02 05 77 7B C2 23 06 [21:47:32]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 77 7B C2 23 06 00 00 70 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [21:47:32]RAPDU: 90 00 [21:47:32]wFMCommunicate OK [21:47:32]wFMCommunicate request_size=4 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 0D 03 02 [21:47:32]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 0B 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 0B 00 0F 01 00 50 EC 79 25 AB DE D7 68 90 00 2E [21:47:32]RAPDU: 50 EC 79 25 AB DE D7 68 90 00 [21:47:32]wFMCommunicate OK [21:47:32]SAM_PROTO_SignData done [21:47:32]FM_MakeSignedData done [21:47:32]CreateOFDProtocolMessage [21:47:32]wFMCommunicate request_size=4 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 11 00 00 [21:47:32]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 17 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DF [21:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:47:32]wFMCommunicate OK [21:47:32]CreateOFDProtocolMessage done [21:47:32]OFDSenderStorePacket 73105 [21:47:32]StoreOFDPacket docnum=73105 [21:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5C 47 07 01 70 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 F3 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1D 01 00 35 04 06 00 02 77 7B C2 23 06 50 EC 79 25 AB DE D7 68 [21:47:32]CheckFolder [21:47:32]dirname=/storage/ofd_packets [21:47:32]CheckFolder done [21:47:32]ProducePacketName [21:47:32]name=ofd_packets/00073105 [21:47:32]NVStorageSaveData ofd_packets/00073105 [21:47:32]File name is /storage/ofd_packets/00073105 [21:47:32]Write 301 bytes [21:47:32]NVStorageSaveData done [21:47:32]OFDSenderStorePacket done [21:47:32]KKMCreateOFDPacket done [21:47:32]NVStorageSaveData kkm_last_timestamp [21:47:32]File name is /storage/kkm_last_timestamp [21:47:32]Write 4 bytes [21:47:32]NVStorageSaveData done [21:47:32]ExternCall_PrintAddStr [21:47:32]wPrintStart [21:47:32]Write to MH i2c: 01 00 00 11 01 12 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: 01 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: 01 07 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [21:47:32]RasterBufferAndPrint [21:47:32]line Счет N : (1)952704 [21:47:32]line ИНН: 02508201610067 [21:47:32]line Контрольно-Кассовый Чек [21:47:32]line ПРОДАЖА [21:47:32]line ТРК (МРК, ГНК) : 42 [21:47:32]line Товар: 2710124130 [21:47:32]line Аи-92-К-5 [21:47:32]line 4.490 * 66.90 [21:47:32]line = 300.38 [21:47:32]line НДС 12% НСП 1% [21:47:32]line > о реализуемом товаре [21:47:32]line ИТОГО: 300.38 [21:47:32]line НСП 1% : 2.66 [21:47:32]line НДС 12% : 31.90 [21:47:32]line Наличными: 0.00 [21:47:32]line Безнал.: 300.38 [21:47:32]line Место: АЗС № 113 "Партнер Нефть" [21:47:32]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:47:32]line СНО: Общий режим [21:47:32]line Чек 180 31.10.2024 21:47 [21:47:32]line Смена: 557 ФФД: 1.0 [21:47:32]line ЗНМ: 0300000087 [21:47:32]line РНМ: 0000000000091644 [21:47:32]line Версия ККМ: 001 [21:47:32]line Платежная система: O! деньги [21:47:32]line ФМ: 0000000000874662 [21:47:32]line ФД: 73105 [21:47:32]line ФПД: 2712200684294 [21:47:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214731&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73105&fm=2712200684294&tin=02508201610067®Number=0000000000091644&sum=30038 [21:47:32]OFD Sender: Processing packet 73105 [packets to send 282, broken 281] [21:47:32]ProducePacketName [21:47:32]name=ofd_packets/00073105 [21:47:32]OFD Sender: To server: pG, [21:47:32]CommunicateWithHost lk.salyk.kg:30040 [21:47:32]ConnectInit lk.salyk.kg [21:47:32]written 0, free lines is 4095 [21:47:33]Write to MH i2c: 01 00 00 3B 01 3C [21:47:33]Write i2c OK [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: 01 [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: 01 07 00 [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 E6 0C 35 [21:47:33]RasterBufferAndPrint [21:47:33]line [21:47:33]line [21:47:33]line [21:47:33]line [21:47:33]line [21:47:33]written 0, free lines is 3308 [21:47:33]MH_Cut [21:47:33]Write to MH i2c: D1 01 00 42 01 01 15 [21:47:33]Write i2c OK [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: D1 [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: D1 01 00 [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: D1 01 00 42 01 00 14 [21:47:33]Write to MH i2c: 01 00 00 43 01 44 [21:47:33]Write i2c OK [21:47:33]MH_I2C_Read... [21:47:33]Connected sock=8 [21:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5C 47 07 01 70 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 F3 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1D 01 00 35 04 06 00 02 77 7B C2 23 06 50 EC 79 25 AB DE D7 68 [21:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 97 D0 47 00 A7 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1D 01 00 F4 03 04 00 A8 A5 23 67 B6 04 01 00 00 FE F3 FF B7 2B 2E C1 5F [21:47:33]CommunicateWithHost err = 0 [21:47:33]CheckOFDResponse [21:47:33]1017 (14) - 77093643461234 [21:47:33]1041 (16) - 0000000000874662 [21:47:33]1040 (4) - 73105 [21:47:33]1012 (4) - 31.10.2024 15:43 [21:47:33]1206 (1) - 0 [21:47:33]OFD Sender: Remove packet 73105 [21:47:33]ProducePacketName [21:47:33]name=ofd_packets/00073105 [21:47:33]NVStorageDeleteData [21:47:34]*** Cut start [21:47:34]*** Partial cut [21:47:34]*** CUTSNS_PIN = 1 [21:47:34]*** CUTSNS_PIN = 0 [21:47:34]OFD Sender: No OFD packet to send [21:47:34]*** Brake cut motor [21:47:34]Read from MH i2c: 01 [21:47:34]MH_I2C_Read... [21:47:34]*** Stop cut motor [21:47:34]*** Cut end [21:47:34]Read from MH i2c: 01 07 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [21:47:34]process_action close_receipt done [21:47:34]requested_data is exist [21:47:34]produce_requested_data [21:47:34]requested_item fm.sn is exist - process it [21:47:34]wFMCommunicate request_size=4 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 11 00 00 [21:47:34]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:34]Read from MH i2c: E2 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 17 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 13 [21:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:47:34]wFMCommunicate OK [21:47:34]requested_item fd.num is exist - process it [21:47:34]SAM_PROTO_GetFieldsCounters [21:47:34]wFMCommunicate request_size=4 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 13 00 00 [21:47:34]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:35]Read from MH i2c: E2 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 62 00 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 91 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [21:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 91 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:35]wFMCommunicate OK [21:47:35]SAM_PROTO_GetFieldsCounters done [21:47:35]requested_item shift.num is exist - process it [21:47:35]requested_item shift.opened is exist - process it [21:47:35]req_shift_opened [21:47:35]FM_GetShiftState [21:47:35]SAM_PROTO_GetShiftState [21:47:35]wFMCommunicate request_size=4 [21:47:35]MH_SAM_APDU [21:47:35]CAPDU: 80 13 01 00 [21:47:35]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [21:47:35]Write i2c OK [21:47:35]MH_I2C_Read... [21:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:35]Read from MH i2c: E2 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 0E 00 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6D [21:47:35]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:47:35]wFMCommunicate OK [21:47:35]SAM_PROTO_GetShiftState done [21:47:35]FM_GetShiftState done [21:47:35]req_shift_opened done [21:47:35]requested_item shift.open_date is exist - process it [21:47:35]req_shift_open_date [21:47:35]req_shift_open_date done [21:47:35]produce_requested_data done [21:47:35]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73105,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:47:35]process_action_free close_receipt [21:47:35]json_value_free [21:47:35]json_value_free done [21:47:35]process_json_proto returns [21:47:35]Send response to host [21:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73105,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:47:35]free response buf [21:47:35]execute_script done [21:47:35]execute_script returns [21:47:35]free content buf [21:47:35]Sock 10.Close socket [21:47:35]Sock 10.Thread stoped [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:12]recv_with_timeout no data received [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]recv_with_timeout no data received [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:10]accept exits with 9 [21:52:10]New connection [21:52:10]New thread 3067379044 created [21:52:10]Thread 3067235684 joined [21:52:10]Waiting for new connection... [21:52:10] Sock 9.Parse request [21:52:10]Sock 9.Check first char [21:52:10]Sock 9.First char is OK [21:52:10]request: POST /json_proto HTTP/1.0 [21:52:10]Method: POST [21:52:10]URL: /json_proto [21:52:10]Method is POST - this is cgi request [21:52:10]url: /json_proto [21:52:10]query_string will be loaded in cgi processing [21:52:10]execute_cgi json_proto POST (null) [21:52:10]execute_cgi path=json_proto method=POST [21:52:10]POST find Content-Length [21:52:10]Host: 172.17.43.195:8080 [21:52:10]Content-Length: 677 [21:52:10]Content-Type: application/json [21:52:10] [21:52:10]POST finish read [21:52:10]Found Content-Length = 677 [21:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:10]execute_script... [21:52:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:10]POST & json_proto [21:52:10]process_json_proto [21:52:10]json parsed OK: [21:52:10]protocol is kg_v1.0 [21:52:10]action value=close_receipt [21:52:10]process_action close_receipt [21:52:10]cmd_close_receipt [21:52:10]MH_GetDate [21:52:10]Write to MH i2c: F0 00 00 47 01 37 [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: F0 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: F0 09 00 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: F0 09 00 47 01 00 0B FC 23 67 74 2C AD 66 84 [21:52:10]GetLastDocTimeStamp 1730411251 [21:52:10]current date 1730411531 [21:52:10]FM_GetShiftState [21:52:10]SAM_PROTO_GetShiftState [21:52:10]wFMCommunicate request_size=4 [21:52:10]MH_SAM_APDU [21:52:10]CAPDU: 80 13 01 00 [21:52:10]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:10]Read from MH i2c: E2 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: E2 0E 00 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6F [21:52:10]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:52:10]wFMCommunicate OK [21:52:10]SAM_PROTO_GetShiftState done [21:52:10]FM_GetShiftState done [21:52:10]opened in 1730333258 [21:52:10]opened+sec_in_day 1730419658 [21:52:10]quantity*price = 50041 [21:52:10]sum+1 = 50042 [21:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 181 31.10.2024 21:52 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73106 ФПД: 88000294301819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T215211&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73106&fm=88000294301819&tin=02508201610067®Number=0000000000091644&sum=50000 [21:52:11]StoreToDocumentArchive [21:52:11]shift 557 fd 73106 [21:52:11]save to /storage/0557/doc_00073106 [21:52:11]save last doc name /storage/0557/doc_00073106 to /storage/kkm_last_doc_name [21:52:11]save OK [21:52:11]Clear old archive folders... [21:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:11]tlvbuf is 01A328E0 [21:52:11]SAM_PROTO_ClearQueue [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 09 00 00 [21:52:11]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]SAM_PROTO_ClearQueue done [21:52:11]KKMCreateOFDPacket [21:52:11]OFDProtocolAddRootSTLVToBuf [21:52:11]FM_MakeSignedData [21:52:11]FM_MakeSignedData [21:52:11]SAM_PROTO_SignData [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 01 02 [21:52:11]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]wFMCommunicate request_size=255 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 0B FC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1D 01 00 35 04 06 00 50 [21:52:11]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 0B FC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1D 01 00 35 04 06 00 50 00 00 D4 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]wFMCommunicate request_size=10 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 02 02 05 09 2A 48 30 7B [21:52:11]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 09 2A 48 30 7B 00 00 03 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 03 02 [21:52:11]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0B 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0B 00 59 01 00 06 9A 0E D3 23 6E 27 FA 90 00 09 [21:52:11]RAPDU: 06 9A 0E D3 23 6E 27 FA 90 00 [21:52:11]wFMCommunicate OK [21:52:11]SAM_PROTO_SignData done [21:52:11]FM_MakeSignedData done [21:52:11]CreateOFDProtocolMessage [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 11 00 00 [21:52:11]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:12]Read from MH i2c: E2 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: E2 17 00 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 29 [21:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:52:12]wFMCommunicate OK [21:52:12]CreateOFDProtocolMessage done [21:52:12]OFDSenderStorePacket 73106 [21:52:12]StoreOFDPacket docnum=73106 [21:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DB 2E 07 01 03 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 0B FC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1D 01 00 35 04 06 00 50 09 2A 48 30 7B 06 9A 0E D3 23 6E 27 FA [21:52:12]CheckFolder [21:52:12]dirname=/storage/ofd_packets [21:52:12]CheckFolder done [21:52:12]ProducePacketName [21:52:12]name=ofd_packets/00073106 [21:52:12]NVStorageSaveData ofd_packets/00073106 [21:52:12]File name is /storage/ofd_packets/00073106 [21:52:12]Write 301 bytes [21:52:12]NVStorageSaveData done [21:52:12]OFDSenderStorePacket done [21:52:12]KKMCreateOFDPacket done [21:52:12]NVStorageSaveData kkm_last_timestamp [21:52:12]File name is /storage/kkm_last_timestamp [21:52:12]Write 4 bytes [21:52:12]NVStorageSaveData done [21:52:12]OFD Sender: Processing packet 73106 [packets to send 282, broken 281] [21:52:12]ProducePacketName [21:52:12]name=ofd_packets/00073106 [21:52:12]OFD Sender: To server: pG, [21:52:12]CommunicateWithHost lk.salyk.kg:30040 [21:52:12]ConnectInit lk.salyk.kg [21:52:12]ExternCall_PrintAddStr [21:52:12]wPrintStart [21:52:12]Write to MH i2c: 01 00 00 5B 01 5C [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 07 00 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [21:52:12]RasterBufferAndPrint [21:52:12]line Счет N : (1)952705 [21:52:12]line ИНН: 02508201610067 [21:52:12]line Контрольно-Кассовый Чек [21:52:12]line ПРОДАЖА [21:52:12]line ТРК (МРК, ГНК) : 63 [21:52:12]line Товар: 2710124130 [21:52:12]line Аи-92-К-5 [21:52:12]line 7.480 * 66.90 [21:52:12]line = 500.41 [21:52:12]line НДС 12% НСП 1% [21:52:12]line > о реализуемом товаре [21:52:12]line ОКРУГЛЕНИЕ: -0.41 [21:52:12]line ИТОГО: 500.00 [21:52:12]line Внесено: 500.00 [21:52:12]line СДАЧА: 0.00 [21:52:12]line НСП 1% : 4.43 [21:52:12]line НДС 12% : 53.14 [21:52:12]line Наличными: 500.00 [21:52:12]line Безнал.: 0.00 [21:52:12]line Место: АЗС № 113 "Партнер Нефть" [21:52:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:52:12]line СНО: Общий режим [21:52:12]line Чек 181 31.10.2024 21:52 [21:52:12]line Смена: 557 ФФД: 1.0 [21:52:12]line ЗНМ: 0300000087 [21:52:12]line РНМ: 0000000000091644 [21:52:12]line Версия ККМ: 001 [21:52:12]line ФМ: 0000000000874662 [21:52:12]line ФД: 73106 [21:52:12]line ФПД: 88000294301819 [21:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T215211&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73106&fm=88000294301819&tin=02508201610067®Number=0000000000091644&sum=50000 [21:52:12]written 0, free lines is 4095 [21:52:12]Connected sock=11 [21:52:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DB 2E 07 01 03 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 0B FC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1D 01 00 35 04 06 00 50 09 2A 48 30 7B 06 9A 0E D3 23 6E 27 FA [21:52:12]Write to MH i2c: 01 00 00 86 01 87 [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 07 00 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 E1 0C 7B [21:52:12]RasterBufferAndPrint [21:52:12]line [21:52:12]line [21:52:12]line [21:52:12]line [21:52:12]line [21:52:12]written 0, free lines is 3303 [21:52:12]MH_Cut [21:52:12]Write to MH i2c: D1 01 00 8D 01 01 60 [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: D1 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: D1 01 00 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: D1 01 00 8D 01 00 5F [21:52:12]Write to MH i2c: 01 00 00 8E 01 8F [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 07 01 47 00 DB 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1D 01 00 F4 03 04 00 BF A6 23 67 B6 04 01 00 00 95 81 ED 25 5B 34 A5 18 [21:52:13]CommunicateWithHost err = 0 [21:52:13]CheckOFDResponse [21:52:13]1017 (14) - 77093643461234 [21:52:13]1041 (16) - 0000000000874662 [21:52:13]1040 (4) - 73106 [21:52:13]1012 (4) - 31.10.2024 15:48 [21:52:13]1206 (1) - 0 [21:52:13]OFD Sender: Remove packet 73106 [21:52:13]ProducePacketName [21:52:13]name=ofd_packets/00073106 [21:52:13]NVStorageDeleteData [21:52:13]OFD Sender: No OFD packet to send [21:52:13]*** Cut start [21:52:13]*** Partial cut [21:52:13]*** CUTSNS_PIN = 1 [21:52:13]*** CUTSNS_PIN = 0 [21:52:13]*** Brake cut motor [21:52:14]Read from MH i2c: 01 [21:52:14]MH_I2C_Read... [21:52:14]*** Stop cut motor [21:52:14]*** Cut end [21:52:14]Read from MH i2c: 01 07 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [21:52:14]process_action close_receipt done [21:52:14]requested_data is exist [21:52:14]produce_requested_data [21:52:14]requested_item fm.sn is exist - process it [21:52:14]wFMCommunicate request_size=4 [21:52:14]MH_SAM_APDU [21:52:14]CAPDU: 80 11 00 00 [21:52:14]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 17 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5E [21:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:52:14]wFMCommunicate OK [21:52:14]requested_item fd.num is exist - process it [21:52:14]SAM_PROTO_GetFieldsCounters [21:52:14]wFMCommunicate request_size=4 [21:52:14]MH_SAM_APDU [21:52:14]CAPDU: 80 13 00 00 [21:52:14]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 62 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 92 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [21:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 92 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:14]wFMCommunicate OK [21:52:14]SAM_PROTO_GetFieldsCounters done [21:52:14]requested_item shift.num is exist - process it [21:52:14]requested_item shift.opened is exist - process it [21:52:14]req_shift_opened [21:52:14]FM_GetShiftState [21:52:14]SAM_PROTO_GetShiftState [21:52:14]wFMCommunicate request_size=4 [21:52:14]MH_SAM_APDU [21:52:14]CAPDU: 80 13 01 00 [21:52:14]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 0E 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B8 [21:52:14]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:52:14]wFMCommunicate OK [21:52:14]SAM_PROTO_GetShiftState done [21:52:14]FM_GetShiftState done [21:52:14]req_shift_opened done [21:52:14]requested_item shift.open_date is exist - process it [21:52:14]req_shift_open_date [21:52:14]req_shift_open_date done [21:52:14]produce_requested_data done [21:52:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73106,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:52:14]process_action_free close_receipt [21:52:14]json_value_free [21:52:14]json_value_free done [21:52:14]process_json_proto returns [21:52:14]Send response to host [21:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73106,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:52:14]free response buf [21:52:14]execute_script done [21:52:14]execute_script returns [21:52:14]free content buf [21:52:14]Sock 9.Close socket [21:52:14]Sock 9.Thread stoped [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:47]recv_with_timeout no data received [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]accept exits with 8 [21:53:58]New connection [21:53:58]New thread 3067235684 created [21:53:58]Thread 3067379044 joined [21:53:58]Waiting for new connection... [21:53:58] Sock 8.Parse request [21:53:58]Sock 8.Check first char [21:53:58]Sock 8.First char is OK [21:53:58]request: POST /json_proto HTTP/1.0 [21:53:58]Method: POST [21:53:58]URL: /json_proto [21:53:58]Method is POST - this is cgi request [21:53:58]url: /json_proto [21:53:58]query_string will be loaded in cgi processing [21:53:58]execute_cgi json_proto POST (null) [21:53:58]execute_cgi path=json_proto method=POST [21:53:58]POST find Content-Length [21:53:58]Host: 172.17.43.195:8080 [21:53:58]Content-Length: 792 [21:53:58]Content-Type: application/json [21:53:58] [21:53:58]POST finish read [21:53:58]Found Content-Length = 792 [21:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:58]execute_script... [21:53:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:58]POST & json_proto [21:53:58]process_json_proto [21:53:58]json parsed OK: [21:53:58]protocol is kg_v1.0 [21:53:58]action value=close_receipt [21:53:58]process_action close_receipt [21:53:58]cmd_close_receipt [21:53:58]MH_GetDate [21:53:58]Write to MH i2c: F0 00 00 92 01 82 [21:53:58]Write i2c OK [21:53:58]MH_I2C_Read... [21:53:58]Read from MH i2c: F0 [21:53:58]MH_I2C_Read... [21:53:58]Read from MH i2c: F0 09 00 [21:53:58]MH_I2C_Read... [21:53:58]Read from MH i2c: F0 09 00 92 01 00 77 FC 23 67 74 2C AD 66 3B [21:53:58]GetLastDocTimeStamp 1730411531 [21:53:58]current date 1730411639 [21:53:58]FM_GetShiftState [21:53:58]SAM_PROTO_GetShiftState [21:53:58]wFMCommunicate request_size=4 [21:53:58]MH_SAM_APDU [21:53:58]CAPDU: 80 13 01 00 [21:53:58]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [21:53:58]Write i2c OK [21:53:58]MH_I2C_Read... [21:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:58]Read from MH i2c: E2 [21:53:58]MH_I2C_Read... [21:53:58]Read from MH i2c: E2 0E 00 [21:53:58]MH_I2C_Read... [21:53:58]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 BA [21:53:58]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:53:58]wFMCommunicate OK [21:53:58]SAM_PROTO_GetShiftState done [21:53:58]FM_GetShiftState done [21:53:58]opened in 1730333258 [21:53:58]opened+sec_in_day 1730419658 [21:53:58]quantity*price = 0 [21:53:58]sum+1 = 1 [21:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 182 31.10.2024 21:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 73107 ФПД: 108784125746214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T215359&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73107&fm=108784125746214&tin=02508201610067®Number=0000000000091644&sum=0 [21:53:59]StoreToDocumentArchive [21:53:59]shift 557 fd 73107 [21:53:59]save to /storage/0557/doc_00073107 [21:53:59]save last doc name /storage/0557/doc_00073107 to /storage/kkm_last_doc_name [21:53:59]save OK [21:53:59]Clear old archive folders... [21:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:59]tlvbuf is 01A30730 [21:53:59]SAM_PROTO_ClearQueue [21:53:59]wFMCommunicate request_size=4 [21:53:59]MH_SAM_APDU [21:53:59]CAPDU: 80 09 00 00 [21:53:59]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [21:53:59]Write i2c OK [21:53:59]MH_I2C_Read... [21:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:59]Read from MH i2c: E2 [21:53:59]MH_I2C_Read... [21:53:59]Read from MH i2c: E2 03 00 [21:53:59]MH_I2C_Read... [21:53:59]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [21:53:59]RAPDU: 90 00 [21:53:59]wFMCommunicate OK [21:53:59]SAM_PROTO_ClearQueue done [21:53:59]KKMCreateOFDPacket [21:53:59]OFDProtocolAddRootSTLVToBuf [21:53:59]FM_MakeSignedData [21:53:59]FM_MakeSignedData [21:53:59]SAM_PROTO_SignData [21:53:59]wFMCommunicate request_size=4 [21:53:59]MH_SAM_APDU [21:53:59]CAPDU: 80 0D 01 02 [21:53:59]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [21:53:59]Write i2c OK [21:53:59]MH_I2C_Read... [21:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:59]Read from MH i2c: E2 [21:53:59]MH_I2C_Read... [21:53:59]Read from MH i2c: E2 03 00 [21:53:59]MH_I2C_Read... [21:53:59]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [21:53:59]RAPDU: 90 00 [21:53:59]wFMCommunicate OK [21:53:59]wFMCommunicate request_size=255 [21:53:59]MH_SAM_APDU [21:53:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 77 FC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1D 01 00 35 04 06 00 62 [21:53:59]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 77 FC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1D 01 00 35 04 06 00 62 00 00 00 [21:53:59]Write i2c OK [21:53:59]MH_I2C_Read... [21:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:00]Read from MH i2c: E2 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 03 00 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [21:54:00]RAPDU: 90 00 [21:54:00]wFMCommunicate OK [21:54:00]wFMCommunicate request_size=10 [21:54:00]MH_SAM_APDU [21:54:00]CAPDU: 80 0D 02 02 05 F0 47 2C 1C 26 [21:54:00]Write to MH i2c: E2 0D 00 A3 01 80 0D 02 02 05 00 F0 47 2C 1C 26 00 00 CD [21:54:00]Write i2c OK [21:54:00]MH_I2C_Read... [21:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:00]Read from MH i2c: E2 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 03 00 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [21:54:00]RAPDU: 90 00 [21:54:00]wFMCommunicate OK [21:54:00]wFMCommunicate request_size=4 [21:54:00]MH_SAM_APDU [21:54:00]CAPDU: 80 0D 03 02 [21:54:00]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [21:54:00]Write i2c OK [21:54:00]MH_I2C_Read... [21:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:00]Read from MH i2c: E2 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 0B 00 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 0B 00 A4 01 00 BC 60 C8 40 9A E8 82 4E 90 00 97 [21:54:00]RAPDU: BC 60 C8 40 9A E8 82 4E 90 00 [21:54:00]wFMCommunicate OK [21:54:00]SAM_PROTO_SignData done [21:54:00]FM_MakeSignedData done [21:54:00]CreateOFDProtocolMessage [21:54:00]wFMCommunicate request_size=4 [21:54:00]MH_SAM_APDU [21:54:00]CAPDU: 80 11 00 00 [21:54:00]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [21:54:00]Write i2c OK [21:54:00]MH_I2C_Read... [21:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:00]Read from MH i2c: E2 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 17 00 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 74 [21:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:54:00]wFMCommunicate OK [21:54:00]CreateOFDProtocolMessage done [21:54:00]OFDSenderStorePacket 73107 [21:54:00]StoreOFDPacket docnum=73107 [21:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 AE 07 01 07 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 77 FC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1D 01 00 35 04 06 00 62 F0 47 2C 1C 26 BC 60 C8 40 9A E8 82 4E [21:54:00]CheckFolder [21:54:00]dirname=/storage/ofd_packets [21:54:00]CheckFolder done [21:54:00]ProducePacketName [21:54:00]name=ofd_packets/00073107 [21:54:00]NVStorageSaveData ofd_packets/00073107 [21:54:00]File name is /storage/ofd_packets/00073107 [21:54:00]Write 301 bytes [21:54:00]NVStorageSaveData done [21:54:00]OFDSenderStorePacket done [21:54:00]KKMCreateOFDPacket done [21:54:00]NVStorageSaveData kkm_last_timestamp [21:54:00]File name is /storage/kkm_last_timestamp [21:54:00]Write 4 bytes [21:54:00]NVStorageSaveData done [21:54:00]ExternCall_PrintAddStr [21:54:00]wPrintStart [21:54:00]Write to MH i2c: 01 00 00 A6 01 A7 [21:54:00]Write i2c OK [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: 01 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: 01 07 00 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [21:54:00]RasterBufferAndPrint [21:54:00]line Счет N : (1)952706 [21:54:00]line ИНН: 02508201610067 [21:54:00]line Контрольно-Кассовый Чек [21:54:00]line ПРОДАЖА [21:54:00]line ТРК (МРК, ГНК) : 63 [21:54:00]line Товар: 2710124130 [21:54:00]line Аи-92-К-5 [21:54:00]line 14.000 * 0.00 [21:54:00]line = 0.00 [21:54:00]line НДС 12% НСП 1% [21:54:00]line > о реализуемом товаре [21:54:00]line ИТОГО: 0.00 [21:54:00]line НСП 1% : 0.00 [21:54:00]line НДС 12% : 0.00 [21:54:00]line Наличными: 0.00 [21:54:00]line Безнал.: 0.00 [21:54:00]line Место: АЗС № 113 "Партнер Нефть" [21:54:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:54:00]line СНО: Общий режим [21:54:00]line Чек 182 31.10.2024 21:53 [21:54:00]line Смена: 557 ФФД: 1.0 [21:54:00]line ЗНМ: 0300000087 [21:54:00]line РНМ: 0000000000091644 [21:54:00]line Версия ККМ: 001 [21:54:00]line Талоны: Топливная Карта [21:54:00]line 02645 [21:54:00]line ФМ: 0000000000874662 [21:54:00]line ФД: 73107 [21:54:00]line ФПД: 108784125746214 [21:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T215359&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73107&fm=108784125746214&tin=02508201610067®Number=0000000000091644&sum=0 [21:54:00]written 0, free lines is 4095 [21:54:00]OFD Sender: Processing packet 73107 [packets to send 282, broken 281] [21:54:00]ProducePacketName [21:54:00]name=ofd_packets/00073107 [21:54:00]OFD Sender: To server: pG, [21:54:00]CommunicateWithHost lk.salyk.kg:30040 [21:54:00]ConnectInit lk.salyk.kg [21:54:00]Write to MH i2c: 01 00 00 D0 01 D1 [21:54:00]Write i2c OK [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: 01 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: 01 07 00 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 E0 0C C4 [21:54:00]RasterBufferAndPrint [21:54:00]line [21:54:00]line [21:54:00]line [21:54:00]line [21:54:00]line [21:54:00]written 0, free lines is 3302 [21:54:00]MH_Cut [21:54:00]Write to MH i2c: D1 01 00 D7 01 01 AA [21:54:00]Write i2c OK [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: D1 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: D1 01 00 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: D1 01 00 D7 01 00 A9 [21:54:00]Write to MH i2c: 01 00 00 D8 01 D9 [21:54:00]Write i2c OK [21:54:00]MH_I2C_Read... [21:54:01]*** Cut start [21:54:01]*** Partial cut [21:54:01]*** CUTSNS_PIN = 1 [21:54:01]*** CUTSNS_PIN = 0 [21:54:01]*** Brake cut motor [21:54:02]Read from MH i2c: 01 [21:54:02]MH_I2C_Read... [21:54:02]*** Stop cut motor [21:54:02]*** Cut end [21:54:02]Read from MH i2c: 01 07 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [21:54:02]process_action close_receipt done [21:54:02]requested_data is exist [21:54:02]produce_requested_data [21:54:02]requested_item fm.sn is exist - process it [21:54:02]wFMCommunicate request_size=4 [21:54:02]MH_SAM_APDU [21:54:02]CAPDU: 80 11 00 00 [21:54:02]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:02]Read from MH i2c: E2 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 17 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A8 [21:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:54:02]wFMCommunicate OK [21:54:02]requested_item fd.num is exist - process it [21:54:02]SAM_PROTO_GetFieldsCounters [21:54:02]wFMCommunicate request_size=4 [21:54:02]MH_SAM_APDU [21:54:02]CAPDU: 80 13 00 00 [21:54:02]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:02]Read from MH i2c: E2 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 62 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 62 00 DA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 93 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [21:54:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 93 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:02]wFMCommunicate OK [21:54:02]SAM_PROTO_GetFieldsCounters done [21:54:02]requested_item shift.num is exist - process it [21:54:02]requested_item shift.opened is exist - process it [21:54:02]req_shift_opened [21:54:02]FM_GetShiftState [21:54:02]SAM_PROTO_GetShiftState [21:54:02]wFMCommunicate request_size=4 [21:54:02]MH_SAM_APDU [21:54:02]CAPDU: 80 13 01 00 [21:54:02]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:02]Read from MH i2c: E2 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 0E 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 02 [21:54:02]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:54:02]wFMCommunicate OK [21:54:02]SAM_PROTO_GetShiftState done [21:54:02]FM_GetShiftState done [21:54:02]req_shift_opened done [21:54:02]requested_item shift.open_date is exist - process it [21:54:02]req_shift_open_date [21:54:02]req_shift_open_date done [21:54:02]produce_requested_data done [21:54:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73107,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:54:02]process_action_free close_receipt [21:54:02]json_value_free [21:54:02]json_value_free done [21:54:02]process_json_proto returns [21:54:02]Send response to host [21:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73107,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:54:02]free response buf [21:54:02]execute_script done [21:54:02]execute_script returns [21:54:02]free content buf [21:54:02]Sock 8.Close socket [21:54:02]Sock 8.Thread stoped [21:54:02]Connected sock=10 [21:54:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 AE 07 01 07 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 77 FC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1D 01 00 35 04 06 00 62 F0 47 2C 1C 26 BC 60 C8 40 9A E8 82 4E [21:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 85 29 47 00 29 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1D 01 00 F4 03 04 00 2E A7 23 67 B6 04 01 00 00 AB E3 90 CB 9D 13 53 9A [21:54:07]CommunicateWithHost err = 0 [21:54:07]CheckOFDResponse [21:54:07]1017 (14) - 77093643461234 [21:54:07]1041 (16) - 0000000000874662 [21:54:07]1040 (4) - 73107 [21:54:07]1012 (4) - 31.10.2024 15:50 [21:54:07]1206 (1) - 0 [21:54:07]OFD Sender: Remove packet 73107 [21:54:07]ProducePacketName [21:54:07]name=ofd_packets/00073107 [21:54:07]NVStorageDeleteData [21:54:07]OFD Sender: No OFD packet to send [21:54:09]recv_with_timeout no data received [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:25]recv_with_timeout no data received [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:41]recv_with_timeout no data received [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:47]accept exits with 9 [21:56:47]New connection [21:56:47]New thread 3067379044 created [21:56:47]Thread 3067235684 joined [21:56:47]Waiting for new connection... [21:56:47] Sock 9.Parse request [21:56:47]Sock 9.Check first char [21:56:47]Sock 9.First char is OK [21:56:47]request: POST /json_proto HTTP/1.0 [21:56:47]Method: POST [21:56:47]URL: /json_proto [21:56:47]Method is POST - this is cgi request [21:56:47]url: /json_proto [21:56:47]query_string will be loaded in cgi processing [21:56:47]execute_cgi json_proto POST (null) [21:56:47]execute_cgi path=json_proto method=POST [21:56:47]POST find Content-Length [21:56:47]Host: 172.17.43.195:8080 [21:56:47]Content-Length: 792 [21:56:47]Content-Type: application/json [21:56:47] [21:56:47]POST finish read [21:56:47]Found Content-Length = 792 [21:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:47]execute_script... [21:56:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:47]POST & json_proto [21:56:47]process_json_proto [21:56:47]json parsed OK: [21:56:47]protocol is kg_v1.0 [21:56:47]action value=close_receipt [21:56:47]process_action close_receipt [21:56:47]cmd_close_receipt [21:56:47]MH_GetDate [21:56:47]Write to MH i2c: F0 00 00 DC 01 CC [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: F0 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: F0 09 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: F0 09 00 DC 01 00 1F FD 23 67 74 2C AD 66 2E [21:56:47]GetLastDocTimeStamp 1730411639 [21:56:47]current date 1730411807 [21:56:47]FM_GetShiftState [21:56:47]SAM_PROTO_GetShiftState [21:56:47]wFMCommunicate request_size=4 [21:56:47]MH_SAM_APDU [21:56:47]CAPDU: 80 13 01 00 [21:56:47]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:47]Read from MH i2c: E2 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 0E 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 04 [21:56:47]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:56:47]wFMCommunicate OK [21:56:47]SAM_PROTO_GetShiftState done [21:56:47]FM_GetShiftState done [21:56:47]opened in 1730333258 [21:56:47]opened+sec_in_day 1730419658 [21:56:47]quantity*price = 0 [21:56:47]sum+1 = 1 [21:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 183 31.10.2024 21:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 73108 ФПД: 268084259738860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T215647&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73108&fm=268084259738860&tin=02508201610067®Number=0000000000091644&sum=0 [21:56:48]StoreToDocumentArchive [21:56:48]shift 557 fd 73108 [21:56:48]save to /storage/0557/doc_00073108 [21:56:48]save last doc name /storage/0557/doc_00073108 to /storage/kkm_last_doc_name [21:56:48]save OK [21:56:48]Clear old archive folders... [21:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:56:48]tlvbuf is 01A30600 [21:56:48]SAM_PROTO_ClearQueue [21:56:48]wFMCommunicate request_size=4 [21:56:48]MH_SAM_APDU [21:56:48]CAPDU: 80 09 00 00 [21:56:48]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:48]Read from MH i2c: E2 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 03 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [21:56:48]RAPDU: 90 00 [21:56:48]wFMCommunicate OK [21:56:48]SAM_PROTO_ClearQueue done [21:56:48]KKMCreateOFDPacket [21:56:48]OFDProtocolAddRootSTLVToBuf [21:56:48]FM_MakeSignedData [21:56:48]FM_MakeSignedData [21:56:48]SAM_PROTO_SignData [21:56:48]wFMCommunicate request_size=4 [21:56:48]MH_SAM_APDU [21:56:48]CAPDU: 80 0D 01 02 [21:56:48]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:48]Read from MH i2c: E2 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 03 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [21:56:48]RAPDU: 90 00 [21:56:48]wFMCommunicate OK [21:56:48]wFMCommunicate request_size=255 [21:56:48]MH_SAM_APDU [21:56:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1F FD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1D 01 00 35 04 06 00 F3 [21:56:48]Write to MH i2c: E2 02 01 EC 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1F FD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1D 01 00 35 04 06 00 F3 00 00 D7 [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:48]Read from MH i2c: E2 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 03 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [21:56:48]RAPDU: 90 00 [21:56:48]wFMCommunicate OK [21:56:48]wFMCommunicate request_size=10 [21:56:48]MH_SAM_APDU [21:56:48]CAPDU: 80 0D 02 02 05 D2 3B 12 54 EC [21:56:48]Write to MH i2c: E2 0D 00 ED 01 80 0D 02 02 05 00 D2 3B 12 54 EC 00 00 D1 [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:48]Read from MH i2c: E2 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 03 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [21:56:48]RAPDU: 90 00 [21:56:48]wFMCommunicate OK [21:56:48]wFMCommunicate request_size=4 [21:56:48]MH_SAM_APDU [21:56:48]CAPDU: 80 0D 03 02 [21:56:48]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:48]Read from MH i2c: E2 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 0B 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 0B 00 EE 01 00 5C 35 3C A0 23 C7 BA B3 90 00 2F [21:56:48]RAPDU: 5C 35 3C A0 23 C7 BA B3 90 00 [21:56:48]wFMCommunicate OK [21:56:48]SAM_PROTO_SignData done [21:56:48]FM_MakeSignedData done [21:56:48]CreateOFDProtocolMessage [21:56:48]wFMCommunicate request_size=4 [21:56:48]MH_SAM_APDU [21:56:48]CAPDU: 80 11 00 00 [21:56:48]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:48]Read from MH i2c: E2 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 17 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BE [21:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:56:48]wFMCommunicate OK [21:56:48]CreateOFDProtocolMessage done [21:56:48]OFDSenderStorePacket 73108 [21:56:48]StoreOFDPacket docnum=73108 [21:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 26 4C 07 01 02 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1F FD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1D 01 00 35 04 06 00 F3 D2 3B 12 54 EC 5C 35 3C A0 23 C7 BA B3 [21:56:48]CheckFolder [21:56:48]dirname=/storage/ofd_packets [21:56:48]CheckFolder done [21:56:48]ProducePacketName [21:56:48]name=ofd_packets/00073108 [21:56:48]NVStorageSaveData ofd_packets/00073108 [21:56:48]File name is /storage/ofd_packets/00073108 [21:56:48]Write 301 bytes [21:56:48]NVStorageSaveData done [21:56:48]OFDSenderStorePacket done [21:56:48]KKMCreateOFDPacket done [21:56:48]NVStorageSaveData kkm_last_timestamp [21:56:48]File name is /storage/kkm_last_timestamp [21:56:48]Write 4 bytes [21:56:48]NVStorageSaveData done [21:56:48]ExternCall_PrintAddStr [21:56:48]wPrintStart [21:56:48]Write to MH i2c: 01 00 00 F0 01 F1 [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: 01 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: 01 07 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [21:56:48]RasterBufferAndPrint [21:56:48]line Счет N : (1)952707 [21:56:48]line ИНН: 02508201610067 [21:56:48]line Контрольно-Кассовый Чек [21:56:48]line ПРОДАЖА [21:56:48]line ТРК (МРК, ГНК) : 63 [21:56:48]line Товар: 2710124130 [21:56:48]line Аи-92-К-5 [21:56:48]line 10.000 * 0.00 [21:56:48]line = 0.00 [21:56:48]line НДС 12% НСП 1% [21:56:48]line > о реализуемом товаре [21:56:48]line ИТОГО: 0.00 [21:56:48]line НСП 1% : 0.00 [21:56:48]line НДС 12% : 0.00 [21:56:48]line Наличными: 0.00 [21:56:48]line Безнал.: 0.00 [21:56:48]line Место: АЗС № 113 "Партнер Нефть" [21:56:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:56:48]line СНО: Общий режим [21:56:48]line Чек 183 31.10.2024 21:56 [21:56:48]line Смена: 557 ФФД: 1.0 [21:56:48]line ЗНМ: 0300000087 [21:56:48]line РНМ: 0000000000091644 [21:56:48]line Версия ККМ: 001 [21:56:48]line Талоны: Топливная Карта [21:56:48]line 02645 [21:56:48]line ФМ: 0000000000874662 [21:56:48]line ФД: 73108 [21:56:48]line ФПД: 268084259738860 [21:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T215647&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73108&fm=268084259738860&tin=02508201610067®Number=0000000000091644&sum=0 [21:56:48]written 0, free lines is 4095 [21:56:48]OFD Sender: Processing packet 73108 [packets to send 282, broken 281] [21:56:48]ProducePacketName [21:56:48]name=ofd_packets/00073108 [21:56:48]OFD Sender: To server: pG, [21:56:48]CommunicateWithHost lk.salyk.kg:30040 [21:56:48]ConnectInit lk.salyk.kg [21:56:49]Write to MH i2c: 01 00 00 1A 02 1C [21:56:49]Write i2c OK [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: 01 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: 01 07 00 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 E7 0C 16 [21:56:49]RasterBufferAndPrint [21:56:49]line [21:56:49]line [21:56:49]line [21:56:49]line [21:56:49]line [21:56:49]written 0, free lines is 3309 [21:56:49]MH_Cut [21:56:49]Write to MH i2c: D1 01 00 21 02 01 F5 [21:56:49]Write i2c OK [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: D1 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: D1 01 00 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: D1 01 00 21 02 00 F4 [21:56:49]Write to MH i2c: 01 00 00 22 02 24 [21:56:49]Write i2c OK [21:56:49]MH_I2C_Read... [21:56:50]*** Cut start [21:56:50]*** Partial cut [21:56:50]*** CUTSNS_PIN = 1 [21:56:50]*** CUTSNS_PIN = 0 [21:56:50]Connected sock=8 [21:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 26 4C 07 01 02 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1F FD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1D 01 00 35 04 06 00 F3 D2 3B 12 54 EC 5C 35 3C A0 23 C7 BA B3 [21:56:50]*** Brake cut motor [21:56:50]Read from MH i2c: 01 [21:56:50]MH_I2C_Read... [21:56:50]*** Stop cut motor [21:56:50]*** Cut end [21:56:50]Read from MH i2c: 01 07 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [21:56:50]process_action close_receipt done [21:56:50]requested_data is exist [21:56:50]produce_requested_data [21:56:50]requested_item fm.sn is exist - process it [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 11 00 00 [21:56:50]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 17 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F3 [21:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:56:50]wFMCommunicate OK [21:56:50]requested_item fd.num is exist - process it [21:56:50]SAM_PROTO_GetFieldsCounters [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 13 00 00 [21:56:50]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FD EA 47 00 5C 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1D 01 00 F4 03 04 00 D5 A7 23 67 B6 04 01 00 00 8A 7B B0 41 17 4A EB 19 [21:56:50]CommunicateWithHost err = 0 [21:56:50]CheckOFDResponse [21:56:50]1017 (14) - 77093643461234 [21:56:50]1041 (16) - 0000000000874662 [21:56:50]1040 (4) - 73108 [21:56:50]1012 (4) - 31.10.2024 15:52 [21:56:50]1206 (1) - 0 [21:56:50]OFD Sender: Remove packet 73108 [21:56:50]ProducePacketName [21:56:50]name=ofd_packets/00073108 [21:56:50]NVStorageDeleteData [21:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 62 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 94 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [21:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 94 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:50]wFMCommunicate OK [21:56:50]SAM_PROTO_GetFieldsCounters done [21:56:50]requested_item shift.num is exist - process it [21:56:50]requested_item shift.opened is exist - process it [21:56:50]req_shift_opened [21:56:50]FM_GetShiftState [21:56:50]SAM_PROTO_GetShiftState [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 13 01 00 [21:56:50]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 0E 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4D [21:56:50]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:56:50]wFMCommunicate OK [21:56:50]SAM_PROTO_GetShiftState done [21:56:50]FM_GetShiftState done [21:56:50]req_shift_opened done [21:56:50]requested_item shift.open_date is exist - process it [21:56:50]req_shift_open_date [21:56:50]req_shift_open_date done [21:56:50]produce_requested_data done [21:56:50]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73108,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [21:56:50]process_action_free close_receipt [21:56:50]json_value_free [21:56:50]json_value_free done [21:56:50]process_json_proto returns [21:56:50]Send response to host [21:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73108,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [21:56:50]free response buf [21:56:50]execute_script done [21:56:50]execute_script returns [21:56:50]free content buf [21:56:50]Sock 9.Close socket [21:56:50]Sock 9.Thread stoped [21:56:51]OFD Sender: No OFD packet to send [21:56:54]int [21:56:54]Write to MH i2c: 01 00 00 26 02 28 [21:56:54]*** FLAG_PRN_PAP1 set [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: 01 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: 01 07 00 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: 01 07 00 26 02 00 01 00 00 00 FF 0F 3E [21:56:54]state=0 [21:56:54]No paper [21:56:54]int [21:56:54]Write to MH i2c: 01 00 00 27 02 29 [21:56:54]*** FLAG_PRN_PAP1 reset [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: 01 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: 01 07 00 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [21:56:54]state=0 [21:56:54]int [21:56:54]Write to MH i2c: 01 00 00 28 02 2A [21:56:54]*** FLAG_PRN_PAP1 set [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: 01 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: 01 07 00 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: 01 07 00 28 02 00 01 00 00 00 FF 0F 40 [21:56:54]state=0 [21:56:54]No paper [21:56:55]int [21:56:55]Write to MH i2c: 01 00 00 29 02 2B [21:56:55]*** FLAG_PRN_PAP1 reset [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [21:56:55]state=0 [21:56:55]int [21:56:55]Write to MH i2c: 01 00 00 2A 02 2C [21:56:55]*** FLAG_PRN_PAP1 set [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 2A 02 00 01 00 00 00 FF 0F 42 [21:56:55]state=0 [21:56:55]No paper [21:56:56]int [21:56:56]Write to MH i2c: 01 00 00 2B 02 2D [21:56:56]*** FLAG_PRN_PAP1 reset [21:56:56]Write i2c OK [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: 01 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: 01 07 00 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [21:56:56]state=0 [21:56:56]OFD Sender: No OFD packet to send [21:56:59]int [21:56:59]Write to MH i2c: 01 00 00 2C 02 2E [21:56:59]*** FLAG_PRN_PAP1 set [21:56:59]Write i2c OK [21:56:59]MH_I2C_Read... [21:56:59]Read from MH i2c: 01 [21:56:59]MH_I2C_Read... [21:56:59]Read from MH i2c: 01 07 00 [21:56:59]MH_I2C_Read... [21:56:59]Read from MH i2c: 01 07 00 2C 02 00 01 00 00 00 FF 0F 44 [21:56:59]state=0 [21:56:59]No paper [21:56:59]int [21:56:59]Write to MH i2c: 01 00 00 2D 02 2F [21:56:59]*** FLAG_PRN_PAP1 reset [21:56:59]Write i2c OK [21:56:59]MH_I2C_Read... [21:56:59]Read from MH i2c: 01 [21:56:59]MH_I2C_Read... [21:56:59]Read from MH i2c: 01 07 00 [21:56:59]MH_I2C_Read... [21:56:59]Read from MH i2c: 01 07 00 2D 02 00 00 00 00 00 FF 0F 44 [21:56:59]state=0 [21:57:00]int [21:57:00]Write to MH i2c: 01 00 00 2E 02 30 [21:57:00]*** FLAG_PRN_PAP1 set [21:57:00]Write i2c OK [21:57:00]MH_I2C_Read... [21:57:00]Read from MH i2c: 01 [21:57:00]MH_I2C_Read... [21:57:00]Read from MH i2c: 01 07 00 [21:57:00]MH_I2C_Read... [21:57:00]Read from MH i2c: 01 07 00 2E 02 00 01 00 00 00 FF 0F 46 [21:57:00]state=0 [21:57:00]No paper [21:57:01]int [21:57:01]Write to MH i2c: 01 00 00 2F 02 31 [21:57:01]*** FLAG_PRN_PAP1 reset [21:57:01]Write i2c OK [21:57:01]MH_I2C_Read... [21:57:01]Read from MH i2c: 01 [21:57:01]MH_I2C_Read... [21:57:01]Read from MH i2c: 01 07 00 [21:57:01]MH_I2C_Read... [21:57:01]Read from MH i2c: 01 07 00 2F 02 00 00 00 00 00 FF 0F 46 [21:57:01]state=0 [21:57:01]OFD Sender: No OFD packet to send [21:57:02]int [21:57:02]Write to MH i2c: 01 00 00 30 02 32 [21:57:02]*** FLAG_PRN_PAP1 set [21:57:02]Write i2c OK [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: 01 [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: 01 07 00 [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: 01 07 00 30 02 00 01 00 00 00 FF 0F 48 [21:57:02]state=0 [21:57:02]No paper [21:57:02]int [21:57:02]Write to MH i2c: 01 00 00 31 02 33 [21:57:02]*** FLAG_PRN_PAP1 reset [21:57:02]Write i2c OK [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: 01 [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: 01 07 00 [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [21:57:02]state=0 [21:57:04]int [21:57:04]Write to MH i2c: 01 00 00 32 02 34 [21:57:04]Write i2c OK [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: 01 [21:57:04]MH_I2C_Read... [21:57:04]*** FLAG_PRN_PAP1 set [21:57:04]*** FLAG_PRN_PAP1 reset [21:57:04]Read from MH i2c: 01 07 00 [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: 01 07 00 32 02 00 00 00 00 00 FF 0F 49 [21:57:04]state=0 [21:57:05]recv_with_timeout no data received [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]accept exits with 10 [21:57:41]New connection [21:57:41]New thread 3067235684 created [21:57:41]Thread 3067379044 joined [21:57:41]Waiting for new connection... [21:57:41] Sock 10.Parse request [21:57:41]Sock 10.Check first char [21:57:41]Sock 10.First char is OK [21:57:41]request: POST /json_proto HTTP/1.0 [21:57:41]Method: POST [21:57:41]URL: /json_proto [21:57:41]Method is POST - this is cgi request [21:57:41]url: /json_proto [21:57:41]query_string will be loaded in cgi processing [21:57:41]execute_cgi json_proto POST (null) [21:57:41]execute_cgi path=json_proto method=POST [21:57:41]POST find Content-Length [21:57:41]Host: 172.17.43.195:8080 [21:57:41]Content-Length: 677 [21:57:41]Content-Type: application/json [21:57:41] [21:57:41]POST finish read [21:57:41]Found Content-Length = 677 [21:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:41]execute_script... [21:57: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)952709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:41]POST & json_proto [21:57:41]process_json_proto [21:57:41]json parsed OK: [21:57:41]protocol is kg_v1.0 [21:57:41]action value=close_receipt [21:57:41]process_action close_receipt [21:57:41]cmd_close_receipt [21:57:41]MH_GetDate [21:57:41]Write to MH i2c: F0 00 00 33 02 24 [21:57:41]Write i2c OK [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: F0 [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: F0 09 00 [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: F0 09 00 33 02 00 55 FD 23 67 74 2C AD 66 BC [21:57:41]GetLastDocTimeStamp 1730411807 [21:57:41]current date 1730411861 [21:57:41]FM_GetShiftState [21:57:41]SAM_PROTO_GetShiftState [21:57:41]wFMCommunicate request_size=4 [21:57:41]MH_SAM_APDU [21:57:41]CAPDU: 80 13 01 00 [21:57:41]Write to MH i2c: E2 08 00 34 02 80 13 01 00 00 00 00 00 B3 [21:57:41]Write i2c OK [21:57:41]MH_I2C_Read... [21:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:41]Read from MH i2c: E2 [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: E2 0E 00 [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: E2 0E 00 34 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 5C [21:57:41]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [21:57:41]wFMCommunicate OK [21:57:41]SAM_PROTO_GetShiftState done [21:57:41]FM_GetShiftState done [21:57:41]opened in 1730333258 [21:57:41]opened+sec_in_day 1730419658 [21:57:41]quantity*price = 50041 [21:57:41]sum+1 = 50042 [21:57:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 185 31.10.2024 22:01 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104915 ФМ: 0000000000874662 ФД: 73110 ФПД: 142137969458501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220117&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73110&fm=142137969458501&tin=02508201610067®Number=0000000000091644&sum=0 [22:01:18]StoreToDocumentArchive [22:01:18]shift 557 fd 73110 [22:01:18]save to /storage/0557/doc_00073110 [22:01:18]save last doc name /storage/0557/doc_00073110 to /storage/kkm_last_doc_name [22:01:18]save OK [22:01:18]Clear old archive folders... [22:01:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:18]tlvbuf is 0169E980 [22:01:18]SAM_PROTO_ClearQueue [22:01:18]wFMCommunicate request_size=4 [22:01:18]MH_SAM_APDU [22:01:18]CAPDU: 80 09 00 00 [22:01:18]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [22:01:18]Write i2c OK [22:01:18]MH_I2C_Read... [22:01:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:18]Read from MH i2c: E2 [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: E2 03 00 [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [22:01:18]RAPDU: 90 00 [22:01:18]wFMCommunicate OK [22:01:18]SAM_PROTO_ClearQueue done [22:01:18]KKMCreateOFDPacket [22:01:18]OFDProtocolAddRootSTLVToBuf [22:01:18]FM_MakeSignedData [22:01:18]FM_MakeSignedData [22:01:18]SAM_PROTO_SignData [22:01:18]wFMCommunicate request_size=4 [22:01:18]MH_SAM_APDU [22:01:18]CAPDU: 80 0D 01 02 [22:01:18]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [22:01:18]Write i2c OK [22:01:18]MH_I2C_Read... [22:01:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:18]Read from MH i2c: E2 [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: E2 03 00 [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [22:01:18]RAPDU: 90 00 [22:01:18]wFMCommunicate OK [22:01:18]wFMCommunicate request_size=255 [22:01:18]MH_SAM_APDU [22:01:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 2D FE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1D 01 00 35 04 06 00 81 [22:01:18]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 2D FE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1D 01 00 35 04 06 00 81 00 00 28 [22:01:19]Write i2c OK [22:01:19]MH_I2C_Read... [22:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:19]Read from MH i2c: E2 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 03 00 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [22:01:19]RAPDU: 90 00 [22:01:19]wFMCommunicate OK [22:01:19]wFMCommunicate request_size=10 [22:01:19]MH_SAM_APDU [22:01:19]CAPDU: 80 0D 02 02 05 46 13 2D BD 45 [22:01:19]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 46 13 2D BD 45 00 00 3A [22:01:19]Write i2c OK [22:01:19]MH_I2C_Read... [22:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:19]Read from MH i2c: E2 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 03 00 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [22:01:19]RAPDU: 90 00 [22:01:19]wFMCommunicate OK [22:01:19]wFMCommunicate request_size=4 [22:01:19]MH_SAM_APDU [22:01:19]CAPDU: 80 0D 03 02 [22:01:19]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [22:01:19]Write i2c OK [22:01:19]MH_I2C_Read... [22:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:19]Read from MH i2c: E2 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 0B 00 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 0B 00 2F 00 00 C2 E3 7D B7 AF 05 9F 12 90 00 E9 [22:01:19]RAPDU: C2 E3 7D B7 AF 05 9F 12 90 00 [22:01:19]wFMCommunicate OK [22:01:19]SAM_PROTO_SignData done [22:01:19]FM_MakeSignedData done [22:01:19]CreateOFDProtocolMessage [22:01:19]wFMCommunicate request_size=4 [22:01:19]MH_SAM_APDU [22:01:19]CAPDU: 80 11 00 00 [22:01:19]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [22:01:19]Write i2c OK [22:01:19]MH_I2C_Read... [22:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:19]Read from MH i2c: E2 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 17 00 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [22:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:01:19]wFMCommunicate OK [22:01:19]CreateOFDProtocolMessage done [22:01:19]OFDSenderStorePacket 73110 [22:01:19]StoreOFDPacket docnum=73110 [22:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AC FC 07 01 AF E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 2D FE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1D 01 00 35 04 06 00 81 46 13 2D BD 45 C2 E3 7D B7 AF 05 9F 12 [22:01:19]CheckFolder [22:01:19]dirname=/storage/ofd_packets [22:01:19]CheckFolder done [22:01:19]ProducePacketName [22:01:19]name=ofd_packets/00073110 [22:01:19]NVStorageSaveData ofd_packets/00073110 [22:01:19]File name is /storage/ofd_packets/00073110 [22:01:19]Write 301 bytes [22:01:19]NVStorageSaveData done [22:01:19]OFDSenderStorePacket done [22:01:19]KKMCreateOFDPacket done [22:01:19]NVStorageSaveData kkm_last_timestamp [22:01:19]File name is /storage/kkm_last_timestamp [22:01:19]Write 4 bytes [22:01:19]NVStorageSaveData done [22:01:19]ExternCall_PrintAddStr [22:01:19]wPrintStart [22:01:19]Write to MH i2c: 01 00 00 31 00 31 [22:01:19]Write i2c OK [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: 01 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: 01 07 00 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [22:01:19]RasterBufferAndPrint [22:01:19]line Счет N : (1)952710 [22:01:19]line ИНН: 02508201610067 [22:01:19]line Контрольно-Кассовый Чек [22:01:19]line ПРОДАЖА [22:01:19]line ТРК (МРК, ГНК) : 52 [22:01:19]line Товар: 2710124500 [22:01:19]line Аи-95-К-3 [22:01:19]line 30.000 * 0.00 [22:01:19]line = 0.00 [22:01:19]line НДС 12% НСП 1% [22:01:19]line > о реализуемом товаре [22:01:19]line ИТОГО: 0.00 [22:01:19]line НСП 1% : 0.00 [22:01:19]line НДС 12% : 0.00 [22:01:19]line Наличными: 0.00 [22:01:19]line Безнал.: 0.00 [22:01:19]line Место: АЗС № 113 "Партнер Нефть" [22:01:19]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:01:19]line СНО: Общий режим [22:01:19]line Чек 185 31.10.2024 22:01 [22:01:19]line Смена: 557 ФФД: 1.0 [22:01:19]line ЗНМ: 0300000087 [22:01:19]line РНМ: 0000000000091644 [22:01:19]line Версия ККМ: 001 [22:01:19]line Талоны: ТК ГПНА Online [22:01:19]line 30104915 [22:01:19]line ФМ: 0000000000874662 [22:01:19]line ФД: 73110 [22:01:19]line ФПД: 142137969458501 [22:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220117&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73110&fm=142137969458501&tin=02508201610067®Number=0000000000091644&sum=0 [22:01:19]written 0, free lines is 4095 [22:01:19]OFD Sender: Processing packet 73110 [packets to send 282, broken 281] [22:01:19]ProducePacketName [22:01:19]name=ofd_packets/00073110 [22:01:19]OFD Sender: To server: pG, [22:01:19]CommunicateWithHost lk.salyk.kg:30040 [22:01:19]ConnectInit lk.salyk.kg [22:01:20]Connected sock=11 [22:01:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AC FC 07 01 AF E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 2D FE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1D 01 00 35 04 06 00 81 46 13 2D BD 45 C2 E3 7D B7 AF 05 9F 12 [22:01:20]Write to MH i2c: 01 00 00 5B 00 5B [22:01:20]Write i2c OK [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: 01 [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: 01 07 00 [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 D9 0D 48 [22:01:20]RasterBufferAndPrint [22:01:20]line [22:01:20]line [22:01:20]line [22:01:20]line [22:01:20]line [22:01:20]written 0, free lines is 3566 [22:01:20]MH_Cut [22:01:20]Write to MH i2c: D1 01 00 62 00 01 34 [22:01:20]Write i2c OK [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: D1 [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: D1 01 00 [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: D1 01 00 62 00 00 33 [22:01:20]Write to MH i2c: 01 00 00 63 00 63 [22:01:20]Write i2c OK [22:01:20]MH_I2C_Read... [22:01:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0D 6E 47 00 50 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1D 01 00 F4 03 04 00 E3 A8 23 67 B6 04 01 00 00 1F D3 E5 21 BD 26 18 84 [22:01:21]CommunicateWithHost err = 0 [22:01:21]CheckOFDResponse [22:01:21]1017 (14) - 77093643461234 [22:01:21]1041 (16) - 0000000000874662 [22:01:21]1040 (4) - 73110 [22:01:21]1012 (4) - 31.10.2024 15:57 [22:01:21]1206 (1) - 0 [22:01:21]OFD Sender: Remove packet 73110 [22:01:21]ProducePacketName [22:01:21]name=ofd_packets/00073110 [22:01:21]NVStorageDeleteData [22:01:21]*** Cut start [22:01:21]*** Partial cut [22:01:21]*** CUTSNS_PIN = 1 [22:01:21]*** CUTSNS_PIN = 0 [22:01:21]*** Brake cut motor [22:01:21]OFD Sender: No OFD packet to send [22:01:21]Read from MH i2c: 01 [22:01:21]MH_I2C_Read... [22:01:21]*** Stop cut motor [22:01:21]*** Cut end [22:01:21]Read from MH i2c: 01 07 00 [22:01:21]MH_I2C_Read... [22:01:21]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [22:01:21]process_action close_receipt done [22:01:21]requested_data is exist [22:01:21]produce_requested_data [22:01:21]requested_item fm.sn is exist - process it [22:01:21]wFMCommunicate request_size=4 [22:01:21]MH_SAM_APDU [22:01:21]CAPDU: 80 11 00 00 [22:01:21]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [22:01:21]Write i2c OK [22:01:21]MH_I2C_Read... [22:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:21]Read from MH i2c: E2 [22:01:21]MH_I2C_Read... [22:01:21]Read from MH i2c: E2 17 00 [22:01:21]MH_I2C_Read... [22:01:21]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [22:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:01:21]wFMCommunicate OK [22:01:21]requested_item fd.num is exist - process it [22:01:21]SAM_PROTO_GetFieldsCounters [22:01:21]wFMCommunicate request_size=4 [22:01:21]MH_SAM_APDU [22:01:21]CAPDU: 80 13 00 00 [22:01:21]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [22:01:21]Write i2c OK [22:01:21]MH_I2C_Read... [22:01:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:21]Read from MH i2c: E2 [22:01:21]MH_I2C_Read... [22:01:21]Read from MH i2c: E2 62 00 [22:01:21]MH_I2C_Read... [22:01:21]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 96 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:01:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 96 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:22]wFMCommunicate OK [22:01:22]SAM_PROTO_GetFieldsCounters done [22:01:22]requested_item shift.num is exist - process it [22:01:22]requested_item shift.opened is exist - process it [22:01:22]req_shift_opened [22:01:22]FM_GetShiftState [22:01:22]SAM_PROTO_GetShiftState [22:01:22]wFMCommunicate request_size=4 [22:01:22]MH_SAM_APDU [22:01:22]CAPDU: 80 13 01 00 [22:01:22]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [22:01:22]Write i2c OK [22:01:22]MH_I2C_Read... [22:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:22]Read from MH i2c: E2 [22:01:22]MH_I2C_Read... [22:01:22]Read from MH i2c: E2 0E 00 [22:01:22]MH_I2C_Read... [22:01:22]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8C [22:01:22]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:01:22]wFMCommunicate OK [22:01:22]SAM_PROTO_GetShiftState done [22:01:22]FM_GetShiftState done [22:01:22]req_shift_opened done [22:01:22]requested_item shift.open_date is exist - process it [22:01:22]req_shift_open_date [22:01:22]req_shift_open_date done [22:01:22]produce_requested_data done [22:01:22]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73110,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:01:22]process_action_free close_receipt [22:01:22]json_value_free [22:01:22]json_value_free done [22:01:22]process_json_proto returns [22:01:22]Send response to host [22:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73110,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:01:22]free response buf [22:01:22]execute_script done [22:01:22]execute_script returns [22:01:22]free content buf [22:01:22]Sock 8.Close socket [22:01:22]Sock 8.Thread stoped [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:37]recv_with_timeout no data received [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:01:59]recv_with_timeout no data received [22:02:00]accept exits with 5 [22:02:00]New connection [22:02:00]New thread 3066580324 created [22:02:00]Thread 3066723684 joined [22:02:00]Waiting for new connection... [22:02:00] Sock 5.Parse request [22:02:00]Sock 5.Check first char [22:02:00]Sock 5.First char is OK [22:02:00]request: POST /json_proto HTTP/1.0 [22:02:00]Method: POST [22:02:00]URL: /json_proto [22:02:00]Method is POST - this is cgi request [22:02:00]url: /json_proto [22:02:00]query_string will be loaded in cgi processing [22:02:00]execute_cgi json_proto POST (null) [22:02:00]execute_cgi path=json_proto method=POST [22:02:00]POST find Content-Length [22:02:00]Host: 172.17.43.195:8080 [22:02:00]Content-Length: 677 [22:02:00]Content-Type: application/json [22:02:00] [22:02:00]POST finish read [22:02:00]Found Content-Length = 677 [22:02:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.230, "sum" : 610.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:00]execute_script... [22:02: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)952712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.230, "sum" : 610.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:00]POST & json_proto [22:02:00]process_json_proto [22:02:00]json parsed OK: [22:02:00]protocol is kg_v1.0 [22:02:00]action value=close_receipt [22:02:00]process_action close_receipt [22:02:00]cmd_close_receipt [22:02:00]MH_GetDate [22:02:00]Write to MH i2c: F0 00 00 67 00 56 [22:02:00]Write i2c OK [22:02:00]MH_I2C_Read... [22:02:00]Read from MH i2c: F0 [22:02:00]MH_I2C_Read... [22:02:00]Read from MH i2c: F0 09 00 [22:02:00]MH_I2C_Read... [22:02:00]Read from MH i2c: F0 09 00 67 00 00 58 FE 23 67 74 2C AD 66 F2 [22:02:00]GetLastDocTimeStamp 1730412077 [22:02:00]current date 1730412120 [22:02:00]FM_GetShiftState [22:02:00]SAM_PROTO_GetShiftState [22:02:00]wFMCommunicate request_size=4 [22:02:00]MH_SAM_APDU [22:02:00]CAPDU: 80 13 01 00 [22:02:00]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [22:02:00]Write i2c OK [22:02:00]MH_I2C_Read... [22:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:00]Read from MH i2c: E2 [22:02:00]MH_I2C_Read... [22:02:00]Read from MH i2c: E2 0E 00 [22:02:00]MH_I2C_Read... [22:02:00]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8E [22:02:00]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:02:00]wFMCommunicate OK [22:02:00]SAM_PROTO_GetShiftState done [22:02:00]FM_GetShiftState done [22:02:00]opened in 1730333258 [22:02:00]opened+sec_in_day 1730419658 [22:02:00]quantity*price = 61066 [22:02:00]sum+1 = 61068 [22:02:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.85 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 186 31.10.2024 22:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73111 ФПД: 163811413183269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220200&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73111&fm=163811413183269&tin=02508201610067®Number=0000000000091644&sum=61000 [22:02:01]StoreToDocumentArchive [22:02:01]shift 557 fd 73111 [22:02:01]save to /storage/0557/doc_00073111 [22:02:01]save last doc name /storage/0557/doc_00073111 to /storage/kkm_last_doc_name [22:02:01]save OK [22:02:01]Clear old archive folders... [22:02:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:02:01]tlvbuf is 0163CAD0 [22:02:01]SAM_PROTO_ClearQueue [22:02:01]wFMCommunicate request_size=4 [22:02:01]MH_SAM_APDU [22:02:01]CAPDU: 80 09 00 00 [22:02:01]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [22:02:01]Write i2c OK [22:02:01]MH_I2C_Read... [22:02:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:01]Read from MH i2c: E2 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 03 00 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [22:02:01]RAPDU: 90 00 [22:02:01]wFMCommunicate OK [22:02:01]SAM_PROTO_ClearQueue done [22:02:01]KKMCreateOFDPacket [22:02:01]OFDProtocolAddRootSTLVToBuf [22:02:01]FM_MakeSignedData [22:02:01]FM_MakeSignedData [22:02:01]SAM_PROTO_SignData [22:02:01]wFMCommunicate request_size=4 [22:02:01]MH_SAM_APDU [22:02:01]CAPDU: 80 0D 01 02 [22:02:01]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [22:02:01]Write i2c OK [22:02:01]MH_I2C_Read... [22:02:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:01]Read from MH i2c: E2 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 03 00 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [22:02:01]RAPDU: 90 00 [22:02:01]wFMCommunicate OK [22:02:01]wFMCommunicate request_size=255 [22:02:01]MH_SAM_APDU [22:02:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 58 FE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1D 01 00 35 04 06 00 94 [22:02:01]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 58 FE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1D 01 00 35 04 06 00 94 00 00 DC [22:02:01]OFD Sender: No OFD packet to send [22:02:01]Write i2c OK [22:02:01]MH_I2C_Read... [22:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:01]Read from MH i2c: E2 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 03 00 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [22:02:01]RAPDU: 90 00 [22:02:01]wFMCommunicate OK [22:02:01]wFMCommunicate request_size=10 [22:02:01]MH_SAM_APDU [22:02:01]CAPDU: 80 0D 02 02 05 FC 51 17 CB 25 [22:02:02]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 FC 51 17 CB 25 00 00 50 [22:02:02]Write i2c OK [22:02:02]MH_I2C_Read... [22:02:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:02]Read from MH i2c: E2 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: E2 03 00 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [22:02:02]RAPDU: 90 00 [22:02:02]wFMCommunicate OK [22:02:02]wFMCommunicate request_size=4 [22:02:02]MH_SAM_APDU [22:02:02]CAPDU: 80 0D 03 02 [22:02:02]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [22:02:02]Write i2c OK [22:02:02]MH_I2C_Read... [22:02:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:02]Read from MH i2c: E2 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: E2 0B 00 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: E2 0B 00 79 00 00 1F 3A DF 90 F6 AF 48 8A 90 00 34 [22:02:02]RAPDU: 1F 3A DF 90 F6 AF 48 8A 90 00 [22:02:02]wFMCommunicate OK [22:02:02]SAM_PROTO_SignData done [22:02:02]FM_MakeSignedData done [22:02:02]CreateOFDProtocolMessage [22:02:02]wFMCommunicate request_size=4 [22:02:02]MH_SAM_APDU [22:02:02]CAPDU: 80 11 00 00 [22:02:02]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [22:02:02]Write i2c OK [22:02:02]MH_I2C_Read... [22:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:02]Read from MH i2c: E2 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: E2 17 00 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [22:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:02:02]wFMCommunicate OK [22:02:02]CreateOFDProtocolMessage done [22:02:02]OFDSenderStorePacket 73111 [22:02:02]StoreOFDPacket docnum=73111 [22:02:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 48 EB 07 01 52 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 58 FE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1D 01 00 35 04 06 00 94 FC 51 17 CB 25 1F 3A DF 90 F6 AF 48 8A [22:02:02]CheckFolder [22:02:02]dirname=/storage/ofd_packets [22:02:02]CheckFolder done [22:02:02]ProducePacketName [22:02:02]name=ofd_packets/00073111 [22:02:02]NVStorageSaveData ofd_packets/00073111 [22:02:02]File name is /storage/ofd_packets/00073111 [22:02:02]Write 301 bytes [22:02:02]NVStorageSaveData done [22:02:02]OFDSenderStorePacket done [22:02:02]KKMCreateOFDPacket done [22:02:02]NVStorageSaveData kkm_last_timestamp [22:02:02]File name is /storage/kkm_last_timestamp [22:02:02]Write 4 bytes [22:02:02]NVStorageSaveData done [22:02:02]ExternCall_PrintAddStr [22:02:02]wPrintStart [22:02:02]Write to MH i2c: 01 00 00 7B 00 7B [22:02:02]Write i2c OK [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: 01 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: 01 07 00 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [22:02:02]RasterBufferAndPrint [22:02:02]line Счет N : (1)952712 [22:02:02]line ИНН: 02508201610067 [22:02:02]line Контрольно-Кассовый Чек [22:02:02]line ПРОДАЖА [22:02:02]line ТРК (МРК, ГНК) : 62 [22:02:02]line Товар: 2710124500 [22:02:02]line Аи-95-К-3 [22:02:02]line 8.230 * 74.20 [22:02:02]line = 610.67 [22:02:02]line НДС 12% НСП 1% [22:02:02]line > о реализуемом товаре [22:02:02]line ОКРУГЛЕНИЕ: -0.67 [22:02:02]line ИТОГО: 610.00 [22:02:02]line Внесено: 610.00 [22:02:02]line СДАЧА: 0.00 [22:02:02]line НСП 1% : 5.40 [22:02:02]line НДС 12% : 64.85 [22:02:02]line Наличными: 610.00 [22:02:02]line Безнал.: 0.00 [22:02:02]line Место: АЗС № 113 "Партнер Нефть" [22:02:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:02:02]line СНО: Общий режим [22:02:02]line Чек 186 31.10.2024 22:02 [22:02:02]line Смена: 557 ФФД: 1.0 [22:02:02]line ЗНМ: 0300000087 [22:02:02]line РНМ: 0000000000091644 [22:02:02]line Версия ККМ: 001 [22:02:02]line ФМ: 0000000000874662 [22:02:02]line ФД: 73111 [22:02:02]line ФПД: 163811413183269 [22:02:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220200&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73111&fm=163811413183269&tin=02508201610067®Number=0000000000091644&sum=61000 [22:02:02]written 0, free lines is 4095 [22:02:02]OFD Sender: Processing packet 73111 [packets to send 282, broken 281] [22:02:02]ProducePacketName [22:02:02]name=ofd_packets/00073111 [22:02:02]OFD Sender: To server: pG, [22:02:02]CommunicateWithHost lk.salyk.kg:30040 [22:02:02]ConnectInit lk.salyk.kg [22:02:02]Write to MH i2c: 01 00 00 A6 00 A6 [22:02:02]Write i2c OK [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: 01 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: 01 07 00 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 D9 0C 92 [22:02:02]RasterBufferAndPrint [22:02:02]line [22:02:02]line [22:02:02]line [22:02:02]line [22:02:02]line [22:02:02]written 0, free lines is 3305 [22:02:02]MH_Cut [22:02:02]Write to MH i2c: D1 01 00 AD 00 01 7F [22:02:02]Write i2c OK [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: D1 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: D1 01 00 [22:02:02]MH_I2C_Read... [22:02:02]Read from MH i2c: D1 01 00 AD 00 00 7E [22:02:02]Write to MH i2c: 01 00 00 AE 00 AE [22:02:02]Write i2c OK [22:02:02]MH_I2C_Read... [22:02:03]*** Cut start [22:02:03]*** Partial cut [22:02:03]*** CUTSNS_PIN = 1 [22:02:03]*** CUTSNS_PIN = 0 [22:02:03]*** Brake cut motor [22:02:04]Read from MH i2c: 01 [22:02:04]MH_I2C_Read... [22:02:04]*** Stop cut motor [22:02:04]*** Cut end [22:02:04]Read from MH i2c: 01 07 00 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [22:02:04]process_action close_receipt done [22:02:04]requested_data is exist [22:02:04]produce_requested_data [22:02:04]requested_item fm.sn is exist - process it [22:02:04]wFMCommunicate request_size=4 [22:02:04]MH_SAM_APDU [22:02:04]CAPDU: 80 11 00 00 [22:02:04]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [22:02:04]Write i2c OK [22:02:04]MH_I2C_Read... [22:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:04]Read from MH i2c: E2 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 17 00 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [22:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:02:04]wFMCommunicate OK [22:02:04]requested_item fd.num is exist - process it [22:02:04]SAM_PROTO_GetFieldsCounters [22:02:04]wFMCommunicate request_size=4 [22:02:04]MH_SAM_APDU [22:02:04]CAPDU: 80 13 00 00 [22:02:04]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [22:02:04]Write i2c OK [22:02:04]MH_I2C_Read... [22:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:04]Read from MH i2c: E2 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 62 00 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 97 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [22:02:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 97 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:04]wFMCommunicate OK [22:02:04]SAM_PROTO_GetFieldsCounters done [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]/dev/ttyS4 opened [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 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** 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 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7787200+1722625140=1730412340 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 35 FF 23 67 74 2C AD 66 70 [22:05:41]Current date/time: 31.10.2024 22:05 [22:05:41]FM_Init [22:05:41]wFMConnect [22:05:41]MH_SAM_On [22:05:41]Write to MH i2c: E0 00 00 08 00 E7 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_init finished! [22:05:41]*** atr: [22:05:41]*** 0F 3B D5 18 FF 81 91 FE [22:05:41]*** 1F C3 80 73 C8 21 10 0A [22:05:41]*** 00 00 00 00 00 00 00 00 [22:05:41]*** 00 00 00 00 00 00 00 00 [22:05:41]*** 00 00 00 00 00 00 00 00 [22:05:41]*** 00 00 00 00 00 00 00 00 [22:05:41]*** 00 00 00 00 00 00 00 00 [22:05:41]*** 00 00 00 00 00 00 00 00 [22:05:41]Read from MH i2c: E0 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E0 10 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [22:05:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [22:05:41]wFMCommunicate request_size=10 [22:05:41]MH_SAM_APDU [22:05:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [22:05:41]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [22:05:41]RAPDU: 90 00 [22:05:41]wFMCommunicate OK [22:05:41]wFMCommunicate request_size=4 [22:05:41]MH_SAM_APDU [22:05:41]CAPDU: 80 11 00 00 [22:05:41]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 17 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [22:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:05:41]wFMCommunicate OK [22:05:41]Detected FM SN is 0000000000874662 [22:05:41]Stored FM SN is 0000000000874662 [22:05:41]wFMCommunicate request_size=9 [22:05:41]MH_SAM_APDU [22:05:41]CAPDU: 80 16 00 00 04 08 EB 00 00 [22:05:41]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [22:05:41]RAPDU: 90 00 [22:05:41]wFMCommunicate OK [22:05:41]FM PIN OK [22:05:41]wFMCommunicate request_size=8 [22:05:41]MH_SAM_APDU [22:05:41]CAPDU: 80 14 04 00 03 02 00 01 [22:05:41]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [22:05:41]RAPDU: 90 00 [22:05:41]wFMCommunicate OK [22:05:41]wFMCommunicate request_size=13 [22:05:41]MH_SAM_APDU [22:05:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [22:05:41]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [22:05:41]RAPDU: 90 00 [22:05:41]wFMCommunicate OK [22:05:41]wFMCommunicate request_size=4 [22:05:41]MH_SAM_APDU [22:05:41]CAPDU: 80 11 00 00 [22:05:41]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 17 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [22:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:05:41]wFMCommunicate OK [22:05:41]DocumentArchiveInit [22:05:41]Start Httpd... [22:05:41]Httpd thread 3067116900 created [22:05:41]Write to MH i2c: 01 00 00 0F 00 0F [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: 01 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: 01 07 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [22:05:41]MH Int Process started [22:05:41]Allocated Socket 8 [22:05:41]Bind OK [22:05:41]Listen OK [22:05:41]httpd running on port 8080 [22:05:41]Waiting for new connection... [22:05:41]OFD Sender: Processing packet 73111 [packets to send 282, broken 281] [22:05:41]ProducePacketName [22:05:41]name=ofd_packets/00073111 [22:05:41]OFD Sender: To server: pG, [22:05:41]CommunicateWithHost lk.salyk.kg:30040 [22:05:41]ConnectInit lk.salyk.kg [22:05:42]accept exits with 9 [22:05:42]New connection [22:05:42]New thread 3066830180 created [22:05:42]Waiting for new connection... [22:05:42] Sock 9.Parse request [22:05:42]Sock 9.Check first char [22:05:42]Sock 9.First char is OK [22:05:42]request: POST /json_proto HTTP/1.0 [22:05:42]Method: POST [22:05:42]URL: /json_proto [22:05:42]Method is POST - this is cgi request [22:05:42]url: /json_proto [22:05:42]query_string will be loaded in cgi processing [22:05:42]execute_cgi json_proto POST (null) [22:05:42]execute_cgi path=json_proto method=POST [22:05:42]POST find Content-Length [22:05:42]Host: 172.17.43.195:8080 [22:05:42]Content-Length: 215 [22:05:42]Content-Type: application/json [22:05:42] [22:05:42]POST finish read [22:05:42]Found Content-Length = 215 [22:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:42]execute_script... [22:05:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:42]POST & json_proto [22:05:42]process_json_proto [22:05:42]json parsed OK: [22:05:42]protocol is kg_v1.0 [22:05:42]action value=get_value [22:05:42]process_action get_value [22:05:42]cmd_get_value [22:05:42]process_action get_value done [22:05:42]requested_data is exist [22:05:42]produce_requested_data [22:05:42]requested_item kkm.sn is exist - process it [22:05:42]requested_item kkm.ver is exist - process it [22:05:42]requested_item fm.sn is exist - process it [22:05:42]wFMCommunicate request_size=4 [22:05:42]MH_SAM_APDU [22:05:42]CAPDU: 80 11 00 00 [22:05:42]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [22:05:42]Write i2c OK [22:05:42]MH_I2C_Read... [22:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:42]Read from MH i2c: E2 [22:05:42]MH_I2C_Read... [22:05:42]Read from MH i2c: E2 17 00 [22:05:42]MH_I2C_Read... [22:05:42]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [22:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:05:42]wFMCommunicate OK [22:05:42]requested_item fd.num is exist - process it [22:05:42]SAM_PROTO_GetFieldsCounters [22:05:42]wFMCommunicate request_size=4 [22:05:42]MH_SAM_APDU [22:05:42]CAPDU: 80 13 00 00 [22:05:42]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [22:05:42]Write i2c OK [22:05:42]MH_I2C_Read... [22:05:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:42]Read from MH i2c: E2 [22:05:42]MH_I2C_Read... [22:05:42]Read from MH i2c: E2 62 00 [22:05:42]MH_I2C_Read... [22:05:42]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 97 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [22:05:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 97 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:42]wFMCommunicate OK [22:05:42]SAM_PROTO_GetFieldsCounters done [22:05:42]requested_item shift.num is exist - process it [22:05:42]requested_item shift.opened is exist - process it [22:05:42]req_shift_opened [22:05:42]FM_GetShiftState [22:05:42]SAM_PROTO_GetShiftState [22:05:42]wFMCommunicate request_size=4 [22:05:42]MH_SAM_APDU [22:05:42]CAPDU: 80 13 01 00 [22:05:42]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [22:05:42]Write i2c OK [22:05:42]MH_I2C_Read... [22:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:42]Read from MH i2c: E2 [22:05:42]MH_I2C_Read... [22:05:42]Read from MH i2c: E2 0E 00 [22:05:42]MH_I2C_Read... [22:05:42]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [22:05:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:05:42]wFMCommunicate OK [22:05:42]SAM_PROTO_GetShiftState done [22:05:42]FM_GetShiftState done [22:05:42]req_shift_opened done [22:05:42]requested_item shift.open_date is exist - process it [22:05:42]req_shift_open_date [22:05:42]req_shift_open_date done [22:05:42]produce_requested_data done [22:05:42]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73111,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:05:42]process_action_free get_value [22:05:42]json_value_free [22:05:42]json_value_free done [22:05:42]process_json_proto returns [22:05:42]Send response to host [22:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73111,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:05:42]free response buf [22:05:42]execute_script done [22:05:42]execute_script returns [22:05:42]free content buf [22:05:42]Sock 9.Close socket [22:05:42]Sock 9.Thread stoped [22:05:42]accept exits with 10 [22:05:42]New connection [22:05:42]New thread 3066686820 created [22:05:42]Thread 3066830180 joined [22:05:42]Waiting for new connection... [22:05:42] Sock 10.Parse request [22:05:42]Sock 10.Check first char [22:05:42]Sock 10.First char is OK [22:05:42]request: POST /json_proto HTTP/1.0 [22:05:42]Method: POST [22:05:42]URL: /json_proto [22:05:42]Method is POST - this is cgi request [22:05:42]url: /json_proto [22:05:42]query_string will be loaded in cgi processing [22:05:42]execute_cgi json_proto POST (null) [22:05:42]execute_cgi path=json_proto method=POST [22:05:42]POST find Content-Length [22:05:42]Host: 172.17.43.195:8080 [22:05:42]Content-Length: 331 [22:05:42]Content-Type: application/json [22:05:42] [22:05:42]POST finish read [22:05:42]Found Content-Length = 331 [22:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [22:05:42]execute_script... [22:05:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [22:05:42]POST & json_proto [22:05:42]process_json_proto [22:05:42]json parsed OK: [22:05:42]protocol is kg_v1.0 [22:05:42]action value=get_value [22:05:42]process_action get_value [22:05:42]cmd_get_value [22:05:42]process_action get_value done [22:05:42]requested_data is exist [22:05:42]produce_requested_data [22:05:42]requested_item fm.sale.total is exist - process it [22:05:42]SAM_PROTO_GetFMData [22:05:42]wFMCommunicate request_size=4 [22:05:42]MH_SAM_APDU [22:05:42]CAPDU: 80 13 03 00 [22:05:42]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [22:05:43]Connected sock=6 [22:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 48 EB 07 01 52 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 58 FE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1D 01 00 35 04 06 00 94 FC 51 17 CB 25 1F 3A DF 90 F6 AF 48 8A [22:05:43]Write i2c OK [22:05:43]MH_I2C_Read... [22:05:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [22:05:43]Read from MH i2c: E2 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 FD 00 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 3D 19 01 00 69 04 A3 00 6F 04 04 00 4D 18 01 00 B1 04 05 00 FD 62 D0 A4 01 70 04 05 00 D0 77 1C 59 01 72 04 04 00 2D EB B3 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E6 FF B2 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 63 83 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 1D [22:05:43]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 3D 19 01 00 69 04 A3 00 6F 04 04 00 4D 18 01 00 B1 04 05 00 FD 62 D0 A4 01 70 04 05 00 D0 77 1C 59 01 72 04 04 00 2D EB B3 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E6 FF B2 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 63 83 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [22:05:43]wFMCommunicate OK [22:05:43]wFMCommunicate request_size=4 [22:05:43]MH_SAM_APDU [22:05:43]CAPDU: 80 17 00 00 [22:05:43]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [22:05:43]Write i2c OK [22:05:43]MH_I2C_Read... [22:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CB 67 47 00 47 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1D 01 00 F4 03 04 00 E9 A9 23 67 B6 04 01 00 00 11 5C 15 24 1C 7A C7 EF [22:05:43]CommunicateWithHost err = 0 [22:05:43]CheckOFDResponse [22:05:43]1017 (14) - 77093643461234 [22:05:43]1041 (16) - 0000000000874662 [22:05:43]1040 (4) - 73111 [22:05:43]1012 (4) - 31.10.2024 16:01 [22:05:43]1206 (1) - 0 [22:05:43]OFD Sender: Remove packet 73111 [22:05:43]ProducePacketName [22:05:43]name=ofd_packets/00073111 [22:05:43]NVStorageDeleteData [22:05:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:05:43]Read from MH i2c: E2 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 FD 00 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [22:05:43]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [22:05:43]wFMCommunicate OK [22:05:43]wFMCommunicate request_size=4 [22:05:43]MH_SAM_APDU [22:05:43]CAPDU: 80 17 00 00 [22:05:43]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [22:05:43]Write i2c OK [22:05:43]MH_I2C_Read... [22:05:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:05:44]OFD Sender: No OFD packet to send [22:05:44]Read from MH i2c: E2 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 FD 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [22:05:44]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [22:05:44]wFMCommunicate OK [22:05:44]wFMCommunicate request_size=4 [22:05:44]MH_SAM_APDU [22:05:44]CAPDU: 80 17 00 00 [22:05:44]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:05:44]Read from MH i2c: E2 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 FD 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [22:05:44]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [22:05:44]wFMCommunicate OK [22:05:44]wFMCommunicate request_size=4 [22:05:44]MH_SAM_APDU [22:05:44]CAPDU: 80 17 00 00 [22:05:44]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [22:05:44]Read from MH i2c: E2 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 E1 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [22:05:44]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [22:05:44]wFMCommunicate OK [22:05:44]SAM_PROTO_GetFMData done [22:05:44]requested_item fm.sale_refund.total is exist - process it [22:05:44]requested_item fm.buy.total is exist - process it [22:05:44]requested_item shift.sale.total is exist - process it [22:05:44]SAM_PROTO_GetShiftData [22:05:44]wFMCommunicate request_size=4 [22:05:44]MH_SAM_APDU [22:05:44]CAPDU: 80 13 02 00 [22:05:44]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [22:05:45]Read from MH i2c: E2 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: E2 FD 00 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 BA 00 00 00 69 04 9C 00 6F 04 04 00 BA 00 00 00 B1 04 03 00 44 F6 B9 70 04 03 00 9C 6E 77 72 04 03 00 A8 87 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B C0 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5B A5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 1E [22:05:45]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 BA 00 00 00 69 04 9C 00 6F 04 04 00 BA 00 00 00 B1 04 03 00 44 F6 B9 70 04 03 00 9C 6E 77 72 04 03 00 A8 87 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B C0 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5B A5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [22:05:45]wFMCommunicate OK [22:05:45]wFMCommunicate request_size=4 [22:05:45]MH_SAM_APDU [22:05:45]CAPDU: 80 17 00 00 [22:05:45]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [22:05:45]Write i2c OK [22:05:45]MH_I2C_Read... [22:05:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:05:45]Read from MH i2c: E2 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: E2 FD 00 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [22:05:45]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [22:05:45]wFMCommunicate OK [22:05:45]wFMCommunicate request_size=4 [22:05:45]MH_SAM_APDU [22:05:45]CAPDU: 80 17 00 00 [22:05:45]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [22:05:45]Write i2c OK [22:05:45]MH_I2C_Read... [22:05:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:05:45]Read from MH i2c: E2 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: E2 FD 00 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [22:05:45]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [22:05:45]wFMCommunicate OK [22:05:45]wFMCommunicate request_size=4 [22:05:45]MH_SAM_APDU [22:05:45]CAPDU: 80 17 00 00 [22:05:45]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [22:05:45]Write i2c OK [22:05:45]MH_I2C_Read... [22:05:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:05:46]Read from MH i2c: E2 [22:05:46]MH_I2C_Read... [22:05:46]Read from MH i2c: E2 FD 00 [22:05:46]MH_I2C_Read... [22:05:46]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [22:05:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [22:05:46]wFMCommunicate OK [22:05:46]wFMCommunicate request_size=4 [22:05:46]MH_SAM_APDU [22:05:46]CAPDU: 80 17 00 00 [22:05:46]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [22:05:46]Write i2c OK [22:05:46]MH_I2C_Read... [22:05:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [22:05:46]Read from MH i2c: E2 [22:05:46]MH_I2C_Read... [22:05:46]Read from MH i2c: E2 CC 00 [22:05:46]MH_I2C_Read... [22:05:46]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [22:05:46]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [22:05:46]wFMCommunicate OK [22:05:46]SAM_PROTO_GetShiftData done [22:05:46]requested_item shift.sale.total_cash is exist - process it [22:05:46]requested_item shift.sale_refund.total is exist - process it [22:05:46]requested_item shift.sale_refund.total_cash is exist - process it [22:05:46]requested_item shift.buy.total is exist - process it [22:05:46]requested_item shift.buy.total_cash is exist - process it [22:05:46]produce_requested_data done [22:05:46]produce_requested_data return {"fm.sale.total":70600875.49,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":121872.04,"shift.sale.total_cash":78271.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} [22:05:46]process_action_free get_value [22:05:46]json_value_free [22:05:46]json_value_free done [22:05:46]process_json_proto returns [22:05:46]Send response to host [22:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70600875.49,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":121872.04,"shift.sale.total_cash":78271.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}}} [22:05:46]free response buf [22:05:46]execute_script done [22:05:46]execute_script returns [22:05:46]free content buf [22:05:46]Sock 10.Close socket [22:05:46]Sock 10.Thread stoped [22:05:46]accept exits with 9 [22:05:46]New connection [22:05:46]New thread 3066830180 created [22:05:46]Thread 3066686820 joined [22:05:46]Waiting for new connection... [22:05:46] Sock 9.Parse request [22:05:46]Sock 9.Check first char [22:05:46]Sock 9.First char is OK [22:05:46]request: POST /json_proto HTTP/1.0 [22:05:46]Method: POST [22:05:46]URL: /json_proto [22:05:46]Method is POST - this is cgi request [22:05:46]url: /json_proto [22:05:46]query_string will be loaded in cgi processing [22:05:46]execute_cgi json_proto POST (null) [22:05:46]execute_cgi path=json_proto method=POST [22:05:46]POST find Content-Length [22:05:46]Host: 172.17.43.195:8080 [22:05:46]Content-Length: 792 [22:05:46]Content-Type: application/json [22:05:46] [22:05:46]POST finish read [22:05:46]Found Content-Length = 792 [22:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:46]execute_script... [22: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 : (1)952713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:46]POST & json_proto [22:05:46]process_json_proto [22:05:46]json parsed OK: [22:05:46]protocol is kg_v1.0 [22:05:46]action value=close_receipt [22:05:46]process_action close_receipt [22:05:46]cmd_close_receipt [22:05:46]MH_GetDate [22:05:46]Write to MH i2c: F0 00 00 1D 00 0C [22:05:46]Write i2c OK [22:05:46]MH_I2C_Read... [22:05:46]Read from MH i2c: F0 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: F0 09 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: F0 09 00 1D 00 00 3B FF 23 67 74 2C AD 66 8C [22:05:47]GetLastDocTimeStamp 1730412120 [22:05:47]current date 1730412347 [22:05:47]FM_GetShiftState [22:05:47]SAM_PROTO_GetShiftState [22:05:47]wFMCommunicate request_size=4 [22:05:47]MH_SAM_APDU [22:05:47]CAPDU: 80 13 01 00 [22:05:47]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:47]Read from MH i2c: E2 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 0E 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 44 [22:05:47]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:05:47]wFMCommunicate OK [22:05:47]SAM_PROTO_GetShiftState done [22:05:47]FM_GetShiftState done [22:05:47]opened in 1730333258 [22:05:47]opened+sec_in_day 1730419658 [22:05:47]quantity*price = 0 [22:05:47]sum+1 = 1 [22:05:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 187 31.10.2024 22:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 73112 ФПД: 194355524133723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220547&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73112&fm=194355524133723&tin=02508201610067®Number=0000000000091644&sum=0 [22:05:48]StoreToDocumentArchive [22:05:48]shift 557 fd 73112 [22:05:48]save to /storage/0557/doc_00073112 [22:05:48]save last doc name /storage/0557/doc_00073112 to /storage/kkm_last_doc_name [22:05:48]save OK [22:05:48]Clear old archive folders... [22:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:05:48]tlvbuf is 0065F530 [22:05:48]SAM_PROTO_ClearQueue [22:05:48]wFMCommunicate request_size=4 [22:05:48]MH_SAM_APDU [22:05:48]CAPDU: 80 09 00 00 [22:05:48]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [22:05:48]Write i2c OK [22:05:48]MH_I2C_Read... [22:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:48]Read from MH i2c: E2 [22:05:48]MH_I2C_Read... [22:05:48]Read from MH i2c: E2 03 00 [22:05:48]MH_I2C_Read... [22:05:48]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [22:05:48]RAPDU: 90 00 [22:05:48]wFMCommunicate OK [22:05:48]SAM_PROTO_ClearQueue done [22:05:48]KKMCreateOFDPacket [22:05:48]OFDProtocolAddRootSTLVToBuf [22:05:48]FM_MakeSignedData [22:05:48]FM_MakeSignedData [22:05:48]SAM_PROTO_SignData [22:05:48]wFMCommunicate request_size=4 [22:05:48]MH_SAM_APDU [22:05:48]CAPDU: 80 0D 01 02 [22:05:48]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [22:05:48]Write i2c OK [22:05:48]MH_I2C_Read... [22:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:48]Read from MH i2c: E2 [22:05:48]MH_I2C_Read... [22:05:48]Read from MH i2c: E2 03 00 [22:05:48]MH_I2C_Read... [22:05:48]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [22:05:48]RAPDU: 90 00 [22:05:48]wFMCommunicate OK [22:05:48]wFMCommunicate request_size=255 [22:05:48]MH_SAM_APDU [22:05:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3B FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1D 01 00 35 04 06 00 B0 [22:05:48]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3B FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1D 01 00 35 04 06 00 B0 00 00 31 [22:05:48]Write i2c OK [22:05:48]MH_I2C_Read... [22:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:49]Read from MH i2c: E2 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: E2 03 00 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [22:05:49]RAPDU: 90 00 [22:05:49]wFMCommunicate OK [22:05:49]wFMCommunicate request_size=10 [22:05:49]MH_SAM_APDU [22:05:49]CAPDU: 80 0D 02 02 05 C3 EB F9 E3 5B [22:05:49]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 C3 EB F9 E3 5B 00 00 97 [22:05:49]Write i2c OK [22:05:49]MH_I2C_Read... [22:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:49]Read from MH i2c: E2 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: E2 03 00 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [22:05:49]RAPDU: 90 00 [22:05:49]wFMCommunicate OK [22:05:49]wFMCommunicate request_size=4 [22:05:49]MH_SAM_APDU [22:05:49]CAPDU: 80 0D 03 02 [22:05:49]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [22:05:49]Write i2c OK [22:05:49]MH_I2C_Read... [22:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:49]Read from MH i2c: E2 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: E2 0B 00 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: E2 0B 00 2F 00 00 5F 9D 41 B1 C4 17 0D EB 90 00 6C [22:05:49]RAPDU: 5F 9D 41 B1 C4 17 0D EB 90 00 [22:05:49]wFMCommunicate OK [22:05:49]SAM_PROTO_SignData done [22:05:49]FM_MakeSignedData done [22:05:49]CreateOFDProtocolMessage [22:05:49]wFMCommunicate request_size=4 [22:05:49]MH_SAM_APDU [22:05:49]CAPDU: 80 11 00 00 [22:05:49]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [22:05:49]Write i2c OK [22:05:49]MH_I2C_Read... [22:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:49]Read from MH i2c: E2 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: E2 17 00 [22:05:49]MH_I2C_Read... [22:05: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 34 36 36 32 90 00 FE [22:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:05:49]wFMCommunicate OK [22:05:49]CreateOFDProtocolMessage done [22:05:49]OFDSenderStorePacket 73112 [22:05:49]StoreOFDPacket docnum=73112 [22:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EB 0A 07 01 4B 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3B FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1D 01 00 35 04 06 00 B0 C3 EB F9 E3 5B 5F 9D 41 B1 C4 17 0D EB [22:05:49]CheckFolder [22:05:49]dirname=/storage/ofd_packets [22:05:49]CheckFolder done [22:05:49]ProducePacketName [22:05:49]name=ofd_packets/00073112 [22:05:49]NVStorageSaveData ofd_packets/00073112 [22:05:49]File name is /storage/ofd_packets/00073112 [22:05:49]Write 301 bytes [22:05:49]NVStorageSaveData done [22:05:49]OFDSenderStorePacket done [22:05:49]KKMCreateOFDPacket done [22:05:49]NVStorageSaveData kkm_last_timestamp [22:05:49]File name is /storage/kkm_last_timestamp [22:05:49]OFD Sender: No OFD packet to send [22:05:49]Write 4 bytes [22:05:49]NVStorageSaveData done [22:05:49]ExternCall_PrintAddStr [22:05:49]wPrintStart [22:05:49]Write to MH i2c: 01 00 00 31 00 31 [22:05:49]Write i2c OK [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: 01 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: 01 07 00 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [22:05:49]RasterBufferAndPrint [22:05:49]line Счет N : (1)952713 [22:05:49]line ИНН: 02508201610067 [22:05:49]line Контрольно-Кассовый Чек [22:05:49]line ПРОДАЖА [22:05:49]line ТРК (МРК, ГНК) : 63 [22:05:49]line Товар: 2710124130 [22:05:49]line Аи-92-К-5 [22:05:49]line 20.000 * 0.00 [22:05:49]line = 0.00 [22:05:49]line НДС 12% НСП 1% [22:05:49]line > о реализуемом товаре [22:05:49]line ИТОГО: 0.00 [22:05:49]line НСП 1% : 0.00 [22:05:49]line НДС 12% : 0.00 [22:05:49]line Наличными: 0.00 [22:05:49]line Безнал.: 0.00 [22:05:49]line Место: АЗС № 113 "Партнер Нефть" [22:05:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:05:49]line СНО: Общий режим [22:05:49]line Чек 187 31.10.2024 22:05 [22:05:49]line Смена: 557 ФФД: 1.0 [22:05:49]line ЗНМ: 0300000087 [22:05:49]line РНМ: 0000000000091644 [22:05:49]line Версия ККМ: 001 [22:05:49]line Талоны: Топливная Карта [22:05:49]line 02645 [22:05:49]line ФМ: 0000000000874662 [22:05:49]line ФД: 73112 [22:05:49]line ФПД: 194355524133723 [22:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220547&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73112&fm=194355524133723&tin=02508201610067®Number=0000000000091644&sum=0 [22:05:49]written 0, free lines is 4095 [22:05:49]OFD Sender: Processing packet 73112 [packets to send 282, broken 281] [22:05:49]ProducePacketName [22:05:49]name=ofd_packets/00073112 [22:05:49]OFD Sender: To server: pG, [22:05:49]CommunicateWithHost lk.salyk.kg:30040 [22:05:49]ConnectInit lk.salyk.kg [22:05:49]Write to MH i2c: 01 00 00 5B 00 5B [22:05:49]Write i2c OK [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: 01 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: 01 07 00 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 ED 0C 5B [22:05:49]RasterBufferAndPrint [22:05:49]line [22:05:49]line [22:05:49]line [22:05:49]line [22:05:49]line [22:05:49]written 0, free lines is 3333 [22:05:49]MH_Cut [22:05:49]Write to MH i2c: D1 01 00 62 00 01 34 [22:05:49]Write i2c OK [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: D1 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: D1 01 00 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: D1 01 00 62 00 00 33 [22:05:49]Write to MH i2c: 01 00 00 63 00 63 [22:05:49]Write i2c OK [22:05:49]MH_I2C_Read... [22:05:50]Connected sock=6 [22:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EB 0A 07 01 4B 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3B FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1D 01 00 35 04 06 00 B0 C3 EB F9 E3 5B 5F 9D 41 B1 C4 17 0D EB [22:05:50]*** Cut start [22:05:50]*** Partial cut [22:05:50]*** CUTSNS_PIN = 1 [22:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D2 39 47 00 83 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 *** CUTSNS_PIN = 0 [22:05:50]30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1D 01 00 F4 03 04 00 F0 A9 23 67 B6 04 01 00 00 D1 9E 6A 2C 7A B2 66 B5 [22:05:50]CommunicateWithHost err = 0 [22:05:50]CheckOFDResponse [22:05:50]1017 (14) - 77093643461234 [22:05:50]1041 (16) - 0000000000874662 [22:05:50]1040 (4) - 73112 [22:05:50]1012 (4) - 31.10.2024 16:01 [22:05:50]1206 (1) - 0 [22:05:50]OFD Sender: Remove packet 73112 [22:05:50]ProducePacketName [22:05:50]name=ofd_packets/00073112 [22:05:50]NVStorageDeleteData [22:05:50]*** Brake cut motor [22:05:51]Read from MH i2c: 01 [22:05:51]MH_I2C_Read... [22:05:51]*** Stop cut motor [22:05:51]*** Cut end [22:05:51]OFD Sender: No OFD packet to send [22:05:51]Read from MH i2c: 01 07 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [22:05:51]process_action close_receipt done [22:05:51]requested_data is exist [22:05:51]produce_requested_data [22:05:51]requested_item fm.sn is exist - process it [22:05:51]wFMCommunicate request_size=4 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 11 00 00 [22:05:51]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:51]Read from MH i2c: E2 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 17 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [22:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:05:51]wFMCommunicate OK [22:05:51]requested_item fd.num is exist - process it [22:05:51]SAM_PROTO_GetFieldsCounters [22:05:51]wFMCommunicate request_size=4 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 13 00 00 [22:05:51]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:51]Read from MH i2c: E2 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 62 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 98 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [22:05:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 98 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:51]wFMCommunicate OK [22:05:51]SAM_PROTO_GetFieldsCounters done [22:05:51]requested_item shift.num is exist - process it [22:05:51]requested_item shift.opened is exist - process it [22:05:51]req_shift_opened [22:05:51]FM_GetShiftState [22:05:51]SAM_PROTO_GetShiftState [22:05:51]wFMCommunicate request_size=4 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 13 01 00 [22:05:51]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:51]Read from MH i2c: E2 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 0E 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8C [22:05:51]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:05:51]wFMCommunicate OK [22:05:51]SAM_PROTO_GetShiftState done [22:05:51]FM_GetShiftState done [22:05:51]req_shift_opened done [22:05:51]requested_item shift.open_date is exist - process it [22:05:51]req_shift_open_date [22:05:51]req_shift_open_date done [22:05:51]produce_requested_data done [22:05:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73112,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:05:51]process_action_free close_receipt [22:05:51]json_value_free [22:05:51]json_value_free done [22:05:51]process_json_proto returns [22:05:51]Send response to host [22:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73112,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:05:51]free response buf [22:05:51]execute_script done [22:05:51]execute_script returns [22:05:51]free content buf [22:05:51]Sock 9.Close socket [22:05:51]Sock 9.Thread stoped [22:05:52]accept exits with 10 [22:05:52]New connection [22:05:52]New thread 3066686820 created [22:05:52]Thread 3066830180 joined [22:05:52]Waiting for new connection... [22:05:52] Sock 10.Parse request [22:05:52]Sock 10.Check first char [22:05:52]Sock 10.First char is OK [22:05:52]request: POST /json_proto HTTP/1.0 [22:05:52]Method: POST [22:05:52]URL: /json_proto [22:05:52]Method is POST - this is cgi request [22:05:52]url: /json_proto [22:05:52]query_string will be loaded in cgi processing [22:05:52]execute_cgi json_proto POST (null) [22:05:52]execute_cgi path=json_proto method=POST [22:05:52]POST find Content-Length [22:05:52]Host: 172.17.43.195:8080 [22:05:52]Content-Length: 678 [22:05:52]Content-Type: application/json [22:05:52] [22:05:52]POST finish read [22:05:52]Found Content-Length = 678 [22:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:52]execute_script... [22:05: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)952714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:52]POST & json_proto [22:05:52]process_json_proto [22:05:52]json parsed OK: [22:05:52]protocol is kg_v1.0 [22:05:52]action value=close_receipt [22:05:52]process_action close_receipt [22:05:52]cmd_close_receipt [22:05:52]MH_GetDate [22:05:52]Write to MH i2c: F0 00 00 67 00 56 [22:05:52]Write i2c OK [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: F0 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: F0 09 00 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: F0 09 00 67 00 00 40 FF 23 67 74 2C AD 66 DB [22:05:52]GetLastDocTimeStamp 1730412347 [22:05:52]current date 1730412352 [22:05:52]FM_GetShiftState [22:05:52]SAM_PROTO_GetShiftState [22:05:52]wFMCommunicate request_size=4 [22:05:52]MH_SAM_APDU [22:05:52]CAPDU: 80 13 01 00 [22:05:52]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [22:05:52]Write i2c OK [22:05:52]MH_I2C_Read... [22:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:52]Read from MH i2c: E2 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: E2 0E 00 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8E [22:05:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:05:52]wFMCommunicate OK [22:05:52]SAM_PROTO_GetShiftState done [22:05:52]FM_GetShiftState done [22:05:52]opened in 1730333258 [22:05:52]opened+sec_in_day 1730419658 [22:05:52]quantity*price = 80012 [22:05:52]sum+1 = 80013 [22:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 188 31.10.2024 22:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73113 ФПД: 89942570787982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220552&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73113&fm=89942570787982&tin=02508201610067®Number=0000000000091644&sum=80000 [22:05:53]StoreToDocumentArchive [22:05:53]shift 557 fd 73113 [22:05:53]save to /storage/0557/doc_00073113 [22:05:53]save last doc name /storage/0557/doc_00073113 to /storage/kkm_last_doc_name [22:05:53]save OK [22:05:53]Clear old archive folders... [22:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:05:53]tlvbuf is 005F7850 [22:05:53]SAM_PROTO_ClearQueue [22:05:53]wFMCommunicate request_size=4 [22:05:53]MH_SAM_APDU [22:05:53]CAPDU: 80 09 00 00 [22:05:53]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [22:05:53]Write i2c OK [22:05:53]MH_I2C_Read... [22:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:53]Read from MH i2c: E2 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 03 00 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [22:05:53]RAPDU: 90 00 [22:05:53]wFMCommunicate OK [22:05:53]SAM_PROTO_ClearQueue done [22:05:53]KKMCreateOFDPacket [22:05:53]OFDProtocolAddRootSTLVToBuf [22:05:53]FM_MakeSignedData [22:05:53]FM_MakeSignedData [22:05:53]SAM_PROTO_SignData [22:05:53]wFMCommunicate request_size=4 [22:05:53]MH_SAM_APDU [22:05:53]CAPDU: 80 0D 01 02 [22:05:53]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [22:05:53]Write i2c OK [22:05:53]MH_I2C_Read... [22:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:53]Read from MH i2c: E2 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 03 00 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [22:05:53]RAPDU: 90 00 [22:05:53]wFMCommunicate OK [22:05:53]wFMCommunicate request_size=255 [22:05:53]MH_SAM_APDU [22:05:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1D 01 00 35 04 06 00 51 [22:05:53]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1D 01 00 35 04 06 00 51 00 00 26 [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:54]Read from MH i2c: E2 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 03 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [22:05:54]RAPDU: 90 00 [22:05:54]wFMCommunicate OK [22:05:54]wFMCommunicate request_size=10 [22:05:54]MH_SAM_APDU [22:05:54]CAPDU: 80 0D 02 02 05 CD 62 FB 64 8E [22:05:54]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 CD 62 FB 64 8E 00 00 18 [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:54]Read from MH i2c: E2 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 03 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [22:05:54]RAPDU: 90 00 [22:05:54]wFMCommunicate OK [22:05:54]wFMCommunicate request_size=4 [22:05:54]MH_SAM_APDU [22:05:54]CAPDU: 80 0D 03 02 [22:05:54]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:54]Read from MH i2c: E2 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 0B 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 0B 00 79 00 00 68 BF 81 00 1A 51 32 2F 90 00 69 [22:05:54]RAPDU: 68 BF 81 00 1A 51 32 2F 90 00 [22:05:54]wFMCommunicate OK [22:05:54]SAM_PROTO_SignData done [22:05:54]FM_MakeSignedData done [22:05:54]CreateOFDProtocolMessage [22:05:54]wFMCommunicate request_size=4 [22:05:54]MH_SAM_APDU [22:05:54]CAPDU: 80 11 00 00 [22:05:54]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:54]Read from MH i2c: E2 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 17 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [22:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:05:54]wFMCommunicate OK [22:05:54]CreateOFDProtocolMessage done [22:05:54]OFDSenderStorePacket 73113 [22:05:54]StoreOFDPacket docnum=73113 [22:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 96 59 07 01 37 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1D 01 00 35 04 06 00 51 CD 62 FB 64 8E 68 BF 81 00 1A 51 32 2F [22:05:54]CheckFolder [22:05:54]dirname=/storage/ofd_packets [22:05:54]CheckFolder done [22:05:54]ProducePacketName [22:05:54]name=ofd_packets/00073113 [22:05:54]NVStorageSaveData ofd_packets/00073113 [22:05:54]File name is /storage/ofd_packets/00073113 [22:05:54]Write 301 bytes [22:05:54]NVStorageSaveData done [22:05:54]OFDSenderStorePacket done [22:05:54]KKMCreateOFDPacket done [22:05:54]NVStorageSaveData kkm_last_timestamp [22:05:54]File name is /storage/kkm_last_timestamp [22:05:54]Write 4 bytes [22:05:54]NVStorageSaveData done [22:05:54]ExternCall_PrintAddStr [22:05:54]wPrintStart [22:05:54]Write to MH i2c: 01 00 00 7B 00 7B [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: 01 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: 01 07 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [22:05:54]RasterBufferAndPrint [22:05:54]line Счет N : (1)952714 [22:05:54]line ИНН: 02508201610067 [22:05:54]line Контрольно-Кассовый Чек [22:05:54]line ПРОДАЖА [22:05:54]line ТРК (МРК, ГНК) : 42 [22:05:54]line Товар: 2710124130 [22:05:54]line Аи-92-К-5 [22:05:54]line 11.960 * 66.90 [22:05:54]line = 800.12 [22:05:54]line НДС 12% НСП 1% [22:05:54]line > о реализуемом товаре [22:05:54]line ОКРУГЛЕНИЕ: -0.12 [22:05:54]line ИТОГО: 800.00 [22:05:54]line Внесено: 800.00 [22:05:54]line СДАЧА: 0.00 [22:05:54]line НСП 1% : 7.08 [22:05:54]line НДС 12% : 84.97 [22:05:54]line Наличными: 800.00 [22:05:54]line Безнал.: 0.00 [22:05:54]line Место: АЗС № 113 "Партнер Нефть" [22:05:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:05:54]line СНО: Общий режим [22:05:54]line Чек 188 31.10.2024 22:05 [22:05:54]line Смена: 557 ФФД: 1.0 [22:05:54]line ЗНМ: 0300000087 [22:05:54]line РНМ: 0000000000091644 [22:05:54]line Версия ККМ: 001 [22:05:54]line ФМ: 0000000000874662 [22:05:54]line ФД: 73113 [22:05:54]line ФПД: 89942570787982 [22:05:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220552&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73113&fm=89942570787982&tin=02508201610067®Number=0000000000091644&sum=80000 [22:05:54]OFD Sender: Processing packet 73113 [packets to send 282, broken 281] [22:05:54]ProducePacketName [22:05:54]name=ofd_packets/00073113 [22:05:54]OFD Sender: To server: pG, [22:05:54]CommunicateWithHost lk.salyk.kg:30040 [22:05:54]ConnectInit lk.salyk.kg [22:05:54]written 0, free lines is 4095 [22:05:55]Write to MH i2c: 01 00 00 A6 00 A6 [22:05:55]Write i2c OK [22:05:55]MH_I2C_Read... [22:05:55]Read from MH i2c: 01 [22:05:55]MH_I2C_Read... [22:05:55]Read from MH i2c: 01 07 00 [22:05:55]MH_I2C_Read... [22:05:55]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 DA 0C 93 [22:05:55]RasterBufferAndPrint [22:05:55]line [22:05:55]line [22:05:55]line [22:05:55]line [22:05:55]line [22:05:55]written 0, free lines is 3321 [22:05:55]Connected sock=11 [22:05:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 96 59 07 01 37 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1D 01 00 35 04 06 00 51 CD 62 FB 64 8E 68 BF 81 00 1A 51 32 2F [22:05:55]MH_Cut [22:05:55]Write to MH i2c: D1 01 00 AD 00 01 7F [22:05:55]Write i2c OK [22:05:55]MH_I2C_Read... [22:05:55]Read from MH i2c: D1 [22:05:55]MH_I2C_Read... [22:05:55]Read from MH i2c: D1 01 00 [22:05:55]MH_I2C_Read... [22:05:55]Read from MH i2c: D1 01 00 AD 00 00 7E [22:05:55]Write to MH i2c: 01 00 00 AE 00 AE [22:05:55]Write i2c OK [22:05:55]MH_I2C_Read... [22:05:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 EE BB 47 00 CB 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1D 01 00 F4 03 04 00 F5 A9 23 67 B6 04 01 00 00 84 C0 73 F3 B6 13 85 E5 [22:05:55]CommunicateWithHost err = 0 [22:05:55]CheckOFDResponse [22:05:55]1017 (14) - 77093643461234 [22:05:55]1041 (16) - 0000000000874662 [22:05:55]1040 (4) - 73113 [22:05:55]1012 (4) - 31.10.2024 16:01 [22:05:55]1206 (1) - 0 [22:05:55]OFD Sender: Remove packet 73113 [22:05:55]ProducePacketName [22:05:55]name=ofd_packets/00073113 [22:05:55]NVStorageDeleteData [22:05:55]*** Cut start [22:05:55]*** Partial cut [22:05:55]*** CUTSNS_PIN = 1 [22:05:55]*** CUTSNS_PIN = 0 [22:05:56]*** Brake cut motor [22:05:56]OFD Sender: No OFD packet to send [22:05:56]Read from MH i2c: 01 [22:05:56]MH_I2C_Read... [22:05:56]*** Stop cut motor [22:05:56]*** Cut end [22:05:56]Read from MH i2c: 01 07 00 [22:05:56]MH_I2C_Read... [22:05:56]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [22:05:56]process_action close_receipt done [22:05:56]requested_data is exist [22:05:56]produce_requested_data [22:05:56]requested_item fm.sn is exist - process it [22:05:56]wFMCommunicate request_size=4 [22:05:56]MH_SAM_APDU [22:05:56]CAPDU: 80 11 00 00 [22:05:56]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [22:05:56]Write i2c OK [22:05:56]MH_I2C_Read... [22:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:56]Read from MH i2c: E2 [22:05:56]MH_I2C_Read... [22:05:56]Read from MH i2c: E2 17 00 [22:05:56]MH_I2C_Read... [22:05:56]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [22:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:05:56]wFMCommunicate OK [22:05:56]requested_item fd.num is exist - process it [22:05:56]SAM_PROTO_GetFieldsCounters [22:05:56]wFMCommunicate request_size=4 [22:05:56]MH_SAM_APDU [22:05:56]CAPDU: 80 13 00 00 [22:05:56]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [22:05:56]Write i2c OK [22:05:56]MH_I2C_Read... [22:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:56]Read from MH i2c: E2 [22:05:56]MH_I2C_Read... [22:05:56]Read from MH i2c: E2 62 00 [22:05:56]MH_I2C_Read... [22:05:56]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 99 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [22:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 99 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:56]wFMCommunicate OK [22:05:56]SAM_PROTO_GetFieldsCounters done [22:05:56]requested_item shift.num is exist - process it [22:05:56]requested_item shift.opened is exist - process it [22:05:56]req_shift_opened [22:05:56]FM_GetShiftState [22:05:56]SAM_PROTO_GetShiftState [22:05:56]wFMCommunicate request_size=4 [22:05:56]MH_SAM_APDU [22:05:56]CAPDU: 80 13 01 00 [22:05:56]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [22:05:56]Write i2c OK [22:05:56]MH_I2C_Read... [22:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:56]Read from MH i2c: E2 [22:05:56]MH_I2C_Read... [22:05:56]Read from MH i2c: E2 0E 00 [22:05:56]MH_I2C_Read... [22:05:56]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D7 [22:05:56]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:05:56]wFMCommunicate OK [22:05:56]SAM_PROTO_GetShiftState done [22:05:56]FM_GetShiftState done [22:05:56]req_shift_opened done [22:05:56]requested_item shift.open_date is exist - process it [22:05:56]req_shift_open_date [22:05:56]req_shift_open_date done [22:05:56]produce_requested_data done [22:05:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73113,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:05:56]process_action_free close_receipt [22:05:56]json_value_free [22:05:56]json_value_free done [22:05:56]process_json_proto returns [22:05:56]Send response to host [22:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73113,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:05:56]free response buf [22:05:56]execute_script done [22:05:56]execute_script returns [22:05:56]free content buf [22:05:56]Sock 10.Close socket [22:05:56]Sock 10.Thread stoped [22:05:57]accept exits with 7 [22:05:57]New connection [22:05:57]New thread 3066830180 created [22:05:57]Thread 3066686820 joined [22:05:57]Waiting for new connection... [22:05:57] Sock 7.Parse request [22:05:57]Sock 7.Check first char [22:05:57]Sock 7.First char is OK [22:05:57]request: POST /json_proto HTTP/1.0 [22:05:57]Method: POST [22:05:57]URL: /json_proto [22:05:57]Method is POST - this is cgi request [22:05:57]url: /json_proto [22:05:57]query_string will be loaded in cgi processing [22:05:57]execute_cgi json_proto POST (null) [22:05:57]execute_cgi path=json_proto method=POST [22:05:57]POST find Content-Length [22:05:57]Host: 172.17.43.195:8080 [22:05:57]Content-Length: 685 [22:05:57]Content-Type: application/json [22:05:57] [22:05:57]POST finish read [22:05:57]Found Content-Length = 685 [22:05:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:57]execute_script... [22:05: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)952715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:57]POST & json_proto [22:05:57]process_json_proto [22:05:57]json parsed OK: [22:05:57]protocol is kg_v1.0 [22:05:57]action value=close_receipt [22:05:57]process_action close_receipt [22:05:57]cmd_close_receipt [22:05:57]MH_GetDate [22:05:57]Write to MH i2c: F0 00 00 B2 00 A1 [22:05:57]Write i2c OK [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: F0 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: F0 09 00 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: F0 09 00 B2 00 00 45 FF 23 67 74 2C AD 66 2B [22:05:57]GetLastDocTimeStamp 1730412352 [22:05:57]current date 1730412357 [22:05:57]FM_GetShiftState [22:05:57]SAM_PROTO_GetShiftState [22:05:57]wFMCommunicate request_size=4 [22:05:57]MH_SAM_APDU [22:05:57]CAPDU: 80 13 01 00 [22:05:57]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [22:05:57]Write i2c OK [22:05:57]MH_I2C_Read... [22:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:57]Read from MH i2c: E2 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: E2 0E 00 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D9 [22:05:57]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:05:57]wFMCommunicate OK [22:05:57]SAM_PROTO_GetShiftState done [22:05:57]FM_GetShiftState done [22:05:57]opened in 1730333258 [22:05:57]opened+sec_in_day 1730419658 [22:05:57]quantity*price = 150037 [22:05:57]sum+1 = 150038 [22:05:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 189 31.10.2024 22:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73114 ФПД: 268814380188104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220557&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73114&fm=268814380188104&tin=02508201610067®Number=0000000000091644&sum=150000 [22:05:59]StoreToDocumentArchive [22:05:59]shift 557 fd 73114 [22:05:59]save to /storage/0557/doc_00073114 [22:05:59]save last doc name /storage/0557/doc_00073114 to /storage/kkm_last_doc_name [22:05:59]save OK [22:05:59]Clear old archive folders... [22:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:05:59]tlvbuf is 0069EF20 [22:05:59]SAM_PROTO_ClearQueue [22:05:59]wFMCommunicate request_size=4 [22:05:59]MH_SAM_APDU [22:05:59]CAPDU: 80 09 00 00 [22:05:59]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [22:05:59]Write i2c OK [22:05:59]MH_I2C_Read... [22:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:59]Read from MH i2c: E2 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 03 00 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [22:05:59]RAPDU: 90 00 [22:05:59]wFMCommunicate OK [22:05:59]SAM_PROTO_ClearQueue done [22:05:59]KKMCreateOFDPacket [22:05:59]OFDProtocolAddRootSTLVToBuf [22:05:59]FM_MakeSignedData [22:05:59]FM_MakeSignedData [22:05:59]SAM_PROTO_SignData [22:05:59]wFMCommunicate request_size=4 [22:05:59]MH_SAM_APDU [22:05:59]CAPDU: 80 0D 01 02 [22:05:59]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [22:05:59]Write i2c OK [22:05:59]MH_I2C_Read... [22:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:59]Read from MH i2c: E2 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 03 00 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [22:05:59]RAPDU: 90 00 [22:05:59]wFMCommunicate OK [22:05:59]wFMCommunicate request_size=255 [22:05:59]MH_SAM_APDU [22:05:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 45 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9A 1D 01 00 35 04 06 00 F4 7C [22:05:59]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 45 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9A 1D 01 00 35 04 06 00 F4 7C 00 00 D3 [22:05:59]Write i2c OK [22:05:59]MH_I2C_Read... [22:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:59]Read from MH i2c: E2 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 03 00 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [22:05:59]RAPDU: 90 00 [22:05:59]wFMCommunicate OK [22:05:59]wFMCommunicate request_size=9 [22:05:59]MH_SAM_APDU [22:05:59]CAPDU: 80 0D 02 02 04 39 A4 41 C8 [22:05:59]Write to MH i2c: E2 0C 00 C3 00 80 0D 02 02 04 00 39 A4 41 C8 00 00 2B [22:05:59]Write i2c OK [22:05:59]MH_I2C_Read... [22:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:59]Read from MH i2c: E2 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 03 00 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [22:05:59]RAPDU: 90 00 [22:05:59]wFMCommunicate OK [22:05:59]wFMCommunicate request_size=4 [22:05:59]MH_SAM_APDU [22:05:59]CAPDU: 80 0D 03 02 [22:05:59]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [22:05:59]Write i2c OK [22:05:59]MH_I2C_Read... [22:05:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:59]Read from MH i2c: E2 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 0B 00 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 0B 00 C4 00 00 6B F2 50 C6 A4 E2 05 7E 90 00 BC [22:05:59]RAPDU: 6B F2 50 C6 A4 E2 05 7E 90 00 [22:05:59]wFMCommunicate OK [22:05:59]SAM_PROTO_SignData done [22:05:59]FM_MakeSignedData done [22:05:59]CreateOFDProtocolMessage [22:05:59]wFMCommunicate request_size=4 [22:05:59]MH_SAM_APDU [22:05:59]CAPDU: 80 11 00 00 [22:05:59]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [22:05:59]Write i2c OK [22:05:59]MH_I2C_Read... [22:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:59]Read from MH i2c: E2 [22:05:59]MH_I2C_Read... [22:05:59]Read from MH i2c: E2 17 00 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 93 [22:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:06:00]wFMCommunicate OK [22:06:00]CreateOFDProtocolMessage done [22:06:00]OFDSenderStorePacket 73114 [22:06:00]StoreOFDPacket docnum=73114 [22:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 9E 48 06 01 8E 0C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 45 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9A 1D 01 00 35 04 06 00 F4 7C 39 A4 41 C8 6B F2 50 C6 A4 E2 05 7E [22:06:00]CheckFolder [22:06:00]dirname=/storage/ofd_packets [22:06:00]CheckFolder done [22:06:00]ProducePacketName [22:06:00]name=ofd_packets/00073114 [22:06:00]NVStorageSaveData ofd_packets/00073114 [22:06:00]File name is /storage/ofd_packets/00073114 [22:06:00]Write 300 bytes [22:06:00]NVStorageSaveData done [22:06:00]OFDSenderStorePacket done [22:06:00]KKMCreateOFDPacket done [22:06:00]NVStorageSaveData kkm_last_timestamp [22:06:00]File name is /storage/kkm_last_timestamp [22:06:00]Write 4 bytes [22:06:00]NVStorageSaveData done [22:06:00]ExternCall_PrintAddStr [22:06:00]wPrintStart [22:06:00]Write to MH i2c: 01 00 00 C6 00 C6 [22:06:00]Write i2c OK [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: 01 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: 01 07 00 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [22:06:00]RasterBufferAndPrint [22:06:00]line Счет N : (1)952715 [22:06:00]line ИНН: 02508201610067 [22:06:00]line Контрольно-Кассовый Чек [22:06:00]line ПРОДАЖА [22:06:00]line ТРК (МРК, ГНК) : 71 [22:06:00]line Товар: 2711190000 [22:06:00]line ГАЗ-К-3 [22:06:00]line 38.570 * 38.90 [22:06:00]line = 1500.37 [22:06:00]line НДС 12% НСП 1% [22:06:00]line > о реализуемом товаре [22:06:00]line ОКРУГЛЕНИЕ: -0.37 [22:06:00]line ИТОГО: 1500.00 [22:06:00]line Внесено: 1500.00 [22:06:00]line СДАЧА: 0.00 [22:06:00]line НСП 1% : 13.28 [22:06:00]line НДС 12% : 159.33 [22:06:00]line Наличными: 1500.00 [22:06:00]line Безнал.: 0.00 [22:06:00]line Место: АЗС № 113 "Партнер Нефть" [22:06:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:06:00]line СНО: Общий режим [22:06:00]line Чек 189 31.10.2024 22:05 [22:06:00]line Смена: 557 ФФД: 1.0 [22:06:00]line ЗНМ: 0300000087 [22:06:00]line РНМ: 0000000000091644 [22:06:00]line Версия ККМ: 001 [22:06:00]line ФМ: 0000000000874662 [22:06:00]line ФД: 73114 [22:06:00]line ФПД: 268814380188104 [22:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220557&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73114&fm=268814380188104&tin=02508201610067®Number=0000000000091644&sum=150000 [22:06:00]written 0, free lines is 4095 [22:06:00]OFD Sender: Processing packet 73114 [packets to send 282, broken 281] [22:06:00]ProducePacketName [22:06:00]name=ofd_packets/00073114 [22:06:00]OFD Sender: To server: pG, [22:06:00]CommunicateWithHost lk.salyk.kg:30040 [22:06:00]ConnectInit lk.salyk.kg [22:06:00]Write to MH i2c: 01 00 00 F1 00 F1 [22:06:00]Write i2c OK [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: 01 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: 01 07 00 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 E2 0C E6 [22:06:00]RasterBufferAndPrint [22:06:00]line [22:06:00]line [22:06:00]line [22:06:00]line [22:06:00]line [22:06:00]written 0, free lines is 3332 [22:06:00]MH_Cut [22:06:00]Write to MH i2c: D1 01 00 F8 00 01 CA [22:06:00]Write i2c OK [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: D1 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: D1 01 00 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: D1 01 00 F8 00 00 C9 [22:06:00]Write to MH i2c: 01 00 00 F9 00 F9 [22:06:00]Write i2c OK [22:06:00]MH_I2C_Read... [22:06:01]*** Cut start [22:06:01]*** Partial cut [22:06:01]*** CUTSNS_PIN = 1 [22:06:01]*** CUTSNS_PIN = 0 [22:06:01]*** Brake cut motor [22:06:01]Read from MH i2c: 01 [22:06:01]MH_I2C_Read... [22:06:01]*** Stop cut motor [22:06:01]*** Cut end [22:06:01]Read from MH i2c: 01 07 00 [22:06:01]MH_I2C_Read... [22:06:01]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [22:06:01]process_action close_receipt done [22:06:01]requested_data is exist [22:06:01]produce_requested_data [22:06:01]requested_item fm.sn is exist - process it [22:06:01]wFMCommunicate request_size=4 [22:06:01]MH_SAM_APDU [22:06:01]CAPDU: 80 11 00 00 [22:06:01]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [22:06:01]Write i2c OK [22:06:01]MH_I2C_Read... [22:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:02]Read from MH i2c: E2 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: E2 17 00 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C8 [22:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:06:02]wFMCommunicate OK [22:06:02]requested_item fd.num is exist - process it [22:06:02]SAM_PROTO_GetFieldsCounters [22:06:02]wFMCommunicate request_size=4 [22:06:02]MH_SAM_APDU [22:06:02]CAPDU: 80 13 00 00 [22:06:02]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [22:06:02]Write i2c OK [22:06:02]MH_I2C_Read... [22:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:02]Read from MH i2c: E2 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: E2 62 00 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [22:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9A 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:02]wFMCommunicate OK [22:06:02]SAM_PROTO_GetFieldsCounters done [22:06:02]requested_item shift.num is exist - process it [22:06:02]requested_item shift.opened is exist - process it [22:06:02]req_shift_opened [22:06:02]FM_GetShiftState [22:06:02]SAM_PROTO_GetShiftState [22:06:02]wFMCommunicate request_size=4 [22:06:02]MH_SAM_APDU [22:06:02]CAPDU: 80 13 01 00 [22:06:02]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [22:06:02]Write i2c OK [22:06:02]MH_I2C_Read... [22:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:02]Read from MH i2c: E2 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: E2 0E 00 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 22 [22:06:02]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:06:02]wFMCommunicate OK [22:06:02]SAM_PROTO_GetShiftState done [22:06:02]FM_GetShiftState done [22:06:02]req_shift_opened done [22:06:02]requested_item shift.open_date is exist - process it [22:06:02]req_shift_open_date [22:06:02]req_shift_open_date done [22:06:02]produce_requested_data done [22:06:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73114,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:06:02]process_action_free close_receipt [22:06:02]json_value_free [22:06:02]json_value_free done [22:06:02]process_json_proto returns [22:06:02]Send response to host [22:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73114,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:06:02]free response buf [22:06:02]execute_script done [22:06:02]execute_script returns [22:06:02]free content buf [22:06:02]Sock 7.Close socket [22:06:02]Sock 7.Thread stoped [22:06:02]accept exits with 9 [22:06:02]New connection [22:06:02]New thread 3066686820 created [22:06:02]Thread 3066830180 joined [22:06:02]Waiting for new connection... [22:06:02] Sock 9.Parse request [22:06:02]Sock 9.Check first char [22:06:02]Sock 9.First char is OK [22:06:02]request: POST /json_proto HTTP/1.0 [22:06:02]Method: POST [22:06:02]URL: /json_proto [22:06:02]Method is POST - this is cgi request [22:06:02]url: /json_proto [22:06:02]query_string will be loaded in cgi processing [22:06:02]execute_cgi json_proto POST (null) [22:06:02]execute_cgi path=json_proto method=POST [22:06:02]POST find Content-Length [22:06:02]Host: 172.17.43.195:8080 [22:06:02]Content-Length: 753 [22:06:02]Content-Type: application/json [22:06:02] [22:06:02]POST finish read [22:06:02]Found Content-Length = 753 [22:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 7.290, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104915", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:02]execute_script... [22:06:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 7.290, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104915", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:02]POST & json_proto [22:06:02]process_json_proto [22:06:02]json parsed OK: [22:06:02]protocol is kg_v1.0 [22:06:02]action value=close_receipt [22:06:02]process_action close_receipt [22:06:02]cmd_close_receipt [22:06:02]MH_GetDate [22:06:02]Write to MH i2c: F0 00 00 FD 00 EC [22:06:02]Write i2c OK [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: F0 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: F0 09 00 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: F0 09 00 FD 00 00 4A FF 23 67 74 2C AD 66 7B [22:06:02]GetLastDocTimeStamp 1730412357 [22:06:02]current date 1730412362 [22:06:02]FM_GetShiftState [22:06:02]SAM_PROTO_GetShiftState [22:06:02]wFMCommunicate request_size=4 [22:06:02]MH_SAM_APDU [22:06:02]CAPDU: 80 13 01 00 [22:06:02]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [22:06:02]Write i2c OK [22:06:02]MH_I2C_Read... [22:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:02]Read from MH i2c: E2 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: E2 0E 00 [22:06:02]MH_I2C_Read... [22:06:02]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 24 [22:06:02]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:06:02]wFMCommunicate OK [22:06:02]SAM_PROTO_GetShiftState done [22:06:02]FM_GetShiftState done [22:06:02]opened in 1730333258 [22:06:02]opened+sec_in_day 1730419658 [22:06:02]quantity*price = 0 [22:06:02]sum+1 = 1 [22:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 190 31.10.2024 22:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104915 ФМ: 0000000000874662 ФД: 73115 ФПД: 145405940525048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220602&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73115&fm=145405940525048&tin=02508201610067®Number=0000000000091644&sum=0 [22:06:04]StoreToDocumentArchive [22:06:04]shift 557 fd 73115 [22:06:04]save to /storage/0557/doc_00073115 [22:06:04]save last doc name /storage/0557/doc_00073115 to /storage/kkm_last_doc_name [22:06:04]save OK [22:06:04]Clear old archive folders... [22:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:04]tlvbuf is 006BCBB0 [22:06:04]SAM_PROTO_ClearQueue [22:06:04]wFMCommunicate request_size=4 [22:06:04]MH_SAM_APDU [22:06:04]CAPDU: 80 09 00 00 [22:06:04]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [22:06:04]Write i2c OK [22:06:04]MH_I2C_Read... [22:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:04]Read from MH i2c: E2 [22:06:04]MH_I2C_Read... [22:06:04]Read from MH i2c: E2 03 00 [22:06:04]MH_I2C_Read... [22:06:04]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [22:06:04]RAPDU: 90 00 [22:06:04]wFMCommunicate OK [22:06:04]SAM_PROTO_ClearQueue done [22:06:04]KKMCreateOFDPacket [22:06:04]OFDProtocolAddRootSTLVToBuf [22:06:04]FM_MakeSignedData [22:06:04]FM_MakeSignedData [22:06:04]SAM_PROTO_SignData [22:06:04]wFMCommunicate request_size=4 [22:06:04]MH_SAM_APDU [22:06:04]CAPDU: 80 0D 01 02 [22:06:04]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [22:06:04]Write i2c OK [22:06:04]MH_I2C_Read... [22:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:04]Read from MH i2c: E2 [22:06:04]MH_I2C_Read... [22:06:04]Read from MH i2c: E2 03 00 [22:06:04]MH_I2C_Read... [22:06:04]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [22:06:04]RAPDU: 90 00 [22:06:04]wFMCommunicate OK [22:06:04]wFMCommunicate request_size=255 [22:06:04]MH_SAM_APDU [22:06:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 4A FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1D 01 00 35 04 06 00 84 [22:06:05]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 4A FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1D 01 00 35 04 06 00 84 00 00 25 [22:06:05]Write i2c OK [22:06:05]MH_I2C_Read... [22:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:05]Read from MH i2c: E2 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: E2 03 00 [22:06:05]MH_I2C_Read... [22:06:05]recv_with_timeout no data received [22:06:05]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [22:06:05]RAPDU: 90 00 [22:06:05]wFMCommunicate OK [22:06:05]wFMCommunicate request_size=10 [22:06:05]MH_SAM_APDU [22:06:05]CAPDU: 80 0D 02 02 05 3E F5 6E E7 F8 [22:06:05]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 3E F5 6E E7 F8 00 00 13 [22:06:05]Write i2c OK [22:06:05]MH_I2C_Read... [22:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:05]Read from MH i2c: E2 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: E2 03 00 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [22:06:05]RAPDU: 90 00 [22:06:05]wFMCommunicate OK [22:06:05]wFMCommunicate request_size=4 [22:06:05]MH_SAM_APDU [22:06:05]CAPDU: 80 0D 03 02 [22:06:05]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [22:06:05]Write i2c OK [22:06:05]MH_I2C_Read... [22:06:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:05]Read from MH i2c: E2 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: E2 0B 00 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: E2 0B 00 0F 01 00 31 DC 75 18 34 04 66 71 90 00 35 [22:06:05]RAPDU: 31 DC 75 18 34 04 66 71 90 00 [22:06:05]wFMCommunicate OK [22:06:05]SAM_PROTO_SignData done [22:06:05]FM_MakeSignedData done [22:06:05]CreateOFDProtocolMessage [22:06:05]wFMCommunicate request_size=4 [22:06:05]MH_SAM_APDU [22:06:05]CAPDU: 80 11 00 00 [22:06:05]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [22:06:05]Write i2c OK [22:06:05]MH_I2C_Read... [22:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:05]Read from MH i2c: E2 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: E2 17 00 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DF [22:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:06:05]wFMCommunicate OK [22:06:05]CreateOFDProtocolMessage done [22:06:05]OFDSenderStorePacket 73115 [22:06:05]StoreOFDPacket docnum=73115 [22:06:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F0 E8 07 01 42 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 4A FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1D 01 00 35 04 06 00 84 3E F5 6E E7 F8 31 DC 75 18 34 04 66 71 [22:06:05]CheckFolder [22:06:05]dirname=/storage/ofd_packets [22:06:05]CheckFolder done [22:06:05]ProducePacketName [22:06:05]name=ofd_packets/00073115 [22:06:05]NVStorageSaveData ofd_packets/00073115 [22:06:05]File name is /storage/ofd_packets/00073115 [22:06:05]Write 301 bytes [22:06:05]NVStorageSaveData done [22:06:05]OFDSenderStorePacket done [22:06:05]KKMCreateOFDPacket done [22:06:05]NVStorageSaveData kkm_last_timestamp [22:06:05]File name is /storage/kkm_last_timestamp [22:06:05]Write 4 bytes [22:06:05]NVStorageSaveData done [22:06:05]ExternCall_PrintAddStr [22:06:05]wPrintStart [22:06:05]Write to MH i2c: 01 00 00 11 01 12 [22:06:05]Write i2c OK [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: 01 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: 01 07 00 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [22:06:05]RasterBufferAndPrint [22:06:05]line Счет N : (1)952711 [22:06:05]line ИНН: 02508201610067 [22:06:05]Received data: line Контрольно-Кассовый Чек [22:06:05]87 line ПРОДАЖА [22:06:05]95 line ТРК (МРК, ГНК) : 52 [22:06:05]F6 line Товар: 2710124500 [22:06:05]70 line Аи-95-К-3 [22:06:05]47 line 7.290 * 0.00 [22:06:05]2C line = 0.00 [22:06:05]line НДС 12% НСП 1% [22:06:05]line > о реализуемом товаре [22:06:05]line ИТОГО: 0.00 [22:06:05]line НСП 1% : 0.00 [22:06:05]line НДС 12% : 0.00 [22:06:05]line Наличными: 0.00 [22:06:05]line Безнал.: 0.00 [22:06:05]line Место: АЗС № 113 "Партнер Нефть" [22:06:05]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:06:05]line СНО: Общий режим [22:06:05]line Чек 190 31.10.2024 22:06 [22:06:05]line Смена: 557 ФФД: 1.0 [22:06:05]01 line ЗНМ: 0300000087 [22:06:05]00 line РНМ: 0000000000091644 [22:06:05]30 line Версия ККМ: 001 [22:06:05]30 line Талоны: ТК ГПНА Online [22:06:05]30 line 30104915 [22:06:05]30 line ФМ: 0000000000874662 [22:06:05]30 line ФД: 73115 [22:06:05]30 line ФПД: 145405940525048 [22:06:05]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220602&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73115&fm=145405940525048&tin=02508201610067®Number=0000000000091644&sum=0 [22:06:05]30 30 30 38 37 34 36 36 32 4F 00 written 0, free lines is 4095 [22:06:05]00 00 E3 01 47 00 A5 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9A 1D 01 00 F4 03 04 00 FE A9 23 67 B6 04 01 00 00 21 97 60 50 32 7F 0B A7 [22:06:06]CommunicateWithHost err = 0 [22:06:06]CheckOFDResponse [22:06:06]1017 (14) - 77093643461234 [22:06:06]1041 (16) - 0000000000874662 [22:06:06]1040 (4) - 73114 [22:06:06]1012 (4) - 31.10.2024 16:02 [22:06:06]1206 (1) - 0 [22:06:06]OFD Sender: Remove packet 73114 [22:06:06]ProducePacketName [22:06:06]name=ofd_packets/00073114 [22:06:06]NVStorageDeleteData [22:06:06]Write to MH i2c: 01 00 00 3B 01 3C [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: 01 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: 01 07 00 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 F6 0C 45 [22:06:06]RasterBufferAndPrint [22:06:06]line [22:06:06]line [22:06:06]line [22:06:06]line [22:06:06]line [22:06:06]written 0, free lines is 3358 [22:06:06]MH_Cut [22:06:06]Write to MH i2c: D1 01 00 42 01 01 15 [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: D1 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: D1 01 00 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: D1 01 00 42 01 00 14 [22:06:06]Write to MH i2c: 01 00 00 43 01 44 [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:06]OFD Sender: Processing packet 73115 [packets to send 282, broken 281] [22:06:06]ProducePacketName [22:06:06]name=ofd_packets/00073115 [22:06:06]OFD Sender: To server: pG, [22:06:06]CommunicateWithHost lk.salyk.kg:30040 [22:06:06]ConnectInit lk.salyk.kg [22:06:06]Connected sock=10 [22:06:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F0 E8 07 01 42 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 *** Cut start [22:06:07]00 *** Partial cut [22:06:07]00 *** CUTSNS_PIN = 1 [22:06:07]00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 *** CUTSNS_PIN = 0 [22:06:07]26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 4A FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 *** Brake cut motor [22:06:07]9B 1D 01 00 35 04 06 00 84 3E F5 6E E7 F8 31 DC 75 18 34 04 66 71 [22:06:07]Read from MH i2c: *** Stop cut motor [22:06:07]01 *** Cut end [22:06:07] [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: 01 07 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [22:06:07]process_action close_receipt done [22:06:07]requested_data is exist [22:06:07]produce_requested_data [22:06:07]requested_item fm.sn is exist - process it [22:06:07]wFMCommunicate request_size=4 [22:06:07]MH_SAM_APDU [22:06:07]CAPDU: 80 11 00 00 [22:06:07]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [22:06:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F7 CE 47 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:07]00 C4 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1D 01 00 F4 03 04 00 01 AA 23 67 B6 04 01 00 00 A1 C6 F5 6D 41 80 1D D0 [22:06:07]CommunicateWithHost err = 0 [22:06:07]CheckOFDResponse [22:06:07]1017 (14) - 77093643461234 [22:06:07]1041 (16) - 0000000000874662 [22:06:07]1040 (4) - 73115 [22:06:07]1012 (4) - 31.10.2024 16:02 [22:06:07]1206 (1) - 0 [22:06:07]OFD Sender: Remove packet 73115 [22:06:07]ProducePacketName [22:06:07]name=ofd_packets/00073115 [22:06:07]NVStorageDeleteData [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 17 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 13 [22:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:06:08]wFMCommunicate OK [22:06:08]requested_item fd.num is exist - process it [22:06:08]SAM_PROTO_GetFieldsCounters [22:06:08]wFMCommunicate request_size=4 [22:06:08]MH_SAM_APDU [22:06:08]CAPDU: 80 13 00 00 [22:06:08]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:08]Read from MH i2c: E2 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 62 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [22:06:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9B 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:08]wFMCommunicate OK [22:06:08]SAM_PROTO_GetFieldsCounters done [22:06:08]requested_item shift.num is exist - process it [22:06:08]requested_item shift.opened is exist - process it [22:06:08]req_shift_opened [22:06:08]FM_GetShiftState [22:06:08]SAM_PROTO_GetShiftState [22:06:08]wFMCommunicate request_size=4 [22:06:08]MH_SAM_APDU [22:06:08]CAPDU: 80 13 01 00 [22:06:08]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:08]Read from MH i2c: E2 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 0E 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6D [22:06:08]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:06:08]wFMCommunicate OK [22:06:08]SAM_PROTO_GetShiftState done [22:06:08]FM_GetShiftState done [22:06:08]req_shift_opened done [22:06:08]requested_item shift.open_date is exist - process it [22:06:08]req_shift_open_date [22:06:08]req_shift_open_date done [22:06:08]produce_requested_data done [22:06:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73115,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:06:08]process_action_free close_receipt [22:06:08]json_value_free [22:06:08]json_value_free done [22:06:08]process_json_proto returns [22:06:08]Send response to host [22:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73115,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:06:08]free response buf [22:06:08]execute_script done [22:06:08]execute_script returns [22:06:08]free content buf [22:06:08]Sock 9.Close socket [22:06:08]Sock 9.Thread stoped [22:06:08]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:16]recv_with_timeout no data received [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:41]recv_with_timeout no data received [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:52]recv_with_timeout no data received [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:15]recv_with_timeout no data received [22:07:18]OFD Sender: No OFD packet to send [22:07:20]accept exits with 7 [22:07:20]New connection [22:07:20]New thread 3066830180 created [22:07:20]Thread 3066686820 joined [22:07:20]Waiting for new connection... [22:07:20] Sock 7.Parse request [22:07:20]Sock 7.Check first char [22:07:20]Sock 7.First char is OK [22:07:20]request: POST /json_proto HTTP/1.0 [22:07:20]Method: POST [22:07:20]URL: /json_proto [22:07:20]Method is POST - this is cgi request [22:07:20]url: /json_proto [22:07:20]query_string will be loaded in cgi processing [22:07:20]execute_cgi json_proto POST (null) [22:07:20]execute_cgi path=json_proto method=POST [22:07:20]POST find Content-Length [22:07:20]Host: 172.17.43.195:8080 [22:07:20]Content-Length: 792 [22:07:20]Content-Type: application/json [22:07:20] [22:07:20]POST finish read [22:07:20]Found Content-Length = 792 [22:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:20]execute_script... [22:07:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:20]POST & json_proto [22:07:20]process_json_proto [22:07:20]json parsed OK: [22:07:20]protocol is kg_v1.0 [22:07:20]action value=close_receipt [22:07:20]process_action close_receipt [22:07:20]cmd_close_receipt [22:07:20]MH_GetDate [22:07:20]Write to MH i2c: F0 00 00 47 01 37 [22:07:20]Write i2c OK [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: F0 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: F0 09 00 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: F0 09 00 47 01 00 98 FF 23 67 74 2C AD 66 14 [22:07:20]GetLastDocTimeStamp 1730412362 [22:07:20]current date 1730412440 [22:07:20]FM_GetShiftState [22:07:20]SAM_PROTO_GetShiftState [22:07:20]wFMCommunicate request_size=4 [22:07:20]MH_SAM_APDU [22:07:20]CAPDU: 80 13 01 00 [22:07:20]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [22:07:20]Write i2c OK [22:07:20]MH_I2C_Read... [22:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:20]Read from MH i2c: E2 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 0E 00 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 6F [22:07:20]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:07:20]wFMCommunicate OK [22:07:20]SAM_PROTO_GetShiftState done [22:07:20]FM_GetShiftState done [22:07:20]opened in 1730333258 [22:07:20]opened+sec_in_day 1730419658 [22:07:20]quantity*price = 0 [22:07:20]sum+1 = 1 [22:07:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 191 31.10.2024 22:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 73116 ФПД: 64348201657086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220720&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73116&fm=64348201657086&tin=02508201610067®Number=0000000000091644&sum=0 [22:07:21]StoreToDocumentArchive [22:07:21]shift 557 fd 73116 [22:07:21]save to /storage/0557/doc_00073116 [22:07:21]save last doc name /storage/0557/doc_00073116 to /storage/kkm_last_doc_name [22:07:21]save OK [22:07:21]Clear old archive folders... [22:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:21]tlvbuf is 006ACBB0 [22:07:21]SAM_PROTO_ClearQueue [22:07:21]wFMCommunicate request_size=4 [22:07:21]MH_SAM_APDU [22:07:21]CAPDU: 80 09 00 00 [22:07:21]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [22:07:21]Write i2c OK [22:07:21]MH_I2C_Read... [22:07:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:21]Read from MH i2c: E2 [22:07:21]MH_I2C_Read... [22:07:21]Read from MH i2c: E2 03 00 [22:07:21]MH_I2C_Read... [22:07:21]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [22:07:21]RAPDU: 90 00 [22:07:21]wFMCommunicate OK [22:07:21]SAM_PROTO_ClearQueue done [22:07:21]KKMCreateOFDPacket [22:07:21]OFDProtocolAddRootSTLVToBuf [22:07:21]FM_MakeSignedData [22:07:21]FM_MakeSignedData [22:07:21]SAM_PROTO_SignData [22:07:21]wFMCommunicate request_size=4 [22:07:21]MH_SAM_APDU [22:07:21]CAPDU: 80 0D 01 02 [22:07:21]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [22:07:21]Write i2c OK [22:07:21]MH_I2C_Read... [22:07:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:21]Read from MH i2c: E2 [22:07:21]MH_I2C_Read... [22:07:21]Read from MH i2c: E2 03 00 [22:07:21]MH_I2C_Read... [22:07:21]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [22:07:21]RAPDU: 90 00 [22:07:21]wFMCommunicate OK [22:07:21]wFMCommunicate request_size=255 [22:07:21]MH_SAM_APDU [22:07:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 98 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1D 01 00 35 04 06 00 3A [22:07:21]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 98 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1D 01 00 35 04 06 00 3A 00 00 82 [22:07:21]Write i2c OK [22:07:21]MH_I2C_Read... [22:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:22]Read from MH i2c: E2 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 03 00 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [22:07:22]RAPDU: 90 00 [22:07:22]wFMCommunicate OK [22:07:22]wFMCommunicate request_size=10 [22:07:22]MH_SAM_APDU [22:07:22]CAPDU: 80 0D 02 02 05 86 3B B3 A2 FE [22:07:22]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 86 3B B3 A2 FE 00 00 F1 [22:07:22]Write i2c OK [22:07:22]MH_I2C_Read... [22:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:22]Read from MH i2c: E2 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 03 00 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [22:07:22]RAPDU: 90 00 [22:07:22]wFMCommunicate OK [22:07:22]wFMCommunicate request_size=4 [22:07:22]MH_SAM_APDU [22:07:22]CAPDU: 80 0D 03 02 [22:07:22]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [22:07:22]Write i2c OK [22:07:22]MH_I2C_Read... [22:07:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:22]Read from MH i2c: E2 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 0B 00 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 0B 00 59 01 00 92 8A E0 9A 1F BC 5C CE 90 00 71 [22:07:22]RAPDU: 92 8A E0 9A 1F BC 5C CE 90 00 [22:07:22]wFMCommunicate OK [22:07:22]SAM_PROTO_SignData done [22:07:22]FM_MakeSignedData done [22:07:22]CreateOFDProtocolMessage [22:07:22]wFMCommunicate request_size=4 [22:07:22]MH_SAM_APDU [22:07:22]CAPDU: 80 11 00 00 [22:07:22]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [22:07:22]Write i2c OK [22:07:22]MH_I2C_Read... [22:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:22]Read from MH i2c: E2 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 17 00 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 29 [22:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:07:22]wFMCommunicate OK [22:07:22]CreateOFDProtocolMessage done [22:07:22]OFDSenderStorePacket 73116 [22:07:22]StoreOFDPacket docnum=73116 [22:07:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2C CD 07 01 55 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 98 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1D 01 00 35 04 06 00 3A 86 3B B3 A2 FE 92 8A E0 9A 1F BC 5C CE [22:07:22]CheckFolder [22:07:22]dirname=/storage/ofd_packets [22:07:22]CheckFolder done [22:07:22]ProducePacketName [22:07:22]name=ofd_packets/00073116 [22:07:22]NVStorageSaveData ofd_packets/00073116 [22:07:22]File name is /storage/ofd_packets/00073116 [22:07:22]Write 301 bytes [22:07:22]NVStorageSaveData done [22:07:22]OFDSenderStorePacket done [22:07:22]KKMCreateOFDPacket done [22:07:22]NVStorageSaveData kkm_last_timestamp [22:07:22]File name is /storage/kkm_last_timestamp [22:07:22]Write 4 bytes [22:07:22]NVStorageSaveData done [22:07:22]ExternCall_PrintAddStr [22:07:22]wPrintStart [22:07:22]Write to MH i2c: 01 00 00 5B 01 5C [22:07:22]Write i2c OK [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: 01 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: 01 07 00 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [22:07:22]RasterBufferAndPrint [22:07:22]line Счет N : (1)952716 [22:07:22]line ИНН: 02508201610067 [22:07:22]line Контрольно-Кассовый Чек [22:07:22]line ПРОДАЖА [22:07:22]line ТРК (МРК, ГНК) : 63 [22:07:22]line Товар: 2710124130 [22:07:22]line Аи-92-К-5 [22:07:22]line 30.000 * 0.00 [22:07:22]line = 0.00 [22:07:22]line НДС 12% НСП 1% [22:07:22]line > о реализуемом товаре [22:07:22]line ИТОГО: 0.00 [22:07:22]line НСП 1% : 0.00 [22:07:22]line НДС 12% : 0.00 [22:07:22]line Наличными: 0.00 [22:07:22]line Безнал.: 0.00 [22:07:22]line Место: АЗС № 113 "Партнер Нефть" [22:07:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:07:22]line СНО: Общий режим [22:07:22]line Чек 191 31.10.2024 22:07 [22:07:22]line Смена: 557 ФФД: 1.0 [22:07:22]line ЗНМ: 0300000087 [22:07:22]line РНМ: 0000000000091644 [22:07:22]line Версия ККМ: 001 [22:07:22]line Талоны: Топливная Карта [22:07:22]line 02645 [22:07:22]line ФМ: 0000000000874662 [22:07:22]line ФД: 73116 [22:07:22]line ФПД: 64348201657086 [22:07:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220720&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73116&fm=64348201657086&tin=02508201610067®Number=0000000000091644&sum=0 [22:07:22]written 0, free lines is 4095 [22:07:22]OFD Sender: Processing packet 73116 [packets to send 282, broken 281] [22:07:22]ProducePacketName [22:07:22]name=ofd_packets/00073116 [22:07:22]OFD Sender: To server: pG, [22:07:22]CommunicateWithHost lk.salyk.kg:30040 [22:07:22]ConnectInit lk.salyk.kg [22:07:22]Write to MH i2c: 01 00 00 85 01 86 [22:07:22]Write i2c OK [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: 01 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: 01 07 00 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 E7 0C 80 [22:07:22]RasterBufferAndPrint [22:07:22]line [22:07:22]line [22:07:22]line [22:07:22]line [22:07:22]line [22:07:22]written 0, free lines is 3330 [22:07:22]MH_Cut [22:07:22]Write to MH i2c: D1 01 00 8C 01 01 5F [22:07:22]Write i2c OK [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: D1 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: D1 01 00 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: D1 01 00 8C 01 00 5E [22:07:22]Write to MH i2c: 01 00 00 8D 01 8E [22:07:22]Write i2c OK [22:07:22]MH_I2C_Read... [22:07:23]Connected sock=11 [22:07:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2C CD 07 01 55 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 *** Cut start [22:07:23]00 01 F3 03 06 00 00 00 00 *** Partial cut [22:07:23]00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 98 FF 23 67 0E 04 04 00 2D *** CUTSNS_PIN = 1 [22:07:23]02 00 00 *** CUTSNS_PIN = 0 [22:07:23]B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1D 01 00 35 04 06 00 3A 86 3B B3 A2 FE 92 8A E0 9A 1F BC 5C CE [22:07:23]*** Brake cut motor [22:07:24]Read from MH i2c: 01 [22:07:24]MH_I2C_Read... [22:07:24]*** Stop cut motor [22:07:24]*** Cut end [22:07:24]Read from MH i2c: 01 07 00 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [22:07:24]process_action close_receipt done [22:07:24]requested_data is exist [22:07:24]produce_requested_data [22:07:24]requested_item fm.sn is exist - process it [22:07:24]wFMCommunicate request_size=4 [22:07:24]MH_SAM_APDU [22:07:24]CAPDU: 80 11 00 00 [22:07:24]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [22:07:24]Write i2c OK [22:07:24]MH_I2C_Read... [22:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:24]Read from MH i2c: E2 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: E2 17 00 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5D [22:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:07:24]wFMCommunicate OK [22:07:24]requested_item fd.num is exist - process it [22:07:24]SAM_PROTO_GetFieldsCounters [22:07:24]wFMCommunicate request_size=4 [22:07:24]MH_SAM_APDU [22:07:24]CAPDU: 80 13 00 00 [22:07:24]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [22:07:24]Write i2c OK [22:07:24]MH_I2C_Read... [22:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:24]Read from MH i2c: E2 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: E2 62 00 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [22:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9C 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:24]wFMCommunicate OK [22:07:24]SAM_PROTO_GetFieldsCounters done [22:07:24]requested_item shift.num is exist - process it [22:07:24]requested_item shift.opened is exist - process it [22:07:24]req_shift_opened [22:07:24]FM_GetShiftState [22:07:24]SAM_PROTO_GetShiftState [22:07:24]wFMCommunicate request_size=4 [22:07:24]MH_SAM_APDU [22:07:24]CAPDU: 80 13 01 00 [22:07:24]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [22:07:24]Write i2c OK [22:07:24]MH_I2C_Read... [22:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:24]Read from MH i2c: E2 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: E2 0E 00 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B7 [22:07:24]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:07:24]wFMCommunicate OK [22:07:24]SAM_PROTO_GetShiftState done [22:07:24]FM_GetShiftState done [22:07:24]req_shift_opened done [22:07:24]requested_item shift.open_date is exist - process it [22:07:24]req_shift_open_date [22:07:24]req_shift_open_date done [22:07:24]produce_requested_data done [22:07:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73116,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:07:24]process_action_free close_receipt [22:07:24]json_value_free [22:07:24]json_value_free done [22:07:24]process_json_proto returns [22:07:24]Send response to host [22:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73116,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:07:24]free response buf [22:07:24]execute_script done [22:07:24]execute_script returns [22:07:24]free content buf [22:07:24]Sock 7.Close socket [22:07:24]Sock 7.Thread stoped [22:07:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 64 58 47 00 52 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1D 01 00 F4 03 04 00 4E AA 23 67 B6 04 01 00 00 65 36 AA 39 4B B7 E7 0F [22:07:24]CommunicateWithHost err = 0 [22:07:24]CheckOFDResponse [22:07:24]1017 (14) - 77093643461234 [22:07:24]1041 (16) - 0000000000874662 [22:07:24]1040 (4) - 73116 [22:07:24]1012 (4) - 31.10.2024 16:03 [22:07:24]1206 (1) - 0 [22:07:24]OFD Sender: Remove packet 73116 [22:07:24]ProducePacketName [22:07:24]name=ofd_packets/00073116 [22:07:24]NVStorageDeleteData [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:41]recv_with_timeout no data received [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:51]recv_with_timeout no data received [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:01]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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:27]recv_with_timeout no data received [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:39]recv_with_timeout no data received [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:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:05]recv_with_timeout no data received [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:14:59]recv_with_timeout no data received [22:15:01]OFD Sender: No OFD packet to send [22:15:06]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:19]recv_with_timeout no data received [22:17:21]OFD Sender: No OFD packet to send [22:17:25]accept exits with 9 [22:17:25]New connection [22:17:25]New thread 3066686820 created [22:17:25]Thread 3066830180 joined [22:17:25]Waiting for new connection... [22:17:25] Sock 9.Parse request [22:17:25]Sock 9.Check first char [22:17:25]Sock 9.First char is OK [22:17:25]request: POST /json_proto HTTP/1.0 [22:17:25]Method: POST [22:17:25]URL: /json_proto [22:17:25]Method is POST - this is cgi request [22:17:25]url: /json_proto [22:17:25]query_string will be loaded in cgi processing [22:17:25]execute_cgi json_proto POST (null) [22:17:25]execute_cgi path=json_proto method=POST [22:17:25]POST find Content-Length [22:17:25]Host: 172.17.43.195:8080 [22:17:25]Content-Length: 759 [22:17:25]Content-Type: application/json [22:17:25] [22:17:25]POST finish read [22:17:25]Found Content-Length = 759 [22:17:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101192", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:25]execute_script... [22: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)952717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101192", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:25]POST & json_proto [22:17:25]process_json_proto [22:17:26]json parsed OK: [22:17:26]protocol is kg_v1.0 [22:17:26]action value=close_receipt [22:17:26]process_action close_receipt [22:17:26]cmd_close_receipt [22:17:26]MH_GetDate [22:17:26]Write to MH i2c: F0 00 00 91 01 81 [22:17:26]Write i2c OK [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: F0 [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: F0 09 00 [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: F0 09 00 91 01 00 F6 01 24 67 74 2C AD 66 BF [22:17:26]GetLastDocTimeStamp 1730412440 [22:17:26]current date 1730413046 [22:17:26]FM_GetShiftState [22:17:26]SAM_PROTO_GetShiftState [22:17:26]wFMCommunicate request_size=4 [22:17:26]MH_SAM_APDU [22:17:26]CAPDU: 80 13 01 00 [22:17:26]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [22:17:26]Write i2c OK [22:17:26]MH_I2C_Read... [22:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:26]Read from MH i2c: E2 [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: E2 0E 00 [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 B9 [22:17:26]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:17:26]wFMCommunicate OK [22:17:26]SAM_PROTO_GetShiftState done [22:17:26]FM_GetShiftState done [22:17:26]opened in 1730333258 [22:17:26]opened+sec_in_day 1730419658 [22:17:26]quantity*price = 0 [22:17:26]sum+1 = 1 [22:17:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 192 31.10.2024 22:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30101192 ФМ: 0000000000874662 ФД: 73117 ФПД: 125508675448071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T221726&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73117&fm=125508675448071&tin=02508201610067®Number=0000000000091644&sum=0 [22:17:27]StoreToDocumentArchive [22:17:27]shift 557 fd 73117 [22:17:27]save to /storage/0557/doc_00073117 [22:17:27]save last doc name /storage/0557/doc_00073117 to /storage/kkm_last_doc_name [22:17:27]save OK [22:17:27]Clear old archive folders... [22:17:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:17:27]tlvbuf is 005F63B0 [22:17:27]SAM_PROTO_ClearQueue [22:17:27]wFMCommunicate request_size=4 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 09 00 00 [22:17:27]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]SAM_PROTO_ClearQueue done [22:17:27]KKMCreateOFDPacket [22:17:27]OFDProtocolAddRootSTLVToBuf [22:17:27]FM_MakeSignedData [22:17:27]FM_MakeSignedData [22:17:27]SAM_PROTO_SignData [22:17:27]wFMCommunicate request_size=4 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 01 02 [22:17:27]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]wFMCommunicate request_size=255 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 F6 01 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1D 01 00 35 04 06 00 [22:17:27]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 F6 01 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1D 01 00 35 04 06 00 00 00 F9 [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]wFMCommunicate request_size=11 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 02 02 06 72 26 44 04 2D 07 [22:17:27]Write to MH i2c: E2 0E 00 A2 01 80 0D 02 02 06 00 72 26 44 04 2D 07 00 00 3D [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]wFMCommunicate request_size=4 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 03 02 [22:17:27]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 0B 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 0B 00 A3 01 00 3A AF 8C 04 DA B4 D2 9A 90 00 93 [22:17:27]RAPDU: 3A AF 8C 04 DA B4 D2 9A 90 00 [22:17:27]wFMCommunicate OK [22:17:27]SAM_PROTO_SignData done [22:17:27]FM_MakeSignedData done [22:17:27]CreateOFDProtocolMessage [22:17:27]wFMCommunicate request_size=4 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 11 00 00 [22:17:27]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 17 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 73 [22:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:17:27]wFMCommunicate OK [22:17:27]CreateOFDProtocolMessage done [22:17:27]OFDSenderStorePacket 73117 [22:17:27]StoreOFDPacket docnum=73117 [22:17:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 88 80 08 01 F9 EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 F6 01 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1D 01 00 35 04 06 00 72 26 44 04 2D 07 3A AF 8C 04 DA B4 D2 9A [22:17:27]CheckFolder [22:17:27]dirname=/storage/ofd_packets [22:17:27]CheckFolder done [22:17:27]ProducePacketName [22:17:27]name=ofd_packets/00073117 [22:17:27]NVStorageSaveData ofd_packets/00073117 [22:17:27]File name is /storage/ofd_packets/00073117 [22:17:27]Write 302 bytes [22:17:27]NVStorageSaveData done [22:17:27]OFDSenderStorePacket done [22:17:27]KKMCreateOFDPacket done [22:17:27]NVStorageSaveData kkm_last_timestamp [22:17:27]File name is /storage/kkm_last_timestamp [22:17:27]Write 4 bytes [22:17:27]NVStorageSaveData done [22:17:27]ExternCall_PrintAddStr [22:17:27]wPrintStart [22:17:27]Write to MH i2c: 01 00 00 A5 01 A6 [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: 01 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: 01 07 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [22:17:27]RasterBufferAndPrint [22:17:27]line Счет N : (1)952717 [22:17:27]line ИНН: 02508201610067 [22:17:27]line Контрольно-Кассовый Чек [22:17:27]line ПРОДАЖА [22:17:27]line ТРК (МРК, ГНК) : 33 [22:17:27]line Товар: 2710194210 [22:17:27]line ДТ(л)-К-5 [22:17:27]line 20.000 * 0.00 [22:17:27]line = 0.00 [22:17:27]line НДС 12% НСП 1% [22:17:27]line > о реализуемом товаре [22:17:27]line ИТОГО: 0.00 [22:17:27]line НСП 1% : 0.00 [22:17:27]line НДС 12% : 0.00 [22:17:27]line Наличными: 0.00 [22:17:27]line Безнал.: 0.00 [22:17:27]line Место: АЗС № 113 "Партнер Нефть" [22:17:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:17:27]line СНО: Общий режим [22:17:27]line Чек 192 31.10.2024 22:17 [22:17:27]line Смена: 557 ФФД: 1.0 [22:17:27]line ЗНМ: 0300000087 [22:17:27]line РНМ: 0000000000091644 [22:17:27]line Версия ККМ: 001 [22:17:27]line Талоны: ТК ГПНА Online [22:17:27]line 30101192 [22:17:27]line ФМ: 0000000000874662 [22:17:27]line ФД: 73117 [22:17:27]line ФПД: 125508675448071 [22:17:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T221726&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73117&fm=125508675448071&tin=02508201610067®Number=0000000000091644&sum=0 [22:17:28]written 0, free lines is 4095 [22:17:28]OFD Sender: Processing packet 73117 [packets to send 282, broken 281] [22:17:28]ProducePacketName [22:17:28]name=ofd_packets/00073117 [22:17:28]OFD Sender: To server: pG, [22:17:28]CommunicateWithHost lk.salyk.kg:30040 [22:17:28]ConnectInit lk.salyk.kg [22:17:28]Write to MH i2c: 01 00 00 CF 01 D0 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 07 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 DE 0C C1 [22:17:28]RasterBufferAndPrint [22:17:28]line [22:17:28]line [22:17:28]line [22:17:28]line [22:17:28]line [22:17:28]written 0, free lines is 3300 [22:17:28]MH_Cut [22:17:28]Write to MH i2c: D1 01 00 D6 01 01 A9 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: D1 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: D1 01 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: D1 01 00 D6 01 00 A8 [22:17:28]Write to MH i2c: 01 00 00 D7 01 D8 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:29]*** Cut start [22:17:29]*** Partial cut [22:17:29]*** CUTSNS_PIN = 1 [22:17:29]*** CUTSNS_PIN = 0 [22:17:29]*** Brake cut motor [22:17:29]recv_with_timeout no data received [22:17:29]Read from MH i2c: 01 [22:17:29]MH_I2C_Read... [22:17:29]*** Stop cut motor [22:17:29]*** Cut end [22:17:29]Read from MH i2c: 01 07 00 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [22:17:29]process_action close_receipt done [22:17:29]requested_data is exist [22:17:29]produce_requested_data [22:17:29]requested_item fm.sn is exist - process it [22:17:29]wFMCommunicate request_size=4 [22:17:29]MH_SAM_APDU [22:17:29]CAPDU: 80 11 00 00 [22:17:29]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [22:17:29]Write i2c OK [22:17:29]MH_I2C_Read... [22:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:29]Read from MH i2c: E2 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: E2 17 00 [22:17:29]MH_I2C_Read... [22:17:29]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A7 [22:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:17:29]wFMCommunicate OK [22:17:29]requested_item fd.num is exist - process it [22:17:29]SAM_PROTO_GetFieldsCounters [22:17:29]wFMCommunicate request_size=4 [22:17:29]MH_SAM_APDU [22:17:29]CAPDU: 80 13 00 00 [22:17:29]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [22:17:29]Write i2c OK [22:17:29]MH_I2C_Read... [22:17:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:30]Read from MH i2c: E2 [22:17:30]MH_I2C_Read... [22:17:30]Read from MH i2c: E2 62 00 [22:17:30]MH_I2C_Read... [22:17:30]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [22: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9D 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:30]wFMCommunicate OK [22:17:30]SAM_PROTO_GetFieldsCounters done [22:17:30]requested_item shift.num is exist - process it [22:17:30]requested_item shift.opened is exist - process it [22:17:30]req_shift_opened [22:17:30]FM_GetShiftState [22:17:30]SAM_PROTO_GetShiftState [22:17:30]wFMCommunicate request_size=4 [22:17:30]MH_SAM_APDU [22:17:30]CAPDU: 80 13 01 00 [22:17:30]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [22:17:30]Write i2c OK [22:17:30]MH_I2C_Read... [22:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:30]Read from MH i2c: E2 [22:17:30]MH_I2C_Read... [22:17:30]Read from MH i2c: E2 0E 00 [22:17:30]MH_I2C_Read... [22:17:30]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 01 [22:17:30]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:17:30]wFMCommunicate OK [22:17:30]SAM_PROTO_GetShiftState done [22:17:30]FM_GetShiftState done [22:17:30]req_shift_opened done [22:17:30]requested_item shift.open_date is exist - process it [22:17:30]req_shift_open_date [22:17:30]req_shift_open_date done [22:17:30]produce_requested_data done [22:17:30]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73117,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:17:30]process_action_free close_receipt [22:17:30]json_value_free [22:17:30]json_value_free done [22:17:30]process_json_proto returns [22:17:30]Send response to host [22:17:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73117,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:17:30]free response buf [22:17:30]execute_script done [22:17:30]execute_script returns [22:17:30]free content buf [22:17:30]Sock 9.Close socket [22:17:30]Sock 9.Thread stoped [22:17:32]Connected sock=11 [22:17:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 88 80 08 01 F9 EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 F6 01 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1D 01 00 35 04 06 00 72 26 44 04 2D 07 3A AF 8C 04 DA B4 D2 9A [22:17:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 84 33 47 00 DB EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1D 01 00 F4 03 04 00 B0 AC 23 67 B6 04 01 00 00 79 21 9B 60 41 2B 3E 2A [22:17:33]CommunicateWithHost err = 0 [22:17:33]CheckOFDResponse [22:17:33]1017 (14) - 77093643461234 [22:17:33]1041 (16) - 0000000000874662 [22:17:33]1040 (4) - 73117 [22:17:33]1012 (4) - 31.10.2024 16:13 [22:17:33]1206 (1) - 0 [22:17:33]OFD Sender: Remove packet 73117 [22:17:33]ProducePacketName [22:17:33]name=ofd_packets/00073117 [22:17:33]NVStorageDeleteData [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:41]recv_with_timeout no data received [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:47]recv_with_timeout no data received [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:50]recv_with_timeout no data received [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:33]recv_with_timeout no data received [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:52]recv_with_timeout no data received [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:21]recv_with_timeout no data received [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:02]recv_with_timeout no data received [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:26:58]recv_with_timeout no data received [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:16]recv_with_timeout no data received [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:07]recv_with_timeout no data received [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:27]recv_with_timeout no data received [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:29]recv_with_timeout no data received [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:17]recv_with_timeout no data received [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:11]recv_with_timeout no data received [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:26]recv_with_timeout no data received [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:28]recv_with_timeout no data received [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:38]recv_with_timeout no data received [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:05]recv_with_timeout no data received [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:16]recv_with_timeout no data received [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]recv_with_timeout no data received [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]recv_with_timeout no data received [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:40:57]recv_with_timeout no data received [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:07]recv_with_timeout no data received [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:25]recv_with_timeout no data received [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:49]recv_with_timeout no data received [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:20]recv_with_timeout no data received [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:00]recv_with_timeout no data received [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:16]recv_with_timeout no data received [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:37]recv_with_timeout no data received [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:52]accept exits with 10 [22:44:52]New connection [22:44:52]New thread 3066830180 created [22:44:52]Thread 3066686820 joined [22:44:52]Waiting for new connection... [22:44:52] Sock 10.Parse request [22:44:52]Sock 10.Check first char [22:44:52]Sock 10.First char is OK [22:44:52]request: POST /json_proto HTTP/1.0 [22:44:52]Method: POST [22:44:52]URL: /json_proto [22:44:52]Method is POST - this is cgi request [22:44:52]url: /json_proto [22:44:52]query_string will be loaded in cgi processing [22:44:52]execute_cgi json_proto POST (null) [22:44:52]execute_cgi path=json_proto method=POST [22:44:52]POST find Content-Length [22:44:52]Host: 172.17.43.195:8080 [22:44:52]Content-Length: 677 [22:44:52]Content-Type: application/json [22:44:52] [22:44:52]POST finish read [22:44:52]Found Content-Length = 677 [22:44:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:52]execute_script... [22:44: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)952718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:52]POST & json_proto [22:44:52]process_json_proto [22:44:52]json parsed OK: [22:44:52]protocol is kg_v1.0 [22:44:52]action value=close_receipt [22:44:52]process_action close_receipt [22:44:52]cmd_close_receipt [22:44:52]MH_GetDate [22:44:52]Write to MH i2c: F0 00 00 DB 01 CB [22:44:52]Write i2c OK [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: F0 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: F0 09 00 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: F0 09 00 DB 01 00 64 08 24 67 74 2C AD 66 7E [22:44:52]GetLastDocTimeStamp 1730413046 [22:44:52]current date 1730414692 [22:44:52]FM_GetShiftState [22:44:52]SAM_PROTO_GetShiftState [22:44:52]wFMCommunicate request_size=4 [22:44:52]MH_SAM_APDU [22:44:52]CAPDU: 80 13 01 00 [22:44:52]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [22:44:52]Write i2c OK [22:44:52]MH_I2C_Read... [22:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:52]Read from MH i2c: E2 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: E2 0E 00 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 03 [22:44:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:44:52]wFMCommunicate OK [22:44:52]SAM_PROTO_GetShiftState done [22:44:52]FM_GetShiftState done [22:44:52]opened in 1730333258 [22:44:52]opened+sec_in_day 1730419658 [22:44:52]quantity*price = 30051 [22:44:52]sum+1 = 30052 [22:44:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 193 31.10.2024 22:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73118 ФПД: 184443864828637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224452&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73118&fm=184443864828637&tin=02508201610067®Number=0000000000091644&sum=30000 [22:44:53]StoreToDocumentArchive [22:44:53]shift 557 fd 73118 [22:44:53]save to /storage/0557/doc_00073118 [22:44:53]save last doc name /storage/0557/doc_00073118 to /storage/kkm_last_doc_name [22:44:53]save OK [22:44:53]Clear old archive folders... [22:44:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:53]tlvbuf is 005F55E0 [22:44:53]SAM_PROTO_ClearQueue [22:44:53]wFMCommunicate request_size=4 [22:44:53]MH_SAM_APDU [22:44:53]CAPDU: 80 09 00 00 [22:44:53]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [22:44:53]Write i2c OK [22:44:53]MH_I2C_Read... [22:44:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:53]Read from MH i2c: E2 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 03 00 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [22:44:53]RAPDU: 90 00 [22:44:53]wFMCommunicate OK [22:44:53]SAM_PROTO_ClearQueue done [22:44:53]KKMCreateOFDPacket [22:44:53]OFDProtocolAddRootSTLVToBuf [22:44:53]FM_MakeSignedData [22:44:53]FM_MakeSignedData [22:44:53]SAM_PROTO_SignData [22:44:53]wFMCommunicate request_size=4 [22:44:53]MH_SAM_APDU [22:44:53]CAPDU: 80 0D 01 02 [22:44:53]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [22:44:53]Write i2c OK [22:44:53]MH_I2C_Read... [22:44:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:53]Read from MH i2c: E2 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 03 00 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [22:44:53]RAPDU: 90 00 [22:44:53]wFMCommunicate OK [22:44:53]wFMCommunicate request_size=255 [22:44:53]MH_SAM_APDU [22:44:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 64 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1D 01 00 35 04 06 00 A7 [22:44:53]Write to MH i2c: E2 02 01 EB 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 64 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1D 01 00 35 04 06 00 A7 00 00 63 [22:44:53]Write i2c OK [22:44:53]MH_I2C_Read... [22:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:54]Read from MH i2c: E2 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: E2 03 00 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [22:44:54]RAPDU: 90 00 [22:44:54]wFMCommunicate OK [22:44:54]wFMCommunicate request_size=10 [22:44:54]MH_SAM_APDU [22:44:54]CAPDU: 80 0D 02 02 05 C0 2F 0B 4A DD [22:44:54]Write to MH i2c: E2 0D 00 EC 01 80 0D 02 02 05 00 C0 2F 0B 4A DD 00 00 92 [22:44:54]Write i2c OK [22:44:54]MH_I2C_Read... [22:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:54]Read from MH i2c: E2 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: E2 03 00 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [22:44:54]RAPDU: 90 00 [22:44:54]wFMCommunicate OK [22:44:54]wFMCommunicate request_size=4 [22:44:54]MH_SAM_APDU [22:44:54]CAPDU: 80 0D 03 02 [22:44:54]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [22:44:54]Write i2c OK [22:44:54]MH_I2C_Read... [22:44:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:54]Read from MH i2c: E2 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: E2 0B 00 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: E2 0B 00 ED 01 00 DB 1C A4 33 D4 15 E9 F0 90 00 FA [22:44:54]RAPDU: DB 1C A4 33 D4 15 E9 F0 90 00 [22:44:54]wFMCommunicate OK [22:44:54]SAM_PROTO_SignData done [22:44:54]FM_MakeSignedData done [22:44:54]CreateOFDProtocolMessage [22:44:54]wFMCommunicate request_size=4 [22:44:54]MH_SAM_APDU [22:44:54]CAPDU: 80 11 00 00 [22:44:54]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [22:44:54]Write i2c OK [22:44:54]MH_I2C_Read... [22:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:54]Read from MH i2c: E2 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: E2 17 00 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BD [22:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:44:54]wFMCommunicate OK [22:44:54]CreateOFDProtocolMessage done [22:44:54]OFDSenderStorePacket 73118 [22:44:54]StoreOFDPacket docnum=73118 [22:44:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 53 55 07 01 32 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 64 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1D 01 00 35 04 06 00 A7 C0 2F 0B 4A DD DB 1C A4 33 D4 15 E9 F0 [22:44:54]CheckFolder [22:44:54]dirname=/storage/ofd_packets [22:44:54]CheckFolder done [22:44:54]ProducePacketName [22:44:54]name=ofd_packets/00073118 [22:44:54]NVStorageSaveData ofd_packets/00073118 [22:44:54]File name is /storage/ofd_packets/00073118 [22:44:54]Write 301 bytes [22:44:54]NVStorageSaveData done [22:44:54]OFDSenderStorePacket done [22:44:54]KKMCreateOFDPacket done [22:44:54]NVStorageSaveData kkm_last_timestamp [22:44:54]File name is /storage/kkm_last_timestamp [22:44:54]Write 4 bytes [22:44:54]NVStorageSaveData done [22:44:54]ExternCall_PrintAddStr [22:44:54]wPrintStart [22:44:54]Write to MH i2c: 01 00 00 EF 01 F0 [22:44:54]Write i2c OK [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: 01 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: 01 07 00 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [22:44:54]RasterBufferAndPrint [22:44:54]line Счет N : (1)952718 [22:44:54]line ИНН: 02508201610067 [22:44:54]line Контрольно-Кассовый Чек [22:44:54]line ПРОДАЖА [22:44:54]line ТРК (МРК, ГНК) : 52 [22:44:54]line Товар: 2710124500 [22:44:54]line Аи-95-К-3 [22:44:54]line 4.050 * 74.20 [22:44:54]line = 300.51 [22:44:54]line НДС 12% НСП 1% [22:44:54]line > о реализуемом товаре [22:44:54]line ОКРУГЛЕНИЕ: -0.51 [22:44:54]line ИТОГО: 300.00 [22:44:54]line Внесено: 300.00 [22:44:54]line СДАЧА: 0.00 [22:44:54]line НСП 1% : 2.66 [22:44:54]line НДС 12% : 31.91 [22:44:54]line Наличными: 300.00 [22:44:54]line Безнал.: 0.00 [22:44:54]line Место: АЗС № 113 "Партнер Нефть" [22:44:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:44:54]line СНО: Общий режим [22:44:54]line Чек 193 31.10.2024 22:44 [22:44:54]line Смена: 557 ФФД: 1.0 [22:44:54]line ЗНМ: 0300000087 [22:44:54]line РНМ: 0000000000091644 [22:44:54]line Версия ККМ: 001 [22:44:54]line ФМ: 0000000000874662 [22:44:54]line ФД: 73118 [22:44:54]line ФПД: 184443864828637 [22:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224452&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73118&fm=184443864828637&tin=02508201610067®Number=0000000000091644&sum=30000 [22:44:54]written 0, free lines is 4095 [22:44:54]OFD Sender: Processing packet 73118 [packets to send 282, broken 281] [22:44:54]ProducePacketName [22:44:54]name=ofd_packets/00073118 [22:44:54]OFD Sender: To server: pG, [22:44:54]CommunicateWithHost lk.salyk.kg:30040 [22:44:54]ConnectInit lk.salyk.kg [22:44:54]Write to MH i2c: 01 00 00 1A 02 1C [22:44:54]Write i2c OK [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: 01 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: 01 07 00 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 D6 0C 05 [22:44:54]RasterBufferAndPrint [22:44:54]line [22:44:54]line [22:44:54]line [22:44:54]line [22:44:54]line [22:44:54]written 0, free lines is 3293 [22:44:54]MH_Cut [22:44:54]Write to MH i2c: D1 01 00 21 02 01 F5 [22:44:54]Write i2c OK [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: D1 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: D1 01 00 [22:44:54]MH_I2C_Read... [22:44:54]Read from MH i2c: D1 01 00 21 02 00 F4 [22:44:54]Write to MH i2c: 01 00 00 22 02 24 [22:44:54]Write i2c OK [22:44:54]MH_I2C_Read... [22:44:55]*** Cut start [22:44:55]*** Partial cut [22:44:55]*** CUTSNS_PIN = 1 [22:44:55]*** CUTSNS_PIN = 0 [22:44:55]*** Brake cut motor [22:44:56]Read from MH i2c: 01 [22:44:56]MH_I2C_Read... [22:44:56]*** Stop cut motor [22:44:56]*** Cut end [22:44:56]Read from MH i2c: 01 07 00 [22:44:56]MH_I2C_Read... [22:44:56]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [22:44:56]process_action close_receipt done [22:44:56]requested_data is exist [22:44:56]produce_requested_data [22:44:56]requested_item fm.sn is exist - process it [22:44:56]wFMCommunicate request_size=4 [22:44:56]MH_SAM_APDU [22:44:56]CAPDU: 80 11 00 00 [22:44:56]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [22:44:56]Write i2c OK [22:44:56]MH_I2C_Read... [22:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:56]Read from MH i2c: E2 [22:44:56]MH_I2C_Read... [22:44:56]Read from MH i2c: E2 17 00 [22:44:56]MH_I2C_Read... [22:44:56]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F3 [22:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:44:56]wFMCommunicate OK [22:44:56]requested_item fd.num is exist - process it [22:44:56]SAM_PROTO_GetFieldsCounters [22:44:56]wFMCommunicate request_size=4 [22:44:56]MH_SAM_APDU [22:44:56]CAPDU: 80 13 00 00 [22:44:56]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [22:44:56]Write i2c OK [22:44:56]MH_I2C_Read... [22:44:56]Connected sock=11 [22:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 53 55 07 01 32 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 64 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1D 01 00 35 04 06 00 A7 C0 2F 0B 4A DD DB 1C A4 33 D4 15 E9 F0 [22:44:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:56]Read from MH i2c: E2 [22:44:56]MH_I2C_Read... [22:44:56]Read from MH i2c: E2 62 00 [22:44:56]MH_I2C_Read... [22:44:56]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [22:44:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9E 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:56]wFMCommunicate OK [22:44:56]SAM_PROTO_GetFieldsCounters done [22:44:56]requested_item shift.num is exist - process it [22:44:56]requested_item shift.opened is exist - process it [22:44:56]req_shift_opened [22:44:56]FM_GetShiftState [22:44:56]SAM_PROTO_GetShiftState [22:44:56]wFMCommunicate request_size=4 [22:44:56]MH_SAM_APDU [22:44:56]CAPDU: 80 13 01 00 [22:44:56]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [22:44:56]Write i2c OK [22:44:56]MH_I2C_Read... [22:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:56]Read from MH i2c: E2 [22:44:56]MH_I2C_Read... [22:44:56]Read from MH i2c: E2 0E 00 [22:44:56]MH_I2C_Read... [22:44:56]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4D [22:44:56]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:44:56]wFMCommunicate OK [22:44:56]SAM_PROTO_GetShiftState done [22:44:56]FM_GetShiftState done [22:44:56]req_shift_opened done [22:44:56]requested_item shift.open_date is exist - process it [22:44:56]req_shift_open_date [22:44:56]req_shift_open_date done [22:44:56]produce_requested_data done [22:44:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73118,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:44:56]process_action_free close_receipt [22:44:56]json_value_free [22:44:56]json_value_free done [22:44:56]process_json_proto returns [22:44:56]Send response to host [22:44:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73118,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:44:56]free response buf [22:44:56]execute_script done [22:44:56]execute_script returns [22:44:56]free content buf [22:44:56]Sock 10.Close socket [22:44:56]Sock 10.Thread stoped [22:44:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9C 6F 47 00 F8 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1D 01 00 F4 03 04 00 1B B3 23 67 B6 04 01 00 00 35 7F 27 4F 1C CF D7 07 [22:44:57]CommunicateWithHost err = 0 [22:44:57]CheckOFDResponse [22:44:57]1017 (14) - 77093643461234 [22:44:57]1041 (16) - 0000000000874662 [22:44:57]1040 (4) - 73118 [22:44:57]1012 (4) - 31.10.2024 16:40 [22:44:57]1206 (1) - 0 [22:44:57]OFD Sender: Remove packet 73118 [22:44:57]ProducePacketName [22:44:57]name=ofd_packets/00073118 [22:44:57]NVStorageDeleteData [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:08]recv_with_timeout no data received [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:18]recv_with_timeout no data received [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:30]recv_with_timeout no data received [22:45:32]OFD Sender: No OFD packet to send [22:45:33]accept exits with 9 [22:45:33]New connection [22:45:33]New thread 3066686820 created [22:45:33]Thread 3066830180 joined [22:45:33]Waiting for new connection... [22:45:33] Sock 9.Parse request [22:45:33]Sock 9.Check first char [22:45:33]Sock 9.First char is OK [22:45:33]request: POST /json_proto HTTP/1.0 [22:45:33]Method: POST [22:45:33]URL: /json_proto [22:45:33]Method is POST - this is cgi request [22:45:33]url: /json_proto [22:45:33]query_string will be loaded in cgi processing [22:45:33]execute_cgi json_proto POST (null) [22:45:33]execute_cgi path=json_proto method=POST [22:45:33]POST find Content-Length [22:45:33]Host: 172.17.43.195:8080 [22:45:33]Content-Length: 682 [22:45:33]Content-Type: application/json [22:45:33] [22:45:33]POST finish read [22:45:33]Found Content-Length = 682 [22:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:33]execute_script... [22:45:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:33]POST & json_proto [22:45:33]process_json_proto [22:45:33]json parsed OK: [22:45:33]protocol is kg_v1.0 [22:45:33]action value=close_receipt [22:45:33]process_action close_receipt [22:45:33]cmd_close_receipt [22:45:33]MH_GetDate [22:45:33]Write to MH i2c: F0 00 00 26 02 17 [22:45:33]Write i2c OK [22:45:33]MH_I2C_Read... [22:45:33]Read from MH i2c: F0 [22:45:33]MH_I2C_Read... [22:45:33]Read from MH i2c: F0 09 00 [22:45:33]MH_I2C_Read... [22:45:33]Read from MH i2c: F0 09 00 26 02 00 8D 08 24 67 74 2C AD 66 F3 [22:45:33]GetLastDocTimeStamp 1730414692 [22:45:33]current date 1730414733 [22:45:33]FM_GetShiftState [22:45:33]SAM_PROTO_GetShiftState [22:45:33]wFMCommunicate request_size=4 [22:45:33]MH_SAM_APDU [22:45:33]CAPDU: 80 13 01 00 [22:45:33]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [22:45:33]Write i2c OK [22:45:33]MH_I2C_Read... [22:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:33]Read from MH i2c: E2 [22:45:33]MH_I2C_Read... [22:45:33]Read from MH i2c: E2 0E 00 [22:45:33]MH_I2C_Read... [22:45:33]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 4F [22:45:33]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:45:33]wFMCommunicate OK [22:45:33]SAM_PROTO_GetShiftState done [22:45:33]FM_GetShiftState done [22:45:33]opened in 1730333258 [22:45:33]opened+sec_in_day 1730419658 [22:45:33]quantity*price = 120018 [22:45:33]sum+1 = 120020 [22:45:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 194 31.10.2024 22:45 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73119 ФПД: 147155839911070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224533&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73119&fm=147155839911070&tin=02508201610067®Number=0000000000091644&sum=120000 [22:45:34]StoreToDocumentArchive [22:45:34]shift 557 fd 73119 [22:45:34]save to /storage/0557/doc_00073119 [22:45:34]save last doc name /storage/0557/doc_00073119 to /storage/kkm_last_doc_name [22:45:34]save OK [22:45:34]Clear old archive folders... [22:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:34]tlvbuf is 006EE380 [22:45:34]SAM_PROTO_ClearQueue [22:45:34]wFMCommunicate request_size=4 [22:45:34]MH_SAM_APDU [22:45:34]CAPDU: 80 09 00 00 [22:45:34]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [22:45:34]Write i2c OK [22:45:34]MH_I2C_Read... [22:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:34]Read from MH i2c: E2 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 03 00 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [22:45:34]RAPDU: 90 00 [22:45:34]wFMCommunicate OK [22:45:34]SAM_PROTO_ClearQueue done [22:45:34]KKMCreateOFDPacket [22:45:34]OFDProtocolAddRootSTLVToBuf [22:45:34]FM_MakeSignedData [22:45:34]FM_MakeSignedData [22:45:34]SAM_PROTO_SignData [22:45:34]wFMCommunicate request_size=4 [22:45:34]MH_SAM_APDU [22:45:34]CAPDU: 80 0D 01 02 [22:45:34]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [22:45:34]Write i2c OK [22:45:34]MH_I2C_Read... [22:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:34]Read from MH i2c: E2 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 03 00 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [22:45:34]RAPDU: 90 00 [22:45:34]wFMCommunicate OK [22:45:34]wFMCommunicate request_size=255 [22:45:34]MH_SAM_APDU [22:45: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8D 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1D 01 00 35 04 06 00 85 [22:45:34]Write to MH i2c: E2 02 01 36 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8D 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1D 01 00 35 04 06 00 85 00 00 99 [22:45:34]Write i2c OK [22:45:34]MH_I2C_Read... [22:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:34]Read from MH i2c: E2 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 03 00 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [22:45:34]RAPDU: 90 00 [22:45:34]wFMCommunicate OK [22:45:34]wFMCommunicate request_size=10 [22:45:34]MH_SAM_APDU [22:45:34]CAPDU: 80 0D 02 02 05 D6 63 90 84 9E [22:45:34]Write to MH i2c: E2 0D 00 37 02 80 0D 02 02 05 00 D6 63 90 84 9E 00 00 A8 [22:45:34]Write i2c OK [22:45:34]MH_I2C_Read... [22:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:34]Read from MH i2c: E2 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 03 00 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [22:45:34]RAPDU: 90 00 [22:45:34]wFMCommunicate OK [22:45:34]wFMCommunicate request_size=4 [22:45:34]MH_SAM_APDU [22:45:34]CAPDU: 80 0D 03 02 [22:45:34]Write to MH i2c: E2 08 00 38 02 80 0D 03 02 00 00 00 00 B5 [22:45:34]Write i2c OK [22:45:34]MH_I2C_Read... [22:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:35]Read from MH i2c: E2 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 0B 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 0B 00 38 02 00 51 76 28 2A FA 1A E4 79 90 00 40 [22:45:35]RAPDU: 51 76 28 2A FA 1A E4 79 90 00 [22:45:35]wFMCommunicate OK [22:45:35]SAM_PROTO_SignData done [22:45:35]FM_MakeSignedData done [22:45:35]CreateOFDProtocolMessage [22:45:35]wFMCommunicate request_size=4 [22:45:35]MH_SAM_APDU [22:45:35]CAPDU: 80 11 00 00 [22:45:35]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:35]Read from MH i2c: E2 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 17 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 09 [22:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:45:35]wFMCommunicate OK [22:45:35]CreateOFDProtocolMessage done [22:45:35]OFDSenderStorePacket 73119 [22:45:35]StoreOFDPacket docnum=73119 [22:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3D 15 07 01 40 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8D 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1D 01 00 35 04 06 00 85 D6 63 90 84 9E 51 76 28 2A FA 1A E4 79 [22:45:35]CheckFolder [22:45:35]dirname=/storage/ofd_packets [22:45:35]CheckFolder done [22:45:35]ProducePacketName [22:45:35]name=ofd_packets/00073119 [22:45:35]NVStorageSaveData ofd_packets/00073119 [22:45:35]File name is /storage/ofd_packets/00073119 [22:45:35]Write 301 bytes [22:45:35]NVStorageSaveData done [22:45:35]OFDSenderStorePacket done [22:45:35]KKMCreateOFDPacket done [22:45:35]NVStorageSaveData kkm_last_timestamp [22:45:35]File name is /storage/kkm_last_timestamp [22:45:35]Write 4 bytes [22:45:35]NVStorageSaveData done [22:45:35]ExternCall_PrintAddStr [22:45:35]wPrintStart [22:45:35]Write to MH i2c: 01 00 00 3A 02 3C [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: 01 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: 01 07 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 FF 0F 51 [22:45:35]RasterBufferAndPrint [22:45:35]line Счет N : (1)952719 [22:45:35]line ИНН: 02508201610067 [22:45:35]line Контрольно-Кассовый Чек [22:45:35]line ПРОДАЖА [22:45:35]line ТРК (МРК, ГНК) : 63 [22:45:35]line Товар: 2710124130 [22:45:35]line Аи-92-К-5 [22:45:35]line 17.940 * 66.90 [22:45:35]line = 1200.19 [22:45:35]line НДС 12% НСП 1% [22:45:35]line > о реализуемом товаре [22:45:35]line ОКРУГЛЕНИЕ: -0.19 [22:45:35]line ИТОГО: 1200.00 [22:45:35]line Внесено: 1200.00 [22:45:35]line СДАЧА: 0.00 [22:45:35]line НСП 1% : 10.62 [22:45:35]line НДС 12% : 127.45 [22:45:35]line Наличными: 1200.00 [22:45:35]line Безнал.: 0.00 [22:45:35]line Место: АЗС № 113 "Партнер Нефть" [22:45:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:45:35]line СНО: Общий режим [22:45:35]line Чек 194 31.10.2024 22:45 [22:45:35]line Смена: 557 ФФД: 1.0 [22:45:35]line ЗНМ: 0300000087 [22:45:35]line РНМ: 0000000000091644 [22:45:35]line Версия ККМ: 001 [22:45:35]line ФМ: 0000000000874662 [22:45:35]line ФД: 73119 [22:45:35]line ФПД: 147155839911070 [22:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224533&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73119&fm=147155839911070&tin=02508201610067®Number=0000000000091644&sum=120000 [22:45:35]OFD Sender: Processing packet 73119 [packets to send 282, broken 281] [22:45:35]ProducePacketName [22:45:35]name=ofd_packets/00073119 [22:45:35]OFD Sender: To server: pG, [22:45:35]CommunicateWithHost lk.salyk.kg:30040 [22:45:35]ConnectInit lk.salyk.kg [22:45:35]written 0, free lines is 4095 [22:45:35]Write to MH i2c: 01 00 00 65 02 67 [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: 01 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: 01 07 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 E0 0C 5A [22:45:35]RasterBufferAndPrint [22:45:35]line [22:45:35]line [22:45:35]line [22:45:35]line [22:45:35]line [22:45:35]written 0, free lines is 3302 [22:45:35]MH_Cut [22:45:35]Write to MH i2c: D1 01 00 6C 02 01 40 [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: D1 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: D1 01 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: D1 01 00 6C 02 00 3F [22:45:35]Write to MH i2c: 01 00 00 6D 02 6F [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:36]*** Cut start [22:45:36]*** Partial cut [22:45:36]*** CUTSNS_PIN = 1 [22:45:36]*** CUTSNS_PIN = 0 [22:45:36]*** Brake cut motor [22:45:37]Read from MH i2c: 01 [22:45:37]*** Stop cut motor [22:45:37]*** Cut end [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: 01 07 00 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [22:45:37]process_action close_receipt done [22:45:37]requested_data is exist [22:45:37]produce_requested_data [22:45:37]requested_item fm.sn is exist - process it [22:45:37]wFMCommunicate request_size=4 [22:45:37]MH_SAM_APDU [22:45:37]CAPDU: 80 11 00 00 [22:45:37]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [22:45:37]Write i2c OK [22:45:37]MH_I2C_Read... [22:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:37]Read from MH i2c: E2 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: E2 17 00 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3E [22:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:45:37]wFMCommunicate OK [22:45:37]requested_item fd.num is exist - process it [22:45:37]SAM_PROTO_GetFieldsCounters [22:45:37]wFMCommunicate request_size=4 [22:45:37]MH_SAM_APDU [22:45:37]CAPDU: 80 13 00 00 [22:45:37]Write to MH i2c: E2 08 00 6F 02 80 13 00 00 00 00 00 00 ED [22:45:37]Write i2c OK [22:45:37]MH_I2C_Read... [22:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:37]Read from MH i2c: E2 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: E2 62 00 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: E2 62 00 6F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [22:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9F 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:37]wFMCommunicate OK [22:45:37]SAM_PROTO_GetFieldsCounters done [22:45:37]requested_item shift.num is exist - process it [22:45:37]requested_item shift.opened is exist - process it [22:45:37]req_shift_opened [22:45:37]FM_GetShiftState [22:45:37]SAM_PROTO_GetShiftState [22:45:37]wFMCommunicate request_size=4 [22:45:37]MH_SAM_APDU [22:45:37]CAPDU: 80 13 01 00 [22:45:37]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [22:45:37]Write i2c OK [22:45:37]MH_I2C_Read... [22:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:37]Read from MH i2c: E2 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: E2 0E 00 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 98 [22:45:37]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:45:37]wFMCommunicate OK [22:45:37]SAM_PROTO_GetShiftState done [22:45:37]FM_GetShiftState done [22:45:37]req_shift_opened done [22:45:37]requested_item shift.open_date is exist - process it [22:45:37]req_shift_open_date [22:45:37]req_shift_open_date done [22:45:37]produce_requested_data done [22:45:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73119,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:45:37]process_action_free close_receipt [22:45:37]json_value_free [22:45:37]json_value_free done [22:45:37]process_json_proto returns [22:45:37]Send response to host [22:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73119,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:45:37]free response buf [22:45:37]execute_script done [22:45:37]execute_script returns [22:45:37]free content buf [22:45:37]Sock 9.Close socket [22:45:37]Sock 9.Thread stoped [22:45:42]recv_with_timeout no data received [22:45:49]Connected sock=11 [22:45:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3D 15 07 01 40 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8D 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1D 01 00 35 04 06 00 85 D6 63 90 84 9E 51 76 28 2A FA 1A E4 79 [22:45:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 59 56 47 00 04 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1D 01 00 F4 03 04 00 51 B3 23 67 B6 04 01 00 00 25 0C A2 B2 C0 A8 F1 4B [22:45:52]CommunicateWithHost err = 0 [22:45:52]CheckOFDResponse [22:45:52]1017 (14) - 77093643461234 [22:45:52]1041 (16) - 0000000000874662 [22:45:52]1040 (4) - 73119 [22:45:52]1012 (4) - 31.10.2024 16:41 [22:45:52]1206 (1) - 0 [22:45:52]OFD Sender: Remove packet 73119 [22:45:52]ProducePacketName [22:45:52]name=ofd_packets/00073119 [22:45:52]NVStorageDeleteData [22:45:52]OFD Sender: No OFD packet to send [22:45:57]recv_with_timeout no data received [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:11]recv_with_timeout no data received [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:31]recv_with_timeout no data received [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:46:58]recv_with_timeout no data received [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:20]recv_with_timeout no data received [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:50]recv_with_timeout no data received [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:35]recv_with_timeout no data received [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:30]recv_with_timeout no data received [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:29]recv_with_timeout no data received [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:39]recv_with_timeout no data received [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:50]recv_with_timeout no data received [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:08]recv_with_timeout no data received [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:20]recv_with_timeout no data received [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:29]accept exits with 7 [22:51:29]New connection [22:51:29]New thread 3066830180 created [22:51:29]Thread 3066686820 joined [22:51:29]Waiting for new connection... [22:51:29] Sock 7.Parse request [22:51:29]Sock 7.Check first char [22:51:29]Sock 7.First char is OK [22:51:29]request: POST /json_proto HTTP/1.0 [22:51:29]Method: POST [22:51:29]URL: /json_proto [22:51:29]Method is POST - this is cgi request [22:51:29]url: /json_proto [22:51:29]query_string will be loaded in cgi processing [22:51:29]execute_cgi json_proto POST (null) [22:51:29]execute_cgi path=json_proto method=POST [22:51:29]POST find Content-Length [22:51:29]Host: 172.17.43.195:8080 [22:51:29]Content-Length: 820 [22:51:29]Content-Type: application/json [22:51:29] [22:51:29]POST finish read [22:51:29]Found Content-Length = 820 [22:51:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:29]execute_script... [22:51: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)952720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:29]POST & json_proto [22:51:29]process_json_proto [22:51:29]json parsed OK: [22:51:29]protocol is kg_v1.0 [22:51:29]action value=close_receipt [22:51:29]process_action close_receipt [22:51:29]cmd_close_receipt [22:51:29]MH_GetDate [22:51:29]Write to MH i2c: F0 00 00 71 02 62 [22:51:29]Write i2c OK [22:51:29]MH_I2C_Read... [22:51:29]Read from MH i2c: F0 [22:51:29]MH_I2C_Read... [22:51:29]Read from MH i2c: F0 09 00 [22:51:29]MH_I2C_Read... [22:51:29]Read from MH i2c: F0 09 00 71 02 00 F1 09 24 67 74 2C AD 66 A3 [22:51:29]GetLastDocTimeStamp 1730414733 [22:51:29]current date 1730415089 [22:51:29]FM_GetShiftState [22:51:29]SAM_PROTO_GetShiftState [22:51:29]wFMCommunicate request_size=4 [22:51:29]MH_SAM_APDU [22:51:29]CAPDU: 80 13 01 00 [22:51:29]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [22:51:29]Write i2c OK [22:51:29]MH_I2C_Read... [22:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:29]Read from MH i2c: E2 [22:51:29]MH_I2C_Read... [22:51:29]Read from MH i2c: E2 0E 00 [22:51:29]MH_I2C_Read... [22:51:29]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 9A [22:51:29]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:51:29]wFMCommunicate OK [22:51:29]SAM_PROTO_GetShiftState done [22:51:29]FM_GetShiftState done [22:51:29]opened in 1730333258 [22:51:29]opened+sec_in_day 1730419658 [22:51:29]quantity*price = 70020 [22:51:29]sum+1 = 70021 [22:51:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.20 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.20 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 195 31.10.2024 22:51 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 73120 ФПД: 97996489543229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T225130&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73120&fm=97996489543229&tin=02508201610067®Number=0000000000091644&sum=70020 [22:51:30]StoreToDocumentArchive [22:51:30]shift 557 fd 73120 [22:51:30]save to /storage/0557/doc_00073120 [22:51:30]save last doc name /storage/0557/doc_00073120 to /storage/kkm_last_doc_name [22:51:30]save OK [22:51:30]Clear old archive folders... [22:51:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:51:30]tlvbuf is 005F32F0 [22:51:30]SAM_PROTO_ClearQueue [22:51:30]wFMCommunicate request_size=4 [22:51:30]MH_SAM_APDU [22:51:30]CAPDU: 80 09 00 00 [22:51:30]Write to MH i2c: E2 08 00 7F 02 80 09 00 00 00 00 00 00 F3 [22:51:30]Write i2c OK [22:51:30]MH_I2C_Read... [22:51:30]*** iso7816_exchange 80 09 00 00... 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 7F 02 00 90 00 F5 [22:51:30]RAPDU: 90 00 [22:51:30]wFMCommunicate OK [22:51:30]SAM_PROTO_ClearQueue done [22:51:30]KKMCreateOFDPacket [22:51:30]OFDProtocolAddRootSTLVToBuf [22:51:30]FM_MakeSignedData [22:51:30]FM_MakeSignedData [22:51:30]SAM_PROTO_SignData [22:51:30]wFMCommunicate request_size=4 [22:51:30]MH_SAM_APDU [22:51:30]CAPDU: 80 0D 01 02 [22:51:30]Write to MH i2c: E2 08 00 80 02 80 0D 01 02 00 00 00 00 FB [22:51:30]Write i2c OK [22:51:30]MH_I2C_Read... [22:51:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:31]Read from MH i2c: E2 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 03 00 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [22:51:31]RAPDU: 90 00 [22:51:31]wFMCommunicate OK [22:51:31]wFMCommunicate request_size=255 [22:51:31]MH_SAM_APDU [22:51:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F2 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1D 01 00 35 04 06 00 59 20 [22:51:31]Write to MH i2c: E2 02 01 81 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F2 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1D 01 00 35 04 06 00 59 20 00 00 89 [22:51:31]Write i2c OK [22:51:31]MH_I2C_Read... [22:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:31]Read from MH i2c: E2 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 03 00 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [22:51:31]RAPDU: 90 00 [22:51:31]wFMCommunicate OK [22:51:31]wFMCommunicate request_size=9 [22:51:31]MH_SAM_APDU [22:51:31]CAPDU: 80 0D 02 02 04 95 F2 CE 3D [22:51:31]Write to MH i2c: E2 0C 00 82 02 80 0D 02 02 04 00 95 F2 CE 3D 00 00 98 [22:51:31]Write i2c OK [22:51:31]MH_I2C_Read... [22:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:31]Read from MH i2c: E2 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 03 00 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [22:51:31]RAPDU: 90 00 [22:51:31]wFMCommunicate OK [22:51:31]wFMCommunicate request_size=4 [22:51:31]MH_SAM_APDU [22:51:31]CAPDU: 80 0D 03 02 [22:51:31]Write to MH i2c: E2 08 00 83 02 80 0D 03 02 00 00 00 00 00 [22:51:31]Write i2c OK [22:51:31]MH_I2C_Read... [22:51:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:31]Read from MH i2c: E2 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 0B 00 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 0B 00 83 02 00 93 84 9E 91 1A E3 65 B0 90 00 59 [22:51:31]RAPDU: 93 84 9E 91 1A E3 65 B0 90 00 [22:51:31]wFMCommunicate OK [22:51:31]SAM_PROTO_SignData done [22:51:31]FM_MakeSignedData done [22:51:31]CreateOFDProtocolMessage [22:51:31]wFMCommunicate request_size=4 [22:51:31]MH_SAM_APDU [22:51:31]CAPDU: 80 11 00 00 [22:51:31]Write to MH i2c: E2 08 00 84 02 80 11 00 00 00 00 00 00 00 [22:51:31]Write i2c OK [22:51:31]MH_I2C_Read... [22:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:31]Read from MH i2c: E2 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 17 00 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: E2 17 00 84 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 54 [22:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:51:31]wFMCommunicate OK [22:51:31]CreateOFDProtocolMessage done [22:51:31]OFDSenderStorePacket 73120 [22:51:31]StoreOFDPacket docnum=73120 [22:51:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 D2 AD 06 01 09 40 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F2 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1D 01 00 35 04 06 00 59 20 95 F2 CE 3D 93 84 9E 91 1A E3 65 B0 [22:51:31]CheckFolder [22:51:31]dirname=/storage/ofd_packets [22:51:31]CheckFolder done [22:51:31]ProducePacketName [22:51:31]name=ofd_packets/00073120 [22:51:31]NVStorageSaveData ofd_packets/00073120 [22:51:31]File name is /storage/ofd_packets/00073120 [22:51:31]Write 300 bytes [22:51:31]NVStorageSaveData done [22:51:31]OFDSenderStorePacket done [22:51:31]KKMCreateOFDPacket done [22:51:31]NVStorageSaveData kkm_last_timestamp [22:51:31]File name is /storage/kkm_last_timestamp [22:51:31]Write 4 bytes [22:51:31]NVStorageSaveData done [22:51:31]ExternCall_PrintAddStr [22:51:31]wPrintStart [22:51:31]Write to MH i2c: 01 00 00 85 02 87 [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 85 02 00 00 00 00 00 FF 0F 9C [22:51:31]RasterBufferAndPrint [22:51:31]line Счет N : (1)952720 [22:51:31]line ИНН: 02508201610067 [22:51:31]line Контрольно-Кассовый Чек [22:51:31]line ПРОДАЖА [22:51:31]line ТРК (МРК, ГНК) : 71 [22:51:31]line Товар: 2711190000 [22:51:31]line ГАЗ-К-3 [22:51:31]line 18.000 * 38.90 [22:51:31]line = 700.20 [22:51:31]line НДС 12% НСП 1% [22:51:31]line > о реализуемом товаре [22:51:31]line ИТОГО: 700.20 [22:51:31]line НСП 1% : 6.20 [22:51:31]line НДС 12% : 74.36 [22:51:31]line Наличными: 0.00 [22:51:31]line Безнал.: 700.20 [22:51:31]line Место: АЗС № 113 "Партнер Нефть" [22:51:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:51:31]line СНО: Общий режим [22:51:31]line Чек 195 31.10.2024 22:51 [22:51:31]line Смена: 557 ФФД: 1.0 [22:51:31]line ЗНМ: 0300000087 [22:51:31]line РНМ: 0000000000091644 [22:51:31]line Версия ККМ: 001 [22:51:31]line Платежная система: Бакай банк [22:51:31]line ФМ: 0000000000874662 [22:51:31]line ФД: 73120 [22:51:31]line ФПД: 97996489543229 [22:51:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T225130&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73120&fm=97996489543229&tin=02508201610067®Number=0000000000091644&sum=70020 [22:51:31]written 0, free lines is 4095 [22:51:31]OFD Sender: Processing packet 73120 [packets to send 282, broken 281] [22:51:31]ProducePacketName [22:51:31]name=ofd_packets/00073120 [22:51:31]OFD Sender: To server: pG, [22:51:31]CommunicateWithHost lk.salyk.kg:30040 [22:51:31]ConnectInit lk.salyk.kg [22:51:31]Write to MH i2c: 01 00 00 AF 02 B1 [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 AF 02 00 00 00 00 00 EC 0C B0 [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 3315 [22:51:31]MH_Cut [22:51:31]Write to MH i2c: D1 01 00 B6 02 01 8A [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 B6 02 00 89 [22:51:31]Write to MH i2c: 01 00 00 B7 02 B9 [22:51:31]Write i2c OK [22:51:31]MH_I2C_Read... [22:51:32]Connected sock=11 [22:51:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 D2 AD 06 01 09 40 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F2 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1D 01 00 35 04 06 00 59 20 95 F2 CE 3D 93 84 9E 91 1A E3 65 B0 [22:51:32]*** Cut start [22:51:32]*** Partial cut [22:51:32]*** CUTSNS_PIN = 1 [22:51:32]*** CUTSNS_PIN = 0 [22:51:32]*** Brake cut motor [22:51:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 33 6C 47 00 DC A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1D 01 00 F4 03 04 00 A6 B4 23 67 B6 04 01 00 00 43 3A 5A 91 42 1D B2 6F [22:51:33]CommunicateWithHost err = 0 [22:51:33]CheckOFDResponse [22:51:33]1017 (14) - 77093643461234 [22:51:33]1041 (16) - 0000000000874662 [22:51:33]1040 (4) - 73120 [22:51:33]1012 (4) - 31.10.2024 16:47 [22:51:33]1206 (1) - 0 [22:51:33]OFD Sender: Remove packet 73120 [22:51:33]ProducePacketName [22:51:33]name=ofd_packets/00073120 [22:51:33]NVStorageDeleteData [22:51:33]Read from MH i2c: 01 [22:51:33]MH_I2C_Read... [22:51:33]*** Stop cut motor [22:51:33]*** Cut end [22:51:33]Read from MH i2c: 01 07 00 [22:51:33]MH_I2C_Read... [22:51:33]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [22:51:33]process_action close_receipt done [22:51:33]requested_data is exist [22:51:33]produce_requested_data [22:51:33]requested_item fm.sn is exist - process it [22:51:33]wFMCommunicate request_size=4 [22:51:33]MH_SAM_APDU [22:51:33]CAPDU: 80 11 00 00 [22:51:33]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [22:51:33]Write i2c OK [22:51:33]MH_I2C_Read... [22:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:33]Read from MH i2c: E2 [22:51:33]MH_I2C_Read... [22:51:33]Read from MH i2c: E2 17 00 [22:51:33]MH_I2C_Read... [22:51:33]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 88 [22:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:51:33]wFMCommunicate OK [22:51:33]requested_item fd.num is exist - process it [22:51:33]SAM_PROTO_GetFieldsCounters [22:51:33]wFMCommunicate request_size=4 [22:51:33]MH_SAM_APDU [22:51:33]CAPDU: 80 13 00 00 [22:51:33]Write to MH i2c: E2 08 00 B9 02 80 13 00 00 00 00 00 00 37 [22:51:33]Write i2c OK [22:51:33]MH_I2C_Read... [22:51:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:33]Read from MH i2c: E2 [22:51:33]MH_I2C_Read... [22:51:33]Read from MH i2c: E2 62 00 [22:51:33]MH_I2C_Read... [22:51:33]Read from MH i2c: E2 62 00 B9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A0 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [22:51:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A0 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:33]wFMCommunicate OK [22:51:33]SAM_PROTO_GetFieldsCounters done [22:51:33]requested_item shift.num is exist - process it [22:51:33]requested_item shift.opened is exist - process it [22:51:33]req_shift_opened [22:51:33]FM_GetShiftState [22:51:33]SAM_PROTO_GetShiftState [22:51:33]wFMCommunicate request_size=4 [22:51:33]MH_SAM_APDU [22:51:33]CAPDU: 80 13 01 00 [22:51:33]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [22:51:33]Write i2c OK [22:51:33]MH_I2C_Read... [22:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:33]Read from MH i2c: E2 [22:51:33]MH_I2C_Read... [22:51:33]Read from MH i2c: E2 0E 00 [22:51:33]MH_I2C_Read... [22:51:33]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E2 [22:51:33]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:51:33]wFMCommunicate OK [22:51:33]SAM_PROTO_GetShiftState done [22:51:33]FM_GetShiftState done [22:51:33]req_shift_opened done [22:51:33]requested_item shift.open_date is exist - process it [22:51:33]req_shift_open_date [22:51:33]req_shift_open_date done [22:51:33]produce_requested_data done [22:51:33]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73120,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:51:33]process_action_free close_receipt [22:51:33]json_value_free [22:51:33]json_value_free done [22:51:33]process_json_proto returns [22:51:33]Send response to host [22:51:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73120,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:51:33]free response buf [22:51:33]execute_script done [22:51:33]execute_script returns [22:51:33]free content buf [22:51:33]Sock 7.Close socket [22:51:33]Sock 7.Thread stoped [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]recv_with_timeout no data received [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]recv_with_timeout no data received [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:29]recv_with_timeout no data received [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:30]recv_with_timeout no data received [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:55]recv_with_timeout no data received [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:07]recv_with_timeout no data received [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54: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:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:00]accept exits with 10 [22:56:00]New connection [22:56:00]New thread 3066686820 created [22:56:00]Thread 3066830180 joined [22:56:00]Waiting for new connection... [22:56:00] Sock 10.Parse request [22:56:00]Sock 10.Check first char [22:56:00]Sock 10.First char is OK [22:56:00]request: POST /json_proto HTTP/1.0 [22:56:00]Method: POST [22:56:00]URL: /json_proto [22:56:00]Method is POST - this is cgi request [22:56:00]url: /json_proto [22:56:00]query_string will be loaded in cgi processing [22:56:00]execute_cgi json_proto POST (null) [22:56:00]execute_cgi path=json_proto method=POST [22:56:00]POST find Content-Length [22:56:00]Host: 172.17.43.195:8080 [22:56:00]Content-Length: 685 [22:56:00]Content-Type: application/json [22:56:00] [22:56:00]POST finish read [22:56:00]Found Content-Length = 685 [22:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 28.540, "sum" : 1110.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1110.00, "total" : 1110.00, "payments": [ { "type": 0, "sum" : 1110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:00]execute_script... [22:56: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)952721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 28.540, "sum" : 1110.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1110.00, "total" : 1110.00, "payments": [ { "type": 0, "sum" : 1110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:00]POST & json_proto [22:56:00]process_json_proto [22:56:00]json parsed OK: [22:56:00]protocol is kg_v1.0 [22:56:00]action value=close_receipt [22:56:00]process_action close_receipt [22:56:00]cmd_close_receipt [22:56:00]MH_GetDate [22:56:00]Write to MH i2c: F0 00 00 BB 02 AC [22:56:00]Write i2c OK [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: F0 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: F0 09 00 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: F0 09 00 BB 02 00 01 0B 24 67 74 2C AD 66 FF [22:56:00]GetLastDocTimeStamp 1730415090 [22:56:00]current date 1730415361 [22:56:00]FM_GetShiftState [22:56:00]SAM_PROTO_GetShiftState [22:56:00]wFMCommunicate request_size=4 [22:56:00]MH_SAM_APDU [22:56:00]CAPDU: 80 13 01 00 [22:56:00]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [22:56:00]Write i2c OK [22:56:00]MH_I2C_Read... [22:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:00]Read from MH i2c: E2 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: E2 0E 00 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E4 [22:56:00]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:56:00]wFMCommunicate OK [22:56:00]SAM_PROTO_GetShiftState done [22:56:00]FM_GetShiftState done [22:56:00]opened in 1730333258 [22:56:00]opened+sec_in_day 1730419658 [22:56:00]quantity*price = 111020 [22:56:00]sum+1 = 111022 [22:56:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1110.00 Внесено: 1110.00 СДАЧА: 0.00 НСП 1% : 9.82 НДС 12% : 117.90 Наличными: 1110.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 196 31.10.2024 22:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73121 ФПД: 185765821097027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T225601&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73121&fm=185765821097027&tin=02508201610067®Number=0000000000091644&sum=111000 [22:56:01]StoreToDocumentArchive [22:56:01]shift 557 fd 73121 [22:56:01]save to /storage/0557/doc_00073121 [22:56:01]save last doc name /storage/0557/doc_00073121 to /storage/kkm_last_doc_name [22:56:01]save OK [22:56:01]Clear old archive folders... [22:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:56:01]tlvbuf is 006F1D80 [22:56:01]SAM_PROTO_ClearQueue [22:56:01]wFMCommunicate request_size=4 [22:56:01]MH_SAM_APDU [22:56:01]CAPDU: 80 09 00 00 [22:56:01]Write to MH i2c: E2 08 00 C9 02 80 09 00 00 00 00 00 00 3D [22:56:02]Write i2c OK [22:56:02]MH_I2C_Read... [22:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:02]Read from MH i2c: E2 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 03 00 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [22:56:02]RAPDU: 90 00 [22:56:02]wFMCommunicate OK [22:56:02]SAM_PROTO_ClearQueue done [22:56:02]KKMCreateOFDPacket [22:56:02]OFDProtocolAddRootSTLVToBuf [22:56:02]FM_MakeSignedData [22:56:02]FM_MakeSignedData [22:56:02]SAM_PROTO_SignData [22:56:02]wFMCommunicate request_size=4 [22:56:02]MH_SAM_APDU [22:56:02]CAPDU: 80 0D 01 02 [22:56:02]Write to MH i2c: E2 08 00 CA 02 80 0D 01 02 00 00 00 00 45 [22:56:02]Write i2c OK [22:56:02]MH_I2C_Read... [22:56:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:02]Read from MH i2c: E2 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 03 00 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [22:56:02]RAPDU: 90 00 [22:56:02]wFMCommunicate OK [22:56:02]wFMCommunicate request_size=255 [22:56:02]MH_SAM_APDU [22:56:02]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7C 6F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AD B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 2E 00 00 00 00 07 04 06 00 98 B1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 01 0B 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1D 01 00 35 04 06 00 A8 F3 [22:56:02]Write to MH i2c: E2 02 01 CB 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7C 6F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AD B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 2E 00 00 00 00 07 04 06 00 98 B1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 01 0B 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1D 01 00 35 04 06 00 A8 F3 00 00 0C [22:56:02]Write i2c OK [22:56:02]MH_I2C_Read... [22:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:02]Read from MH i2c: E2 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 03 00 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [22:56:02]RAPDU: 90 00 [22:56:02]wFMCommunicate OK [22:56:02]wFMCommunicate request_size=9 [22:56:02]MH_SAM_APDU [22:56:02]CAPDU: 80 0D 02 02 04 F9 C7 24 43 [22:56:02]Write to MH i2c: E2 0C 00 CC 02 80 0D 02 02 04 00 F9 C7 24 43 00 00 77 [22:56:02]Write i2c OK [22:56:02]MH_I2C_Read... [22:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:02]Read from MH i2c: E2 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 03 00 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [22:56:02]RAPDU: 90 00 [22:56:02]wFMCommunicate OK [22:56:02]wFMCommunicate request_size=4 [22:56:02]MH_SAM_APDU [22:56:02]CAPDU: 80 0D 03 02 [22:56:02]Write to MH i2c: E2 08 00 CD 02 80 0D 03 02 00 00 00 00 4A [22:56:02]Write i2c OK [22:56:02]MH_I2C_Read... [22:56:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:02]Read from MH i2c: E2 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 0B 00 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 0B 00 CD 02 00 68 56 07 04 A6 15 80 0C 90 00 5B [22:56:02]RAPDU: 68 56 07 04 A6 15 80 0C 90 00 [22:56:02]wFMCommunicate OK [22:56:02]SAM_PROTO_SignData done [22:56:02]FM_MakeSignedData done [22:56:02]CreateOFDProtocolMessage [22:56:02]wFMCommunicate request_size=4 [22:56:02]MH_SAM_APDU [22:56:02]CAPDU: 80 11 00 00 [22:56:02]Write to MH i2c: E2 08 00 CE 02 80 11 00 00 00 00 00 00 4A [22:56:02]Write i2c OK [22:56:02]MH_I2C_Read... [22:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:02]Read from MH i2c: E2 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 17 00 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: E2 17 00 CE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9E [22:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:56:02]wFMCommunicate OK [22:56:02]CreateOFDProtocolMessage done [22:56:02]OFDSenderStorePacket 73121 [22:56:02]StoreOFDPacket docnum=73121 [22:56:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C1 17 06 01 B1 15 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7C 6F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AD B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 2E 00 00 00 00 07 04 06 00 98 B1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 01 0B 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1D 01 00 35 04 06 00 A8 F3 F9 C7 24 43 68 56 07 04 A6 15 80 0C [22:56:02]CheckFolder [22:56:02]dirname=/storage/ofd_packets [22:56:02]CheckFolder done [22:56:02]ProducePacketName [22:56:02]name=ofd_packets/00073121 [22:56:02]NVStorageSaveData ofd_packets/00073121 [22:56:02]File name is /storage/ofd_packets/00073121 [22:56:02]Write 300 bytes [22:56:02]NVStorageSaveData done [22:56:02]OFDSenderStorePacket done [22:56:02]KKMCreateOFDPacket done [22:56:02]NVStorageSaveData kkm_last_timestamp [22:56:02]File name is /storage/kkm_last_timestamp [22:56:02]Write 4 bytes [22:56:02]NVStorageSaveData done [22:56:02]ExternCall_PrintAddStr [22:56:02]wPrintStart [22:56:02]Write to MH i2c: 01 00 00 CF 02 D1 [22:56:02]Write i2c OK [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: 01 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: 01 07 00 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [22:56:02]RasterBufferAndPrint [22:56:02]line Счет N : (1)952721 [22:56:02]line ИНН: 02508201610067 [22:56:02]line Контрольно-Кассовый Чек [22:56:02]line ПРОДАЖА [22:56:02]line ТРК (МРК, ГНК) : 71 [22:56:02]line Товар: 2711190000 [22:56:02]line ГАЗ-К-3 [22:56:02]line 28.540 * 38.90 [22:56:02]line = 1110.21 [22:56:02]line НДС 12% НСП 1% [22:56:02]line > о реализуемом товаре [22:56:02]line ОКРУГЛЕНИЕ: -0.21 [22:56:02]line ИТОГО: 1110.00 [22:56:02]line Внесено: 1110.00 [22:56:02]line СДАЧА: 0.00 [22:56:02]line НСП 1% : 9.82 [22:56:02]line НДС 12% : 117.90 [22:56:02]line Наличными: 1110.00 [22:56:02]line Безнал.: 0.00 [22:56:02]line Место: АЗС № 113 "Партнер Нефть" [22:56:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:56:02]line СНО: Общий режим [22:56:02]line Чек 196 31.10.2024 22:56 [22:56:02]line Смена: 557 ФФД: 1.0 [22:56:02]line ЗНМ: 0300000087 [22:56:02]line РНМ: 0000000000091644 [22:56:02]line Версия ККМ: 001 [22:56:02]line ФМ: 0000000000874662 [22:56:02]line ФД: 73121 [22:56:02]line ФПД: 185765821097027 [22:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T225601&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73121&fm=185765821097027&tin=02508201610067®Number=0000000000091644&sum=111000 [22:56:02]written 0, free lines is 4095 [22:56:02]OFD Sender: Processing packet 73121 [packets to send 282, broken 281] [22:56:02]ProducePacketName [22:56:02]name=ofd_packets/00073121 [22:56:02]OFD Sender: To server: pG, [22:56:02]CommunicateWithHost lk.salyk.kg:30040 [22:56:02]ConnectInit lk.salyk.kg [22:56:02]Write to MH i2c: 01 00 00 FA 02 FC [22:56:02]Write i2c OK [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: 01 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: 01 07 00 [22:56:02]MH_I2C_Read... [22:56:02]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 D7 0C E6 [22:56:02]RasterBufferAndPrint [22:56:02]line [22:56:02]line [22:56:02]line [22:56:02]line [22:56:02]line [22:56:03]written 0, free lines is 3294 [22:56:03]Connected sock=11 [22:56:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C1 17 06 01 B1 15 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7C 6F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AD B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 2E 00 00 00 00 07 04 06 00 98 B1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 01 0B 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1D 01 00 35 04 06 00 A8 F3 F9 C7 24 43 68 56 07 04 A6 15 80 0C [22:56:03]MH_Cut [22:56:03]Write to MH i2c: D1 01 00 01 03 01 D6 [22:56:03]Write i2c OK [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: D1 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: D1 01 00 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: D1 01 00 01 03 00 D5 [22:56:03]Write to MH i2c: 01 00 00 02 03 05 [22:56:03]Write i2c OK [22:56:03]MH_I2C_Read... [22:56:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 91 1C 47 00 44 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1D 01 00 F4 03 04 00 B5 B5 23 67 B6 04 01 00 00 CA D0 62 7D 26 36 B1 49 [22:56:03]CommunicateWithHost err = 0 [22:56:03]CheckOFDResponse [22:56:03]1017 (14) - 77093643461234 [22:56:03]1041 (16) - 0000000000874662 [22:56:03]1040 (4) - 73121 [22:56:03]1012 (4) - 31.10.2024 16:52 [22:56:03]1206 (1) - 0 [22:56:03]OFD Sender: Remove packet 73121 [22:56:03]ProducePacketName [22:56:03]name=ofd_packets/00073121 [22:56:03]NVStorageDeleteData [22:56:03]*** Cut start [22:56:03]*** Partial cut [22:56:03]*** CUTSNS_PIN = 1 [22:56:03]*** CUTSNS_PIN = 0 [22:56:04]*** Brake cut motor [22:56:04]OFD Sender: No OFD packet to send [22:56:04]Read from MH i2c: 01 [22:56:04]MH_I2C_Read... [22:56:04]*** Stop cut motor [22:56:04]*** Cut end [22:56:04]Read from MH i2c: 01 07 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 FF 0F 1A [22:56:04]process_action close_receipt done [22:56:04]requested_data is exist [22:56:04]produce_requested_data [22:56:04]requested_item fm.sn is exist - process it [22:56:04]wFMCommunicate request_size=4 [22:56:04]MH_SAM_APDU [22:56:04]CAPDU: 80 11 00 00 [22:56:04]Write to MH i2c: E2 08 00 03 03 80 11 00 00 00 00 00 00 80 [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 17 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 17 00 03 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D4 [22:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:56:04]wFMCommunicate OK [22:56:04]requested_item fd.num is exist - process it [22:56:04]SAM_PROTO_GetFieldsCounters [22:56:04]wFMCommunicate request_size=4 [22:56:04]MH_SAM_APDU [22:56:04]CAPDU: 80 13 00 00 [22:56:04]Write to MH i2c: E2 08 00 04 03 80 13 00 00 00 00 00 00 83 [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 62 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 62 00 04 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A1 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [22:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A1 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:04]wFMCommunicate OK [22:56:04]SAM_PROTO_GetFieldsCounters done [22:56:04]requested_item shift.num is exist - process it [22:56:04]requested_item shift.opened is exist - process it [22:56:04]req_shift_opened [22:56:04]FM_GetShiftState [22:56:04]SAM_PROTO_GetShiftState [22:56:04]wFMCommunicate request_size=4 [22:56:04]MH_SAM_APDU [22:56:04]CAPDU: 80 13 01 00 [22:56:04]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 0E 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2E [22:56:04]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [22:56:04]wFMCommunicate OK [22:56:04]SAM_PROTO_GetShiftState done [22:56:04]FM_GetShiftState done [22:56:04]req_shift_opened done [22:56:04]requested_item shift.open_date is exist - process it [22:56:04]req_shift_open_date [22:56:04]req_shift_open_date done [22:56:04]produce_requested_data done [22:56:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73121,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [22:56:04]process_action_free close_receipt [22:56:04]json_value_free [22:56:04]json_value_free done [22:56:04]process_json_proto returns [22:56:04]Send response to host [22:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73121,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [22:56:04]free response buf [22:56:04]execute_script done [22:56:04]execute_script returns [22:56:04]free content buf [22:56:04]Sock 10.Close socket [22:56:04]Sock 10.Thread stoped [22:56:09]OFD Sender: No OFD packet to send [22:56:13]recv_with_timeout no data received [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:27]recv_with_timeout no data received [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:38]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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:29]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:48]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:50]recv_with_timeout no data received [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:21]recv_with_timeout no data received [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04: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:30]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:08:58]recv_with_timeout no data received [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:17]recv_with_timeout no data received [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:34]recv_with_timeout no data received [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:03]recv_with_timeout no data received [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:20]recv_with_timeout no data received [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:52]recv_with_timeout no data received [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:21]recv_with_timeout no data received [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:09]recv_with_timeout no data received [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:31]recv_with_timeout no data received [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:42]recv_with_timeout no data received [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:28]recv_with_timeout no data received [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:52]recv_with_timeout no data received [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:50]recv_with_timeout no data received [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:00]recv_with_timeout no data received [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:18]recv_with_timeout no data received [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:47]recv_with_timeout no data received [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:32]recv_with_timeout no data received [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:22:56]recv_with_timeout no data received [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:22]recv_with_timeout no data received [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:48]recv_with_timeout no data received [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:36]recv_with_timeout no data received [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:18]recv_with_timeout no data received [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:23]accept exits with 9 [23:26:23]New connection [23:26:23]New thread 3066830180 created [23:26:23]Thread 3066686820 joined [23:26:23]Waiting for new connection... [23:26:23] Sock 9.Parse request [23:26:23]Sock 9.Check first char [23:26:23]Sock 9.First char is OK [23:26:23]request: POST /json_proto HTTP/1.0 [23:26:23]Method: POST [23:26:23]URL: /json_proto [23:26:23]Method is POST - this is cgi request [23:26:23]url: /json_proto [23:26:23]query_string will be loaded in cgi processing [23:26:23]execute_cgi json_proto POST (null) [23:26:23]execute_cgi path=json_proto method=POST [23:26:23]POST find Content-Length [23:26:23]Host: 172.17.43.195:8080 [23:26:23]Content-Length: 682 [23:26:23]Content-Type: application/json [23:26:23] [23:26:23]POST finish read [23:26:23]Found Content-Length = 682 [23:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:23]execute_script... [23:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:23]POST & json_proto [23:26:23]process_json_proto [23:26:23]json parsed OK: [23:26:23]protocol is kg_v1.0 [23:26:23]action value=close_receipt [23:26:23]process_action close_receipt [23:26:23]cmd_close_receipt [23:26:23]MH_GetDate [23:26:23]Write to MH i2c: F0 00 00 06 03 F8 [23:26:23]Write i2c OK [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: F0 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: F0 09 00 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: F0 09 00 06 03 00 1F 12 24 67 74 2C AD 66 70 [23:26:23]GetLastDocTimeStamp 1730415361 [23:26:23]current date 1730417183 [23:26:23]FM_GetShiftState [23:26:23]SAM_PROTO_GetShiftState [23:26:23]wFMCommunicate request_size=4 [23:26:23]MH_SAM_APDU [23:26:23]CAPDU: 80 13 01 00 [23:26:23]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [23:26:23]Write i2c OK [23:26:23]MH_I2C_Read... [23:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:23]Read from MH i2c: E2 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: E2 0E 00 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 30 [23:26:23]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:26:23]wFMCommunicate OK [23:26:23]SAM_PROTO_GetShiftState done [23:26:23]FM_GetShiftState done [23:26:23]opened in 1730333258 [23:26:23]opened+sec_in_day 1730419658 [23:26:23]quantity*price = 300046 [23:26:23]sum+1 = 300048 [23:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 197 31.10.2024 23:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73122 ФПД: 61606641704057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232623&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73122&fm=61606641704057&tin=02508201610067®Number=0000000000091644&sum=300000 [23:26:24]StoreToDocumentArchive [23:26:24]shift 557 fd 73122 [23:26:24]save to /storage/0557/doc_00073122 [23:26:24]save last doc name /storage/0557/doc_00073122 to /storage/kkm_last_doc_name [23:26:24]save OK [23:26:24]Clear old archive folders... [23:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:26:24]tlvbuf is 005F36E0 [23:26:24]SAM_PROTO_ClearQueue [23:26:24]wFMCommunicate request_size=4 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 09 00 00 [23:26:24]Write to MH i2c: E2 08 00 14 03 80 09 00 00 00 00 00 00 89 [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:24]Read from MH i2c: E2 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [23:26:24]RAPDU: 90 00 [23:26:24]wFMCommunicate OK [23:26:24]SAM_PROTO_ClearQueue done [23:26:24]KKMCreateOFDPacket [23:26:24]OFDProtocolAddRootSTLVToBuf [23:26:24]FM_MakeSignedData [23:26:24]FM_MakeSignedData [23:26:24]SAM_PROTO_SignData [23:26:24]wFMCommunicate request_size=4 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 0D 01 02 [23:26:24]Write to MH i2c: E2 08 00 15 03 80 0D 01 02 00 00 00 00 91 [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:24]Read from MH i2c: E2 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [23:26:24]RAPDU: 90 00 [23:26:24]wFMCommunicate OK [23:26:24]wFMCommunicate request_size=255 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 1F 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1D 01 00 35 04 06 00 38 [23:26:24]Write to MH i2c: E2 02 01 16 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 1F 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1D 01 00 35 04 06 00 38 00 00 51 [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:24]Read from MH i2c: E2 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [23:26:24]RAPDU: 90 00 [23:26:24]wFMCommunicate OK [23:26:24]wFMCommunicate request_size=10 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 0D 02 02 05 07 E9 FE 9C 79 [23:26:24]Write to MH i2c: E2 0D 00 17 03 80 0D 02 02 05 00 07 E9 FE 9C 79 00 00 A1 [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:24]Read from MH i2c: E2 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [23:26:24]RAPDU: 90 00 [23:26:24]wFMCommunicate OK [23:26:24]wFMCommunicate request_size=4 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 0D 03 02 [23:26:24]Write to MH i2c: E2 08 00 18 03 80 0D 03 02 00 00 00 00 96 [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:24]Read from MH i2c: E2 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 0B 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 0B 00 18 03 00 EB CE D6 E3 33 4C A8 1D 90 00 4D [23:26:24]RAPDU: EB CE D6 E3 33 4C A8 1D 90 00 [23:26:24]wFMCommunicate OK [23:26:24]SAM_PROTO_SignData done [23:26:24]FM_MakeSignedData done [23:26:24]CreateOFDProtocolMessage [23:26:24]wFMCommunicate request_size=4 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 11 00 00 [23:26:24]Write to MH i2c: E2 08 00 19 03 80 11 00 00 00 00 00 00 96 [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:24]Read from MH i2c: E2 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 17 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 17 00 19 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EA [23:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:26:24]wFMCommunicate OK [23:26:24]CreateOFDProtocolMessage done [23:26:24]OFDSenderStorePacket 73122 [23:26:24]StoreOFDPacket docnum=73122 [23:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 79 07 01 0C 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 1F 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1D 01 00 35 04 06 00 38 07 E9 FE 9C 79 EB CE D6 E3 33 4C A8 1D [23:26:24]CheckFolder [23:26:24]dirname=/storage/ofd_packets [23:26:24]CheckFolder done [23:26:24]ProducePacketName [23:26:24]name=ofd_packets/00073122 [23:26:24]NVStorageSaveData ofd_packets/00073122 [23:26:24]File name is /storage/ofd_packets/00073122 [23:26:24]Write 301 bytes [23:26:24]NVStorageSaveData done [23:26:24]OFDSenderStorePacket done [23:26:24]KKMCreateOFDPacket done [23:26:24]NVStorageSaveData kkm_last_timestamp [23:26:24]File name is /storage/kkm_last_timestamp [23:26:24]Write 4 bytes [23:26:24]NVStorageSaveData done [23:26:24]ExternCall_PrintAddStr [23:26:24]wPrintStart [23:26:24]Write to MH i2c: 01 00 00 1A 03 1D [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: 01 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: 01 07 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 FF 0F 32 [23:26:24]RasterBufferAndPrint [23:26:24]line Счет N : (1)952722 [23:26:24]line ИНН: 02508201610067 [23:26:24]line Контрольно-Кассовый Чек [23:26:24]line ПРОДАЖА [23:26:24]line ТРК (МРК, ГНК) : 42 [23:26:24]line Товар: 2710124130 [23:26:24]line Аи-92-К-5 [23:26:24]line 44.850 * 66.90 [23:26:24]line = 3000.47 [23:26:24]line НДС 12% НСП 1% [23:26:24]line > о реализуемом товаре [23:26:24]line ОКРУГЛЕНИЕ: -0.47 [23:26:24]line ИТОГО: 3000.00 [23:26:24]line Внесено: 3000.00 [23:26:24]line СДАЧА: 0.00 [23:26:24]line НСП 1% : 26.55 [23:26:24]line НДС 12% : 318.63 [23:26:24]line Наличными: 3000.00 [23:26:24]line Безнал.: 0.00 [23:26:24]line Место: АЗС № 113 "Партнер Нефть" [23:26:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:26:24]line СНО: Общий режим [23:26:24]line Чек 197 31.10.2024 23:26 [23:26:24]line Смена: 557 ФФД: 1.0 [23:26:24]line ЗНМ: 0300000087 [23:26:24]line РНМ: 0000000000091644 [23:26:24]line Версия ККМ: 001 [23:26:24]line ФМ: 0000000000874662 [23:26:24]line ФД: 73122 [23:26:24]line ФПД: 61606641704057 [23:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232623&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73122&fm=61606641704057&tin=02508201610067®Number=0000000000091644&sum=300000 [23:26:25]OFD Sender: Processing packet 73122 [packets to send 282, broken 281] [23:26:25]ProducePacketName [23:26:25]name=ofd_packets/00073122 [23:26:25]OFD Sender: To server: pG, [23:26:25]CommunicateWithHost lk.salyk.kg:30040 [23:26:25]ConnectInit lk.salyk.kg [23:26:25]written 0, free lines is 4095 [23:26:25]Write to MH i2c: 01 00 00 45 03 48 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: 01 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: 01 07 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 D8 0C 33 [23:26:25]RasterBufferAndPrint [23:26:25]line [23:26:25]line [23:26:25]line [23:26:25]line [23:26:25]line [23:26:25]written 0, free lines is 3293 [23:26:25]MH_Cut [23:26:25]Write to MH i2c: D1 01 00 4C 03 01 21 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: D1 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: D1 01 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: D1 01 00 4C 03 00 20 [23:26:25]Write to MH i2c: 01 00 00 4D 03 50 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:26]*** Cut start [23:26:26]*** Partial cut [23:26:26]*** CUTSNS_PIN = 1 [23:26:26]*** CUTSNS_PIN = 0 [23:26:26]*** Brake cut motor [23:26:26]Read from MH i2c: 01 [23:26:26]MH_I2C_Read... [23:26:26]*** Stop cut motor [23:26:26]*** Cut end [23:26:26]Read from MH i2c: 01 07 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 FF 0F 65 [23:26:26]process_action close_receipt done [23:26:26]requested_data is exist [23:26:26]produce_requested_data [23:26:26]requested_item fm.sn is exist - process it [23:26:26]wFMCommunicate request_size=4 [23:26:26]MH_SAM_APDU [23:26:26]CAPDU: 80 11 00 00 [23:26:26]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [23:26:26]Write i2c OK [23:26:26]MH_I2C_Read... [23:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:27]Read from MH i2c: E2 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 17 00 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1F [23:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:26:27]wFMCommunicate OK [23:26:27]requested_item fd.num is exist - process it [23:26:27]SAM_PROTO_GetFieldsCounters [23:26:27]wFMCommunicate request_size=4 [23:26:27]MH_SAM_APDU [23:26:27]CAPDU: 80 13 00 00 [23:26:27]Write to MH i2c: E2 08 00 4F 03 80 13 00 00 00 00 00 00 CE [23:26:27]Write i2c OK [23:26:27]MH_I2C_Read... [23:26:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:27]Read from MH i2c: E2 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 62 00 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 62 00 4F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A2 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [23:26:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A2 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:27]wFMCommunicate OK [23:26:27]SAM_PROTO_GetFieldsCounters done [23:26:27]requested_item shift.num is exist - process it [23:26:27]requested_item shift.opened is exist - process it [23:26:27]req_shift_opened [23:26:27]FM_GetShiftState [23:26:27]SAM_PROTO_GetShiftState [23:26:27]wFMCommunicate request_size=4 [23:26:27]MH_SAM_APDU [23:26:27]CAPDU: 80 13 01 00 [23:26:27]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [23:26:27]Write i2c OK [23:26:27]MH_I2C_Read... [23:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:27]Read from MH i2c: E2 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 0E 00 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 79 [23:26:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:26:27]wFMCommunicate OK [23:26:27]SAM_PROTO_GetShiftState done [23:26:27]FM_GetShiftState done [23:26:27]req_shift_opened done [23:26:27]requested_item shift.open_date is exist - process it [23:26:27]req_shift_open_date [23:26:27]req_shift_open_date done [23:26:27]produce_requested_data done [23:26:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73122,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:26:27]process_action_free close_receipt [23:26:27]json_value_free [23:26:27]json_value_free done [23:26:27]process_json_proto returns [23:26:27]Send response to host [23:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73122,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:26:27]free response buf [23:26:27]execute_script done [23:26:27]execute_script returns [23:26:27]free content buf [23:26:27]Sock 9.Close socket [23:26:27]Sock 9.Thread stoped [23:26:29]Connected sock=11 [23:26:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 79 07 01 0C 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 1F 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1D 01 00 35 04 06 00 38 07 E9 FE 9C 79 EB CE D6 E3 33 4C A8 1D [23:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DB 1D 47 00 BF B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1D 01 00 F4 03 04 00 D8 BC 23 67 B6 04 01 00 00 97 64 19 3F 47 C0 77 DB [23:26:29]CommunicateWithHost err = 0 [23:26:29]CheckOFDResponse [23:26:29]1017 (14) - 77093643461234 [23:26:29]1041 (16) - 0000000000874662 [23:26:29]1040 (4) - 73122 [23:26:29]1012 (4) - 31.10.2024 17:22 [23:26:29]1206 (1) - 0 [23:26:29]OFD Sender: Remove packet 73122 [23:26:29]ProducePacketName [23:26:29]name=ofd_packets/00073122 [23:26:29]NVStorageDeleteData [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]recv_with_timeout no data received [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:51]recv_with_timeout no data received [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:51]recv_with_timeout no data received [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:11]accept exits with 7 [23:28:11]New connection [23:28:11]New thread 3066686820 created [23:28:11]Thread 3066830180 joined [23:28:11]Waiting for new connection... [23:28:11] Sock 7.Parse request [23:28:11]Sock 7.Check first char [23:28:11]Sock 7.First char is OK [23:28:11]request: POST /json_proto HTTP/1.0 [23:28:11]Method: POST [23:28:11]URL: /json_proto [23:28:11]Method is POST - this is cgi request [23:28:11]url: /json_proto [23:28:11]query_string will be loaded in cgi processing [23:28:11]execute_cgi json_proto POST (null) [23:28:11]execute_cgi path=json_proto method=POST [23:28:11]POST find Content-Length [23:28:11]Host: 172.17.43.195:8080 [23:28:11]Content-Length: 819 [23:28:11]Content-Type: application/json [23:28:11] [23:28:11]POST finish read [23:28:11]Found Content-Length = 819 [23:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:11]execute_script... [23:28:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:11]POST & json_proto [23:28:11]process_json_proto [23:28:11]json parsed OK: [23:28:11]protocol is kg_v1.0 [23:28:11]action value=close_receipt [23:28:11]process_action close_receipt [23:28:11]cmd_close_receipt [23:28:11]MH_GetDate [23:28:11]Write to MH i2c: F0 00 00 51 03 43 [23:28:11]Write i2c OK [23:28:11]MH_I2C_Read... [23:28:11]Read from MH i2c: F0 [23:28:11]MH_I2C_Read... [23:28:11]Read from MH i2c: F0 09 00 [23:28:11]MH_I2C_Read... [23:28:11]Read from MH i2c: F0 09 00 51 03 00 8B 12 24 67 74 2C AD 66 27 [23:28:11]GetLastDocTimeStamp 1730417183 [23:28:11]current date 1730417291 [23:28:11]FM_GetShiftState [23:28:11]SAM_PROTO_GetShiftState [23:28:11]wFMCommunicate request_size=4 [23:28:11]MH_SAM_APDU [23:28:11]CAPDU: 80 13 01 00 [23:28:11]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [23:28:11]Write i2c OK [23:28:11]MH_I2C_Read... [23:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:11]Read from MH i2c: E2 [23:28:11]MH_I2C_Read... [23:28:11]Read from MH i2c: E2 0E 00 [23:28:11]MH_I2C_Read... [23:28:11]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 7B [23:28:11]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:28:11]wFMCommunicate OK [23:28:11]SAM_PROTO_GetShiftState done [23:28:11]FM_GetShiftState done [23:28:11]opened in 1730333258 [23:28:11]opened+sec_in_day 1730419658 [23:28:11]quantity*price = 150056 [23:28:11]sum+1 = 150058 [23:28:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 198 31.10.2024 23:28 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 73123 ФПД: 275075388324666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232811&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73123&fm=275075388324666&tin=02508201610067®Number=0000000000091644&sum=150057 [23:28:12]StoreToDocumentArchive [23:28:12]shift 557 fd 73123 [23:28:12]save to /storage/0557/doc_00073123 [23:28:12]save last doc name /storage/0557/doc_00073123 to /storage/kkm_last_doc_name [23:28:12]save OK [23:28:12]Clear old archive folders... [23:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:28:12]tlvbuf is B6E8AEC0 [23:28:12]SAM_PROTO_ClearQueue [23:28:12]wFMCommunicate request_size=4 [23:28:12]MH_SAM_APDU [23:28:12]CAPDU: 80 09 00 00 [23:28:12]Write to MH i2c: E2 08 00 5F 03 80 09 00 00 00 00 00 00 D4 [23:28:12]Write i2c OK [23:28:12]MH_I2C_Read... [23:28:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:28:12]Read from MH i2c: E2 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 03 00 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [23:28:12]RAPDU: 90 00 [23:28:12]wFMCommunicate OK [23:28:12]SAM_PROTO_ClearQueue done [23:28:12]KKMCreateOFDPacket [23:28:12]OFDProtocolAddRootSTLVToBuf [23:28:12]FM_MakeSignedData [23:28:12]FM_MakeSignedData [23:28:12]SAM_PROTO_SignData [23:28:12]wFMCommunicate request_size=4 [23:28:12]MH_SAM_APDU [23:28:12]CAPDU: 80 0D 01 02 [23:28:12]Write to MH i2c: E2 08 00 60 03 80 0D 01 02 00 00 00 00 DC [23:28:12]Write i2c OK [23:28:12]MH_I2C_Read... [23:28:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:28:12]Read from MH i2c: E2 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 03 00 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [23:28:12]RAPDU: 90 00 [23:28:12]wFMCommunicate OK [23:28:12]wFMCommunicate request_size=255 [23:28:12]MH_SAM_APDU [23:28:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 8B 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A3 1D 01 00 35 04 06 00 FA [23:28:12]Write to MH i2c: E2 02 01 61 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 8B 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A3 1D 01 00 35 04 06 00 FA 00 00 00 [23:28:12]Write i2c OK [23:28:12]MH_I2C_Read... [23:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:12]Read from MH i2c: E2 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 03 00 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [23:28:12]RAPDU: 90 00 [23:28:12]wFMCommunicate OK [23:28:12]wFMCommunicate request_size=10 [23:28:12]MH_SAM_APDU [23:28:12]CAPDU: 80 0D 02 02 05 2D FA CE BB 3A [23:28:12]Write to MH i2c: E2 0D 00 62 03 80 0D 02 02 05 00 2D FA CE BB 3A 00 00 D3 [23:28:12]Write i2c OK [23:28:12]MH_I2C_Read... [23:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:12]Read from MH i2c: E2 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 03 00 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [23:28:12]RAPDU: 90 00 [23:28:12]wFMCommunicate OK [23:28:12]wFMCommunicate request_size=4 [23:28:12]MH_SAM_APDU [23:28:12]CAPDU: 80 0D 03 02 [23:28:12]Write to MH i2c: E2 08 00 63 03 80 0D 03 02 00 00 00 00 E1 [23:28:12]Write i2c OK [23:28:12]MH_I2C_Read... [23:28:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:28:12]Read from MH i2c: E2 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 0B 00 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 0B 00 63 03 00 18 41 C2 03 EA D6 1E 77 90 00 55 [23:28:12]RAPDU: 18 41 C2 03 EA D6 1E 77 90 00 [23:28:12]wFMCommunicate OK [23:28:12]SAM_PROTO_SignData done [23:28:12]FM_MakeSignedData done [23:28:12]CreateOFDProtocolMessage [23:28:12]wFMCommunicate request_size=4 [23:28:12]MH_SAM_APDU [23:28:12]CAPDU: 80 11 00 00 [23:28:12]Write to MH i2c: E2 08 00 64 03 80 11 00 00 00 00 00 00 E1 [23:28:12]Write i2c OK [23:28:12]MH_I2C_Read... [23:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:12]Read from MH i2c: E2 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 17 00 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: E2 17 00 64 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 35 [23:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:28:12]wFMCommunicate OK [23:28:12]CreateOFDProtocolMessage done [23:28:12]OFDSenderStorePacket 73123 [23:28:12]StoreOFDPacket docnum=73123 [23:28:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 10 EA 07 01 7A BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 8B 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A3 1D 01 00 35 04 06 00 FA 2D FA CE BB 3A 18 41 C2 03 EA D6 1E 77 [23:28:12]CheckFolder [23:28:12]dirname=/storage/ofd_packets [23:28:12]CheckFolder done [23:28:12]ProducePacketName [23:28:12]name=ofd_packets/00073123 [23:28:12]NVStorageSaveData ofd_packets/00073123 [23:28:12]File name is /storage/ofd_packets/00073123 [23:28:12]Write 301 bytes [23:28:12]NVStorageSaveData done [23:28:12]OFDSenderStorePacket done [23:28:12]KKMCreateOFDPacket done [23:28:12]NVStorageSaveData kkm_last_timestamp [23:28:12]File name is /storage/kkm_last_timestamp [23:28:12]Write 4 bytes [23:28:12]NVStorageSaveData done [23:28:12]ExternCall_PrintAddStr [23:28:12]wPrintStart [23:28:12]Write to MH i2c: 01 00 00 65 03 68 [23:28:12]Write i2c OK [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: 01 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: 01 07 00 [23:28:12]MH_I2C_Read... [23:28:12]Read from MH i2c: 01 07 00 65 03 00 00 00 00 00 FF 0F 7D [23:28:12]RasterBufferAndPrint [23:28:12]line Счет N : (1)952723 [23:28:12]line ИНН: 02508201610067 [23:28:12]line Контрольно-Кассовый Чек [23:28:12]line ПРОДАЖА [23:28:12]line ТРК (МРК, ГНК) : 63 [23:28:12]line Товар: 2710124130 [23:28:12]line Аи-92-К-5 [23:28:12]line 22.430 * 66.90 [23:28:12]line = 1500.57 [23:28:12]line НДС 12% НСП 1% [23:28:12]line > о реализуемом товаре [23:28:12]line ИТОГО: 1500.57 [23:28:12]line НСП 1% : 13.28 [23:28:12]line НДС 12% : 159.35 [23:28:12]line Наличными: 0.00 [23:28:12]line Безнал.: 1500.57 [23:28:12]line Место: АЗС № 113 "Партнер Нефть" [23:28:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:28:12]line СНО: Общий режим [23:28:12]line Чек 198 31.10.2024 23:28 [23:28:12]line Смена: 557 ФФД: 1.0 [23:28:12]line ЗНМ: 0300000087 [23:28:12]line РНМ: 0000000000091644 [23:28:12]line Версия ККМ: 001 [23:28:12]line Платежная система: Бакай банк [23:28:12]line ФМ: 0000000000874662 [23:28:12]line ФД: 73123 [23:28:12]line ФПД: 275075388324666 [23:28:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232811&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73123&fm=275075388324666&tin=02508201610067®Number=0000000000091644&sum=150057 [23:28:13]written 0, free lines is 4095 [23:28:13]OFD Sender: Processing packet 73123 [packets to send 282, broken 281] [23:28:13]ProducePacketName [23:28:13]name=ofd_packets/00073123 [23:28:13]OFD Sender: To server: pG, [23:28:13]CommunicateWithHost lk.salyk.kg:30040 [23:28:13]ConnectInit lk.salyk.kg [23:28:13]Write to MH i2c: 01 00 00 8F 03 92 [23:28:13]Write i2c OK [23:28:13]MH_I2C_Read... [23:28:13]Read from MH i2c: 01 [23:28:13]MH_I2C_Read... [23:28:13]Read from MH i2c: 01 07 00 [23:28:13]MH_I2C_Read... [23:28:13]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 EA 0C 8F [23:28:13]RasterBufferAndPrint [23:28:13]line [23:28:13]line [23:28:13]line [23:28:13]line [23:28:13]line [23:28:13]written 0, free lines is 3312 [23:28:13]MH_Cut [23:28:13]Write to MH i2c: D1 01 00 96 03 01 6B [23:28:13]Write i2c OK [23:28:13]MH_I2C_Read... [23:28:13]Read from MH i2c: D1 [23:28:13]MH_I2C_Read... [23:28:13]Read from MH i2c: D1 01 00 [23:28:13]MH_I2C_Read... [23:28:13]Read from MH i2c: D1 01 00 96 03 00 6A [23:28:13]Write to MH i2c: 01 00 00 97 03 9A [23:28:13]Write i2c OK [23:28:13]MH_I2C_Read... [23:28:14]*** Cut start [23:28:14]*** Partial cut [23:28:14]*** CUTSNS_PIN = 1 [23:28:14]*** CUTSNS_PIN = 0 [23:28:14]*** Brake cut motor [23:28:15]Read from MH i2c: 01 [23:28:15]MH_I2C_Read... [23:28:15]*** Stop cut motor [23:28:15]Read from MH i2c: 01 07 00 [23:28:15]MH_I2C_Read... [23:28:15]*** Cut end [23:28:15]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 FF 0F AF [23:28:15]process_action close_receipt done [23:28:15]requested_data is exist [23:28:15]produce_requested_data [23:28:15]requested_item fm.sn is exist - process it [23:28:15]wFMCommunicate request_size=4 [23:28:15]MH_SAM_APDU [23:28:15]CAPDU: 80 11 00 00 [23:28:15]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [23:28:15]Write i2c OK [23:28:15]MH_I2C_Read... [23:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:15]Read from MH i2c: E2 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: E2 17 00 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 69 [23:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:28:15]wFMCommunicate OK [23:28:15]requested_item fd.num is exist - process it [23:28:15]SAM_PROTO_GetFieldsCounters [23:28:15]wFMCommunicate request_size=4 [23:28:15]MH_SAM_APDU [23:28:15]CAPDU: 80 13 00 00 [23:28:15]Write to MH i2c: E2 08 00 99 03 80 13 00 00 00 00 00 00 18 [23:28:15]Write i2c OK [23:28:15]MH_I2C_Read... [23:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:28:15]Read from MH i2c: E2 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: E2 62 00 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: E2 62 00 99 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A3 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [23:28:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A3 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:28:15]wFMCommunicate OK [23:28:15]SAM_PROTO_GetFieldsCounters done [23:28:15]requested_item shift.num is exist - process it [23:28:15]requested_item shift.opened is exist - process it [23:28:15]req_shift_opened [23:28:15]FM_GetShiftState [23:28:15]SAM_PROTO_GetShiftState [23:28:15]wFMCommunicate request_size=4 [23:28:15]MH_SAM_APDU [23:28:15]CAPDU: 80 13 01 00 [23:28:15]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [23:28:15]Write i2c OK [23:28:15]MH_I2C_Read... [23:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:15]Read from MH i2c: E2 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: E2 0E 00 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C3 [23:28:15]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:28:15]wFMCommunicate OK [23:28:15]SAM_PROTO_GetShiftState done [23:28:15]FM_GetShiftState done [23:28:15]req_shift_opened done [23:28:15]requested_item shift.open_date is exist - process it [23:28:15]req_shift_open_date [23:28:15]req_shift_open_date done [23:28:15]produce_requested_data done [23:28:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73123,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:28:15]process_action_free close_receipt [23:28:15]json_value_free [23:28:15]json_value_free done [23:28:15]process_json_proto returns [23:28:15]Send response to host [23:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73123,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:28:15]free response buf [23:28:15]execute_script done [23:28:15]execute_script returns [23:28:15]free content buf [23:28:15]Sock 7.Close socket [23:28:15]Sock 7.Thread stoped [23:28:17]Connected sock=11 [23:28:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 10 EA 07 01 7A BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 8B 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A3 1D 01 00 35 04 06 00 FA 2D FA CE BB 3A 18 41 C2 03 EA D6 1E 77 [23:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D6 C7 47 00 6C 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A3 1D 01 00 F4 03 04 00 44 BD 23 67 B6 04 01 00 00 2D 08 5E B9 25 96 BB D0 [23:28:19]CommunicateWithHost err = 0 [23:28:19]CheckOFDResponse [23:28:19]1017 (14) - 77093643461234 [23:28:19]1041 (16) - 0000000000874662 [23:28:19]1040 (4) - 73123 [23:28:19]1012 (4) - 31.10.2024 17:24 [23:28:19]1206 (1) - 0 [23:28:19]OFD Sender: Remove packet 73123 [23:28:19]ProducePacketName [23:28:19]name=ofd_packets/00073123 [23:28:19]NVStorageDeleteData [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:38]recv_with_timeout no data received [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:57]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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:40]accept exits with 9 [23:30:40]New connection [23:30:40]New thread 3066830180 created [23:30:40]Thread 3066686820 joined [23:30:40]Waiting for new connection... [23:30:40] Sock 9.Parse request [23:30:40]Sock 9.Check first char [23:30:40]Sock 9.First char is OK [23:30:40]request: POST /json_proto HTTP/1.0 [23:30:40]Method: POST [23:30:40]URL: /json_proto [23:30:40]Method is POST - this is cgi request [23:30:40]url: /json_proto [23:30:40]query_string will be loaded in cgi processing [23:30:40]execute_cgi json_proto POST (null) [23:30:40]execute_cgi path=json_proto method=POST [23:30:40]POST find Content-Length [23:30:40]Host: 172.17.43.195:8080 [23:30:40]Content-Length: 800 [23:30:40]Content-Type: application/json [23:30:40] [23:30:40]POST finish read [23:30:40]Found Content-Length = 800 [23:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:40]execute_script... [23:30: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)952724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:40]POST & json_proto [23:30:40]process_json_proto [23:30:40]json parsed OK: [23:30:40]protocol is kg_v1.0 [23:30:40]action value=close_receipt [23:30:40]process_action close_receipt [23:30:40]cmd_close_receipt [23:30:40]MH_GetDate [23:30:40]Write to MH i2c: F0 00 00 9B 03 8D [23:30:40]Write i2c OK [23:30:40]MH_I2C_Read... [23:30:40]Read from MH i2c: F0 [23:30:40]MH_I2C_Read... [23:30:40]Read from MH i2c: F0 09 00 [23:30:40]MH_I2C_Read... [23:30:40]Read from MH i2c: F0 09 00 9B 03 00 20 13 24 67 74 2C AD 66 07 [23:30:40]GetLastDocTimeStamp 1730417291 [23:30:40]current date 1730417440 [23:30:40]FM_GetShiftState [23:30:40]SAM_PROTO_GetShiftState [23:30:40]wFMCommunicate request_size=4 [23:30:40]MH_SAM_APDU [23:30:40]CAPDU: 80 13 01 00 [23:30:40]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [23:30:40]Write i2c OK [23:30:40]MH_I2C_Read... [23:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:40]Read from MH i2c: E2 [23:30:40]MH_I2C_Read... [23:30:40]Read from MH i2c: E2 0E 00 [23:30:40]MH_I2C_Read... [23:30:40]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C5 [23:30:40]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:30:40]wFMCommunicate OK [23:30:40]SAM_PROTO_GetShiftState done [23:30:40]FM_GetShiftState done [23:30:40]opened in 1730333258 [23:30:40]opened+sec_in_day 1730419658 [23:30:40]quantity*price = 40006 [23:30:40]sum+1 = 40007 [23:30:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 199 31.10.2024 23:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73124 ФПД: 208049183412118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233040&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73124&fm=208049183412118&tin=02508201610067®Number=0000000000091644&sum=40006 [23:30:41]StoreToDocumentArchive [23:30:41]shift 557 fd 73124 [23:30:41]save to /storage/0557/doc_00073124 [23:30:41]save last doc name /storage/0557/doc_00073124 to /storage/kkm_last_doc_name [23:30:41]save OK [23:30:41]Clear old archive folders... [23:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:41]tlvbuf is 006E7E00 [23:30:41]SAM_PROTO_ClearQueue [23:30:41]wFMCommunicate request_size=4 [23:30:41]MH_SAM_APDU [23:30:41]CAPDU: 80 09 00 00 [23:30:41]Write to MH i2c: E2 08 00 A9 03 80 09 00 00 00 00 00 00 1E [23:30:41]Write i2c OK [23:30:41]MH_I2C_Read... [23:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:41]Read from MH i2c: E2 [23:30:41]MH_I2C_Read... [23:30:41]Read from MH i2c: E2 03 00 [23:30:41]MH_I2C_Read... [23:30:41]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [23:30:41]RAPDU: 90 00 [23:30:41]wFMCommunicate OK [23:30:41]SAM_PROTO_ClearQueue done [23:30:41]KKMCreateOFDPacket [23:30:41]OFDProtocolAddRootSTLVToBuf [23:30:41]FM_MakeSignedData [23:30:41]FM_MakeSignedData [23:30:41]SAM_PROTO_SignData [23:30:41]wFMCommunicate request_size=4 [23:30:41]MH_SAM_APDU [23:30:41]CAPDU: 80 0D 01 02 [23:30:41]Write to MH i2c: E2 08 00 AA 03 80 0D 01 02 00 00 00 00 26 [23:30:41]Write i2c OK [23:30:41]MH_I2C_Read... [23:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:41]Read from MH i2c: E2 [23:30:41]MH_I2C_Read... [23:30:41]Read from MH i2c: E2 03 00 [23:30:41]MH_I2C_Read... [23:30:41]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [23:30:41]RAPDU: 90 00 [23:30:41]wFMCommunicate OK [23:30:41]wFMCommunicate request_size=255 [23:30:41]MH_SAM_APDU [23:30: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 20 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1D 01 00 35 04 06 00 BD [23:30:41]Write to MH i2c: E2 02 01 AB 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 20 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1D 01 00 35 04 06 00 BD 00 00 C3 [23:30:41]Write i2c OK [23:30:41]MH_I2C_Read... [23:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:42]Read from MH i2c: E2 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: E2 03 00 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [23:30:42]RAPDU: 90 00 [23:30:42]wFMCommunicate OK [23:30:42]wFMCommunicate request_size=10 [23:30:42]MH_SAM_APDU [23:30:42]CAPDU: 80 0D 02 02 05 38 39 AC 4F 96 [23:30:42]Write to MH i2c: E2 0D 00 AC 03 80 0D 02 02 05 00 38 39 AC 4F 96 00 00 35 [23:30:42]Write i2c OK [23:30:42]MH_I2C_Read... [23:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:42]Read from MH i2c: E2 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: E2 03 00 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [23:30:42]RAPDU: 90 00 [23:30:42]wFMCommunicate OK [23:30:42]wFMCommunicate request_size=4 [23:30:42]MH_SAM_APDU [23:30:42]CAPDU: 80 0D 03 02 [23:30:42]Write to MH i2c: E2 08 00 AD 03 80 0D 03 02 00 00 00 00 2B [23:30:42]Write i2c OK [23:30:42]MH_I2C_Read... [23:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:42]Read from MH i2c: E2 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: E2 0B 00 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: E2 0B 00 AD 03 00 F6 A4 9F CD DD 29 DB 2E 90 00 41 [23:30:42]RAPDU: F6 A4 9F CD DD 29 DB 2E 90 00 [23:30:42]wFMCommunicate OK [23:30:42]SAM_PROTO_SignData done [23:30:42]FM_MakeSignedData done [23:30:42]CreateOFDProtocolMessage [23:30:42]wFMCommunicate request_size=4 [23:30:42]MH_SAM_APDU [23:30:42]CAPDU: 80 11 00 00 [23:30:42]Write to MH i2c: E2 08 00 AE 03 80 11 00 00 00 00 00 00 2B [23:30:42]Write i2c OK [23:30:42]MH_I2C_Read... [23:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:42]Read from MH i2c: E2 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: E2 17 00 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: E2 17 00 AE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7F [23:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:30:42]wFMCommunicate OK [23:30:42]CreateOFDProtocolMessage done [23:30:42]OFDSenderStorePacket 73124 [23:30:42]StoreOFDPacket docnum=73124 [23:30:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 98 07 01 49 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 20 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1D 01 00 35 04 06 00 BD 38 39 AC 4F 96 F6 A4 9F CD DD 29 DB 2E [23:30:42]CheckFolder [23:30:42]dirname=/storage/ofd_packets [23:30:42]CheckFolder done [23:30:42]ProducePacketName [23:30:42]name=ofd_packets/00073124 [23:30:42]NVStorageSaveData ofd_packets/00073124 [23:30:42]File name is /storage/ofd_packets/00073124 [23:30:42]Write 301 bytes [23:30:42]NVStorageSaveData done [23:30:42]OFDSenderStorePacket done [23:30:42]KKMCreateOFDPacket done [23:30:42]NVStorageSaveData kkm_last_timestamp [23:30:42]File name is /storage/kkm_last_timestamp [23:30:42]Write 4 bytes [23:30:42]NVStorageSaveData done [23:30:42]ExternCall_PrintAddStr [23:30:42]wPrintStart [23:30:42]Write to MH i2c: 01 00 00 AF 03 B2 [23:30:42]Write i2c OK [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: 01 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: 01 07 00 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 FF 0F C7 [23:30:42]RasterBufferAndPrint [23:30:42]line Счет N : (1)952724 [23:30:42]line ИНН: 02508201610067 [23:30:42]line Контрольно-Кассовый Чек [23:30:42]line ПРОДАЖА [23:30:42]line ТРК (МРК, ГНК) : 63 [23:30:42]line Товар: 2710124130 [23:30:42]line Аи-92-К-5 [23:30:42]line 5.980 * 66.90 [23:30:42]line = 400.06 [23:30:42]line НДС 12% НСП 1% [23:30:42]line > о реализуемом товаре [23:30:42]line ИТОГО: 400.06 [23:30:42]line НСП 1% : 3.54 [23:30:42]line НДС 12% : 42.48 [23:30:42]line Наличными: 0.00 [23:30:42]line Безнал.: 400.06 [23:30:42]line Место: АЗС № 113 "Партнер Нефть" [23:30:42]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:30:42]line СНО: Общий режим [23:30:42]line Чек 199 31.10.2024 23:30 [23:30:42]line Смена: 557 ФФД: 1.0 [23:30:42]line ЗНМ: 0300000087 [23:30:42]line РНМ: 0000000000091644 [23:30:42]line Версия ККМ: 001 [23:30:42]line Платежная система: O! деньги [23:30:42]line ФМ: 0000000000874662 [23:30:42]line ФД: 73124 [23:30:42]line ФПД: 208049183412118 [23:30:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233040&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73124&fm=208049183412118&tin=02508201610067®Number=0000000000091644&sum=40006 [23:30:42]written 0, free lines is 4095 [23:30:42]OFD Sender: Processing packet 73124 [packets to send 282, broken 281] [23:30:42]ProducePacketName [23:30:42]name=ofd_packets/00073124 [23:30:42]OFD Sender: To server: pG, [23:30:42]CommunicateWithHost lk.salyk.kg:30040 [23:30:42]ConnectInit lk.salyk.kg [23:30:42]Write to MH i2c: 01 00 00 D9 03 DC [23:30:42]Write i2c OK [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: 01 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: 01 07 00 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 EE 0C DD [23:30:42]RasterBufferAndPrint [23:30:42]line [23:30:42]line [23:30:42]line [23:30:42]line [23:30:42]line [23:30:42]written 0, free lines is 3318 [23:30:42]MH_Cut [23:30:42]Write to MH i2c: D1 01 00 E0 03 01 B5 [23:30:42]Write i2c OK [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: D1 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: D1 01 00 [23:30:42]MH_I2C_Read... [23:30:42]Read from MH i2c: D1 01 00 E0 03 00 B4 [23:30:42]Write to MH i2c: 01 00 00 E1 03 E4 [23:30:42]Write i2c OK [23:30:42]MH_I2C_Read... [23:30:43]Connected sock=11 [23:30:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 98 07 01 49 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 20 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1D 01 00 35 04 06 00 BD 38 39 AC 4F 96 F6 A4 9F CD DD 29 DB 2E [23:30:43]*** Cut start [23:30:43]*** Partial cut [23:30:43]*** CUTSNS_PIN = 1 [23:30:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FD B5 47 00 07 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1D 01 00 F4 03 04 00 D5 BD 23 67 B6 04 01 00 00 C2 1F 5E 50 B8 60 68 92 [23:30:43]CommunicateWithHost err = 0 [23:30:43]CheckOFDResponse [23:30:43]1017 (14) - 77093643461234 [23:30:43]1041 (16) - 0000000000874662 [23:30:43]1040 (4) - 73124 [23:30:43]1012 (4) - 31.10.2024 17:26 [23:30:43]1206 (1) - 0 [23:30:43]OFD Sender: Remove packet 73124 [23:30:43]ProducePacketName [23:30:43]name=ofd_packets/00073124 [23:30:43]NVStorageDeleteData [23:30:43]*** CUTSNS_PIN = 0 [23:30:43]*** Brake cut motor [23:30:43]OFD Sender: No OFD packet to send [23:30:44]Read from MH i2c: 01 [23:30:44]MH_I2C_Read... [23:30:44]*** Stop cut motor [23:30:44]*** Cut end [23:30:44]Read from MH i2c: 01 07 00 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [23:30:44]process_action close_receipt done [23:30:44]requested_data is exist [23:30:44]produce_requested_data [23:30:44]requested_item fm.sn is exist - process it [23:30:44]wFMCommunicate request_size=4 [23:30:44]MH_SAM_APDU [23:30:44]CAPDU: 80 11 00 00 [23:30:44]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [23:30:44]Write i2c OK [23:30:44]MH_I2C_Read... [23:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:44]Read from MH i2c: E2 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: E2 17 00 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B3 [23:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:30:44]wFMCommunicate OK [23:30:44]requested_item fd.num is exist - process it [23:30:44]SAM_PROTO_GetFieldsCounters [23:30:44]wFMCommunicate request_size=4 [23:30:44]MH_SAM_APDU [23:30:44]CAPDU: 80 13 00 00 [23:30:44]Write to MH i2c: E2 08 00 E3 03 80 13 00 00 00 00 00 00 62 [23:30:44]Write i2c OK [23:30:44]MH_I2C_Read... [23:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:44]Read from MH i2c: E2 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: E2 62 00 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: E2 62 00 E3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A4 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [23:30:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A4 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:44]wFMCommunicate OK [23:30:44]SAM_PROTO_GetFieldsCounters done [23:30:44]requested_item shift.num is exist - process it [23:30:44]requested_item shift.opened is exist - process it [23:30:44]req_shift_opened [23:30:44]FM_GetShiftState [23:30:44]SAM_PROTO_GetShiftState [23:30:44]wFMCommunicate request_size=4 [23:30:44]MH_SAM_APDU [23:30:44]CAPDU: 80 13 01 00 [23:30:44]Write to MH i2c: E2 08 00 E4 03 80 13 01 00 00 00 00 00 64 [23:30:44]Write i2c OK [23:30:44]MH_I2C_Read... [23:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:44]Read from MH i2c: E2 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: E2 0E 00 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: E2 0E 00 E4 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0D [23:30:44]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:30:44]wFMCommunicate OK [23:30:44]SAM_PROTO_GetShiftState done [23:30:44]FM_GetShiftState done [23:30:44]req_shift_opened done [23:30:44]requested_item shift.open_date is exist - process it [23:30:44]req_shift_open_date [23:30:44]req_shift_open_date done [23:30:44]produce_requested_data done [23:30:44]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73124,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:30:44]process_action_free close_receipt [23:30:44]json_value_free [23:30:44]json_value_free done [23:30:44]process_json_proto returns [23:30:44]Send response to host [23:30:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73124,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:30:44]free response buf [23:30:44]execute_script done [23:30:44]execute_script returns [23:30:44]free content buf [23:30:44]Sock 9.Close socket [23:30:44]Sock 9.Thread stoped [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:30:59]recv_with_timeout no data received [23:31:03]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:10]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:43]recv_with_timeout no data received [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:30]recv_with_timeout no data received [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:57]recv_with_timeout no data received [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]accept exits with 10 [23:35:49]New connection [23:35:49]New thread 3066686820 created [23:35:49]Thread 3066830180 joined [23:35:49]Waiting for new connection... [23:35:49] Sock 10.Parse request [23:35:49]Sock 10.Check first char [23:35:49]Sock 10.First char is OK [23:35:49]request: POST /json_proto HTTP/1.0 [23:35:49]Method: POST [23:35:49]URL: /json_proto [23:35:49]Method is POST - this is cgi request [23:35:49]url: /json_proto [23:35:49]query_string will be loaded in cgi processing [23:35:49]execute_cgi json_proto POST (null) [23:35:49]execute_cgi path=json_proto method=POST [23:35:49]POST find Content-Length [23:35:49]Host: 172.17.43.195:8080 [23:35:49]Content-Length: 682 [23:35:49]Content-Type: application/json [23:35:49] [23:35:49]POST finish read [23:35:49]Found Content-Length = 682 [23:35:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:49]execute_script... [23:35:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:49]POST & json_proto [23:35:49]process_json_proto [23:35:49]json parsed OK: [23:35:49]protocol is kg_v1.0 [23:35:49]action value=close_receipt [23:35:49]process_action close_receipt [23:35:49]cmd_close_receipt [23:35:49]MH_GetDate [23:35:49]Write to MH i2c: F0 00 00 E5 03 D7 [23:35:49]Write i2c OK [23:35:49]MH_I2C_Read... [23:35:49]Read from MH i2c: F0 [23:35:49]MH_I2C_Read... [23:35:49]Read from MH i2c: F0 09 00 [23:35:49]MH_I2C_Read... [23:35:49]Read from MH i2c: F0 09 00 E5 03 00 55 14 24 67 74 2C AD 66 87 [23:35:49]GetLastDocTimeStamp 1730417440 [23:35:49]current date 1730417749 [23:35:49]FM_GetShiftState [23:35:49]SAM_PROTO_GetShiftState [23:35:49]wFMCommunicate request_size=4 [23:35:49]MH_SAM_APDU [23:35:49]CAPDU: 80 13 01 00 [23:35:49]Write to MH i2c: E2 08 00 E6 03 80 13 01 00 00 00 00 00 66 [23:35:49]Write i2c OK [23:35:49]MH_I2C_Read... [23:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:49]Read from MH i2c: E2 [23:35:49]MH_I2C_Read... [23:35:49]Read from MH i2c: E2 0E 00 [23:35:49]MH_I2C_Read... [23:35:49]Read from MH i2c: E2 0E 00 E6 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0F [23:35:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:35:49]wFMCommunicate OK [23:35:49]SAM_PROTO_GetShiftState done [23:35:49]FM_GetShiftState done [23:35:49]opened in 1730333258 [23:35:49]opened+sec_in_day 1730419658 [23:35:49]quantity*price = 100021 [23:35:49]sum+1 = 100023 [23:35:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 200 31.10.2024 23:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73125 ФПД: 67048481298701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233549&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73125&fm=67048481298701&tin=02508201610067®Number=0000000000091644&sum=100000 [23:35:50]StoreToDocumentArchive [23:35:50]shift 557 fd 73125 [23:35:50]save to /storage/0557/doc_00073125 [23:35:50]save last doc name /storage/0557/doc_00073125 to /storage/kkm_last_doc_name [23:35:50]save OK [23:35:50]Clear old archive folders... [23:35:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:35:50]tlvbuf is 005F5F00 [23:35:50]SAM_PROTO_ClearQueue [23:35:50]wFMCommunicate request_size=4 [23:35:50]MH_SAM_APDU [23:35:50]CAPDU: 80 09 00 00 [23:35:50]Write to MH i2c: E2 08 00 F3 03 80 09 00 00 00 00 00 00 68 [23:35:50]Write i2c OK [23:35:50]MH_I2C_Read... [23:35:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:50]Read from MH i2c: E2 [23:35:50]MH_I2C_Read... [23:35:50]Read from MH i2c: E2 03 00 [23:35:50]MH_I2C_Read... [23:35:50]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [23:35:50]RAPDU: 90 00 [23:35:50]wFMCommunicate OK [23:35:50]SAM_PROTO_ClearQueue done [23:35:50]KKMCreateOFDPacket [23:35:50]OFDProtocolAddRootSTLVToBuf [23:35:50]FM_MakeSignedData [23:35:50]FM_MakeSignedData [23:35:50]SAM_PROTO_SignData [23:35:50]wFMCommunicate request_size=4 [23:35:50]MH_SAM_APDU [23:35:50]CAPDU: 80 0D 01 02 [23:35:50]Write to MH i2c: E2 08 00 F4 03 80 0D 01 02 00 00 00 00 70 [23:35:50]Write i2c OK [23:35:50]MH_I2C_Read... [23:35:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:50]Read from MH i2c: E2 [23:35:50]MH_I2C_Read... [23:35:50]Read from MH i2c: E2 03 00 [23:35:50]MH_I2C_Read... [23:35:50]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [23:35:50]RAPDU: 90 00 [23:35:50]wFMCommunicate OK [23:35:50]wFMCommunicate request_size=255 [23:35:50]MH_SAM_APDU [23:35:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 55 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1D 01 00 35 04 06 00 3C [23:35:50]Write to MH i2c: E2 02 01 F5 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 55 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1D 01 00 35 04 06 00 3C 00 00 04 [23:35:50]Write i2c OK [23:35:50]MH_I2C_Read... [23:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:50]Read from MH i2c: E2 [23:35:50]MH_I2C_Read... [23:35:50]Read from MH i2c: E2 03 00 [23:35:50]MH_I2C_Read... [23:35:50]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [23:35:50]RAPDU: 90 00 [23:35:50]wFMCommunicate OK [23:35:50]wFMCommunicate request_size=10 [23:35:50]MH_SAM_APDU [23:35:50]CAPDU: 80 0D 02 02 05 FA F0 E9 19 0D [23:35:50]Write to MH i2c: E2 0D 00 F6 03 80 0D 02 02 05 00 FA F0 E9 19 0D 00 00 76 [23:35:50]Write i2c OK [23:35:50]MH_I2C_Read... [23:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:50]Read from MH i2c: E2 [23:35:50]MH_I2C_Read... [23:35:50]Read from MH i2c: E2 03 00 [23:35:50]MH_I2C_Read... [23:35:50]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [23:35:50]RAPDU: 90 00 [23:35:50]wFMCommunicate OK [23:35:50]wFMCommunicate request_size=4 [23:35:50]MH_SAM_APDU [23:35:50]CAPDU: 80 0D 03 02 [23:35:50]Write to MH i2c: E2 08 00 F7 03 80 0D 03 02 00 00 00 00 75 [23:35:50]Write i2c OK [23:35:50]MH_I2C_Read... [23:35:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:51]Read from MH i2c: E2 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: E2 0B 00 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: E2 0B 00 F7 03 00 6E 0E D2 7F FD 1D 15 CD 90 00 3F [23:35:51]RAPDU: 6E 0E D2 7F FD 1D 15 CD 90 00 [23:35:51]wFMCommunicate OK [23:35:51]SAM_PROTO_SignData done [23:35:51]FM_MakeSignedData done [23:35:51]CreateOFDProtocolMessage [23:35:51]wFMCommunicate request_size=4 [23:35:51]MH_SAM_APDU [23:35:51]CAPDU: 80 11 00 00 [23:35:51]Write to MH i2c: E2 08 00 F8 03 80 11 00 00 00 00 00 00 75 [23:35:51]Write i2c OK [23:35:51]MH_I2C_Read... [23:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:51]Read from MH i2c: E2 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: E2 17 00 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: E2 17 00 F8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C9 [23:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:35:51]wFMCommunicate OK [23:35:51]CreateOFDProtocolMessage done [23:35:51]OFDSenderStorePacket 73125 [23:35:51]StoreOFDPacket docnum=73125 [23:35:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1A 58 07 01 C6 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 55 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1D 01 00 35 04 06 00 3C FA F0 E9 19 0D 6E 0E D2 7F FD 1D 15 CD [23:35:51]CheckFolder [23:35:51]dirname=/storage/ofd_packets [23:35:51]CheckFolder done [23:35:51]ProducePacketName [23:35:51]name=ofd_packets/00073125 [23:35:51]NVStorageSaveData ofd_packets/00073125 [23:35:51]File name is /storage/ofd_packets/00073125 [23:35:51]Write 301 bytes [23:35:51]NVStorageSaveData done [23:35:51]OFDSenderStorePacket done [23:35:51]KKMCreateOFDPacket done [23:35:51]NVStorageSaveData kkm_last_timestamp [23:35:51]File name is /storage/kkm_last_timestamp [23:35:51]Write 4 bytes [23:35:51]NVStorageSaveData done [23:35:51]ExternCall_PrintAddStr [23:35:51]wPrintStart [23:35:51]Write to MH i2c: 01 00 00 F9 03 FC [23:35:51]Write i2c OK [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: 01 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: 01 07 00 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: 01 07 00 F9 03 00 00 00 00 00 FF 0F 11 [23:35:51]RasterBufferAndPrint [23:35:51]line Счет N : (1)952726 [23:35:51]line ИНН: 02508201610067 [23:35:51]line Контрольно-Кассовый Чек [23:35:51]line ПРОДАЖА [23:35:51]line ТРК (МРК, ГНК) : 41 [23:35:51]line Товар: 2710124500 [23:35:51]line Аи-95-К-3 [23:35:51]line 13.480 * 74.20 [23:35:51]line = 1000.22 [23:35:51]line НДС 12% НСП 1% [23:35:51]line > о реализуемом товаре [23:35:51]line ОКРУГЛЕНИЕ: -0.22 [23:35:51]line ИТОГО: 1000.00 [23:35:51]line Внесено: 1000.00 [23:35:51]line СДАЧА: 0.00 [23:35:51]line НСП 1% : 8.85 [23:35:51]line НДС 12% : 106.22 [23:35:51]line Наличными: 1000.00 [23:35:51]line Безнал.: 0.00 [23:35:51]line Место: АЗС № 113 "Партнер Нефть" [23:35:51]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:35:51]line СНО: Общий режим [23:35:51]line Чек 200 31.10.2024 23:35 [23:35:51]line Смена: 557 ФФД: 1.0 [23:35:51]line ЗНМ: 0300000087 [23:35:51]line РНМ: 0000000000091644 [23:35:51]line Версия ККМ: 001 [23:35:51]line ФМ: 0000000000874662 [23:35:51]line ФД: 73125 [23:35:51]line ФПД: 67048481298701 [23:35:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233549&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73125&fm=67048481298701&tin=02508201610067®Number=0000000000091644&sum=100000 [23:35:51]OFD Sender: Processing packet 73125 [packets to send 282, broken 281] [23:35:51]ProducePacketName [23:35:51]name=ofd_packets/00073125 [23:35:51]OFD Sender: To server: pG, [23:35:51]CommunicateWithHost lk.salyk.kg:30040 [23:35:51]ConnectInit lk.salyk.kg [23:35:51]written 0, free lines is 4095 [23:35:51]Write to MH i2c: 01 00 00 24 04 28 [23:35:51]Write i2c OK [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: 01 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: 01 07 00 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 DA 0C 15 [23:35:51]RasterBufferAndPrint [23:35:51]line [23:35:51]line [23:35:51]line [23:35:51]line [23:35:51]line [23:35:51]written 0, free lines is 3297 [23:35:51]MH_Cut [23:35:51]Write to MH i2c: D1 01 00 2B 04 01 01 [23:35:51]Write i2c OK [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: D1 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: D1 01 00 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: D1 01 00 2B 04 00 00 [23:35:51]Write to MH i2c: 01 00 00 2C 04 30 [23:35:51]Write i2c OK [23:35:51]MH_I2C_Read... [23:35:52]Connected sock=7 [23:35:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1A 58 07 01 C6 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 55 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1D 01 00 35 04 06 00 3C FA F0 E9 19 0D 6E 0E D2 7F FD 1D 15 CD [23:35:52]*** Cut start [23:35:52]*** Partial cut [23:35:52]*** CUTSNS_PIN = 1 [23:35:52]*** CUTSNS_PIN = 0 [23:35:52]*** Brake cut motor [23:35:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 60 30 47 00 17 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1D 01 00 F4 03 04 00 0B BF 23 67 B6 04 01 00 00 BC 0C FA 88 B3 35 E2 52 [23:35:52]CommunicateWithHost err = 0 [23:35:52]CheckOFDResponse [23:35:52]1017 (14) - 77093643461234 [23:35:52]1041 (16) - 0000000000874662 [23:35:52]1040 (4) - 73125 [23:35:52]1012 (4) - 31.10.2024 17:31 [23:35:52]1206 (1) - 0 [23:35:52]OFD Sender: Remove packet 73125 [23:35:52]ProducePacketName [23:35:52]name=ofd_packets/00073125 [23:35:52]NVStorageDeleteData [23:35:53]Read from MH i2c: 01 [23:35:53]MH_I2C_Read... [23:35:53]*** Stop cut motor [23:35:53]*** Cut end [23:35:53]Read from MH i2c: 01 07 00 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 FF 0F 45 [23:35:53]process_action close_receipt done [23:35:53]requested_data is exist [23:35:53]produce_requested_data [23:35:53]requested_item fm.sn is exist - process it [23:35:53]wFMCommunicate request_size=4 [23:35:53]MH_SAM_APDU [23:35:53]CAPDU: 80 11 00 00 [23:35:53]Write to MH i2c: E2 08 00 2D 04 80 11 00 00 00 00 00 00 AB [23:35:53]Write i2c OK [23:35:53]MH_I2C_Read... [23:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:53]Read from MH i2c: E2 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 17 00 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 17 00 2D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FF [23:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:35:53]wFMCommunicate OK [23:35:53]requested_item fd.num is exist - process it [23:35:53]SAM_PROTO_GetFieldsCounters [23:35:53]wFMCommunicate request_size=4 [23:35:53]MH_SAM_APDU [23:35:53]CAPDU: 80 13 00 00 [23:35:53]Write to MH i2c: E2 08 00 2E 04 80 13 00 00 00 00 00 00 AE [23:35:53]Write i2c OK [23:35:53]MH_I2C_Read... [23:35:53]OFD Sender: No OFD packet to send [23:35:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:53]Read from MH i2c: E2 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 62 00 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 62 00 2E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A5 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [23:35:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A5 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:53]wFMCommunicate OK [23:35:53]SAM_PROTO_GetFieldsCounters done [23:35:53]requested_item shift.num is exist - process it [23:35:53]requested_item shift.opened is exist - process it [23:35:53]req_shift_opened [23:35:53]FM_GetShiftState [23:35:53]SAM_PROTO_GetShiftState [23:35:53]wFMCommunicate request_size=4 [23:35:53]MH_SAM_APDU [23:35:53]CAPDU: 80 13 01 00 [23:35:53]Write to MH i2c: E2 08 00 2F 04 80 13 01 00 00 00 00 00 B0 [23:35:53]Write i2c OK [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 [23:35:53]MH_I2C_Read... [23:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:53]Read from MH i2c: E2 0E 00 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 0E 00 2F 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 59 [23:35:53]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:35:53]wFMCommunicate OK [23:35:53]SAM_PROTO_GetShiftState done [23:35:53]FM_GetShiftState done [23:35:53]req_shift_opened done [23:35:53]requested_item shift.open_date is exist - process it [23:35:53]req_shift_open_date [23:35:53]req_shift_open_date done [23:35:53]produce_requested_data done [23:35:53]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73125,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:35:53]process_action_free close_receipt [23:35:53]json_value_free [23:35:53]json_value_free done [23:35:53]process_json_proto returns [23:35:53]Send response to host [23:35:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73125,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:35:53]free response buf [23:35:53]execute_script done [23:35:53]execute_script returns [23:35:53]free content buf [23:35:53]Sock 10.Close socket [23:35:53]Sock 10.Thread stoped [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:10]recv_with_timeout no data received [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:21]recv_with_timeout no data received [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:44]recv_with_timeout no data received [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:20]accept exits with 9 [23:38:20]New connection [23:38:20]New thread 3066830180 created [23:38:20]Thread 3066686820 joined [23:38:20]Waiting for new connection... [23:38:20] Sock 9.Parse request [23:38:20]Sock 9.Check first char [23:38:20]Sock 9.First char is OK [23:38:20]request: POST /json_proto HTTP/1.0 [23:38:20]Method: POST [23:38:20]URL: /json_proto [23:38:20]Method is POST - this is cgi request [23:38:20]url: /json_proto [23:38:20]query_string will be loaded in cgi processing [23:38:20]execute_cgi json_proto POST (null) [23:38:20]execute_cgi path=json_proto method=POST [23:38:20]POST find Content-Length [23:38:20]Host: 172.17.43.195:8080 [23:38:20]Content-Length: 685 [23:38:20]Content-Type: application/json [23:38:20] [23:38:20]POST finish read [23:38:20]Found Content-Length = 685 [23:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 48.750, "sum" : 1896.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1896.00, "payments": [ { "type": 0, "sum" : 1896.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:20]execute_script... [23:38:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 48.750, "sum" : 1896.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1896.00, "payments": [ { "type": 0, "sum" : 1896.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:20]POST & json_proto [23:38:20]process_json_proto [23:38:20]json parsed OK: [23:38:20]protocol is kg_v1.0 [23:38:20]action value=close_receipt [23:38:20]process_action close_receipt [23:38:20]cmd_close_receipt [23:38:20]MH_GetDate [23:38:20]Write to MH i2c: F0 00 00 30 04 23 [23:38:20]Write i2c OK [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: F0 [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: F0 09 00 [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: F0 09 00 30 04 00 ED 14 24 67 74 2C AD 66 6B [23:38:20]GetLastDocTimeStamp 1730417749 [23:38:20]current date 1730417901 [23:38:20]FM_GetShiftState [23:38:20]SAM_PROTO_GetShiftState [23:38:20]wFMCommunicate request_size=4 [23:38:20]MH_SAM_APDU [23:38:20]CAPDU: 80 13 01 00 [23:38:20]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [23:38:20]Write i2c OK [23:38:20]MH_I2C_Read... [23:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:21]Read from MH i2c: E2 [23:38:21]MH_I2C_Read... [23:38:21]Read from MH i2c: E2 0E 00 [23:38:21]MH_I2C_Read... [23:38:21]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 5B [23:38:21]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:38:21]wFMCommunicate OK [23:38:21]SAM_PROTO_GetShiftState done [23:38:21]FM_GetShiftState done [23:38:21]opened in 1730333258 [23:38:21]opened+sec_in_day 1730419658 [23:38:21]quantity*price = 189637 [23:38:21]sum+1 = 189639 [23:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1896.00 Внесено: 1950.00 СДАЧА: 54.00 НСП 1% : 16.78 НДС 12% : 201.38 Наличными: 1896.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 201 31.10.2024 23:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73126 ФПД: 69729267536241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233821&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73126&fm=69729267536241&tin=02508201610067®Number=0000000000091644&sum=189600 [23:38:22]StoreToDocumentArchive [23:38:22]shift 557 fd 73126 [23:38:22]save to /storage/0557/doc_00073126 [23:38:22]save last doc name /storage/0557/doc_00073126 to /storage/kkm_last_doc_name [23:38:22]save OK [23:38:22]Clear old archive folders... [23:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:38:22]tlvbuf is 006DA790 [23:38:22]SAM_PROTO_ClearQueue [23:38:22]wFMCommunicate request_size=4 [23:38:22]MH_SAM_APDU [23:38:22]CAPDU: 80 09 00 00 [23:38:22]Write to MH i2c: E2 08 00 3E 04 80 09 00 00 00 00 00 00 B4 [23:38:22]Write i2c OK [23:38:22]MH_I2C_Read... [23:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:22]Read from MH i2c: E2 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 03 00 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [23:38:22]RAPDU: 90 00 [23:38:22]wFMCommunicate OK [23:38:22]SAM_PROTO_ClearQueue done [23:38:22]KKMCreateOFDPacket [23:38:22]OFDProtocolAddRootSTLVToBuf [23:38:22]FM_MakeSignedData [23:38:22]FM_MakeSignedData [23:38:22]SAM_PROTO_SignData [23:38:22]wFMCommunicate request_size=4 [23:38:22]MH_SAM_APDU [23:38:22]CAPDU: 80 0D 01 02 [23:38:22]Write to MH i2c: E2 08 00 3F 04 80 0D 01 02 00 00 00 00 BC [23:38:22]Write i2c OK [23:38:22]MH_I2C_Read... [23:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:22]Read from MH i2c: E2 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 03 00 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [23:38:22]RAPDU: 90 00 [23:38:22]wFMCommunicate OK [23:38:22]wFMCommunicate request_size=255 [23:38:22]MH_SAM_APDU [23:38:22]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E BE 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C6 E4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 E4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 4E 00 00 00 00 07 04 06 00 A0 E4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 ED 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A6 1D 01 00 35 04 06 00 3F 6B [23:38:22]Write to MH i2c: E2 02 01 40 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E BE 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C6 E4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 E4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 4E 00 00 00 00 07 04 06 00 A0 E4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 ED 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A6 1D 01 00 35 04 06 00 3F 6B 00 00 0E [23:38:22]Write i2c OK [23:38:22]MH_I2C_Read... [23:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:22]Read from MH i2c: E2 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 03 00 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [23:38:22]RAPDU: 90 00 [23:38:22]wFMCommunicate OK [23:38:22]wFMCommunicate request_size=9 [23:38:22]MH_SAM_APDU [23:38:22]CAPDU: 80 0D 02 02 04 1C 38 D1 71 [23:38:22]Write to MH i2c: E2 0C 00 41 04 80 0D 02 02 04 00 1C 38 D1 71 00 00 5D [23:38:22]Write i2c OK [23:38:22]MH_I2C_Read... [23:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:22]Read from MH i2c: E2 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 03 00 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [23:38:22]RAPDU: 90 00 [23:38:22]wFMCommunicate OK [23:38:22]wFMCommunicate request_size=4 [23:38:22]MH_SAM_APDU [23:38:22]CAPDU: 80 0D 03 02 [23:38:22]Write to MH i2c: E2 08 00 42 04 80 0D 03 02 00 00 00 00 C1 [23:38:22]Write i2c OK [23:38:22]MH_I2C_Read... [23:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:22]Read from MH i2c: E2 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 0B 00 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 0B 00 42 04 00 E4 6B 78 FF D1 82 F6 3E 90 00 0F [23:38:22]RAPDU: E4 6B 78 FF D1 82 F6 3E 90 00 [23:38:22]wFMCommunicate OK [23:38:22]SAM_PROTO_SignData done [23:38:22]FM_MakeSignedData done [23:38:22]CreateOFDProtocolMessage [23:38:22]wFMCommunicate request_size=4 [23:38:22]MH_SAM_APDU [23:38:22]CAPDU: 80 11 00 00 [23:38:22]Write to MH i2c: E2 08 00 43 04 80 11 00 00 00 00 00 00 C1 [23:38:22]Write i2c OK [23:38:22]MH_I2C_Read... [23:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:22]Read from MH i2c: E2 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 17 00 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 17 00 43 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 15 [23:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:38:22]wFMCommunicate OK [23:38:22]CreateOFDProtocolMessage done [23:38:22]OFDSenderStorePacket 73126 [23:38:22]StoreOFDPacket docnum=73126 [23:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 1B 25 06 01 5E 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E BE 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C6 E4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 E4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 4E 00 00 00 00 07 04 06 00 A0 E4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 ED 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A6 1D 01 00 35 04 06 00 3F 6B 1C 38 D1 71 E4 6B 78 FF D1 82 F6 3E [23:38:22]CheckFolder [23:38:22]dirname=/storage/ofd_packets [23:38:22]CheckFolder done [23:38:22]ProducePacketName [23:38:22]name=ofd_packets/00073126 [23:38:22]NVStorageSaveData ofd_packets/00073126 [23:38:22]File name is /storage/ofd_packets/00073126 [23:38:22]Write 300 bytes [23:38:22]NVStorageSaveData done [23:38:22]OFDSenderStorePacket done [23:38:22]KKMCreateOFDPacket done [23:38:22]NVStorageSaveData kkm_last_timestamp [23:38:22]File name is /storage/kkm_last_timestamp [23:38:22]Write 4 bytes [23:38:22]NVStorageSaveData done [23:38:22]ExternCall_PrintAddStr [23:38:22]wPrintStart [23:38:22]Write to MH i2c: 01 00 00 44 04 48 [23:38:22]Write i2c OK [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: 01 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: 01 07 00 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 FF 0F 5D [23:38:22]RasterBufferAndPrint [23:38:22]line Счет N : (1)952725 [23:38:22]line ИНН: 02508201610067 [23:38:22]line Контрольно-Кассовый Чек [23:38:22]line ПРОДАЖА [23:38:22]line ТРК (МРК, ГНК) : 71 [23:38:22]line Товар: 2711190000 [23:38:22]line ГАЗ-К-3 [23:38:22]line 48.750 * 38.90 [23:38:22]line = 1896.38 [23:38:22]line НДС 12% НСП 1% [23:38:22]line > о реализуемом товаре [23:38:22]line ОКРУГЛЕНИЕ: -0.38 [23:38:22]line ИТОГО: 1896.00 [23:38:22]line Внесено: 1950.00 [23:38:22]line СДАЧА: 54.00 [23:38:22]line НСП 1% : 16.78 [23:38:22]line НДС 12% : 201.38 [23:38:22]line Наличными: 1896.00 [23:38:22]line Безнал.: 0.00 [23:38:22]line Место: АЗС № 113 "Партнер Нефть" [23:38:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:38:22]line СНО: Общий режим [23:38:22]line Чек 201 31.10.2024 23:38 [23:38:22]line Смена: 557 ФФД: 1.0 [23:38:22]line ЗНМ: 0300000087 [23:38:22]line РНМ: 0000000000091644 [23:38:22]line Версия ККМ: 001 [23:38:22]line ФМ: 0000000000874662 [23:38:22]line ФД: 73126 [23:38:22]line ФПД: 69729267536241 [23:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233821&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73126&fm=69729267536241&tin=02508201610067®Number=0000000000091644&sum=189600 [23:38:22]written 0, free lines is 4095 [23:38:22]OFD Sender: Processing packet 73126 [packets to send 282, broken 281] [23:38:22]ProducePacketName [23:38:22]name=ofd_packets/00073126 [23:38:22]OFD Sender: To server: pG, [23:38:22]CommunicateWithHost lk.salyk.kg:30040 [23:38:22]ConnectInit lk.salyk.kg [23:38:23]Write to MH i2c: 01 00 00 6F 04 73 [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: 01 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: 01 07 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 E4 0C 6A [23:38:23]RasterBufferAndPrint [23:38:23]line [23:38:23]line [23:38:23]line [23:38:23]line [23:38:23]line [23:38:23]written 0, free lines is 3306 [23:38:23]MH_Cut [23:38:23]Write to MH i2c: D1 01 00 76 04 01 4C [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: D1 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: D1 01 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: D1 01 00 76 04 00 4B [23:38:23]Write to MH i2c: 01 00 00 77 04 7B [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]Connected sock=11 [23:38:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 1B 25 06 01 5E 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E BE 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C6 E4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 E4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 4E 00 00 00 00 07 04 06 00 A0 E4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 ED 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A6 1D 01 00 35 04 06 00 3F 6B 1C 38 D1 71 E4 6B 78 FF D1 82 F6 3E [23:38:23]*** Cut start [23:38:23]*** Partial cut [23:38:23]*** CUTSNS_PIN = 1 [23:38:23]*** CUTSNS_PIN = 0 [23:38:24]*** Brake cut motor [23:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0E BF 47 00 10 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A6 1D 01 00 F4 03 04 00 A2 BF 23 67 B6 04 01 00 00 01 21 C3 98 B3 49 37 1F [23:38:24]CommunicateWithHost err = 0 [23:38:24]CheckOFDResponse [23:38:24]1017 (14) - 77093643461234 [23:38:24]1041 (16) - 0000000000874662 [23:38:24]1040 (4) - 73126 [23:38:24]1012 (4) - 31.10.2024 17:34 [23:38:24]1206 (1) - 0 [23:38:24]OFD Sender: Remove packet 73126 [23:38:24]ProducePacketName [23:38:24]name=ofd_packets/00073126 [23:38:24]NVStorageDeleteData [23:38:24]Read from MH i2c: 01 [23:38:24]MH_I2C_Read... [23:38:24]*** Stop cut motor [23:38:24]*** Cut end [23:38:24]Read from MH i2c: 01 07 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: 01 07 00 77 04 00 00 00 00 00 FF 0F 90 [23:38:24]process_action close_receipt done [23:38:24]requested_data is exist [23:38:24]produce_requested_data [23:38:24]requested_item fm.sn is exist - process it [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 11 00 00 [23:38:24]Write to MH i2c: E2 08 00 78 04 80 11 00 00 00 00 00 00 F6 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 17 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 17 00 78 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 4A [23:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:38:24]wFMCommunicate OK [23:38:24]requested_item fd.num is exist - process it [23:38:24]SAM_PROTO_GetFieldsCounters [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 13 00 00 [23:38:24]Write to MH i2c: E2 08 00 79 04 80 13 00 00 00 00 00 00 F9 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 62 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 62 00 79 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A6 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [23:38:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A6 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:24]wFMCommunicate OK [23:38:24]SAM_PROTO_GetFieldsCounters done [23:38:24]requested_item shift.num is exist - process it [23:38:24]requested_item shift.opened is exist - process it [23:38:24]req_shift_opened [23:38:24]FM_GetShiftState [23:38:24]SAM_PROTO_GetShiftState [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 13 01 00 [23:38:24]Write to MH i2c: E2 08 00 7A 04 80 13 01 00 00 00 00 00 FB [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:24]Read from MH i2c: E2 0E 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 0E 00 7A 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A4 [23:38:24]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:38:24]wFMCommunicate OK [23:38:24]SAM_PROTO_GetShiftState done [23:38:24]FM_GetShiftState done [23:38:24]req_shift_opened done [23:38:24]requested_item shift.open_date is exist - process it [23:38:24]req_shift_open_date [23:38:24]req_shift_open_date done [23:38:24]produce_requested_data done [23:38:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73126,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:38:24]process_action_free close_receipt [23:38:24]json_value_free [23:38:24]json_value_free done [23:38:24]process_json_proto returns [23:38:24]Send response to host [23:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73126,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:38:24]free response buf [23:38:24]execute_script done [23:38:24]execute_script returns [23:38:24]free content buf [23:38:24]Sock 9.Close socket [23:38:24]Sock 9.Thread stoped [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:33]recv_with_timeout no data received [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:48]recv_with_timeout no data received [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]recv_with_timeout no data received [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:19]recv_with_timeout no data received [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:39:57]recv_with_timeout no data received [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:07]recv_with_timeout no data received [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:42]recv_with_timeout no data received [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:40]recv_with_timeout no data received [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:41:59]recv_with_timeout no data received [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:50]recv_with_timeout no data received [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:07]recv_with_timeout no data received [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:17]recv_with_timeout no data received [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:33]accept exits with 10 [23:45:33]New connection [23:45:33]New thread 3066686820 created [23:45:33]Thread 3066830180 joined [23:45:33]Waiting for new connection... [23:45:33] Sock 10.Parse request [23:45:33]Sock 10.Check first char [23:45:33]Sock 10.First char is OK [23:45:33]request: POST /json_proto HTTP/1.0 [23:45:33]Method: POST [23:45:33]URL: /json_proto [23:45:33]Method is POST - this is cgi request [23:45:33]url: /json_proto [23:45:33]query_string will be loaded in cgi processing [23:45:33]execute_cgi json_proto POST (null) [23:45:33]execute_cgi path=json_proto method=POST [23:45:33]POST find Content-Length [23:45:33]Host: 172.17.43.195:8080 [23:45:33]Content-Length: 682 [23:45:33]Content-Type: application/json [23:45:33] [23:45:33]POST finish read [23:45:33]Found Content-Length = 682 [23:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:33]execute_script... [23:45:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:33]POST & json_proto [23:45:33]process_json_proto [23:45:33]json parsed OK: [23:45:33]protocol is kg_v1.0 [23:45:33]action value=close_receipt [23:45:33]process_action close_receipt [23:45:33]cmd_close_receipt [23:45:33]MH_GetDate [23:45:33]Write to MH i2c: F0 00 00 7B 04 6E [23:45:33]Write i2c OK [23:45:33]MH_I2C_Read... [23:45:33]Read from MH i2c: F0 [23:45:33]MH_I2C_Read... [23:45:33]Read from MH i2c: F0 09 00 [23:45:33]MH_I2C_Read... [23:45:33]Read from MH i2c: F0 09 00 7B 04 00 9D 16 24 67 74 2C AD 66 68 [23:45:33]GetLastDocTimeStamp 1730417901 [23:45:33]current date 1730418333 [23:45:33]FM_GetShiftState [23:45:33]SAM_PROTO_GetShiftState [23:45:33]wFMCommunicate request_size=4 [23:45:33]MH_SAM_APDU [23:45:33]CAPDU: 80 13 01 00 [23:45:33]Write to MH i2c: E2 08 00 7C 04 80 13 01 00 00 00 00 00 FD [23:45:33]Write i2c OK [23:45:33]MH_I2C_Read... [23:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:33]Read from MH i2c: E2 [23:45:33]MH_I2C_Read... [23:45:33]Read from MH i2c: E2 0E 00 [23:45:33]MH_I2C_Read... [23:45:33]Read from MH i2c: E2 0E 00 7C 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 A6 [23:45:33]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:45:33]wFMCommunicate OK [23:45:33]SAM_PROTO_GetShiftState done [23:45:33]FM_GetShiftState done [23:45:33]opened in 1730333258 [23:45:33]opened+sec_in_day 1730419658 [23:45:33]quantity*price = 100015 [23:45:33]sum+1 = 100017 [23:45:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 202 31.10.2024 23:45 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73127 ФПД: 204607145632546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234533&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73127&fm=204607145632546&tin=02508201610067®Number=0000000000091644&sum=100000 [23:45:34]StoreToDocumentArchive [23:45:34]shift 557 fd 73127 [23:45:34]save to /storage/0557/doc_00073127 [23:45:34]save last doc name /storage/0557/doc_00073127 to /storage/kkm_last_doc_name [23:45:34]save OK [23:45:34]Clear old archive folders... [23:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:45:34]tlvbuf is 005F7290 [23:45:34]SAM_PROTO_ClearQueue [23:45:34]wFMCommunicate request_size=4 [23:45:34]MH_SAM_APDU [23:45:34]CAPDU: 80 09 00 00 [23:45:34]Write to MH i2c: E2 08 00 89 04 80 09 00 00 00 00 00 00 FF [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:34]Read from MH i2c: E2 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 03 00 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [23:45:34]RAPDU: 90 00 [23:45:34]wFMCommunicate OK [23:45:34]SAM_PROTO_ClearQueue done [23:45:34]KKMCreateOFDPacket [23:45:34]OFDProtocolAddRootSTLVToBuf [23:45:34]FM_MakeSignedData [23:45:34]FM_MakeSignedData [23:45:34]SAM_PROTO_SignData [23:45:34]wFMCommunicate request_size=4 [23:45:34]MH_SAM_APDU [23:45:34]CAPDU: 80 0D 01 02 [23:45:34]Write to MH i2c: E2 08 00 8A 04 80 0D 01 02 00 00 00 00 07 [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:34]Read from MH i2c: E2 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 03 00 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [23:45:34]RAPDU: 90 00 [23:45:34]wFMCommunicate OK [23:45:34]wFMCommunicate request_size=255 [23:45:34]MH_SAM_APDU [23:45: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9D 16 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1D 01 00 35 04 06 00 BA [23:45:34]Write to MH i2c: E2 02 01 8B 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9D 16 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1D 01 00 35 04 06 00 BA 00 00 46 [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:34]Read from MH i2c: E2 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 03 00 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [23:45:34]RAPDU: 90 00 [23:45:34]wFMCommunicate OK [23:45:34]wFMCommunicate request_size=10 [23:45:34]MH_SAM_APDU [23:45:34]CAPDU: 80 0D 02 02 05 16 D0 3B E3 22 [23:45:34]Write to MH i2c: E2 0D 00 8C 04 80 0D 02 02 05 00 16 D0 3B E3 22 00 00 3A [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:34]Read from MH i2c: E2 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 03 00 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [23:45:34]RAPDU: 90 00 [23:45:34]wFMCommunicate OK [23:45:34]wFMCommunicate request_size=4 [23:45:34]MH_SAM_APDU [23:45:34]CAPDU: 80 0D 03 02 [23:45:34]Write to MH i2c: E2 08 00 8D 04 80 0D 03 02 00 00 00 00 0C [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:34]Read from MH i2c: E2 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 0B 00 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: E2 0B 00 8D 04 00 47 57 E0 D0 37 22 2D AF 90 00 90 [23:45:34]RAPDU: 47 57 E0 D0 37 22 2D AF 90 00 [23:45:34]wFMCommunicate OK [23:45:34]SAM_PROTO_SignData done [23:45:34]FM_MakeSignedData done [23:45:34]CreateOFDProtocolMessage [23:45:34]wFMCommunicate request_size=4 [23:45:34]MH_SAM_APDU [23:45:34]CAPDU: 80 11 00 00 [23:45:34]Write to MH i2c: E2 08 00 8E 04 80 11 00 00 00 00 00 00 0C [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:35]Read from MH i2c: E2 [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: E2 17 00 [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: E2 17 00 8E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 60 [23:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:45:35]wFMCommunicate OK [23:45:35]CreateOFDProtocolMessage done [23:45:35]OFDSenderStorePacket 73127 [23:45:35]StoreOFDPacket docnum=73127 [23:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 80 B9 07 01 63 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9D 16 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1D 01 00 35 04 06 00 BA 16 D0 3B E3 22 47 57 E0 D0 37 22 2D AF [23:45:35]CheckFolder [23:45:35]dirname=/storage/ofd_packets [23:45:35]CheckFolder done [23:45:35]ProducePacketName [23:45:35]name=ofd_packets/00073127 [23:45:35]NVStorageSaveData ofd_packets/00073127 [23:45:35]File name is /storage/ofd_packets/00073127 [23:45:35]Write 301 bytes [23:45:35]NVStorageSaveData done [23:45:35]OFDSenderStorePacket done [23:45:35]KKMCreateOFDPacket done [23:45:35]NVStorageSaveData kkm_last_timestamp [23:45:35]File name is /storage/kkm_last_timestamp [23:45:35]Write 4 bytes [23:45:35]NVStorageSaveData done [23:45:35]ExternCall_PrintAddStr [23:45:35]wPrintStart [23:45:35]Write to MH i2c: 01 00 00 8F 04 93 [23:45:35]Write i2c OK [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: 01 [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: 01 07 00 [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: 01 07 00 8F 04 00 00 00 00 00 FF 0F A8 [23:45:35]RasterBufferAndPrint [23:45:35]line Счет N : (1)952728 [23:45:35]line ИНН: 02508201610067 [23:45:35]line Контрольно-Кассовый Чек [23:45:35]line ПРОДАЖА [23:45:35]line ТРК (МРК, ГНК) : 53 [23:45:35]line Товар: 2710124130 [23:45:35]line Аи-92-К-5 [23:45:35]line 14.950 * 66.90 [23:45:35]line = 1000.16 [23:45:35]line НДС 12% НСП 1% [23:45:35]line > о реализуемом товаре [23:45:35]line ОКРУГЛЕНИЕ: -0.16 [23:45:35]line ИТОГО: 1000.00 [23:45:35]line Внесено: 1000.00 [23:45:35]line СДАЧА: 0.00 [23:45:35]line НСП 1% : 8.85 [23:45:35]line НДС 12% : 106.21 [23:45:35]line Наличными: 1000.00 [23:45:35]line Безнал.: 0.00 [23:45:35]line Место: АЗС № 113 "Партнер Нефть" [23:45:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:45:35]line СНО: Общий режим [23:45:35]line Чек 202 31.10.2024 23:45 [23:45:35]line Смена: 557 ФФД: 1.0 [23:45:35]line ЗНМ: 0300000087 [23:45:35]line РНМ: 0000000000091644 [23:45:35]line Версия ККМ: 001 [23:45:35]line ФМ: 0000000000874662 [23:45:35]line ФД: 73127 [23:45:35]line ФПД: 204607145632546 [23:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234533&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73127&fm=204607145632546&tin=02508201610067®Number=0000000000091644&sum=100000 [23:45:35]OFD Sender: Processing packet 73127 [packets to send 282, broken 281] [23:45:35]ProducePacketName [23:45:35]name=ofd_packets/00073127 [23:45:35]OFD Sender: To server: pG, [23:45:35]CommunicateWithHost lk.salyk.kg:30040 [23:45:35]ConnectInit lk.salyk.kg [23:45:35]written 0, free lines is 4095 [23:45:35]Write to MH i2c: 01 00 00 BA 04 BE [23:45:35]Write i2c OK [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: 01 [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: 01 07 00 [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 E4 0C B5 [23:45:35]RasterBufferAndPrint [23:45:35]line [23:45:35]line [23:45:35]line [23:45:35]line [23:45:35]line [23:45:35]written 0, free lines is 3306 [23:45:35]MH_Cut [23:45:35]Write to MH i2c: D1 01 00 C1 04 01 97 [23:45:35]Write i2c OK [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: D1 [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: D1 01 00 [23:45:35]MH_I2C_Read... [23:45:35]Read from MH i2c: D1 01 00 C1 04 00 96 [23:45:35]Write to MH i2c: 01 00 00 C2 04 C6 [23:45:35]Write i2c OK [23:45:35]MH_I2C_Read... [23:45:36]*** Cut start [23:45:36]*** Partial cut [23:45:36]*** CUTSNS_PIN = 1 [23:45:36]*** CUTSNS_PIN = 0 [23:45:36]*** Brake cut motor [23:45:37]Read from MH i2c: 01 [23:45:37]MH_I2C_Read... [23:45:37]*** Stop cut motor [23:45:37]*** Cut end [23:45:37]Read from MH i2c: 01 07 00 [23:45:37]MH_I2C_Read... [23:45:37]Read from MH i2c: 01 07 00 C2 04 00 00 00 00 00 FF 0F DB [23:45:37]process_action close_receipt done [23:45:37]requested_data is exist [23:45:37]produce_requested_data [23:45:37]requested_item fm.sn is exist - process it [23:45:37]wFMCommunicate request_size=4 [23:45:37]MH_SAM_APDU [23:45:37]CAPDU: 80 11 00 00 [23:45:37]Write to MH i2c: E2 08 00 C3 04 80 11 00 00 00 00 00 00 41 [23:45:37]Write i2c OK [23:45:37]MH_I2C_Read... [23:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:37]Read from MH i2c: E2 [23:45:37]MH_I2C_Read... [23:45:37]Read from MH i2c: E2 17 00 [23:45:37]MH_I2C_Read... [23:45:37]Read from MH i2c: E2 17 00 C3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 95 [23:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:45:37]wFMCommunicate OK [23:45:37]requested_item fd.num is exist - process it [23:45:37]SAM_PROTO_GetFieldsCounters [23:45:37]wFMCommunicate request_size=4 [23:45:37]MH_SAM_APDU [23:45:37]CAPDU: 80 13 00 00 [23:45:37]Write to MH i2c: E2 08 00 C4 04 80 13 00 00 00 00 00 00 44 [23:45:37]Write i2c OK [23:45:37]MH_I2C_Read... [23:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:37]Read from MH i2c: E2 [23:45:37]MH_I2C_Read... [23:45:37]Read from MH i2c: E2 62 00 [23:45:37]MH_I2C_Read... [23:45:37]Read from MH i2c: E2 62 00 C4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A7 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [23:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A7 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:37]wFMCommunicate OK [23:45:37]SAM_PROTO_GetFieldsCounters done [23:45:37]requested_item shift.num is exist - process it [23:45:37]requested_item shift.opened is exist - process it [23:45:37]req_shift_opened [23:45:37]FM_GetShiftState [23:45:37]SAM_PROTO_GetShiftState [23:45:37]wFMCommunicate request_size=4 [23:45:37]MH_SAM_APDU [23:45:37]CAPDU: 80 13 01 00 [23:45:37]Write to MH i2c: E2 08 00 C5 04 80 13 01 00 00 00 00 00 46 [23:45:37]Write i2c OK [23:45:37]MH_I2C_Read... [23:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:37]Read from MH i2c: E2 [23:45:37]MH_I2C_Read... [23:45:37]Read from MH i2c: E2 0E 00 [23:45:37]MH_I2C_Read... [23:45:37]Read from MH i2c: E2 0E 00 C5 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 EF [23:45:37]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:45:37]wFMCommunicate OK [23:45:37]SAM_PROTO_GetShiftState done [23:45:37]FM_GetShiftState done [23:45:37]req_shift_opened done [23:45:37]requested_item shift.open_date is exist - process it [23:45:37]req_shift_open_date [23:45:37]req_shift_open_date done [23:45:37]produce_requested_data done [23:45:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73127,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:45:37]process_action_free close_receipt [23:45:37]json_value_free [23:45:37]json_value_free done [23:45:37]process_json_proto returns [23:45:37]Send response to host [23:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73127,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:45:37]free response buf [23:45:37]execute_script done [23:45:37]execute_script returns [23:45:37]free content buf [23:45:37]Sock 10.Close socket [23:45:37]Sock 10.Thread stoped [23:45:37]recv_with_timeout no data received [23:45:40]ConnectInit Can't take IP for lk.salyk.kg [23:45:40]CommunicateWithHost connect error [23:45:40]CommunicateWithHost err = -1 [23:45:40]OFD Sender: Server communicate error [23:45:45]OFD Sender: Processing packet 73127 [packets to send 282, broken 281] [23:45:45]ProducePacketName [23:45:45]name=ofd_packets/00073127 [23:45:45]OFD Sender: To server: pG, [23:45:45]CommunicateWithHost lk.salyk.kg:30040 [23:45:45]ConnectInit lk.salyk.kg [23:45:47]Connected sock=10 [23:45:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 80 B9 07 01 63 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9D 16 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1D 01 00 35 04 06 00 BA 16 D0 3B E3 22 47 57 E0 D0 37 22 2D AF [23:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 09 22 47 00 77 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1D 01 00 F4 03 04 00 5F C1 23 67 B6 04 01 00 00 74 A8 48 AD CB FE 67 E4 [23:45:49]CommunicateWithHost err = 0 [23:45:49]CheckOFDResponse [23:45:49]1017 (14) - 77093643461234 [23:45:49]1041 (16) - 0000000000874662 [23:45:49]1040 (4) - 73127 [23:45:49]1012 (4) - 31.10.2024 17:41 [23:45:49]1206 (1) - 0 [23:45:49]OFD Sender: Remove packet 73127 [23:45:49]ProducePacketName [23:45:49]name=ofd_packets/00073127 [23:45:49]NVStorageDeleteData [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:07]recv_with_timeout no data received [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:58]accept exits with 9 [23:46:58]New connection [23:46:58]New thread 3066830180 created [23:46:58]Thread 3066686820 joined [23:46:58]Waiting for new connection... [23:46:58] Sock 9.Parse request [23:46:58]Sock 9.Check first char [23:46:58]Sock 9.First char is OK [23:46:58]request: POST /json_proto HTTP/1.0 [23:46:58]Method: POST [23:46:58]URL: /json_proto [23:46:58]Method is POST - this is cgi request [23:46:58]url: /json_proto [23:46:58]query_string will be loaded in cgi processing [23:46:58]execute_cgi json_proto POST (null) [23:46:58]execute_cgi path=json_proto method=POST [23:46:58]POST find Content-Length [23:46:58]Host: 172.17.43.195:8080 [23:46:58]Content-Length: 685 [23:46:58]Content-Type: application/json [23:46:58] [23:46:58]POST finish read [23:46:58]Found Content-Length = 685 [23:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:58]execute_script... [23:46:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:58]POST & json_proto [23:46:58]process_json_proto [23:46:58]json parsed OK: [23:46:58]protocol is kg_v1.0 [23:46:58]action value=close_receipt [23:46:58]process_action close_receipt [23:46:58]cmd_close_receipt [23:46:58]MH_GetDate [23:46:58]Write to MH i2c: F0 00 00 C6 04 B9 [23:46:58]Write i2c OK [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: F0 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: F0 09 00 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: F0 09 00 C6 04 00 F3 16 24 67 74 2C AD 66 09 [23:46:58]GetLastDocTimeStamp 1730418333 [23:46:58]current date 1730418419 [23:46:58]FM_GetShiftState [23:46:58]SAM_PROTO_GetShiftState [23:46:58]wFMCommunicate request_size=4 [23:46:58]MH_SAM_APDU [23:46:58]CAPDU: 80 13 01 00 [23:46:58]Write to MH i2c: E2 08 00 C7 04 80 13 01 00 00 00 00 00 48 [23:46:58]Write i2c OK [23:46:58]MH_I2C_Read... [23:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:59]Read from MH i2c: E2 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 0E 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 0E 00 C7 04 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 F1 [23:46:59]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:46:59]wFMCommunicate OK [23:46:59]SAM_PROTO_GetShiftState done [23:46:59]FM_GetShiftState done [23:46:59]opened in 1730333258 [23:46:59]opened+sec_in_day 1730419658 [23:46:59]quantity*price = 200023 [23:46:59]sum+1 = 200025 [23:46:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 203 31.10.2024 23:46 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73128 ФПД: 200301857734755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234659&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73128&fm=200301857734755&tin=02508201610067®Number=0000000000091644&sum=200000 [23:47:00]StoreToDocumentArchive [23:47:00]shift 557 fd 73128 [23:47:00]save to /storage/0557/doc_00073128 [23:47:00]save last doc name /storage/0557/doc_00073128 to /storage/kkm_last_doc_name [23:47:00]save OK [23:47:00]Clear old archive folders... [23:47:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:47:00]tlvbuf is 005D8130 [23:47:00]SAM_PROTO_ClearQueue [23:47:00]wFMCommunicate request_size=4 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 09 00 00 [23:47:00]Write to MH i2c: E2 08 00 D4 04 80 09 00 00 00 00 00 00 4A [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [23:47:00]RAPDU: 90 00 [23:47:00]wFMCommunicate OK [23:47:00]SAM_PROTO_ClearQueue done [23:47:00]KKMCreateOFDPacket [23:47:00]OFDProtocolAddRootSTLVToBuf [23:47:00]FM_MakeSignedData [23:47:00]FM_MakeSignedData [23:47:00]SAM_PROTO_SignData [23:47:00]wFMCommunicate request_size=4 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 0D 01 02 [23:47:00]Write to MH i2c: E2 08 00 D5 04 80 0D 01 02 00 00 00 00 52 [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [23:47:00]RAPDU: 90 00 [23:47:00]wFMCommunicate OK [23:47:00]wFMCommunicate request_size=255 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 F3 16 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A8 1D 01 00 35 04 06 00 B6 2C [23:47:00]Write to MH i2c: E2 02 01 D6 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 F3 16 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A8 1D 01 00 35 04 06 00 B6 2C 00 00 5F [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [23:47:00]RAPDU: 90 00 [23:47:00]wFMCommunicate OK [23:47:00]wFMCommunicate request_size=9 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 0D 02 02 04 69 14 00 63 [23:47:00]Write to MH i2c: E2 0C 00 D7 04 80 0D 02 02 04 00 69 14 00 63 00 00 3D [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [23:47:00]RAPDU: 90 00 [23:47:00]wFMCommunicate OK [23:47:00]wFMCommunicate request_size=4 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 0D 03 02 [23:47:00]Write to MH i2c: E2 08 00 D8 04 80 0D 03 02 00 00 00 00 57 [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 0B 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 0B 00 D8 04 00 9B 82 D2 97 C6 FB 15 B9 90 00 6D [23:47:00]RAPDU: 9B 82 D2 97 C6 FB 15 B9 90 00 [23:47:00]wFMCommunicate OK [23:47:00]SAM_PROTO_SignData done [23:47:00]FM_MakeSignedData done [23:47:00]CreateOFDProtocolMessage [23:47:00]wFMCommunicate request_size=4 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 11 00 00 [23:47:00]Write to MH i2c: E2 08 00 D9 04 80 11 00 00 00 00 00 00 57 [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 17 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 17 00 D9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AB [23:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:47:00]wFMCommunicate OK [23:47:00]CreateOFDProtocolMessage done [23:47:00]OFDSenderStorePacket 73128 [23:47:00]StoreOFDPacket docnum=73128 [23:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 46 5C 06 01 9B 16 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 F3 16 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A8 1D 01 00 35 04 06 00 B6 2C 69 14 00 63 9B 82 D2 97 C6 FB 15 B9 [23:47:00]CheckFolder [23:47:00]dirname=/storage/ofd_packets [23:47:00]CheckFolder done [23:47:00]ProducePacketName [23:47:00]name=ofd_packets/00073128 [23:47:00]NVStorageSaveData ofd_packets/00073128 [23:47:00]File name is /storage/ofd_packets/00073128 [23:47:00]Write 300 bytes [23:47:00]NVStorageSaveData done [23:47:00]OFDSenderStorePacket done [23:47:00]KKMCreateOFDPacket done [23:47:00]NVStorageSaveData kkm_last_timestamp [23:47:00]File name is /storage/kkm_last_timestamp [23:47:00]Write 4 bytes [23:47:00]NVStorageSaveData done [23:47:00]ExternCall_PrintAddStr [23:47:00]wPrintStart [23:47:00]Write to MH i2c: 01 00 00 DA 04 DE [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: 01 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: 01 07 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: 01 07 00 DA 04 00 00 00 00 00 FF 0F F3 [23:47:00]RasterBufferAndPrint [23:47:00]line Счет N : (1)952727 [23:47:00]line ИНН: 02508201610067 [23:47:00]line Контрольно-Кассовый Чек [23:47:00]line ПРОДАЖА [23:47:00]line ТРК (МРК, ГНК) : 71 [23:47:00]line Товар: 2711190000 [23:47:00]line ГАЗ-К-3 [23:47:00]line 51.420 * 38.90 [23:47:00]line = 2000.24 [23:47:00]line НДС 12% НСП 1% [23:47:00]line > о реализуемом товаре [23:47:00]line ОКРУГЛЕНИЕ: -0.24 [23:47:00]line ИТОГО: 2000.00 [23:47:00]line Внесено: 2000.00 [23:47:00]line СДАЧА: 0.00 [23:47:00]line НСП 1% : 17.70 [23:47:00]line НДС 12% : 212.41 [23:47:00]line Наличными: 2000.00 [23:47:00]line Безнал.: 0.00 [23:47:00]line Место: АЗС № 113 "Партнер Нефть" [23:47:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:47:00]line СНО: Общий режим [23:47:00]line Чек 203 31.10.2024 23:46 [23:47:00]line Смена: 557 ФФД: 1.0 [23:47:00]line ЗНМ: 0300000087 [23:47:00]line РНМ: 0000000000091644 [23:47:00]line Версия ККМ: 001 [23:47:00]line ФМ: 0000000000874662 [23:47:00]line ФД: 73128 [23:47:00]line ФПД: 200301857734755 [23:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234659&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73128&fm=200301857734755&tin=02508201610067®Number=0000000000091644&sum=200000 [23:47:00]OFD Sender: Processing packet 73128 [packets to send 282, broken 281] [23:47:00]ProducePacketName [23:47:00]name=ofd_packets/00073128 [23:47:00]OFD Sender: To server: pG, [23:47:00]CommunicateWithHost lk.salyk.kg:30040 [23:47:00]ConnectInit lk.salyk.kg [23:47:00]written 0, free lines is 4095 [23:47:01]Write to MH i2c: 01 00 00 05 05 0A [23:47:01]Write i2c OK [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: 01 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: 01 07 00 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 D8 0C F5 [23:47:01]RasterBufferAndPrint [23:47:01]line [23:47:01]line [23:47:01]line [23:47:01]line [23:47:01]line [23:47:01]written 0, free lines is 3293 [23:47:01]MH_Cut [23:47:01]Write to MH i2c: D1 01 00 0C 05 01 E3 [23:47:01]Write i2c OK [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: D1 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: D1 01 00 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: D1 01 00 0C 05 00 E2 [23:47:01]Write to MH i2c: 01 00 00 0D 05 12 [23:47:01]Write i2c OK [23:47:01]MH_I2C_Read... [23:47:02]*** Cut start [23:47:02]*** Partial cut [23:47:02]*** CUTSNS_PIN = 1 [23:47:02]*** CUTSNS_PIN = 0 [23:47:02]*** Brake cut motor [23:47:02]Read from MH i2c: 01 [23:47:02]MH_I2C_Read... [23:47:02]*** Stop cut motor [23:47:02]*** Cut end [23:47:02]Read from MH i2c: 01 07 00 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: 01 07 00 0D 05 00 00 00 00 00 FF 0F 27 [23:47:02]process_action close_receipt done [23:47:02]requested_data is exist [23:47:02]produce_requested_data [23:47:02]requested_item fm.sn is exist - process it [23:47:02]wFMCommunicate request_size=4 [23:47:02]MH_SAM_APDU [23:47:02]CAPDU: 80 11 00 00 [23:47:02]Write to MH i2c: E2 08 00 0E 05 80 11 00 00 00 00 00 00 8D [23:47:02]Write i2c OK [23:47:02]MH_I2C_Read... [23:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:02]Read from MH i2c: E2 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 17 00 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 17 00 0E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E1 [23:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:47:02]wFMCommunicate OK [23:47:02]requested_item fd.num is exist - process it [23:47:02]SAM_PROTO_GetFieldsCounters [23:47:02]wFMCommunicate request_size=4 [23:47:02]MH_SAM_APDU [23:47:02]CAPDU: 80 13 00 00 [23:47:02]Write to MH i2c: E2 08 00 0F 05 80 13 00 00 00 00 00 00 90 [23:47:02]Write i2c OK [23:47:02]MH_I2C_Read... [23:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:03]Read from MH i2c: E2 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 62 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 62 00 0F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A8 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [23:47:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A8 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:03]wFMCommunicate OK [23:47:03]SAM_PROTO_GetFieldsCounters done [23:47:03]requested_item shift.num is exist - process it [23:47:03]requested_item shift.opened is exist - process it [23:47:03]req_shift_opened [23:47:03]FM_GetShiftState [23:47:03]SAM_PROTO_GetShiftState [23:47:03]wFMCommunicate request_size=4 [23:47:03]MH_SAM_APDU [23:47:03]CAPDU: 80 13 01 00 [23:47:03]Write to MH i2c: E2 08 00 10 05 80 13 01 00 00 00 00 00 92 [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:03]Read from MH i2c: E2 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 0E 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 0E 00 10 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 3B [23:47:03]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:47:03]wFMCommunicate OK [23:47:03]SAM_PROTO_GetShiftState done [23:47:03]FM_GetShiftState done [23:47:03]req_shift_opened done [23:47:03]requested_item shift.open_date is exist - process it [23:47:03]req_shift_open_date [23:47:03]req_shift_open_date done [23:47:03]produce_requested_data done [23:47:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73128,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:47:03]process_action_free close_receipt [23:47:03]json_value_free [23:47:03]json_value_free done [23:47:03]process_json_proto returns [23:47:03]Send response to host [23:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73128,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:47:03]free response buf [23:47:03]execute_script done [23:47:03]execute_script returns [23:47:03]free content buf [23:47:03]Sock 9.Close socket [23:47:03]Sock 9.Thread stoped [23:47:06]Connected sock=11 [23:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 46 5C 06 01 9B 16 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 F3 16 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A8 1D 01 00 35 04 06 00 B6 2C 69 14 00 63 9B 82 D2 97 C6 FB 15 B9 [23:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A1 26 47 00 C3 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A8 1D 01 00 F4 03 04 00 AD C1 23 67 B6 04 01 00 00 60 FB 65 43 F0 FE 05 61 [23:47:06]CommunicateWithHost err = 0 [23:47:06]CheckOFDResponse [23:47:06]1017 (14) - 77093643461234 [23:47:06]1041 (16) - 0000000000874662 [23:47:06]1040 (4) - 73128 [23:47:06]1012 (4) - 31.10.2024 17:43 [23:47:06]1206 (1) - 0 [23:47:06]OFD Sender: Remove packet 73128 [23:47:06]ProducePacketName [23:47:06]name=ofd_packets/00073128 [23:47:06]NVStorageDeleteData [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:16]recv_with_timeout no data received [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]recv_with_timeout no data received [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:19]recv_with_timeout no data received [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:43]recv_with_timeout no data received [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:54]recv_with_timeout no data received [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:37]recv_with_timeout no data received [23:49:42]OFD Sender: No OFD packet to send [23:49:45]accept exits with 7 [23:49:45]New connection [23:49:45]New thread 3066686820 created [23:49:45]Thread 3066830180 joined [23:49:45]Waiting for new connection... [23:49:45] Sock 7.Parse request [23:49:45]Sock 7.Check first char [23:49:45]Sock 7.First char is OK [23:49:45]request: POST /json_proto HTTP/1.0 [23:49:45]Method: POST [23:49:45]URL: /json_proto [23:49:45]Method is POST - this is cgi request [23:49:45]url: /json_proto [23:49:45]query_string will be loaded in cgi processing [23:49:45]execute_cgi json_proto POST (null) [23:49:45]execute_cgi path=json_proto method=POST [23:49:45]POST find Content-Length [23:49:45]Host: 172.17.43.195:8080 [23:49:45]Content-Length: 687 [23:49:45]Content-Type: application/json [23:49:45] [23:49:45]POST finish read [23:49:45]Found Content-Length = 687 [23:49:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:45]execute_script... [23:49:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:45]POST & json_proto [23:49:45]process_json_proto [23:49:45]json parsed OK: [23:49:45]protocol is kg_v1.0 [23:49:45]action value=close_receipt [23:49:45]process_action close_receipt [23:49:45]cmd_close_receipt [23:49:45]MH_GetDate [23:49:45]Write to MH i2c: F0 00 00 11 05 05 [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: F0 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: F0 09 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: F0 09 00 11 05 00 9A 17 24 67 74 2C AD 66 FD [23:49:45]GetLastDocTimeStamp 1730418419 [23:49:45]current date 1730418586 [23:49:45]FM_GetShiftState [23:49:45]SAM_PROTO_GetShiftState [23:49:45]wFMCommunicate request_size=4 [23:49:45]MH_SAM_APDU [23:49:45]CAPDU: 80 13 01 00 [23:49:45]Write to MH i2c: E2 08 00 12 05 80 13 01 00 00 00 00 00 94 [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:45]Read from MH i2c: E2 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 0E 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 0E 00 12 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 3D [23:49:45]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:49:45]wFMCommunicate OK [23:49:45]SAM_PROTO_GetShiftState done [23:49:45]FM_GetShiftState done [23:49:45]opened in 1730333258 [23:49:45]opened+sec_in_day 1730419658 [23:49:45]quantity*price = 200025 [23:49:45]sum+1 = 200026 [23:49:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 204 31.10.2024 23:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73129 ФПД: 148100224913979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234946&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73129&fm=148100224913979&tin=02508201610067®Number=0000000000091644&sum=200000 [23:49:46]StoreToDocumentArchive [23:49:46]shift 557 fd 73129 [23:49:46]save to /storage/0557/doc_00073129 [23:49:46]save last doc name /storage/0557/doc_00073129 to /storage/kkm_last_doc_name [23:49:46]save OK [23:49:46]Clear old archive folders... [23:49:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:49:46]tlvbuf is 005F86B0 [23:49:46]SAM_PROTO_ClearQueue [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 09 00 00 [23:49:46]Write to MH i2c: E2 08 00 1F 05 80 09 00 00 00 00 00 00 96 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [23:49:46]RAPDU: 90 00 [23:49:46]wFMCommunicate OK [23:49:46]SAM_PROTO_ClearQueue done [23:49:46]KKMCreateOFDPacket [23:49:46]OFDProtocolAddRootSTLVToBuf [23:49:46]FM_MakeSignedData [23:49:46]FM_MakeSignedData [23:49:46]SAM_PROTO_SignData [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 0D 01 02 [23:49:46]Write to MH i2c: E2 08 00 20 05 80 0D 01 02 00 00 00 00 9E [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [23:49:46]RAPDU: 90 00 [23:49:46]wFMCommunicate OK [23:49:46]wFMCommunicate request_size=255 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 9A 17 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1D 01 00 35 04 06 00 [23:49:46]Write to MH i2c: E2 02 01 21 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 9A 17 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1D 01 00 35 04 06 00 00 00 F7 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 03 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [23:49:47]RAPDU: 90 00 [23:49:47]wFMCommunicate OK [23:49:47]wFMCommunicate request_size=11 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 0D 02 02 06 86 B2 45 4C 12 3B [23:49:47]Write to MH i2c: E2 0E 00 22 05 80 0D 02 02 06 00 86 B2 45 4C 12 3B 00 00 C3 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 03 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [23:49:47]RAPDU: 90 00 [23:49:47]wFMCommunicate OK [23:49:47]wFMCommunicate request_size=4 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 0D 03 02 [23:49:47]Write to MH i2c: E2 08 00 23 05 80 0D 03 02 00 00 00 00 A3 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 0B 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 0B 00 23 05 00 71 3E 23 F4 26 FC 8D 38 90 00 51 [23:49:47]RAPDU: 71 3E 23 F4 26 FC 8D 38 90 00 [23:49:47]wFMCommunicate OK [23:49:47]SAM_PROTO_SignData done [23:49:47]FM_MakeSignedData done [23:49:47]CreateOFDProtocolMessage [23:49:47]wFMCommunicate request_size=4 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 11 00 00 [23:49:47]Write to MH i2c: E2 08 00 24 05 80 11 00 00 00 00 00 00 A3 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 17 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 17 00 24 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F7 [23:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:49:47]wFMCommunicate OK [23:49:47]CreateOFDProtocolMessage done [23:49:47]OFDSenderStorePacket 73129 [23:49:47]StoreOFDPacket docnum=73129 [23:49:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F1 C3 08 01 AF E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 9A 17 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1D 01 00 35 04 06 00 86 B2 45 4C 12 3B 71 3E 23 F4 26 FC 8D 38 [23:49:47]CheckFolder [23:49:47]dirname=/storage/ofd_packets [23:49:47]CheckFolder done [23:49:47]ProducePacketName [23:49:47]name=ofd_packets/00073129 [23:49:47]NVStorageSaveData ofd_packets/00073129 [23:49:47]File name is /storage/ofd_packets/00073129 [23:49:47]Write 302 bytes [23:49:47]NVStorageSaveData done [23:49:47]OFDSenderStorePacket done [23:49:47]KKMCreateOFDPacket done [23:49:47]NVStorageSaveData kkm_last_timestamp [23:49:47]File name is /storage/kkm_last_timestamp [23:49:47]Write 4 bytes [23:49:47]NVStorageSaveData done [23:49:47]ExternCall_PrintAddStr [23:49:47]wPrintStart [23:49:47]Write to MH i2c: 01 00 00 25 05 2A [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: 01 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: 01 07 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: 01 07 00 25 05 00 00 00 00 00 FF 0F 3F [23:49:47]RasterBufferAndPrint [23:49:47]line Счет N : (1)952729 [23:49:47]line ИНН: 02508201610067 [23:49:47]line Контрольно-Кассовый Чек [23:49:47]line ПРОДАЖА [23:49:47]line ТРК (МРК, ГНК) : 43 [23:49:47]line Товар: 2710194210 [23:49:47]line ДТ(л)-К-5 [23:49:47]line 26.250 * 76.20 [23:49:47]line = 2000.25 [23:49:47]line НДС 12% НСП 1% [23:49:47]line > о реализуемом товаре [23:49:47]line ОКРУГЛЕНИЕ: -0.25 [23:49:47]line ИТОГО: 2000.00 [23:49:47]line Внесено: 2000.00 [23:49:47]line СДАЧА: 0.00 [23:49:47]line НСП 1% : 17.70 [23:49:47]line НДС 12% : 212.42 [23:49:47]line Наличными: 2000.00 [23:49:47]line Безнал.: 0.00 [23:49:47]line Место: АЗС № 113 "Партнер Нефть" [23:49:47]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:49:47]line СНО: Общий режим [23:49:47]line Чек 204 31.10.2024 23:49 [23:49:47]line Смена: 557 ФФД: 1.0 [23:49:47]line ЗНМ: 0300000087 [23:49:47]line РНМ: 0000000000091644 [23:49:47]line Версия ККМ: 001 [23:49:47]line ФМ: 0000000000874662 [23:49:47]line ФД: 73129 [23:49:47]line ФПД: 148100224913979 [23:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234946&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73129&fm=148100224913979&tin=02508201610067®Number=0000000000091644&sum=200000 [23:49:47]OFD Sender: Processing packet 73129 [packets to send 282, broken 281] [23:49:47]ProducePacketName [23:49:47]name=ofd_packets/00073129 [23:49:47]OFD Sender: To server: pG, [23:49:47]CommunicateWithHost lk.salyk.kg:30040 [23:49:47]ConnectInit lk.salyk.kg [23:49:47]written 0, free lines is 4095 [23:49:48]Write to MH i2c: 01 00 00 50 05 55 [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: 01 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: 01 07 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: 01 07 00 50 05 00 00 00 00 00 DC 0C 44 [23:49:48]RasterBufferAndPrint [23:49:48]line [23:49:48]line [23:49:48]line [23:49:48]line [23:49:48]line [23:49:48]written 0, free lines is 3299 [23:49:48]MH_Cut [23:49:48]Write to MH i2c: D1 01 00 57 05 01 2E [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: D1 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: D1 01 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: D1 01 00 57 05 00 2D [23:49:48]Write to MH i2c: 01 00 00 58 05 5D [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]Connected sock=10 [23:49:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F1 C3 08 01 AF E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 9A 17 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1D 01 00 35 04 06 00 86 B2 45 4C 12 3B 71 3E 23 F4 26 FC 8D 38 [23:49:48]*** Cut start [23:49:48]*** Partial cut [23:49:48]*** CUTSNS_PIN = 1 [23:49:49]*** CUTSNS_PIN = 0 [23:49:49]*** Brake cut motor [23:49:49]Read from MH i2c: 01 [23:49:49]MH_I2C_Read... [23:49:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DE 96 47 00 F0 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1D 01 00 F4 03 04 00 4F C2 23 67 B6 04 01 00 00 2A 45 24 13 B4 DC 59 C0 [23:49:49]CommunicateWithHost err = 0 [23:49:49]CheckOFDResponse [23:49:49]1017 (14) - 77093643461234 [23:49:49]1041 (16) - 0000000000874662 [23:49:49]1040 (4) - 73129 [23:49:49]1012 (4) - 31.10.2024 17:45 [23:49:49]1206 (1) - 0 [23:49:49]OFD Sender: Remove packet 73129 [23:49:49]ProducePacketName [23:49:49]name=ofd_packets/00073129 [23:49:49]NVStorageDeleteData [23:49:49]Read from MH i2c: 01 07 00 [23:49:49]MH_I2C_Read... [23:49:49]*** Stop cut motor [23:49:49]*** Cut end [23:49:49]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 FF 0F 72 [23:49:49]process_action close_receipt done [23:49:49]requested_data is exist [23:49:49]produce_requested_data [23:49:49]requested_item fm.sn is exist - process it [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 11 00 00 [23:49:49]Write to MH i2c: E2 08 00 59 05 80 11 00 00 00 00 00 00 D8 [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 17 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 17 00 59 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2C [23:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:49:49]wFMCommunicate OK [23:49:49]requested_item fd.num is exist - process it [23:49:49]SAM_PROTO_GetFieldsCounters [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 13 00 00 [23:49:49]Write to MH i2c: E2 08 00 5A 05 80 13 00 00 00 00 00 00 DB [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 62 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 62 00 5A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [23:49:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_GetFieldsCounters done [23:49:49]requested_item shift.num is exist - process it [23:49:49]requested_item shift.opened is exist - process it [23:49:49]req_shift_opened [23:49:49]FM_GetShiftState [23:49:49]SAM_PROTO_GetShiftState [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 13 01 00 [23:49:49]Write to MH i2c: E2 08 00 5B 05 80 13 01 00 00 00 00 00 DD [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 5B 05 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 86 [23:49:49]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_GetShiftState done [23:49:49]FM_GetShiftState done [23:49:49]req_shift_opened done [23:49:49]requested_item shift.open_date is exist - process it [23:49:49]req_shift_open_date [23:49:49]req_shift_open_date done [23:49:49]produce_requested_data done [23:49:49]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:49:49]process_action_free close_receipt [23:49:49]json_value_free [23:49:49]json_value_free done [23:49:49]process_json_proto returns [23:49:49]Send response to host [23:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:49:49]free response buf [23:49:49]execute_script done [23:49:49]execute_script returns [23:49:49]free content buf [23:49:49]Sock 7.Close socket [23:49:49]Sock 7.Thread stoped [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:49:56]recv_with_timeout no data received [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:15]recv_with_timeout no data received [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:36]recv_with_timeout no data received [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:07]recv_with_timeout no data received [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]int [23:53:25]Write to MH i2c: 01 00 00 5C 05 61 [23:53:25]*** FLAG_PRN_PAP1 set [23:53:25]Write i2c OK [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 5C 05 00 01 00 00 00 FF 0F 77 [23:53:25]state=0 [23:53:25]No paper [23:53:25]int [23:53:25]Write to MH i2c: 01 00 00 5D 05 62 [23:53:25]Write i2c OK [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 [23:53:25]MH_I2C_Read... [23:53:25]*** FLAG_PRN_PAP1 reset [23:53:25]*** FLAG_PRN_PAP1 set [23:53:25]Read from MH i2c: 01 07 00 5D 05 00 01 00 00 00 FF 0F 78 [23:53:25]state=0 [23:53:25]No paper [23:53:25]int [23:53:25]Write to MH i2c: 01 00 00 5E 05 63 [23:53:25]*** FLAG_PRN_PAP1 reset [23:53:25]Write i2c OK [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 FF 0F 78 [23:53:25]state=0 [23:53:25]int [23:53:25]Write to MH i2c: 01 00 00 5F 05 64 [23:53:25]*** FLAG_PRN_PAP1 set [23:53:25]Write i2c OK [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 5F 05 00 01 00 00 00 FF 0F 7A [23:53:25]state=0 [23:53:25]No paper [23:53:25]int [23:53:25]Write to MH i2c: 01 00 00 60 05 65 [23:53:25]*** FLAG_PRN_PAP2 set [23:53:25]Write i2c OK [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 60 05 00 03 00 00 00 FF 0F 7D [23:53:25]state=0 [23:53:25]No paper [23:53:25]Cover opened [23:53:25]OFD Sender: No OFD packet to send [23:53:30]Write to MH i2c: 01 00 00 61 05 66 [23:53:30]Write i2c OK [23:53:30]MH_I2C_Read... [23:53:30]Read from MH i2c: 01 [23:53:30]MH_I2C_Read... [23:53:30]Read from MH i2c: 01 07 00 [23:53:30]MH_I2C_Read... [23:53:30]Read from MH i2c: 01 07 00 61 05 00 03 00 00 00 FF 0F 7E [23:53:30]state=3 [23:53:30]No paper [23:53:30]Cover opened [23:53:30]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]01 *** [00:00:10]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 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7793691+1722625140=1730418831 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 8F 18 24 67 74 2C AD 66 E4 [23:53:51]Current date/time: 31.10.2024 23:53 [23:53:51]FM_Init [23:53:51]wFMConnect [23:53:51]MH_SAM_On [23:53:51]Write to MH i2c: E0 00 00 08 00 E7 [23:53:51]Write i2c OK [23:53:51]MH_I2C_Read... [23:53:51]*** iso7816_init finished! [23:53:51]*** atr: [23:53:51]*** 0F 3B D5 18 FF 81 91 FE [23:53:51]*** 1F C3 80 73 C8 21 10 0A [23:53:51]*** 00 00 00 00 00 00 00 00 [23:53:51]*** 00 00 00 00 00 00 00 00 [23:53:51]*** 00 00 00 00 00 00 00 00 [23:53:51]*** 00 00 00 00 00 00 00 00 [23:53:51]*** 00 00 00 00 00 00 00 00 [23:53:51]*** 00 00 00 00 00 00 00 00 [23:53:51]Read from MH i2c: E0 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E0 10 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:53:51]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:53:51]wFMCommunicate request_size=10 [23:53:51]MH_SAM_APDU [23:53:51]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:53:51]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:53:51]Write i2c OK [23:53:51]MH_I2C_Read... [23:53:51]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:53:51]Read from MH i2c: E2 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:53:51]RAPDU: 90 00 [23:53:51]wFMCommunicate OK [23:53:51]wFMCommunicate request_size=4 [23:53:51]MH_SAM_APDU [23:53:51]CAPDU: 80 11 00 00 [23:53:51]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:53:51]Write i2c OK [23:53:51]MH_I2C_Read... [23:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:51]Read from MH i2c: E2 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 17 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [23:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:53:51]wFMCommunicate OK [23:53:51]Detected FM SN is 0000000000874662 [23:53:51]Stored FM SN is 0000000000874662 [23:53:51]wFMCommunicate request_size=9 [23:53:51]MH_SAM_APDU [23:53:51]CAPDU: 80 16 00 00 04 08 EB 00 00 [23:53:51]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [23:53:51]Write i2c OK [23:53:51]MH_I2C_Read... [23:53:51]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:53:51]Read from MH i2c: E2 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:53:51]RAPDU: 90 00 [23:53:51]wFMCommunicate OK [23:53:51]FM PIN OK [23:53:51]wFMCommunicate request_size=8 [23:53:51]MH_SAM_APDU [23:53:51]CAPDU: 80 14 04 00 03 02 00 01 [23:53:51]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:53:51]Write i2c OK [23:53:51]MH_I2C_Read... [23:53:51]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:53:51]Read from MH i2c: E2 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:53:51]RAPDU: 90 00 [23:53:51]wFMCommunicate OK [23:53:51]wFMCommunicate request_size=13 [23:53:51]MH_SAM_APDU [23:53:51]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:53:51]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:53:51]Write i2c OK [23:53:51]MH_I2C_Read... [23:53:51]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:53:51]Read from MH i2c: E2 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:53:51]RAPDU: 90 00 [23:53:51]wFMCommunicate OK [23:53:51]wFMCommunicate request_size=4 [23:53:51]MH_SAM_APDU [23:53:51]CAPDU: 80 11 00 00 [23:53:51]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:53:51]Write i2c OK [23:53:51]MH_I2C_Read... [23:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:51]Read from MH i2c: E2 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 17 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [23:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:53:51]wFMCommunicate OK [23:53:51]DocumentArchiveInit [23:53:51]Start Httpd... [23:53:51]Httpd thread 3067284836 created [23:53:51]Write to MH i2c: 01 00 00 0F 00 0F [23:53:51]Write i2c OK [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: 01 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: 01 07 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:53:51]MH Int Process started [23:53:51]Allocated Socket 8 [23:53:51]Bind OK [23:53:51]Listen OK [23:53:51]httpd running on port 8080 [23:53:51]Waiting for new connection... [23:53:51]OFD Sender: No OFD packet to send [23:53:54]accept exits with 9 [23:53:54]New connection [23:53:54]New thread 3066998116 created [23:53:54]Waiting for new connection... [23:53:54] Sock 9.Parse request [23:53:54]Sock 9.Check first char [23:53:54]Sock 9.First char is OK [23:53:54]request: POST /json_proto HTTP/1.0 [23:53:54]Method: POST [23:53:54]URL: /json_proto [23:53:54]Method is POST - this is cgi request [23:53:54]url: /json_proto [23:53:54]query_string will be loaded in cgi processing [23:53:54]execute_cgi json_proto POST (null) [23:53:54]execute_cgi path=json_proto method=POST [23:53:54]POST find Content-Length [23:53:54]Host: 172.17.43.195:8080 [23:53:54]Content-Length: 215 [23:53:54]Content-Type: application/json [23:53:54] [23:53:54]POST finish read [23:53:54]Found Content-Length = 215 [23:53:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:54]execute_script... [23:53:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:54]POST & json_proto [23:53:54]process_json_proto [23:53:54]json parsed OK: [23:53:54]protocol is kg_v1.0 [23:53:54]action value=get_value [23:53:54]process_action get_value [23:53:54]cmd_get_value [23:53:54]process_action get_value done [23:53:54]requested_data is exist [23:53:54]produce_requested_data [23:53:54]requested_item kkm.sn is exist - process it [23:53:54]requested_item kkm.ver is exist - process it [23:53:54]requested_item fm.sn is exist - process it [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 11 00 00 [23:53:54]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 17 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [23:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:53:54]wFMCommunicate OK [23:53:54]requested_item fd.num is exist - process it [23:53:54]SAM_PROTO_GetFieldsCounters [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 13 00 00 [23:53:54]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 62 00 [23:53:54]MH_I2C_Read... [23:53: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [23:53:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:54]wFMCommunicate OK [23:53:54]SAM_PROTO_GetFieldsCounters done [23:53:54]requested_item shift.num is exist - process it [23:53:54]requested_item shift.opened is exist - process it [23:53:54]req_shift_opened [23:53:54]FM_GetShiftState [23:53:54]SAM_PROTO_GetShiftState [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 13 01 00 [23:53:54]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 0E 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 38 [23:53:54]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:53:54]wFMCommunicate OK [23:53:54]SAM_PROTO_GetShiftState done [23:53:54]FM_GetShiftState done [23:53:54]req_shift_opened done [23:53:54]requested_item shift.open_date is exist - process it [23:53:54]req_shift_open_date [23:53:54]req_shift_open_date done [23:53:54]produce_requested_data done [23:53:54]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:53:54]process_action_free get_value [23:53:54]json_value_free [23:53:54]json_value_free done [23:53:54]process_json_proto returns [23:53:54]Send response to host [23:53:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:53:54]free response buf [23:53:54]execute_script done [23:53:54]execute_script returns [23:53:54]free content buf [23:53:54]Sock 9.Close socket [23:53:54]Sock 9.Thread stoped [23:53:54]accept exits with 6 [23:53:54]New connection [23:53:54]New thread 3066854756 created [23:53:54]Thread 3066998116 joined [23:53:54]Waiting for new connection... [23:53:54] Sock 6.Parse request [23:53:54]Sock 6.Check first char [23:53:54]Sock 6.First char is OK [23:53:54]request: POST /json_proto HTTP/1.0 [23:53:54]Method: POST [23:53:54]URL: /json_proto [23:53:54]Method is POST - this is cgi request [23:53:54]url: /json_proto [23:53:54]query_string will be loaded in cgi processing [23:53:54]execute_cgi json_proto POST (null) [23:53:54]execute_cgi path=json_proto method=POST [23:53:54]POST find Content-Length [23:53:54]Host: 172.17.43.195:8080 [23:53:54]Content-Length: 331 [23:53:54]Content-Type: application/json [23:53:54] [23:53:54]POST finish read [23:53:54]Found Content-Length = 331 [23:53: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" ] } } [23:53:54]execute_script... [23:53: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" ] } } [23:53:54]POST & json_proto [23:53:54]process_json_proto [23:53:54]json parsed OK: [23:53:54]protocol is kg_v1.0 [23:53:54]action value=get_value [23:53:54]process_action get_value [23:53:54]cmd_get_value [23:53:54]process_action get_value done [23:53:54]requested_data is exist [23:53:54]produce_requested_data [23:53:54]requested_item fm.sale.total is exist - process it [23:53:54]SAM_PROTO_GetFMData [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 13 03 00 [23:53:54]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:55]Read from MH i2c: E2 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 8D [23:53:55]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [23:53:55]wFMCommunicate OK [23:53:55]wFMCommunicate request_size=4 [23:53:55]MH_SAM_APDU [23:53:55]CAPDU: 80 17 00 00 [23:53:55]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:53:55]Write i2c OK [23:53:55]MH_I2C_Read... [23:53:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:55]Read from MH i2c: E2 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [23:53:55]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:53:55]wFMCommunicate OK [23:53:55]wFMCommunicate request_size=4 [23:53:55]MH_SAM_APDU [23:53:55]CAPDU: 80 17 00 00 [23:53:55]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:53:55]Write i2c OK [23:53:55]MH_I2C_Read... [23:53:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:55]Read from MH i2c: E2 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [23:53:55]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:53:55]wFMCommunicate OK [23:53:55]wFMCommunicate request_size=4 [23:53:55]MH_SAM_APDU [23:53:55]CAPDU: 80 17 00 00 [23:53:55]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:53:55]Write i2c OK [23:53:55]MH_I2C_Read... [23:53:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:55]Read from MH i2c: E2 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [23:53:55]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:53:55]wFMCommunicate OK [23:53:55]wFMCommunicate request_size=4 [23:53:55]MH_SAM_APDU [23:53:55]CAPDU: 80 17 00 00 [23:53:55]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:53:55]Write i2c OK [23:53:55]MH_I2C_Read... [23:53:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:53:56]Read from MH i2c: E2 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 E1 00 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [23:53:56]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:56]wFMCommunicate OK [23:53:56]SAM_PROTO_GetFMData done [23:53:56]requested_item fm.sale_refund.total is exist - process it [23:53:56]requested_item fm.buy.total is exist - process it [23:53:56]requested_item shift.sale.total is exist - process it [23:53:56]SAM_PROTO_GetShiftData [23:53:56]wFMCommunicate request_size=4 [23:53:56]MH_SAM_APDU [23:53:56]CAPDU: 80 13 02 00 [23:53:56]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:53:56]Write i2c OK [23:53:56]MH_I2C_Read... [23:53:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:53:56]Read from MH i2c: E2 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 FD 00 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 8C [23:53:56]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:53:56]wFMCommunicate OK [23:53:56]wFMCommunicate request_size=4 [23:53:56]MH_SAM_APDU [23:53:56]CAPDU: 80 17 00 00 [23:53:56]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:53:56]Write i2c OK [23:53:56]MH_I2C_Read... [23:53:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:56]OFD Sender: No OFD packet to send [23:53:56]Read from MH i2c: E2 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 FD 00 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [23:53:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:53:56]wFMCommunicate OK [23:53:56]wFMCommunicate request_size=4 [23:53:56]MH_SAM_APDU [23:53:56]CAPDU: 80 17 00 00 [23:53:56]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:53:56]Write i2c OK [23:53:56]MH_I2C_Read... [23:53:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:57]Read from MH i2c: E2 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 FD 00 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [23:53:57]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:53:57]wFMCommunicate OK [23:53:57]wFMCommunicate request_size=4 [23:53:57]MH_SAM_APDU [23:53:57]CAPDU: 80 17 00 00 [23:53:57]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:53:57]Write i2c OK [23:53:57]MH_I2C_Read... [23:53:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:57]Read from MH i2c: E2 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 FD 00 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [23:53:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:53:57]wFMCommunicate OK [23:53:57]wFMCommunicate request_size=4 [23:53:57]MH_SAM_APDU [23:53:57]CAPDU: 80 17 00 00 [23:53:57]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:53:57]Write i2c OK [23:53:57]MH_I2C_Read... [23:53:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:53:57]Read from MH i2c: E2 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 CC 00 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [23:53:57]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:57]wFMCommunicate OK [23:53:57]SAM_PROTO_GetShiftData done [23:53:57]requested_item shift.sale.total_cash is exist - process it [23:53:57]requested_item shift.sale_refund.total is exist - process it [23:53:57]requested_item shift.sale_refund.total_cash is exist - process it [23:53:57]requested_item shift.buy.total is exist - process it [23:53:57]requested_item shift.buy.total_cash is exist - process it [23:53:57]produce_requested_data done [23:53:57]produce_requested_data return {"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:53:57]process_action_free get_value [23:53:57]json_value_free [23:53:57]json_value_free done [23:53:57]process_json_proto returns [23:53:57]Send response to host [23:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:53:57]free response buf [23:53:57]execute_script done [23:53:57]execute_script returns [23:53:57]free content buf [23:53:57]Sock 6.Close socket [23:53:57]Sock 6.Thread stoped [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:10]recv_with_timeout no data received [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:29]accept exits with 9 [23:54:29]New connection [23:54:29]New thread 3066998116 created [23:54:29]Thread 3066854756 joined [23:54:29]Waiting for new connection... [23:54:29] Sock 9.Parse request [23:54:29]Sock 9.Check first char [23:54:29]Sock 9.First char is OK [23:54:29]request: POST /json_proto HTTP/1.0 [23:54:29]Method: POST [23:54:29]URL: /json_proto [23:54:29]Method is POST - this is cgi request [23:54:29]url: /json_proto [23:54:29]query_string will be loaded in cgi processing [23:54:29]execute_cgi json_proto POST (null) [23:54:29]execute_cgi path=json_proto method=POST [23:54:29]POST find Content-Length [23:54:29]Host: 172.17.43.195:8080 [23:54:29]Content-Length: 215 [23:54:29]Content-Type: application/json [23:54:29] [23:54:29]POST finish read [23:54:29]Found Content-Length = 215 [23:54: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" ] } } [23:54:29]execute_script... [23:54: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" ] } } [23:54:29]POST & json_proto [23:54:29]process_json_proto [23:54:29]json parsed OK: [23:54:29]protocol is kg_v1.0 [23:54:29]action value=get_value [23:54:29]process_action get_value [23:54:29]cmd_get_value [23:54:29]process_action get_value done [23:54:29]requested_data is exist [23:54:29]produce_requested_data [23:54:29]requested_item kkm.sn is exist - process it [23:54:29]requested_item kkm.ver is exist - process it [23:54:29]requested_item fm.sn is exist - process it [23:54:29]wFMCommunicate request_size=4 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 11 00 00 [23:54:29]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 17 00 [23:54:29]MH_I2C_Read... [23:54:29]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 34 36 36 32 90 00 EB [23:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:54:29]wFMCommunicate OK [23:54:29]requested_item fd.num is exist - process it [23:54:29]SAM_PROTO_GetFieldsCounters [23:54:29]wFMCommunicate request_size=4 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 13 00 00 [23:54:29]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 62 00 [23:54:29]MH_I2C_Read... [23:54:29]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [23:54:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:29]wFMCommunicate OK [23:54:29]SAM_PROTO_GetFieldsCounters done [23:54:29]requested_item shift.num is exist - process it [23:54:29]requested_item shift.opened is exist - process it [23:54:29]req_shift_opened [23:54:29]FM_GetShiftState [23:54:29]SAM_PROTO_GetShiftState [23:54:29]wFMCommunicate request_size=4 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 13 01 00 [23:54:29]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 0E 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 45 [23:54:29]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:54:29]wFMCommunicate OK [23:54:29]SAM_PROTO_GetShiftState done [23:54:29]FM_GetShiftState done [23:54:29]req_shift_opened done [23:54:29]requested_item shift.open_date is exist - process it [23:54:29]req_shift_open_date [23:54:29]req_shift_open_date done [23:54:29]produce_requested_data done [23:54:29]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:54:29]process_action_free get_value [23:54:29]json_value_free [23:54:29]json_value_free done [23:54:29]process_json_proto returns [23:54:29]Send response to host [23:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:54:29]free response buf [23:54:29]execute_script done [23:54:29]execute_script returns [23:54:29]free content buf [23:54:29]Sock 9.Close socket [23:54:29]Sock 9.Thread stoped [23:54:29]accept exits with 7 [23:54:29]New connection [23:54:29]New thread 3066854756 created [23:54:29]Thread 3066998116 joined [23:54:29]Waiting for new connection... [23:54:29] Sock 7.Parse request [23:54:29]Sock 7.Check first char [23:54:29]Sock 7.First char is OK [23:54:29]request: POST /json_proto HTTP/1.0 [23:54:29]Method: POST [23:54:29]URL: /json_proto [23:54:29]Method is POST - this is cgi request [23:54:29]url: /json_proto [23:54:29]query_string will be loaded in cgi processing [23:54:29]execute_cgi json_proto POST (null) [23:54:29]execute_cgi path=json_proto method=POST [23:54:29]POST find Content-Length [23:54:29]Host: 172.17.43.195:8080 [23:54:29]Content-Length: 331 [23:54:29]Content-Type: application/json [23:54:29] [23:54:29]POST finish read [23:54:29]Found Content-Length = 331 [23:54: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" ] } } [23:54:29]execute_script... [23:54:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:30]POST & json_proto [23:54:30]process_json_proto [23:54:30]json parsed OK: [23:54:30]protocol is kg_v1.0 [23:54:30]action value=get_value [23:54:30]process_action get_value [23:54:30]cmd_get_value [23:54:30]process_action get_value done [23:54:30]requested_data is exist [23:54:30]produce_requested_data [23:54:30]requested_item fm.sale.total is exist - process it [23:54:30]SAM_PROTO_GetFMData [23:54:30]wFMCommunicate request_size=4 [23:54:30]MH_SAM_APDU [23:54:30]CAPDU: 80 13 03 00 [23:54:30]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:30]Read from MH i2c: E2 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 FD 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 FD 00 20 00 00 C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 9A [23:54:30]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [23:54:30]wFMCommunicate OK [23:54:30]wFMCommunicate request_size=4 [23:54:30]MH_SAM_APDU [23:54:30]CAPDU: 80 17 00 00 [23:54:30]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:30]Read from MH i2c: E2 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 FD 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 FD 00 21 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 21 [23:54:30]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:54:30]wFMCommunicate OK [23:54:30]wFMCommunicate request_size=4 [23:54:30]MH_SAM_APDU [23:54:30]CAPDU: 80 17 00 00 [23:54:30]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:30]Read from MH i2c: E2 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 FD 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 FD 00 22 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 B7 [23:54:30]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:54:30]wFMCommunicate OK [23:54:30]wFMCommunicate request_size=4 [23:54:30]MH_SAM_APDU [23:54:30]CAPDU: 80 17 00 00 [23:54:30]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:31]Read from MH i2c: E2 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: E2 FD 00 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: E2 FD 00 23 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 1B [23:54:31]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:54:31]wFMCommunicate OK [23:54:31]wFMCommunicate request_size=4 [23:54:31]MH_SAM_APDU [23:54:31]CAPDU: 80 17 00 00 [23:54:31]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [23:54:31]Write i2c OK [23:54:31]MH_I2C_Read... [23:54:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:54:31]Read from MH i2c: E2 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: E2 E1 00 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: E2 E1 00 24 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [23:54:31]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:31]wFMCommunicate OK [23:54:31]SAM_PROTO_GetFMData done [23:54:31]requested_item fm.sale_refund.total is exist - process it [23:54:31]requested_item fm.buy.total is exist - process it [23:54:31]requested_item shift.sale.total is exist - process it [23:54:31]SAM_PROTO_GetShiftData [23:54:31]wFMCommunicate request_size=4 [23:54:31]MH_SAM_APDU [23:54:31]CAPDU: 80 13 02 00 [23:54:31]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [23:54:31]Write i2c OK [23:54:31]MH_I2C_Read... [23:54:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:31]Read from MH i2c: E2 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: E2 FD 00 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: E2 FD 00 25 00 00 AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 99 [23:54:31]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:54:31]wFMCommunicate OK [23:54:31]wFMCommunicate request_size=4 [23:54:31]MH_SAM_APDU [23:54:31]CAPDU: 80 17 00 00 [23:54:31]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [23:54:31]OFD Sender: No OFD packet to send [23:54:32]Write i2c OK [23:54:32]MH_I2C_Read... [23:54:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:32]Read from MH i2c: E2 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 FD 00 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 FD 00 26 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 BF [23:54:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:54:32]wFMCommunicate OK [23:54:32]wFMCommunicate request_size=4 [23:54:32]MH_SAM_APDU [23:54:32]CAPDU: 80 17 00 00 [23:54:32]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [23:54:32]Write i2c OK [23:54:32]MH_I2C_Read... [23:54:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:32]Read from MH i2c: E2 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 FD 00 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 FD 00 27 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 5B [23:54:32]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:54:32]wFMCommunicate OK [23:54:32]wFMCommunicate request_size=4 [23:54:32]MH_SAM_APDU [23:54:32]CAPDU: 80 17 00 00 [23:54:32]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [23:54:32]Write i2c OK [23:54:32]MH_I2C_Read... [23:54:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:32]Read from MH i2c: E2 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 FD 00 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 FD 00 28 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 26 [23:54:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:54:32]wFMCommunicate OK [23:54:32]wFMCommunicate request_size=4 [23:54:32]MH_SAM_APDU [23:54:32]CAPDU: 80 17 00 00 [23:54:32]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [23:54:32]Write i2c OK [23:54:32]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:33]Read from MH i2c: E2 CC 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 CC 00 29 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8A [23:54:33]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:33]wFMCommunicate OK [23:54:33]SAM_PROTO_GetShiftData done [23:54:33]requested_item shift.sale.total_cash is exist - process it [23:54:33]requested_item shift.sale_refund.total is exist - process it [23:54:33]requested_item shift.sale_refund.total_cash is exist - process it [23:54:33]requested_item shift.buy.total is exist - process it [23:54:33]requested_item shift.buy.total_cash is exist - process it [23:54:33]produce_requested_data done [23:54:33]produce_requested_data return {"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:54:33]process_action_free get_value [23:54:33]json_value_free [23:54:33]json_value_free done [23:54:33]process_json_proto returns [23:54:33]Send response to host [23:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:54:33]free response buf [23:54:33]execute_script done [23:54:33]execute_script returns [23:54:33]free content buf [23:54:33]Sock 7.Close socket [23:54:33]Sock 7.Thread stoped [23:54:33]accept exits with 9 [23:54:33]New connection [23:54:33]New thread 3066998116 created [23:54:33]Thread 3066854756 joined [23:54:33]Waiting for new connection... [23:54:33] Sock 9.Parse request [23:54:33]Sock 9.Check first char [23:54:33]Sock 9.First char is OK [23:54:33]request: POST /json_proto HTTP/1.0 [23:54:33]Method: POST [23:54:33]URL: /json_proto [23:54:33]Method is POST - this is cgi request [23:54:33]url: /json_proto [23:54:33]query_string will be loaded in cgi processing [23:54:33]execute_cgi json_proto POST (null) [23:54:33]execute_cgi path=json_proto method=POST [23:54:33]POST find Content-Length [23:54:33]Host: 172.17.43.195:8080 [23:54:33]Content-Length: 331 [23:54:33]Content-Type: application/json [23:54:33] [23:54:33]POST finish read [23:54:33]Found Content-Length = 331 [23:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:33]execute_script... [23:54:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:33]POST & json_proto [23:54:33]process_json_proto [23:54:33]json parsed OK: [23:54:33]protocol is kg_v1.0 [23:54:33]action value=get_value [23:54:33]process_action get_value [23:54:33]cmd_get_value [23:54:33]process_action get_value done [23:54:33]requested_data is exist [23:54:33]produce_requested_data [23:54:33]requested_item fm.sale.total is exist - process it [23:54:33]SAM_PROTO_GetFMData [23:54:33]wFMCommunicate request_size=4 [23:54:33]MH_SAM_APDU [23:54:33]CAPDU: 80 13 03 00 [23:54:33]Write to MH i2c: E2 08 00 2A 00 80 13 03 00 00 00 00 00 A9 [23:54:33]Write i2c OK [23:54:33]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 FD 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 FD 00 2A 00 00 C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 A4 [23:54:33]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [23:54:33]wFMCommunicate OK [23:54:33]wFMCommunicate request_size=4 [23:54:33]MH_SAM_APDU [23:54:33]CAPDU: 80 17 00 00 [23:54:33]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [23:54:33]Write i2c OK [23:54:33]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 FD 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 FD 00 2B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 2B [23:54:33]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:54:34]wFMCommunicate OK [23:54:34]wFMCommunicate request_size=4 [23:54:34]MH_SAM_APDU [23:54:34]CAPDU: 80 17 00 00 [23:54:34]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [23:54:34]Write i2c OK [23:54:34]MH_I2C_Read... [23:54:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:34]Read from MH i2c: E2 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: E2 FD 00 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: E2 FD 00 2C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 C1 [23:54:34]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:54:34]wFMCommunicate OK [23:54:34]wFMCommunicate request_size=4 [23:54:34]MH_SAM_APDU [23:54:34]CAPDU: 80 17 00 00 [23:54:34]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [23:54:34]Write i2c OK [23:54:34]MH_I2C_Read... [23:54:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:34]Read from MH i2c: E2 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: E2 FD 00 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: E2 FD 00 2D 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 25 [23:54:34]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:54:34]wFMCommunicate OK [23:54:34]wFMCommunicate request_size=4 [23:54:34]MH_SAM_APDU [23:54:34]CAPDU: 80 17 00 00 [23:54:34]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [23:54:34]Write i2c OK [23:54:34]MH_I2C_Read... [23:54:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:54:35]Read from MH i2c: E2 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 E1 00 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 E1 00 2E 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [23:54:35]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:35]wFMCommunicate OK [23:54:35]SAM_PROTO_GetFMData done [23:54:35]requested_item fm.sale_refund.total is exist - process it [23:54:35]requested_item fm.buy.total is exist - process it [23:54:35]requested_item shift.sale.total is exist - process it [23:54:35]SAM_PROTO_GetShiftData [23:54:35]wFMCommunicate request_size=4 [23:54:35]MH_SAM_APDU [23:54:35]CAPDU: 80 13 02 00 [23:54:35]Write to MH i2c: E2 08 00 2F 00 80 13 02 00 00 00 00 00 AD [23:54:35]Write i2c OK [23:54:35]MH_I2C_Read... [23:54:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:35]Read from MH i2c: E2 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 FD 00 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 FD 00 2F 00 00 AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 A3 [23:54:35]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:54:35]wFMCommunicate OK [23:54:35]wFMCommunicate request_size=4 [23:54:35]MH_SAM_APDU [23:54:35]CAPDU: 80 17 00 00 [23:54:35]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [23:54:35]Write i2c OK [23:54:35]MH_I2C_Read... [23:54:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:35]Read from MH i2c: E2 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 FD 00 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 FD 00 30 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 C9 [23:54:36]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:54:36]wFMCommunicate OK [23:54:36]wFMCommunicate request_size=4 [23:54:36]MH_SAM_APDU [23:54:36]CAPDU: 80 17 00 00 [23:54:36]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [23:54:36]Write i2c OK [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 [23:54:36]MH_I2C_Read... [23:54:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:36]Read from MH i2c: E2 FD 00 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 FD 00 31 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 65 [23:54:36]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:54:36]wFMCommunicate OK [23:54:36]wFMCommunicate request_size=4 [23:54:36]MH_SAM_APDU [23:54:36]CAPDU: 80 17 00 00 [23:54:36]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [23:54:36]Write i2c OK [23:54:36]MH_I2C_Read... [23:54:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:36]Read from MH i2c: E2 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 FD 00 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 FD 00 32 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 30 [23:54:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:54:37]wFMCommunicate OK [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 17 00 00 [23:54:37]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]OFD Sender: No OFD packet to send [23:54:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 CC 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 CC 00 33 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 94 [23:54:37]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:37]wFMCommunicate OK [23:54:37]SAM_PROTO_GetShiftData done [23:54:37]requested_item shift.sale.total_cash is exist - process it [23:54:37]requested_item shift.sale_refund.total is exist - process it [23:54:37]requested_item shift.sale_refund.total_cash is exist - process it [23:54:37]requested_item shift.buy.total is exist - process it [23:54:37]requested_item shift.buy.total_cash is exist - process it [23:54:37]produce_requested_data done [23:54:37]produce_requested_data return {"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:54:37]process_action_free get_value [23:54:37]json_value_free [23:54:37]json_value_free done [23:54:37]process_json_proto returns [23:54:37]Send response to host [23:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:54:37]free response buf [23:54:37]execute_script done [23:54:37]execute_script returns [23:54:37]free content buf [23:54:37]Sock 9.Close socket [23:54:37]Sock 9.Thread stoped [23:54:37]accept exits with 7 [23:54:37]New connection [23:54:37]New thread 3066854756 created [23:54:37]Thread 3066998116 joined [23:54:37]Waiting for new connection... [23:54:37] Sock 7.Parse request [23:54:37]Sock 7.Check first char [23:54:37]Sock 7.First char is OK [23:54:37]request: POST /json_proto HTTP/1.0 [23:54:37]Method: POST [23:54:37]URL: /json_proto [23:54:37]Method is POST - this is cgi request [23:54:37]url: /json_proto [23:54:37]query_string will be loaded in cgi processing [23:54:37]execute_cgi json_proto POST (null) [23:54:37]execute_cgi path=json_proto method=POST [23:54:37]POST find Content-Length [23:54:37]Host: 172.17.43.195:8080 [23:54:37]Content-Length: 257 [23:54:37]Content-Type: application/json [23:54:37] [23:54:37]POST finish read [23:54:37]Found Content-Length = 257 [23:54:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:37]execute_script... [23:54:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:37]POST & json_proto [23:54:37]process_json_proto [23:54:37]json parsed OK: [23:54:37]protocol is kg_v1.0 [23:54:37]action value=x_report [23:54:37]process_action x_report [23:54:37]cmd_x_report [23:54:37]MH_GetDate [23:54:37]Write to MH i2c: F0 00 00 34 00 23 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: F0 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: F0 09 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: F0 09 00 34 00 00 BE 18 24 67 74 2C AD 66 40 [23:54:37]GetLastDocTimeStamp 1730418586 [23:54:37]current date 1730418878 [23:54:37]FM_GetShiftState [23:54:37]SAM_PROTO_GetShiftState [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 13 01 00 [23:54:37]Write to MH i2c: E2 08 00 35 00 80 13 01 00 00 00 00 00 B2 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 0E 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 0E 00 35 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 5B [23:54:37]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:54:37]wFMCommunicate OK [23:54:37]SAM_PROTO_GetShiftState done [23:54:37]FM_GetShiftState done [23:54:37]KKMCreateXReportDocument [23:54:37]Load OK [23:54:37]Malloc new data [23:54:37]MH_GetDate [23:54:37]Write to MH i2c: F0 00 00 36 00 25 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: F0 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: F0 09 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: F0 09 00 36 00 00 BE 18 24 67 74 2C AD 66 42 [23:54:37]Malloc new data [23:54:37]Malloc new data [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 11 00 00 [23:54:37]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]recv_with_timeout no data received [23:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 17 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 05 [23:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:54:37]wFMCommunicate OK [23:54:37]SAM_PROTO_GetFieldsCounters [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 13 00 00 [23:54:37]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 62 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 62 00 38 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [23:54:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:37]wFMCommunicate OK [23:54:37]SAM_PROTO_GetFieldsCounters done [23:54:37]Malloc new data [23:54:37]Malloc new data [23:54:37]Malloc new data [23:54:37]KKMCreateXReportDocument OK [23:54:37]KKMSetXReportData OK [23:54:37]KKMPrepareXReportFMData [23:54:37]SAM_PROTO_GetShiftData [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 13 02 00 [23:54:37]Write to MH i2c: E2 08 00 39 00 80 13 02 00 00 00 00 00 B7 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:38]Read from MH i2c: E2 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 39 00 00 AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 AD [23:54:38]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:54:38]wFMCommunicate OK [23:54:38]wFMCommunicate request_size=4 [23:54:38]MH_SAM_APDU [23:54:38]CAPDU: 80 17 00 00 [23:54:38]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [23:54:38]Write i2c OK [23:54:38]MH_I2C_Read... [23:54:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:38]Read from MH i2c: E2 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 3A 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 D3 [23:54:38]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:54:39]wFMCommunicate OK [23:54:39]wFMCommunicate request_size=4 [23:54:39]MH_SAM_APDU [23:54:39]CAPDU: 80 17 00 00 [23:54:39]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [23:54:39]Write i2c OK [23:54:39]MH_I2C_Read... [23:54:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:39]Read from MH i2c: E2 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: E2 FD 00 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: E2 FD 00 3B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 6F [23:54:39]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:54:39]wFMCommunicate OK [23:54:39]wFMCommunicate request_size=4 [23:54:39]MH_SAM_APDU [23:54:39]CAPDU: 80 17 00 00 [23:54:39]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [23:54:39]Write i2c OK [23:54:39]MH_I2C_Read... [23:54:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:39]Read from MH i2c: E2 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: E2 FD 00 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: E2 FD 00 3C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 3A [23:54:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:54:40]wFMCommunicate OK [23:54:40]wFMCommunicate request_size=4 [23:54:40]MH_SAM_APDU [23:54:40]CAPDU: 80 17 00 00 [23:54:40]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [23:54:40]Write i2c OK [23:54:40]MH_I2C_Read... [23:54:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:40]Read from MH i2c: E2 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 CC 00 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 CC 00 3D 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9E [23:54:40]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:40]wFMCommunicate OK [23:54:40]SAM_PROTO_GetShiftData done [23:54:40]1194 (1195) - счетчики итогов смены [23:54:40] 1134 (4) - 204 - количество чеков со всеми признаками расчетов [23:54:40] 1129 (156) - счетчики операций «приход» [23:54:40] 1135 (4) - 204 - количество чеков по признаку расчетов [23:54:40] 1201 (3) - 140278.87 - общая итоговая сумма в чеках [23:54:40] 1136 (3) - 94077.00 - итоговая сумма в чеках наличными [23:54:40] 1138 (3) - 46201.87 - итоговая сумма в чеках безналичными [23:54:40] 1024 (123) - суммы налогов [23:54:40] 1006 (9) - суммы НДС [23:54:40] 1010 (1) - 0% - код ставки НДС [23:54:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:40] 1006 (12) - суммы НДС [23:54:40] 1010 (1) - 12% - код ставки НДС [23:54:40] 1011 (3) - 14899.77 - сумма НДС по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 0% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (12) - суммы НСП [23:54:40] 1014 (1) - 1% - код ставки НСП [23:54:40] 1015 (3) - 1241.58 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 2% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 3% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 5% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 0,50% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 1,50% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1130 (141) - счетчики операций «возврат прихода» [23:54:40] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:40] 1024 (117) - суммы налогов [23:54:40] 1006 (9) - суммы НДС [23:54:40] 1010 (1) - 0% - код ставки НДС [23:54:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:40] 1006 (9) - суммы НДС [23:54:40] 1010 (1) - 12% - код ставки НДС [23:54:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 0% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 1% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 2% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 3% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 5% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 0,50% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 1,50% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1131 (141) - счетчики операций «расход» [23:54:40] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:40] 1024 (117) - суммы налогов [23:54:40] 1006 (9) - суммы НДС [23:54:40] 1010 (1) - 0% - код ставки НДС [23:54:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:40] 1006 (9) - суммы НДС [23:54:40] 1010 (1) - 12% - код ставки НДС [23:54:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 0% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 1% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 2% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 3% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 5% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 0,50% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 1,50% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1132 (141) - счетчики операций «возврат расхода» [23:54:40] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:40] 1024 (117) - суммы налогов [23:54:40] 1006 (9) - суммы НДС [23:54:40] 1010 (1) - 0% - код ставки НДС [23:54:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:40] 1006 (9) - суммы НДС [23:54:40] 1010 (1) - 12% - код ставки НДС [23:54:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 0% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 1% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 2% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 3% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 5% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 0,50% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1007 (9) - суммы НСП [23:54:40] 1014 (1) - 1,50% - код ставки НСП [23:54:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:40] 1133 (588) - - счетчики коррекции - не используются [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1194 (04AA) [23:54:40]Load OK [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1134 (046E) [23:54:40]Malloc new data [23:54:40]Processing tag 1129 (0469) [23:54:40]Load OK [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1135 (046F) [23:54:40]Malloc new data [23:54:40]Processing tag 1201 (04B1) [23:54:40]Malloc new data [23:54:40]Processing tag 1136 (0470) [23:54:40]Malloc new data [23:54:40]Processing tag 1138 (0472) [23:54:40]Malloc new data [23:54:40]Processing tag 1024 (0400) [23:54:40]Load OK [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1006 (03EE) [23:54:40]Load OK [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1010 (03F2) [23:54:40]Malloc new data [23:54:40]Processing tag 1011 (03F3) [23:54:40]Malloc new data [23:54:40]SetTLVBufToDocument err=0 [23:54:40]Processing tag 1006 (03EE) [23:54:40]Load OK [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1010 (03F2) [23:54:40]Malloc new data [23:54:40]Processing tag 1011 (03F3) [23:54:40]Malloc new data [23:54:40]SetTLVBufToDocument err=0 [23:54:40]Processing tag 1007 (03EF) [23:54:40]Load OK [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1014 (03F6) [23:54:40]Malloc new data [23:54:40]Processing tag 1015 (03F7) [23:54:40]Malloc new data [23:54:40]SetTLVBufToDocument err=0 [23:54:40]Processing tag 1007 (03EF) [23:54:40]Load OK [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1014 (03F6) [23:54:40]Malloc new data [23:54:40]Processing tag 1015 (03F7) [23:54:40]Malloc new data [23:54:40]SetTLVBufToDocument err=0 [23:54:40]Processing tag 1007 (03EF) [23:54:40]Load OK [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1014 (03F6) [23:54:40]Malloc new data [23:54:40]Processing tag 1015 (03F7) [23:54:40]Malloc new data [23:54:40]SetTLVBufToDocument err=0 [23:54:40]Processing tag 1007 (03EF) [23:54:40]Load OK [23:54:40]SetTLVBufToDocument [23:54:40]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]SetTLVBufToDocument err=0 [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1130 (046A) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1135 (046F) [23:54:41]Malloc new data [23:54:41]Processing tag 1201 (04B1) [23:54:41]Malloc new data [23:54:41]Processing tag 1136 (0470) [23:54:41]Malloc new data [23:54:41]Processing tag 1138 (0472) [23:54:41]Malloc new data [23:54:41]Processing tag 1024 (0400) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1006 (03EE) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1010 (03F2) [23:54:41]Malloc new data [23:54:41]Processing tag 1011 (03F3) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1006 (03EE) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1010 (03F2) [23:54:41]Malloc new data [23:54:41]Processing tag 1011 (03F3) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]SetTLVBufToDocument err=0 [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1131 (046B) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1135 (046F) [23:54:41]Malloc new data [23:54:41]Processing tag 1201 (04B1) [23:54:41]Malloc new data [23:54:41]Processing tag 1136 (0470) [23:54:41]Malloc new data [23:54:41]Processing tag 1138 (0472) [23:54:41]Malloc new data [23:54:41]Processing tag 1024 (0400) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1006 (03EE) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1010 (03F2) [23:54:41]Malloc new data [23:54:41]Processing tag 1011 (03F3) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1006 (03EE) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1010 (03F2) [23:54:41]Malloc new data [23:54:41]Processing tag 1011 (03F3) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]SetTLVBufToDocument err=0 [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1132 (046C) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1135 (046F) [23:54:41]Malloc new data [23:54:41]Processing tag 1201 (04B1) [23:54:41]Malloc new data [23:54:41]Processing tag 1136 (0470) [23:54:41]Malloc new data [23:54:41]Processing tag 1138 (0472) [23:54:41]Malloc new data [23:54:41]Processing tag 1024 (0400) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1006 (03EE) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1010 (03F2) [23:54:41]Malloc new data [23:54:41]Processing tag 1011 (03F3) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1006 (03EE) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1010 (03F2) [23:54:41]Malloc new data [23:54:41]Processing tag 1011 (03F3) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1007 (03EF) [23:54:41]Load OK [23:54:41]SetTLVBufToDocument [23:54:41]Processing tag 1014 (03F6) [23:54:41]Malloc new data [23:54:41]Processing tag 1015 (03F7) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]SetTLVBufToDocument err=0 [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Processing tag 1133 (046D) [23:54:41]Malloc new data [23:54:41]SetTLVBufToDocument err=0 [23:54:41]SetTLVBufToDocument err=0 [23:54:41]Malloc new data [23:54:41]SAM_PROTO_GetFMData [23:54:41]wFMCommunicate request_size=4 [23:54:41]MH_SAM_APDU [23:54:41]CAPDU: 80 13 03 00 [23:54:41]Write to MH i2c: E2 08 00 3E 00 80 13 03 00 00 00 00 00 BD [23:54:41]Write i2c OK [23:54:41]MH_I2C_Read... [23:54:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:42]Read from MH i2c: E2 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 3E 00 00 C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 B8 [23:54:42]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 OFD Sender: No OFD packet to send [23:54:42]FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [23:54:42]wFMCommunicate OK [23:54:42]wFMCommunicate request_size=4 [23:54:42]MH_SAM_APDU [23:54:42]CAPDU: 80 17 00 00 [23:54:42]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [23:54:42]Write i2c OK [23:54:42]MH_I2C_Read... [23:54:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:42]Read from MH i2c: E2 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 3F 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 3F [23:54:43]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:54:43]wFMCommunicate OK [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 17 00 00 [23:54:43]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 FD 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 FD 00 40 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 D5 [23:54:43]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:54:43]wFMCommunicate OK [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 17 00 00 [23:54:43]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 FD 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 FD 00 41 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 39 [23:54:44]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:54:44]wFMCommunicate OK [23:54:44]wFMCommunicate request_size=4 [23:54:44]MH_SAM_APDU [23:54:44]CAPDU: 80 17 00 00 [23:54:44]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [23:54:44]Write i2c OK [23:54:44]MH_I2C_Read... [23:54:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:54:44]Read from MH i2c: E2 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 E1 00 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 E1 00 42 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B0 [23:54:44]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:44]wFMCommunicate OK [23:54:44]SAM_PROTO_GetFMData done [23:54:44]FM_GetFMData:85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:54:45]oper:6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:54:45]total:28 79 EC A4 01 [23:54:45]Malloc new data [23:54:45]oper:6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:54:45]total:BC 6D FE 04 [23:54:45]Malloc new data [23:54:45]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:54:45]total: [23:54:45]Malloc new data [23:54:45]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:54:45]total: [23:54:45]Malloc new data [23:54:45]KKMPrepareXReportFMData err=0 [23:54:45]Х отчет ИНН: 02508201610067 Кассир: Эргешова З. 31.10.2024 23:54 Смена: 522 РНМ: 0000000000091644 ЗНМ: 0300000087 СНО: Общий режим Всего чеков: 204 ИТОГИ ПРИХОД Чеков: 204 Общий итог: 140278.87 Итого наличными: 94077.00 Итого безнал.: 46201.87 НДС 0% : 0.00 НДС 12% : 14899.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1241.58 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 94077.00 НС Приход: 70619282.32 НС Возвр.Прихода: 837831.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874662 [23:54:45]StoreToDocumentArchive [23:54:45]MH_GetDate [23:54:45]Write to MH i2c: F0 00 00 43 00 32 [23:54:45]Write i2c OK [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: F0 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: F0 09 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: F0 09 00 43 00 00 C6 18 24 67 74 2C AD 66 57 [23:54:45]shift 522 fd 1730418886 [23:54:45]Create dir for shift 0522 [23:54:45]save to /storage/0522/doc_1730418886 [23:54:45]save last doc name /storage/0522/doc_1730418886 to /storage/kkm_last_doc_name [23:54:45]save OK [23:54:45]Clear old archive folders... [23:54:45]NVStorageSaveData kkm_last_timestamp [23:54:45]File name is /storage/kkm_last_timestamp [23:54:45]Write 4 bytes [23:54:45]NVStorageSaveData done [23:54:45]ExternCall_PrintAddStr [23:54:45]wPrintStart [23:54:45]Write to MH i2c: 01 00 00 44 00 44 [23:54:45]Write i2c OK [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: 01 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: 01 07 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [23:54:45]RasterBufferAndPrint [23:54:45]line Х отчет [23:54:45]line ИНН: 02508201610067 [23:54:45]line Кассир: Эргешова З. [23:54:45]line 31.10.2024 23:54 [23:54:45]line Смена: 522 [23:54:45]line РНМ: 0000000000091644 [23:54:45]line ЗНМ: 0300000087 [23:54:45]line СНО: Общий режим [23:54:45]line Всего чеков: 204 [23:54:45]line ИТОГИ ПРИХОД [23:54:45]line Чеков: 204 [23:54:45]line Общий итог: 140278.87 [23:54:45]line Итого наличными: 94077.00 [23:54:45]line Итого безнал.: 46201.87 [23:54:45]line НДС 0% : 0.00 [23:54:45]line НДС 12% : 14899.77 [23:54:45]line НСП 0% : 0.00 [23:54:45]line НСП 1,50% : 0.00 [23:54:45]line НСП 0,50% : 0.00 [23:54:45]line НСП 5% : 0.00 [23:54:45]line НСП 3% : 0.00 [23:54:45]line НСП 2% : 0.00 [23:54:45]line НСП 1% : 1241.58 [23:54:45]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:54:45]line Чеков: 0 [23:54:45]line Общий итог: 0.00 [23:54:45]line Итого наличными: 0.00 [23:54:45]line Итого безнал.: 0.00 [23:54:45]line НДС 0% : 0.00 [23:54:45]line НДС 12% : 0.00 [23:54:45]line НСП 0% : 0.00 [23:54:45]line НСП 1,50% : 0.00 [23:54:45]line НСП 0,50% : 0.00 [23:54:45]line НСП 5% : 0.00 [23:54:45]line НСП 3% : 0.00 [23:54:45]line НСП 2% : 0.00 [23:54:45]line НСП 1% : 0.00 [23:54:45]line ИТОГИ РАСХОД [23:54:45]line Чеков: 0 [23:54:45]line Общий итог: 0.00 [23:54:45]line Итого наличными: 0.00 [23:54:45]line Итого безнал.: 0.00 [23:54:46]line НДС 0% : 0.00 [23:54:46]line НДС 12% : 0.00 [23:54:46]line НСП 0% : 0.00 [23:54:46]line НСП 1,50% : 0.00 [23:54:46]line НСП 0,50% : 0.00 [23:54:46]line НСП 5% : 0.00 [23:54:46]line НСП 3% : 0.00 [23:54:46]line НСП 2% : 0.00 [23:54:46]line НСП 1% : 0.00 [23:54:46]line ИТОГИ ВОЗВРАТ РАСХОДА [23:54:46]line Чеков: 0 [23:54:46]line Общий итог: 0.00 [23:54:46]line Итого наличными: 0.00 [23:54:46]line Итого безнал.: 0.00 [23:54:46]line НДС 0% : 0.00 [23:54:46]line НДС 12% : 0.00 [23:54:46]line НСП 0% : 0.00 [23:54:46]line НСП 1,50% : 0.00 [23:54:46]line НСП 0,50% : 0.00 [23:54:46]line НСП 5% : 0.00 [23:54:46]line НСП 3% : 0.00 [23:54:46]line НСП 2% : 0.00 [23:54:46]line НСП 1% : 0.00 [23:54:46]line Сумма внесений: 0.00 [23:54:46]line Сумма выплат: 0.00 [23:54:46]line Нал. в кассе: 94077.00 [23:54:46]line НС Приход: 70619282.32 [23:54:46]line НС Возвр.Прихода: 837831.00 [23:54:46]line НС Расход: 0.00 [23:54:46]line НС Возвр.Расхода: 0.00 [23:54:46]line ФМ: 0000000000874662 [23:54:46]written 0, free lines is 4095 [23:54:46]Write to MH i2c: 01 00 00 8F 00 8F [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: 01 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: 01 07 00 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 D1 0A 71 [23:54:46]RasterBufferAndPrint [23:54:46]line [23:54:46]line [23:54:46]line [23:54:46]line [23:54:46]line [23:54:46]written 0, free lines is 2810 [23:54:46]MH_Cut [23:54:46]Write to MH i2c: D1 01 00 96 00 01 68 [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: D1 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: D1 01 00 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: D1 01 00 96 00 00 67 [23:54:46]Write to MH i2c: 01 00 00 97 00 97 [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:47]OFD Sender: No OFD packet to send [23:54:47]*** Cut start [23:54:47]*** Partial cut [23:54:47]*** CUTSNS_PIN = 1 [23:54:47]*** CUTSNS_PIN = 0 [23:54:48]recv_with_timeout no data received [23:54:48]*** Brake cut motor [23:54:48]Read from MH i2c: *** Stop cut motor [23:54:48]01 *** Cut end [23:54:48] [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: 01 07 00 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [23:54:48]process_action x_report done [23:54:48]requested_data is exist [23:54:48]produce_requested_data [23:54:48]requested_item fd.num is exist - process it [23:54:48]SAM_PROTO_GetFieldsCounters [23:54:48]wFMCommunicate request_size=4 [23:54:48]MH_SAM_APDU [23:54:48]CAPDU: 80 13 00 00 [23:54:48]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [23:54:48]Write i2c OK [23:54:48]MH_I2C_Read... [23:54:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:48]Read from MH i2c: E2 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 62 00 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [23:54:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:48]wFMCommunicate OK [23:54:48]SAM_PROTO_GetFieldsCounters done [23:54:48]requested_item shift.num is exist - process it [23:54:48]requested_item shift.opened is exist - process it [23:54:48]req_shift_opened [23:54:48]FM_GetShiftState [23:54:48]SAM_PROTO_GetShiftState [23:54:48]wFMCommunicate request_size=4 [23:54:48]MH_SAM_APDU [23:54:48]CAPDU: 80 13 01 00 [23:54:48]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [23:54:48]Write i2c OK [23:54:48]MH_I2C_Read... [23:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:48]Read from MH i2c: E2 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 0E 00 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 BF [23:54:48]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:54:48]wFMCommunicate OK [23:54:48]SAM_PROTO_GetShiftState done [23:54:48]FM_GetShiftState done [23:54:48]req_shift_opened done [23:54:48]requested_item shift.open_date is exist - process it [23:54:48]req_shift_open_date [23:54:48]req_shift_open_date done [23:54:48]produce_requested_data done [23:54:48]produce_requested_data return {"fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:54:48]process_action_free x_report [23:54:48]json_value_free [23:54:48]json_value_free done [23:54:48]process_json_proto returns [23:54:48]Send response to host [23:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:54:48]free response buf [23:54:48]execute_script done [23:54:48]execute_script returns [23:54:48]free content buf [23:54:48]Sock 7.Close socket [23:54:48]Sock 7.Thread stoped [23:54:52]accept exits with 9 [23:54:52]New connection [23:54:52]New thread 3066998116 created [23:54:52]Thread 3066854756 joined [23:54:52]Waiting for new connection... [23:54:52] Sock 9.Parse request [23:54:52]Sock 9.Check first char [23:54:52]Sock 9.First char is OK [23:54:52]request: POST /json_proto HTTP/1.0 [23:54:52]Method: POST [23:54:52]URL: /json_proto [23:54:52]Method is POST - this is cgi request [23:54:52]url: /json_proto [23:54:52]query_string will be loaded in cgi processing [23:54:52]execute_cgi json_proto POST (null) [23:54:52]execute_cgi path=json_proto method=POST [23:54:52]POST find Content-Length [23:54:52]Host: 172.17.43.195:8080 [23:54:52]Content-Length: 215 [23:54:52]Content-Type: application/json [23:54:52] [23:54:52]POST finish read [23:54:52]Found Content-Length = 215 [23:54: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" ] } } [23:54:52]execute_script... [23:54: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" ] } } [23:54:52]POST & json_proto [23:54:52]process_json_proto [23:54:52]json parsed OK: [23:54:52]protocol is kg_v1.0 [23:54:52]action value=get_value [23:54:52]process_action get_value [23:54:52]cmd_get_value [23:54:52]process_action get_value done [23:54:52]requested_data is exist [23:54:52]produce_requested_data [23:54:52]requested_item kkm.sn is exist - process it [23:54:52]requested_item kkm.ver is exist - process it [23:54:52]requested_item fm.sn is exist - process it [23:54:52]wFMCommunicate request_size=4 [23:54:52]MH_SAM_APDU [23:54:52]CAPDU: 80 11 00 00 [23:54:52]Write to MH i2c: E2 08 00 9A 00 80 11 00 00 00 00 00 00 14 [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:52]Read from MH i2c: E2 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 17 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 17 00 9A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 68 [23:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:54:52]wFMCommunicate OK [23:54:52]requested_item fd.num is exist - process it [23:54:52]SAM_PROTO_GetFieldsCounters [23:54:52]wFMCommunicate request_size=4 [23:54:52]MH_SAM_APDU [23:54:52]CAPDU: 80 13 00 00 [23:54:52]Write to MH i2c: E2 08 00 9B 00 80 13 00 00 00 00 00 00 17 [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]OFD Sender: No OFD packet to send [23:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:52]Read from MH i2c: E2 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 62 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 62 00 9B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [23: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:52]wFMCommunicate OK [23:54:52]SAM_PROTO_GetFieldsCounters done [23:54:52]requested_item shift.num is exist - process it [23:54:52]requested_item shift.opened is exist - process it [23:54:52]req_shift_opened [23:54:52]FM_GetShiftState [23:54:52]SAM_PROTO_GetShiftState [23:54:52]wFMCommunicate request_size=4 [23:54:52]MH_SAM_APDU [23:54:52]CAPDU: 80 13 01 00 [23:54:52]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:52]Read from MH i2c: E2 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 0E 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C2 [23:54:52]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:54:52]wFMCommunicate OK [23:54:52]SAM_PROTO_GetShiftState done [23:54:52]FM_GetShiftState done [23:54:52]req_shift_opened done [23:54:52]requested_item shift.open_date is exist - process it [23:54:52]req_shift_open_date [23:54:52]req_shift_open_date done [23:54:52]produce_requested_data done [23:54:52]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [23:54:52]process_action_free get_value [23:54:52]json_value_free [23:54:52]json_value_free done [23:54:52]process_json_proto returns [23:54:52]Send response to host [23:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73129,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [23:54:52]free response buf [23:54:52]execute_script done [23:54:52]execute_script returns [23:54:52]free content buf [23:54:52]Sock 9.Close socket [23:54:52]Sock 9.Thread stoped [23:54:52]accept exits with 7 [23:54:52]New connection [23:54:52]New thread 3066854756 created [23:54:52]Thread 3066998116 joined [23:54:52]Waiting for new connection... [23:54:52] Sock 7.Parse request [23:54:52]Sock 7.Check first char [23:54:52]Sock 7.First char is OK [23:54:52]request: POST /json_proto HTTP/1.0 [23:54:52]Method: POST [23:54:52]URL: /json_proto [23:54:52]Method is POST - this is cgi request [23:54:52]url: /json_proto [23:54:52]query_string will be loaded in cgi processing [23:54:52]execute_cgi json_proto POST (null) [23:54:52]execute_cgi path=json_proto method=POST [23:54:52]POST find Content-Length [23:54:52]Host: 172.17.43.195:8080 [23:54:52]Content-Length: 331 [23:54:52]Content-Type: application/json [23:54:52] [23:54:52]POST finish read [23:54:52]Found Content-Length = 331 [23:54: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" ] } } [23:54:52]execute_script... [23:54:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:52]POST & json_proto [23:54:52]process_json_proto [23:54:52]json parsed OK: [23:54:52]protocol is kg_v1.0 [23:54:52]action value=get_value [23:54:52]process_action get_value [23:54:52]cmd_get_value [23:54:52]process_action get_value done [23:54:52]requested_data is exist [23:54:52]produce_requested_data [23:54:52]requested_item fm.sale.total is exist - process it [23:54:52]SAM_PROTO_GetFMData [23:54:52]wFMCommunicate request_size=4 [23:54:52]MH_SAM_APDU [23:54:52]CAPDU: 80 13 03 00 [23:54:52]Write to MH i2c: E2 08 00 9D 00 80 13 03 00 00 00 00 00 1C [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:53]Read from MH i2c: E2 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 FD 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 FD 00 9D 00 00 C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 17 [23:54:53]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [23:54:53]wFMCommunicate OK [23:54:53]wFMCommunicate request_size=4 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 17 00 00 [23:54:53]Write to MH i2c: E2 08 00 9E 00 80 17 00 00 00 00 00 00 1E [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:53]Read from MH i2c: E2 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 FD 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 FD 00 9E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 9E [23:54:54]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 17 00 00 [23:54:54]Write to MH i2c: E2 08 00 9F 00 80 17 00 00 00 00 00 00 1F [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 9F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 34 [23:54:54]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 17 00 00 [23:54:54]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 A0 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 98 [23:54:55]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:54:55]wFMCommunicate OK [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 17 00 00 [23:54:55]Write to MH i2c: E2 08 00 A1 00 80 17 00 00 00 00 00 00 21 [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 E1 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 E1 00 A1 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0F [23:54:55]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:56]wFMCommunicate OK [23:54:56]SAM_PROTO_GetFMData done [23:54:56]requested_item fm.sale_refund.total is exist - process it [23:54:56]requested_item fm.buy.total is exist - process it [23:54:56]requested_item shift.sale.total is exist - process it [23:54:56]SAM_PROTO_GetShiftData [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 13 02 00 [23:54:56]Write to MH i2c: E2 08 00 A2 00 80 13 02 00 00 00 00 00 20 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 A2 00 00 AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 16 [23:54:56]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:54:56]wFMCommunicate OK [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 17 00 00 [23:54:56]Write to MH i2c: E2 08 00 A3 00 80 17 00 00 00 00 00 00 23 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 FD 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 FD 00 A3 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 3C [23:54:57]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 OFD Sender: No OFD packet to send [23:54:57]00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:54:57]wFMCommunicate OK [23:54:57]wFMCommunicate request_size=4 [23:54:57]MH_SAM_APDU [23:54:57]CAPDU: 80 17 00 00 [23:54:57]Write to MH i2c: E2 08 00 A4 00 80 17 00 00 00 00 00 00 24 [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 FD 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 FD 00 A4 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 D8 [23:54:58]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:54:58]wFMCommunicate OK [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 17 00 00 [23:54:58]Write to MH i2c: E2 08 00 A5 00 80 17 00 00 00 00 00 00 25 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 FD 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 FD 00 A5 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 A3 [23:54:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:54:59]wFMCommunicate OK [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 17 00 00 [23:54:59]Write to MH i2c: E2 08 00 A6 00 80 17 00 00 00 00 00 00 26 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 CC 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 CC 00 A6 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [23:54:59]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:59]wFMCommunicate OK [23:54:59]SAM_PROTO_GetShiftData done [23:54:59]requested_item shift.sale.total_cash is exist - process it [23:54:59]requested_item shift.sale_refund.total is exist - process it [23:54:59]requested_item shift.sale_refund.total_cash is exist - process it [23:54:59]requested_item shift.buy.total is exist - process it [23:54:59]requested_item shift.buy.total_cash is exist - process it [23:54:59]produce_requested_data done [23:54:59]produce_requested_data return {"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:54:59]process_action_free get_value [23:54:59]json_value_free [23:54:59]json_value_free done [23:54:59]process_json_proto returns [23:54:59]Send response to host [23:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:54:59]free response buf [23:54:59]execute_script done [23:54:59]execute_script returns [23:54:59]free content buf [23:54:59]Sock 7.Close socket [23:54:59]Sock 7.Thread stoped [23:54:59]accept exits with 9 [23:54:59]New connection [23:54:59]New thread 3066998116 created [23:54:59]Thread 3066854756 joined [23:54:59]Waiting for new connection... [23:54:59] Sock 9.Parse request [23:54:59]Sock 9.Check first char [23:54:59]Sock 9.First char is OK [23:54:59]request: POST /json_proto HTTP/1.0 [23:54:59]Method: POST [23:54:59]URL: /json_proto [23:54:59]Method is POST - this is cgi request [23:54:59]url: /json_proto [23:54:59]query_string will be loaded in cgi processing [23:54:59]execute_cgi json_proto POST (null) [23:54:59]execute_cgi path=json_proto method=POST [23:54:59]POST find Content-Length [23:54:59]Host: 172.17.43.195:8080 [23:54:59]Content-Length: 331 [23:54:59]Content-Type: application/json [23:54:59] [23:54:59]POST finish read [23:54:59]Found Content-Length = 331 [23:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:59]execute_script... [23:54:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:59]POST & json_proto [23:54:59]process_json_proto [23:54:59]json parsed OK: [23:54:59]protocol is kg_v1.0 [23:54:59]action value=get_value [23:54:59]process_action get_value [23:54:59]cmd_get_value [23:54:59]process_action get_value done [23:54:59]requested_data is exist [23:54:59]produce_requested_data [23:54:59]requested_item fm.sale.total is exist - process it [23:54:59]SAM_PROTO_GetFMData [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 13 03 00 [23:54:59]Write to MH i2c: E2 08 00 A7 00 80 13 03 00 00 00 00 00 26 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 A7 00 00 C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 21 [23:55:00]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [23:55:00]wFMCommunicate OK [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 17 00 00 [23:55:00]Write to MH i2c: E2 08 00 A8 00 80 17 00 00 00 00 00 00 28 [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 FD 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 FD 00 A8 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 A8 [23:55:01]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:55:01]wFMCommunicate OK [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 17 00 00 [23:55:01]Write to MH i2c: E2 08 00 A9 00 80 17 00 00 00 00 00 00 29 [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 FD 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 FD 00 A9 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 3E [23:55:01]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=4 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 17 00 00 [23:55:02]Write to MH i2c: E2 08 00 AA 00 80 17 00 00 00 00 00 00 2A [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 AA 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 OFD Sender: No OFD packet to send [23:55:02]04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 A2 [23:55:02]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:55:03]wFMCommunicate OK [23:55:03]wFMCommunicate request_size=4 [23:55:03]MH_SAM_APDU [23:55:03]CAPDU: 80 17 00 00 [23:55:03]Write to MH i2c: E2 08 00 AB 00 80 17 00 00 00 00 00 00 2B [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:55:03]Read from MH i2c: E2 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 E1 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 E1 00 AB 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 19 [23:55:03]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:03]wFMCommunicate OK [23:55:03]SAM_PROTO_GetFMData done [23:55:03]requested_item fm.sale_refund.total is exist - process it [23:55:03]requested_item fm.buy.total is exist - process it [23:55:03]requested_item shift.sale.total is exist - process it [23:55:03]SAM_PROTO_GetShiftData [23:55:03]wFMCommunicate request_size=4 [23:55:03]MH_SAM_APDU [23:55:03]CAPDU: 80 13 02 00 [23:55:03]Write to MH i2c: E2 08 00 AC 00 80 13 02 00 00 00 00 00 2A [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:04]Read from MH i2c: E2 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 AC 00 00 AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 20 [23:55:04]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:55:04]wFMCommunicate OK [23:55:04]wFMCommunicate request_size=4 [23:55:04]MH_SAM_APDU [23:55:04]CAPDU: 80 17 00 00 [23:55:04]Write to MH i2c: E2 08 00 AD 00 80 17 00 00 00 00 00 00 2D [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:04]Read from MH i2c: E2 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 AD 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 46 [23:55:05]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:55:05]wFMCommunicate OK [23:55:05]wFMCommunicate request_size=4 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 17 00 00 [23:55:05]Write to MH i2c: E2 08 00 AE 00 80 17 00 00 00 00 00 00 2E [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 AE 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 E2 [23:55:05]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:55:06]wFMCommunicate OK [23:55:06]wFMCommunicate request_size=4 [23:55:06]MH_SAM_APDU [23:55:06]CAPDU: 80 17 00 00 [23:55:06]Write to MH i2c: E2 08 00 AF 00 80 17 00 00 00 00 00 00 2F [23:55:06]Write i2c OK [23:55:06]MH_I2C_Read... [23:55:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:06]Read from MH i2c: E2 [23:55:06]MH_I2C_Read... [23:55:06]Read from MH i2c: E2 FD 00 [23:55:06]MH_I2C_Read... [23:55:06]Read from MH i2c: E2 FD 00 AF 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 AD [23:55:06]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:55:06]wFMCommunicate OK [23:55:06]wFMCommunicate request_size=4 [23:55:06]MH_SAM_APDU [23:55:06]CAPDU: 80 17 00 00 [23:55:06]Write to MH i2c: E2 08 00 B0 00 80 17 00 00 00 00 00 00 30 [23:55:06]Write i2c OK [23:55:06]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 CC 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 CC 00 B0 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 11 [23:55:07]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:07]wFMCommunicate OK [23:55:07]SAM_PROTO_GetShiftData done [23:55:07]requested_item shift.sale.total_cash is exist - process it [23:55:07]requested_item shift.sale_refund.total is exist - process it [23:55:07]requested_item shift.sale_refund.total_cash is exist - process it [23:55:07]requested_item shift.buy.total is exist - process it [23:55:07]requested_item shift.buy.total_cash is exist - process it [23:55:07]produce_requested_data done [23:55:07]produce_requested_data return {"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:55:07]process_action_free get_value [23:55:07]json_value_free [23:55:07]json_value_free done [23:55:07]process_json_proto returns [23:55:07]Send response to host [23:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:55:07]free response buf [23:55:07]execute_script done [23:55:07]execute_script returns [23:55:07]free content buf [23:55:07]Sock 9.Close socket [23:55:07]Sock 9.Thread stoped [23:55:07]accept exits with 7 [23:55:07]New connection [23:55:07]New thread 3066854756 created [23:55:07]Thread 3066998116 joined [23:55:07]Waiting for new connection... [23:55:07] Sock 7.Parse request [23:55:07]Sock 7.Check first char [23:55:07]Sock 7.First char is OK [23:55:07]request: POST /json_proto HTTP/1.0 [23:55:07]Method: POST [23:55:07]URL: /json_proto [23:55:07]Method is POST - this is cgi request [23:55:07]url: /json_proto [23:55:07]query_string will be loaded in cgi processing [23:55:07]execute_cgi json_proto POST (null) [23:55:07]execute_cgi path=json_proto method=POST [23:55:07]POST find Content-Length [23:55:07]Host: 172.17.43.195:8080 [23:55:07]Content-Length: 260 [23:55:07]Content-Type: application/json [23:55:07] [23:55:07]POST finish read [23:55:07]Found Content-Length = 260 [23:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:07]execute_script... [23:55:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:07]POST & json_proto [23:55:07]process_json_proto [23:55:07]json parsed OK: [23:55:07]protocol is kg_v1.0 [23:55:07]action value=close_shift [23:55:07]process_action close_shift [23:55:07]cmd_close_shift [23:55:07]MH_GetDate [23:55:07]Write to MH i2c: F0 00 00 B1 00 A0 [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: F0 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: F0 09 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: F0 09 00 B1 00 00 DC 18 24 67 74 2C AD 66 DB [23:55:07]GetLastDocTimeStamp 1730418878 [23:55:07]current date 1730418908 [23:55:07]FM_GetShiftState [23:55:07]SAM_PROTO_GetShiftState [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 13 01 00 [23:55:07]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 0E 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 D8 [23:55:07]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [23:55:07]wFMCommunicate OK [23:55:07]SAM_PROTO_GetShiftState done [23:55:07]FM_GetShiftState done [23:55:07]KKMCreateCloseShiftDocument [23:55:07]Load OK [23:55:07]Malloc new data [23:55:07]MH_GetDate [23:55:07]Write to MH i2c: F0 00 00 B3 00 A2 [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: F0 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: F0 09 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: F0 09 00 B3 00 00 DC 18 24 67 74 2C AD 66 DD [23:55:07]Malloc new data [23:55:07]Malloc new data [23:55:07]Malloc new data [23:55:07]Malloc new data [23:55:07]KKMCreateCloseShiftDocument OK [23:55:07]KKMSetCloseShiftData OK [23:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=71 [23:55:07]tlvbuf is 00D8C180 [23:55:07]KKMLoadAndSignCloseShiftData [23:55:07]SAM_PROTO_ProcessDocument [23:55:07]wFMCommunicate request_size=9 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 15 01 00 04 05 00 47 00 [23:55:07]Write to MH i2c: E2 0C 00 B4 00 80 15 01 00 04 00 05 00 47 00 00 00 87 [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]OFD Sender: No OFD packet to send [23:55:07]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 03 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [23:55:07]RAPDU: 90 00 [23:55:07]wFMCommunicate OK [23:55:07]wFMCommunicate request_size=23 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:55:07]Write to MH i2c: E2 1A 00 B5 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 2A [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 03 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [23:55:08]RAPDU: 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=30 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 [23:55:08]Write to MH i2c: E2 21 00 B6 00 80 15 02 00 19 00 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 00 00 11 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 03 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [23:55:08]RAPDU: 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=13 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 15 02 00 08 F4 03 04 00 DC 18 24 67 [23:55:08]Write to MH i2c: E2 10 00 B7 00 80 15 02 00 08 00 F4 03 04 00 DC 18 24 67 00 00 C1 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 03 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [23:55:08]RAPDU: 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=25 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [23:55:08]Write to MH i2c: E2 1C 00 B8 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 99 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 03 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 03 00 B8 00 00 90 00 2C [23:55:08]RAPDU: 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 15 03 00 [23:55:08]Write to MH i2c: E2 08 00 B9 00 80 15 03 00 00 00 00 00 3A [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]recv_with_timeout no data received [23:55:08]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 B9 00 00 F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1D 01 00 0E 04 04 00 2D 02 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 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 90 00 58 [23:55:09]RAPDU: F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1D 01 00 0E 04 04 00 2D 02 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 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 90 00 [23:55:09]wFMCommunicate OK [23:55:09]SAM_PROTO_ProcessDocument answer len = 1266 [23:55:09]SAM_PROTO_ProcessDocument remain to read = 1018 [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 17 00 00 [23:55:09]Write to MH i2c: E2 08 00 BA 00 80 17 00 00 00 00 00 00 3A [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 BA 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 80 [23:55:10]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [23:55:10]wFMCommunicate OK [23:55:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:10]SAM_PROTO_ProcessDocument remain to read = 768 [23:55:10]wFMCommunicate request_size=4 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 17 00 00 [23:55:10]Write to MH i2c: E2 08 00 BB 00 80 17 00 00 00 00 00 00 3B [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 BB 00 00 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 9D [23:55:10]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [23:55:11]wFMCommunicate OK [23:55:11]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:11]SAM_PROTO_ProcessDocument remain to read = 518 [23:55:11]wFMCommunicate request_size=4 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 17 00 00 [23:55:11]Write to MH i2c: E2 08 00 BC 00 80 17 00 00 00 00 00 00 3C [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 BC 00 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D7 [23:55:11]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:11]wFMCommunicate OK [23:55:11]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:11]SAM_PROTO_ProcessDocument remain to read = 268 [23:55:11]wFMCommunicate request_size=4 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 17 00 00 [23:55:11]Write to MH i2c: E2 08 00 BD 00 80 17 00 00 00 00 00 00 3D [23:55:12]Write i2c OK [23:55:12]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 FD 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 FD 00 BD 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 F4 [23:55:12]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 [23:55:12]wFMCommunicate OK [23:55:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:12]SAM_PROTO_ProcessDocument remain to read = 18 [23:55:12]wFMCommunicate request_size=4 [23:55:12]MH_SAM_APDU [23:55:12]CAPDU: 80 17 00 00 [23:55:12]Write to MH i2c: E2 08 00 BE 00 80 17 00 00 00 00 00 00 3E [23:55:12]Write i2c OK [23:55:12]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 15 00 [23:55:12]MH_I2C_Read... [23:55:12]OFD Sender: No OFD packet to send [23:55:12]Read from MH i2c: E2 15 00 BE 00 00 03 01 00 06 F7 03 00 00 35 04 06 00 8E 3C 1B 4C CB 4F 90 00 D2 [23:55:12]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 8E 3C 1B 4C CB 4F 90 00 [23:55:12]wFMCommunicate OK [23:55:12]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [23:55:12]SAM_PROTO_ProcessDocument done [23:55:12]1209 (1) - 1.0 - номер версии ФФД [23:55:12]1041 (16) - 0000000000874662 - номер ФМ [23:55:12]1040 (4) - 73130 - номер ФД [23:55:13]1038 (4) - 557 - номер смены [23:55:13]1118 (4) - 204 - количество кассовых чеков за смену [23:55:13]1111 (4) - 206 - общее количество ФД за смену [23:55:13]1194 (1195) - счетчики итогов смены [23:55:13] 1134 (4) - 204 - количество чеков со всеми признаками расчетов [23:55:13] 1129 (156) - счетчики операций «приход» [23:55:13] 1135 (4) - 204 - количество чеков по признаку расчетов [23:55:13] 1201 (3) - 140278.87 - общая итоговая сумма в чеках [23:55:13] 1136 (3) - 94077.00 - итоговая сумма в чеках наличными [23:55:13] 1138 (3) - 46201.87 - итоговая сумма в чеках безналичными [23:55:13] 1024 (123) - суммы налогов [23:55:13] 1006 (9) - суммы НДС [23:55:13] 1010 (1) - 0% - код ставки НДС [23:55:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:13] 1006 (12) - суммы НДС [23:55:13] 1010 (1) - 12% - код ставки НДС [23:55:13] 1011 (3) - 14899.77 - сумма НДС по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 0% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (12) - суммы НСП [23:55:13] 1014 (1) - 1% - код ставки НСП [23:55:13] 1015 (3) - 1241.58 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 2% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 3% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 5% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 0,50% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 1,50% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1130 (141) - счетчики операций «возврат прихода» [23:55:13] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:13] 1024 (117) - суммы налогов [23:55:13] 1006 (9) - суммы НДС [23:55:13] 1010 (1) - 0% - код ставки НДС [23:55:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:13] 1006 (9) - суммы НДС [23:55:13] 1010 (1) - 12% - код ставки НДС [23:55:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 0% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 1% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 2% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 3% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 5% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 0,50% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 1,50% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1131 (141) - счетчики операций «расход» [23:55:13] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:13] 1024 (117) - суммы налогов [23:55:13] 1006 (9) - суммы НДС [23:55:13] 1010 (1) - 0% - код ставки НДС [23:55:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:13] 1006 (9) - суммы НДС [23:55:13] 1010 (1) - 12% - код ставки НДС [23:55:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 0% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 1% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 2% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 3% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 5% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 0,50% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 1,50% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1132 (141) - счетчики операций «возврат расхода» [23:55:13] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:13] 1024 (117) - суммы налогов [23:55:13] 1006 (9) - суммы НДС [23:55:13] 1010 (1) - 0% - код ставки НДС [23:55:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:13] 1006 (9) - суммы НДС [23:55:13] 1010 (1) - 12% - код ставки НДС [23:55:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 0% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 1% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 2% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 3% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 5% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 0,50% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1007 (9) - суммы НСП [23:55:13] 1014 (1) - 1,50% - код ставки НСП [23:55:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:13] 1133 (588) - - счетчики коррекции - не используются [23:55:13]1077 (6) - 156388807199567 - ФПД [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1209 (04B9) [23:55:13]Malloc new data [23:55:13]Processing tag 1041 (0411) [23:55:13]Processing tag 1040 (0410) [23:55:13]Malloc new data [23:55:13]Processing tag 1038 (040E) [23:55:13]Malloc new data [23:55:13]Processing tag 1118 (045E) [23:55:13]Malloc new data [23:55:13]Processing tag 1111 (0457) [23:55:13]Malloc new data [23:55:13]Processing tag 1194 (04AA) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1134 (046E) [23:55:13]Malloc new data [23:55:13]Processing tag 1129 (0469) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1135 (046F) [23:55:13]Malloc new data [23:55:13]Processing tag 1201 (04B1) [23:55:13]Malloc new data [23:55:13]Processing tag 1136 (0470) [23:55:13]Malloc new data [23:55:13]Processing tag 1138 (0472) [23:55:13]Malloc new data [23:55:13]Processing tag 1024 (0400) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1006 (03EE) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1010 (03F2) [23:55:13]Malloc new data [23:55:13]Processing tag 1011 (03F3) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1006 (03EE) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1010 (03F2) [23:55:13]Malloc new data [23:55:13]Processing tag 1011 (03F3) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]SetTLVBufToDocument err=0 [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1130 (046A) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1135 (046F) [23:55:13]Malloc new data [23:55:13]Processing tag 1201 (04B1) [23:55:13]Malloc new data [23:55:13]Processing tag 1136 (0470) [23:55:13]Malloc new data [23:55:13]Processing tag 1138 (0472) [23:55:13]Malloc new data [23:55:13]Processing tag 1024 (0400) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1006 (03EE) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1010 (03F2) [23:55:13]Malloc new data [23:55:13]Processing tag 1011 (03F3) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1006 (03EE) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1010 (03F2) [23:55:13]Malloc new data [23:55:13]Processing tag 1011 (03F3) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]SetTLVBufToDocument err=0 [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1131 (046B) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1135 (046F) [23:55:14]Malloc new data [23:55:14]Processing tag 1201 (04B1) [23:55:14]Malloc new data [23:55:14]Processing tag 1136 (0470) [23:55:14]Malloc new data [23:55:14]Processing tag 1138 (0472) [23:55:14]Malloc new data [23:55:14]Processing tag 1024 (0400) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1006 (03EE) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1010 (03F2) [23:55:14]Malloc new data [23:55:14]Processing tag 1011 (03F3) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1006 (03EE) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1010 (03F2) [23:55:14]Malloc new data [23:55:14]Processing tag 1011 (03F3) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]SetTLVBufToDocument err=0 [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1132 (046C) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1135 (046F) [23:55:14]Malloc new data [23:55:14]Processing tag 1201 (04B1) [23:55:14]Malloc new data [23:55:14]Processing tag 1136 (0470) [23:55:14]Malloc new data [23:55:14]Processing tag 1138 (0472) [23:55:14]Malloc new data [23:55:14]Processing tag 1024 (0400) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1006 (03EE) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1010 (03F2) [23:55:14]Malloc new data [23:55:14]Processing tag 1011 (03F3) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1006 (03EE) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1010 (03F2) [23:55:14]Malloc new data [23:55:14]Processing tag 1011 (03F3) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1007 (03EF) [23:55:14]Load OK [23:55:14]SetTLVBufToDocument [23:55:14]Processing tag 1014 (03F6) [23:55:14]Malloc new data [23:55:14]Processing tag 1015 (03F7) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]SetTLVBufToDocument err=0 [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1133 (046D) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Processing tag 1077 (0435) [23:55:14]Malloc new data [23:55:14]SetTLVBufToDocument err=0 [23:55:14]Malloc new data [23:55:14]SAM_PROTO_GetFMData [23:55:14]wFMCommunicate request_size=4 [23:55:14]MH_SAM_APDU [23:55:14]CAPDU: 80 13 03 00 [23:55:14]Write to MH i2c: E2 08 00 BF 00 80 13 03 00 00 00 00 00 3E [23:55:14]Write i2c OK [23:55:14]MH_I2C_Read... [23:55:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:14]Read from MH i2c: E2 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 BF 00 00 C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 39 [23:55:14]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [23:55:15]wFMCommunicate OK [23:55:15]wFMCommunicate request_size=4 [23:55:15]MH_SAM_APDU [23:55:15]CAPDU: 80 17 00 00 [23:55:15]Write to MH i2c: E2 08 00 C0 00 80 17 00 00 00 00 00 00 40 [23:55:15]Write i2c OK [23:55:15]MH_I2C_Read... [23:55:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:15]Read from MH i2c: E2 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 FD 00 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 FD 00 C0 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 C0 [23:55:15]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:55:16]wFMCommunicate OK [23:55:16]wFMCommunicate request_size=4 [23:55:16]MH_SAM_APDU [23:55:16]CAPDU: 80 17 00 00 [23:55:16]Write to MH i2c: E2 08 00 C1 00 80 17 00 00 00 00 00 00 41 [23:55:16]Write i2c OK [23:55:16]MH_I2C_Read... [23:55:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:16]Read from MH i2c: E2 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 FD 00 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 FD 00 C1 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 56 [23:55:16]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:55:16]wFMCommunicate OK [23:55:16]wFMCommunicate request_size=4 [23:55:17]MH_SAM_APDU [23:55:17]CAPDU: 80 17 00 00 [23:55:17]Write to MH i2c: E2 08 00 C2 00 80 17 00 00 00 00 00 00 42 [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:17]Read from MH i2c: E2 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 FD 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 FD 00 C2 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 BA [23:55:17]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:55:17]wFMCommunicate OK [23:55:17]wFMCommunicate request_size=4 [23:55:17]MH_SAM_APDU [23:55:17]CAPDU: 80 17 00 00 [23:55:17]Write to MH i2c: E2 08 00 C3 00 80 17 00 00 00 00 00 00 43 [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]OFD Sender: No OFD packet to send [23:55:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 E1 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 E1 00 C3 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 31 [23:55:18]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:18]wFMCommunicate OK [23:55:18]SAM_PROTO_GetFMData done [23:55:18]Malloc new data [23:55:18]Malloc new data [23:55:18]Malloc new data [23:55:18]Malloc new data [23:55:18]KKMLoadAndSignCloseShiftData err=0 [23:55:18]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Эргешова З. 31.10.2024 23:55 Смена: 557 РНМ: 0000000000091644 ЗНМ: 0300000087 СНО: Общий режим Чеков за смену: 204 ФД за смену: 206 Всего чеков: 204 ИТОГИ ПРИХОД Чеков: 204 Общий итог: 140278.87 Итого наличными: 94077.00 Итого безнал.: 46201.87 НДС 0% : 0.00 НДС 12% : 14899.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1241.58 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 94077.00 НС Приход: 70619282.32 НС Возвр.Прихода: 837831.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 73130 ФМ: 0000000000874662 ФПД: 156388807199567 [23:55:18]StoreToDocumentArchive [23:55:18]shift 557 fd 73130 [23:55:18]save to /storage/0557/doc_00073130 [23:55:18]save last doc name /storage/0557/doc_00073130 to /storage/kkm_last_doc_name [23:55:18]save OK [23:55:18]Clear old archive folders... [23:55:18]Remove dir /storage/0522 [23:55:18]opendir ok [23:55:18]file . [23:55:18]file .. [23:55:18]file doc_1730418886 [23:55:18]remove file /storage/0522/doc_1730418886 [23:55:18]remove dir /storage/0522 [23:55:18]NVStorageSaveData kkm_registers [23:55:18]File name is /storage/kkm_registers [23:55:18]Write 24 bytes [23:55:18]NVStorageSaveData done [23:55:18]NVStorageSaveData kkm_registers [23:55:18]File name is /storage/kkm_registers [23:55:18]Write 24 bytes [23:55:18]NVStorageSaveData done [23:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=1380 [23:55:18]tlvbuf is 00DD4270 [23:55:18]SAM_PROTO_ClearQueue [23:55:18]wFMCommunicate request_size=4 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 09 00 00 [23:55:18]Write to MH i2c: E2 08 00 C4 00 80 09 00 00 00 00 00 00 36 [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [23:55:18]RAPDU: 90 00 [23:55:18]wFMCommunicate OK [23:55:18]SAM_PROTO_ClearQueue done [23:55:18]KKMCreateOFDPacket [23:55:18]OFDProtocolAddRootSTLVToBuf [23:55:18]FM_MakeSignedData [23:55:18]FM_MakeSignedData [23:55:18]SAM_PROTO_SignData [23:55:18]wFMCommunicate request_size=4 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 0D 01 02 [23:55:18]Write to MH i2c: E2 08 00 C5 00 80 0D 01 02 00 00 00 00 3E [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [23:55:18]RAPDU: 90 00 [23:55:18]wFMCommunicate OK [23:55:18]wFMCommunicate request_size=255 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 0D 02 02 FA 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 DC 18 24 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 D6 04 6E 04 04 00 CC 00 00 00 69 04 A3 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 [23:55:19]Write to MH i2c: E2 02 01 C6 00 80 0D 02 02 FA 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 DC 18 24 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 D6 04 6E 04 04 00 CC 00 00 00 69 04 A3 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 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 recv_with_timeout no data received [23:55:19]03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 C4 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [23:55:19]RAPDU: 90 00 [23:55:19]wFMCommunicate OK [23:55:19]wFMCommunicate request_size=255 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF [23:55:20]Write to MH i2c: E2 02 01 C7 00 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 00 00 85 [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 03 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [23:55:20]RAPDU: 90 00 [23:55:20]wFMCommunicate OK [23:55:20]wFMCommunicate request_size=255 [23:55:20]MH_SAM_APDU [23:55:20]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 [23:55:21]Write to MH i2c: E2 02 01 C8 00 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 00 00 11 [23:55:21]Write i2c OK [23:55:21]MH_I2C_Read... [23:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:21]Read from MH i2c: E2 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 03 00 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [23:55:21]RAPDU: 90 00 [23:55:21]wFMCommunicate OK [23:55:21]wFMCommunicate request_size=255 [23:55:21]MH_SAM_APDU [23:55:21]CAPDU: 80 0D 02 02 FA 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 [23:55:22]Write to MH i2c: E2 02 01 C9 00 80 0D 02 02 FA 00 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 00 00 12 [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:22]Read from MH i2c: E2 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 03 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [23:55:22]RAPDU: 90 00 [23:55:22]wFMCommunicate OK [23:55:22]wFMCommunicate request_size=255 [23:55:22]MH_SAM_APDU [23:55:22]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 [23:55:23]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 OFD Sender: No OFD packet to send [23:55:23]70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 00 00 CD [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:23]Read from MH i2c: E2 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 03 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [23:55:23]RAPDU: 90 00 [23:55:23]wFMCommunicate OK [23:55:23]wFMCommunicate request_size=139 [23:55:23]MH_SAM_APDU [23:55:23]CAPDU: 80 0D 02 02 86 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 AA 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8E 3C 1B 4C CB 4F [23:55:23]Write to MH i2c: E2 8E 00 CB 00 80 0D 02 02 86 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 AA 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8E 3C 1B 4C CB 4F 00 00 96 [23:55:24]Write i2c OK [23:55:24]MH_I2C_Read... [23:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:24]Read from MH i2c: E2 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 03 00 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [23:55:24]RAPDU: 90 00 [23:55:24]wFMCommunicate OK [23:55:24]wFMCommunicate request_size=4 [23:55:24]MH_SAM_APDU [23:55:24]CAPDU: 80 0D 03 02 [23:55:24]Write to MH i2c: E2 08 00 CC 00 80 0D 03 02 00 00 00 00 47 [23:55:24]Write i2c OK [23:55:24]MH_I2C_Read... [23:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:24]Read from MH i2c: E2 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 0B 00 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 0B 00 CC 00 00 A2 AC DA BE 3B 37 07 7E 90 00 25 [23:55:24]RAPDU: A2 AC DA BE 3B 37 07 7E 90 00 [23:55:24]wFMCommunicate OK [23:55:24]SAM_PROTO_SignData done [23:55:24]FM_MakeSignedData done [23:55:24]CreateOFDProtocolMessage [23:55:24]wFMCommunicate request_size=4 [23:55:24]MH_SAM_APDU [23:55:24]CAPDU: 80 11 00 00 [23:55:24]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [23:55:24]Write i2c OK [23:55:24]MH_I2C_Read... [23:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:24]Read from MH i2c: E2 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 17 00 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9B [23:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:55:24]wFMCommunicate OK [23:55:24]CreateOFDProtocolMessage done [23:55:24]OFDSenderStorePacket 73130 [23:55:24]StoreOFDPacket docnum=73130 [23:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 78 05 00 00 CB B1 70 05 3B 73 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 DC 18 24 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 D6 04 6E 04 04 00 CC 00 00 00 69 04 A3 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 AA 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8E 3C 1B 4C CB 4F A2 AC DA BE 3B 37 07 7E [23:55:24]CheckFolder [23:55:24]dirname=/storage/ofd_packets [23:55:24]CheckFolder done [23:55:25]ProducePacketName [23:55:25]name=ofd_packets/00073130 [23:55:25]NVStorageSaveData ofd_packets/00073130 [23:55:25]File name is /storage/ofd_packets/00073130 [23:55:25]Write 1430 bytes [23:55:25]NVStorageSaveData done [23:55:25]OFDSenderStorePacket done [23:55:25]KKMCreateOFDPacket done [23:55:25]NVStorageSaveData kkm_last_timestamp [23:55:25]File name is /storage/kkm_last_timestamp [23:55:25]Write 4 bytes [23:55:25]NVStorageSaveData done [23:55:25]ExternCall_PrintAddStr [23:55:25]wPrintStart [23:55:25]Write to MH i2c: 01 00 00 CE 00 CE [23:55:25]Write i2c OK [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: 01 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: 01 07 00 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [23:55:25]RasterBufferAndPrint [23:55:25]line Отчет о закрытии смены [23:55:25]line ФФД: 1.0 [23:55:25]line ИНН: 02508201610067 [23:55:25]line Кассир: Эргешова З. [23:55:25]line 31.10.2024 23:55 [23:55:25]line Смена: 557 [23:55:25]line РНМ: 0000000000091644 [23:55:25]line ЗНМ: 0300000087 [23:55:25]line СНО: Общий режим [23:55:25]line Чеков за смену: 204 [23:55:25]line ФД за смену: 206 [23:55:25]line Всего чеков: 204 [23:55:25]line ИТОГИ ПРИХОД [23:55:25]line Чеков: 204 [23:55:25]line Общий итог: 140278.87 [23:55:25]line Итого наличными: 94077.00 [23:55:25]line Итого безнал.: 46201.87 [23:55:25]line НДС 0% : 0.00 [23:55:25]line НДС 12% : 14899.77 [23:55:25]line НСП 0% : 0.00 [23:55:25]line НСП 1,50% : 0.00 [23:55:25]line НСП 0,50% : 0.00 [23:55:25]line НСП 5% : 0.00 [23:55:25]line НСП 3% : 0.00 [23:55:25]line НСП 2% : 0.00 [23:55:25]line НСП 1% : 1241.58 [23:55:25]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:55:25]line Чеков: 0 [23:55:25]line Общий итог: 0.00 [23:55:25]line Итого наличными: 0.00 [23:55:25]line Итого безнал.: 0.00 [23:55:25]line НДС 0% : 0.00 [23:55:25]line НДС 12% : 0.00 [23:55:25]line НСП 0% : 0.00 [23:55:25]line НСП 1,50% : 0.00 [23:55:25]line НСП 0,50% : 0.00 [23:55:25]line НСП 5% : 0.00 [23:55:25]line НСП 3% : 0.00 [23:55:25]line НСП 2% : 0.00 [23:55:25]line НСП 1% : 0.00 [23:55:25]line ИТОГИ РАСХОД [23:55:25]line Чеков: 0 [23:55:25]line Общий итог: 0.00 [23:55:25]line Итого наличными: 0.00 [23:55:25]line Итого безнал.: 0.00 [23:55:25]line НДС 0% : 0.00 [23:55:25]line НДС 12% : 0.00 [23:55:25]line НСП 0% : 0.00 [23:55:25]line НСП 1,50% : 0.00 [23:55:25]line НСП 0,50% : 0.00 [23:55:25]line НСП 5% : 0.00 [23:55:25]line НСП 3% : 0.00 [23:55:25]line НСП 2% : 0.00 [23:55:25]line НСП 1% : 0.00 [23:55:25]line ИТОГИ ВОЗВРАТ РАСХОДА [23:55:25]line Чеков: 0 [23:55:25]line Общий итог: 0.00 [23:55:25]line Итого наличными: 0.00 [23:55:25]line Итого безнал.: 0.00 [23:55:25]line НДС 0% : 0.00 [23:55:25]line НДС 12% : 0.00 [23:55:25]line НСП 0% : 0.00 [23:55:25]line НСП 1,50% : 0.00 [23:55:25]line НСП 0,50% : 0.00 [23:55:25]line НСП 5% : 0.00 [23:55:25]line НСП 3% : 0.00 [23:55:25]line НСП 2% : 0.00 [23:55:25]line НСП 1% : 0.00 [23:55:25]line Сумма внесений: 0.00 [23:55:25]line Сумма выплат: 0.00 [23:55:25]line Нал. в кассе: 94077.00 [23:55:25]line НС Приход: 70619282.32 [23:55:25]line НС Возвр.Прихода: 837831.00 [23:55:25]line НС Расход: 0.00 [23:55:25]line НС Возвр.Расхода: 0.00 [23:55:25]line ФД: 73130 [23:55:25]line ФМ: 0000000000874662 [23:55:25]line ФПД: 156388807199567 [23:55:25]OFD Sender: Processing packet 73130 [packets to send 282, broken 281] [23:55:25]ProducePacketName [23:55:25]name=ofd_packets/00073130 [23:55:25]OFD Sender: To server: pG, [23:55:25]CommunicateWithHost lk.salyk.kg:30040 [23:55:25]ConnectInit lk.salyk.kg [23:55:25]written 0, free lines is 4095 [23:55:26]Write to MH i2c: 01 00 00 1E 01 1F [23:55:26]Write i2c OK [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: 01 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: 01 07 00 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: 01 07 00 1E 01 00 00 00 00 00 8C 0A BC [23:55:26]RasterBufferAndPrint [23:55:26]line [23:55:26]line [23:55:26]line [23:55:26]line [23:55:26]line [23:55:26]written 0, free lines is 2774 [23:55:26]MH_Cut [23:55:26]Write to MH i2c: D1 01 00 25 01 01 F8 [23:55:26]Write i2c OK [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: D1 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: D1 01 00 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: D1 01 00 25 01 00 F7 [23:55:26]Write to MH i2c: 01 00 00 26 01 27 [23:55:26]Write i2c OK [23:55:26]MH_I2C_Read... [23:55:27]*** Cut start [23:55:27]*** Partial cut [23:55:27]*** CUTSNS_PIN = 1 [23:55:27]*** CUTSNS_PIN = 0 [23:55:27]*** Brake cut motor [23:55:27]Read from MH i2c: *** Stop cut motor [23:55:27]01 *** Cut end [23:55:27] [23:55:27]MH_I2C_Read... [23:55:27]Read from MH i2c: 01 07 00 [23:55:27]MH_I2C_Read... [23:55:27]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [23:55:27]process_action close_shift done [23:55:27]requested_data is exist [23:55:27]produce_requested_data [23:55:27]requested_item fd.num is exist - process it [23:55:27]SAM_PROTO_GetFieldsCounters [23:55:27]wFMCommunicate request_size=4 [23:55:27]MH_SAM_APDU [23:55:27]CAPDU: 80 13 00 00 [23:55:27]Write to MH i2c: E2 08 00 27 01 80 13 00 00 00 00 00 00 A4 [23:55:27]Write i2c OK [23:55:27]MH_I2C_Read... [23:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:28]Read from MH i2c: E2 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 62 00 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 62 00 27 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AA 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [23:55:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AA 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:28]wFMCommunicate OK [23:55:28]SAM_PROTO_GetFieldsCounters done [23:55:28]requested_item shift.num is exist - process it [23:55:28]requested_item shift.opened is exist - process it [23:55:28]req_shift_opened [23:55:28]FM_GetShiftState [23:55:28]SAM_PROTO_GetShiftState [23:55:28]wFMCommunicate request_size=4 [23:55:28]MH_SAM_APDU [23:55:28]CAPDU: 80 13 01 00 [23:55:28]Write to MH i2c: E2 08 00 28 01 80 13 01 00 00 00 00 00 A6 [23:55:28]Write i2c OK [23:55:28]MH_I2C_Read... [23:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:28]Read from MH i2c: E2 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 0E 00 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 0E 00 28 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B1 [23:55:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:55:28]wFMCommunicate OK [23:55:28]SAM_PROTO_GetShiftState done [23:55:28]FM_GetShiftState done [23:55:28]req_shift_opened done [23:55:28]requested_item shift.open_date is exist - process it [23:55:28]req_shift_open_date [23:55:28]FM_GetShiftState [23:55:28]SAM_PROTO_GetShiftState [23:55:28]wFMCommunicate request_size=4 [23:55:28]MH_SAM_APDU [23:55:28]CAPDU: 80 13 01 00 [23:55:28]Write to MH i2c: E2 08 00 29 01 80 13 01 00 00 00 00 00 A7 [23:55:28]Write i2c OK [23:55:28]MH_I2C_Read... [23:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:28]Read from MH i2c: E2 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 0E 00 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 0E 00 29 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B2 [23:55:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:55:28]wFMCommunicate OK [23:55:28]SAM_PROTO_GetShiftState done [23:55:28]FM_GetShiftState done [23:55:28]req_shift_open_date done [23:55:28]produce_requested_data done [23:55:28]produce_requested_data return {"fd.num":73130,"shift.num":557,"shift.opened":0,"shift.open_date":0} [23:55:28]process_action_free close_shift [23:55:28]json_value_free [23:55:28]json_value_free done [23:55:28]process_json_proto returns [23:55:28]Send response to host [23:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":73130,"shift.num":557,"shift.opened":0,"shift.open_date":0}}} [23:55:28]free response buf [23:55:28]execute_script done [23:55:28]execute_script returns [23:55:28]free content buf [23:55:28]Sock 7.Close socket [23:55:28]Sock 7.Thread stoped [23:55:30]ConnectInit Can't take IP for lk.salyk.kg [23:55:30]CommunicateWithHost connect error [23:55:30]CommunicateWithHost err = -1 [23:55:30]OFD Sender: Server communicate error [23:55:35]OFD Sender: Processing packet 73130 [packets to send 282, broken 281] [23:55:35]ProducePacketName [23:55:35]name=ofd_packets/00073130 [23:55:35]OFD Sender: To server: pG, [23:55:35]CommunicateWithHost lk.salyk.kg:30040 [23:55:35]ConnectInit lk.salyk.kg [23:55:35]Connected sock=7 [23:55:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 78 05 00 00 CB B1 70 05 3B 73 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 DC 18 24 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 D6 04 6E 04 04 00 CC 00 00 00 69 04 A3 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 AA 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8E 3C 1B 4C CB 4F A2 AC DA BE 3B 37 07 7E [23:55:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 90 D8 47 00 D8 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1D 01 00 F4 03 04 00 AC C3 23 67 B6 04 01 00 00 16 DF 7F 16 91 04 C4 92 [23:55:38]CommunicateWithHost err = 0 [23:55:38]CheckOFDResponse [23:55:38]1017 (14) - 77093643461234 [23:55:38]1041 (16) - 0000000000874662 [23:55:38]1040 (4) - 73130 [23:55:38]1012 (4) - 31.10.2024 17:51 [23:55:38]1206 (1) - 0 [23:55:38]OFD Sender: Remove packet 73130 [23:55:38]ProducePacketName [23:55:38]name=ofd_packets/00073130 [23:55:38]NVStorageDeleteData [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:12]recv_with_timeout no data received [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:35]recv_with_timeout no data received [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:48]recv_with_timeout no data received [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:00]recv_with_timeout no data received [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:12]recv_with_timeout no data received [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:26]recv_with_timeout no data received [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:38]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:30]recv_with_timeout no data received [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:45]recv_with_timeout no data received [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:00]recv_with_timeout no data received [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:14]recv_with_timeout no data received [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:02]recv_with_timeout no data received [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:06]recv_with_timeout no data received [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]recv_with_timeout no data received [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:47]recv_with_timeout no data received [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]recv_with_timeout no data received [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:52]recv_with_timeout no data received [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:38]recv_with_timeout no data received [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]recv_with_timeout no data received [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:00]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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:03]recv_with_timeout no data received [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:20]recv_with_timeout no data received [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:40]accept exits with 9 [00:06:40]New connection [00:06:40]New thread 3066998116 created [00:06:40]Thread 3066854756 joined [00:06:40]Waiting for new connection... [00:06:40] Sock 9.Parse request [00:06:40]Sock 9.Check first char [00:06:40]Sock 9.First char is OK [00:06:40]request: POST /json_proto HTTP/1.0 [00:06:40]Method: POST [00:06:40]URL: /json_proto [00:06:40]Method is POST - this is cgi request [00:06:40]url: /json_proto [00:06:40]query_string will be loaded in cgi processing [00:06:40]execute_cgi json_proto POST (null) [00:06:40]execute_cgi path=json_proto method=POST [00:06:40]POST find Content-Length [00:06:40]Host: 172.17.43.195:8080 [00:06:40]Content-Length: 215 [00:06:40]Content-Type: application/json [00:06:40] [00:06:40]POST finish read [00:06:40]Found Content-Length = 215 [00:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:40]execute_script... [00:06:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:40]POST & json_proto [00:06:40]process_json_proto [00:06:40]json parsed OK: [00:06:40]protocol is kg_v1.0 [00:06:40]action value=get_value [00:06:40]process_action get_value [00:06:40]cmd_get_value [00:06:40]process_action get_value done [00:06:40]requested_data is exist [00:06:40]produce_requested_data [00:06:40]requested_item kkm.sn is exist - process it [00:06:40]requested_item kkm.ver is exist - process it [00:06:40]requested_item fm.sn is exist - process it [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 11 00 00 [00:06:40]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:40]Read from MH i2c: E2 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 17 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F9 [00:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:06:40]wFMCommunicate OK [00:06:40]requested_item fd.num is exist - process it [00:06:40]SAM_PROTO_GetFieldsCounters [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 13 00 00 [00:06:40]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 62 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 62 00 2B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AA 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [00:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AA 1D 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]SAM_PROTO_GetFieldsCounters done [00:06:41]requested_item shift.num is exist - process it [00:06:41]requested_item shift.opened is exist - process it [00:06:41]req_shift_opened [00:06:41]FM_GetShiftState [00:06:41]SAM_PROTO_GetShiftState [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 01 00 [00:06:41]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 2C 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B5 [00:06:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]SAM_PROTO_GetShiftState done [00:06:41]FM_GetShiftState done [00:06:41]req_shift_opened done [00:06:41]requested_item shift.open_date is exist - process it [00:06:41]req_shift_open_date [00:06:41]FM_GetShiftState [00:06:41]SAM_PROTO_GetShiftState [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 01 00 [00:06:41]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 2D 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B6 [00:06:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]SAM_PROTO_GetShiftState done [00:06:41]FM_GetShiftState done [00:06:41]req_shift_open_date done [00:06:41]produce_requested_data done [00:06:41]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73130,"shift.num":557,"shift.opened":0,"shift.open_date":0} [00:06:41]process_action_free get_value [00:06:41]json_value_free [00:06:41]json_value_free done [00:06:41]process_json_proto returns [00:06:41]Send response to host [00:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73130,"shift.num":557,"shift.opened":0,"shift.open_date":0}}} [00:06:41]free response buf [00:06:41]execute_script done [00:06:41]execute_script returns [00:06:41]free content buf [00:06:41]Sock 9.Close socket [00:06:41]Sock 9.Thread stoped [00:06:41]accept exits with 7 [00:06:41]New connection [00:06:41]New thread 3066854756 created [00:06:41]Thread 3066998116 joined [00:06:41]Waiting for new connection... [00:06:41] Sock 7.Parse request [00:06:41]Sock 7.Check first char [00:06:41]Sock 7.First char is OK [00:06:41]request: POST /json_proto HTTP/1.0 [00:06:41]Method: POST [00:06:41]URL: /json_proto [00:06:41]Method is POST - this is cgi request [00:06:41]url: /json_proto [00:06:41]query_string will be loaded in cgi processing [00:06:41]execute_cgi json_proto POST (null) [00:06:41]execute_cgi path=json_proto method=POST [00:06:41]POST find Content-Length [00:06:41]Host: 172.17.43.195:8080 [00:06:41]Content-Length: 331 [00:06:41]Content-Type: application/json [00:06:41] [00:06:41]POST finish read [00:06:41]Found Content-Length = 331 [00:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:41]execute_script... [00:06:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:41]POST & json_proto [00:06:41]process_json_proto [00:06:41]json parsed OK: [00:06:41]protocol is kg_v1.0 [00:06:41]action value=get_value [00:06:41]process_action get_value [00:06:41]cmd_get_value [00:06:41]process_action get_value done [00:06:41]requested_data is exist [00:06:41]produce_requested_data [00:06:41]requested_item fm.sale.total is exist - process it [00:06:41]SAM_PROTO_GetFMData [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 03 00 [00:06:41]Write to MH i2c: E2 08 00 2E 01 80 13 03 00 00 00 00 00 AE [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 2E 01 00 C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 A9 [00:06:41]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 17 00 00 [00:06:41]Write to MH i2c: E2 08 00 2F 01 80 17 00 00 00 00 00 00 B0 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 2F 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 30 [00:06:42]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:06:42]wFMCommunicate OK [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 17 00 00 [00:06:42]Write to MH i2c: E2 08 00 30 01 80 17 00 00 00 00 00 00 B1 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 30 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 C6 [00:06:42]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:06:42]wFMCommunicate OK [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 17 00 00 [00:06:42]Write to MH i2c: E2 08 00 31 01 80 17 00 00 00 00 00 00 B2 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 31 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 2A [00:06:42]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:06:42]wFMCommunicate OK [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 17 00 00 [00:06:42]Write to MH i2c: E2 08 00 32 01 80 17 00 00 00 00 00 00 B3 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 E1 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 E1 00 32 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A1 [00:06:42]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:42]wFMCommunicate OK [00:06:42]SAM_PROTO_GetFMData done [00:06:42]requested_item fm.sale_refund.total is exist - process it [00:06:42]requested_item fm.buy.total is exist - process it [00:06:42]requested_item shift.sale.total is exist - process it [00:06:42]SAM_PROTO_GetShiftData [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 13 02 00 [00:06:42]Write to MH i2c: E2 08 00 33 01 80 13 02 00 00 00 00 00 B2 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 33 01 00 AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 A8 [00:06:43]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CC 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 6F 0C D6 70 04 03 00 D4 8C 8F 72 04 03 00 9B 7F 46 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 BC 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FE E4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 34 01 80 17 00 00 00 00 00 00 B5 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 34 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 CE [00:06:43]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 35 01 80 17 00 00 00 00 00 00 B6 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 35 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 6A [00:06:43]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 36 01 80 17 00 00 00 00 00 00 B7 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 36 01 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 35 [00:06:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 17 00 00 [00:06:44]Write to MH i2c: E2 08 00 37 01 80 17 00 00 00 00 00 00 B8 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 CC 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 CC 00 37 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 99 [00:06:44]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:44]wFMCommunicate OK [00:06:44]SAM_PROTO_GetShiftData done [00:06:44]requested_item shift.sale.total_cash is exist - process it [00:06:44]requested_item shift.sale_refund.total is exist - process it [00:06:44]requested_item shift.sale_refund.total_cash is exist - process it [00:06:44]requested_item shift.buy.total is exist - process it [00:06:44]requested_item shift.buy.total_cash is exist - process it [00:06:44]produce_requested_data done [00:06:44]produce_requested_data return {"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:44]process_action_free get_value [00:06:44]json_value_free [00:06:44]json_value_free done [00:06:44]process_json_proto returns [00:06:44]Send response to host [00:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":140278.87,"shift.sale.total_cash":94077.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:44]free response buf [00:06:44]execute_script done [00:06:44]execute_script returns [00:06:44]free content buf [00:06:44]Sock 7.Close socket [00:06:44]Sock 7.Thread stoped [00:06:44]accept exits with 9 [00:06:44]New connection [00:06:44]New thread 3066998116 created [00:06:44]Thread 3066854756 joined [00:06:44]Waiting for new connection... [00:06:44] Sock 9.Parse request [00:06:44]Sock 9.Check first char [00:06:44]Sock 9.First char is OK [00:06:44]request: POST /json_proto HTTP/1.0 [00:06:44]Method: POST [00:06:44]URL: /json_proto [00:06:44]Method is POST - this is cgi request [00:06:44]url: /json_proto [00:06:44]query_string will be loaded in cgi processing [00:06:44]execute_cgi json_proto POST (null) [00:06:44]execute_cgi path=json_proto method=POST [00:06:44]POST find Content-Length [00:06:44]Host: 172.17.43.195:8080 [00:06:44]Content-Length: 283 [00:06:44]Content-Type: application/json [00:06:44] [00:06:44]POST finish read [00:06:44]Found Content-Length = 283 [00:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0442\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:44]execute_script... [00:06:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0442\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:44]POST & json_proto [00:06:44]process_json_proto [00:06:44]json parsed OK: [00:06:44]protocol is kg_v1.0 [00:06:44]action value=open_shift [00:06:44]process_action open_shift [00:06:44]cmd_open_shift [00:06:44]MH_GetDate [00:06:44]Write to MH i2c: F0 00 00 38 01 28 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: F0 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: F0 09 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: F0 09 00 38 01 00 95 1B 24 67 74 2C AD 66 1F [00:06:44]GetLastDocTimeStamp 1730418908 [00:06:44]current date 1730419605 [00:06:44]FM_GetShiftState [00:06:44]SAM_PROTO_GetShiftState [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 13 01 00 [00:06:44]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 0E 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 0E 00 39 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C2 [00:06:44]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:44]wFMCommunicate OK [00:06:44]SAM_PROTO_GetShiftState done [00:06:44]FM_GetShiftState done [00:06:44]KKMCreateOpenShiftDocument [00:06:44]Load OK [00:06:44]Malloc new data [00:06:44]MH_GetDate [00:06:44]Write to MH i2c: F0 00 00 3A 01 2A [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: F0 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: F0 09 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: F0 09 00 3A 01 00 95 1B 24 67 74 2C AD 66 21 [00:06:44]Malloc new data [00:06:44]KKMCreateOpenShiftDocument OK [00:06:44]KKMSetOpenShiftData OK [00:06:44]ProcessDocumentItem done err = 0, tmpTLVsize=211 [00:06:44]tlvbuf is 00D94FB0 [00:06:44]KKMLoadAndSignOpenShiftData [00:06:44]SAM_PROTO_ProcessDocument [00:06:44]wFMCommunicate request_size=9 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 15 01 00 04 02 00 D3 00 [00:06:44]Write to MH i2c: E2 0C 00 3B 01 80 15 01 00 04 00 02 00 D3 00 00 00 98 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [00:06:44]RAPDU: 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=23 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:06:44]Write to MH i2c: E2 1A 00 3C 01 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 B2 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [00:06:44]RAPDU: 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=38 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [00:06:44]Write to MH i2c: E2 29 00 3D 01 80 15 02 00 21 00 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 BC [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [00:06:44]RAPDU: 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=91 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 15 02 00 56 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 [00:06:44]Write to MH i2c: E2 5E 00 3E 01 80 15 02 00 56 00 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 00 00 C6 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 03 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [00:06:45]RAPDU: 90 00 [00:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=51 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:06:45]Write to MH i2c: E2 36 00 3F 01 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 67 [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 03 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [00:06:45]RAPDU: 90 00 [00:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=13 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 15 02 00 08 F4 03 04 00 95 1B 24 67 [00:06:45]Write to MH i2c: E2 10 00 40 01 80 15 02 00 08 00 F4 03 04 00 95 1B 24 67 00 00 07 [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 03 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [00:06:45]RAPDU: 90 00 [00:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=25 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [00:06:45]Write to MH i2c: E2 1C 00 41 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 23 [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 03 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [00:06:45]RAPDU: 90 00 [00:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 15 03 00 [00:06:45]Write to MH i2c: E2 08 00 42 01 80 15 03 00 00 00 00 00 C4 [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]OFD Sender: No OFD packet to send [00:06:45]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 38 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 38 00 42 01 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1D 01 00 0E 04 04 00 2E 02 00 00 35 04 06 00 6A 4B 4E 6D 2B 92 90 00 B7 [00:06:45]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1D 01 00 0E 04 04 00 2E 02 00 00 35 04 06 00 6A 4B 4E 6D 2B 92 90 00 [00:06:45]wFMCommunicate OK [00:06:45]SAM_PROTO_ProcessDocument answer len = 51 [00:06:45]SAM_PROTO_ProcessDocument done [00:06:45]SetTLVBufToDocument [00:06:45]Processing tag 1209 (04B9) [00:06:45]Malloc new data [00:06:45]Processing tag 1041 (0411) [00:06:45]Processing tag 1040 (0410) [00:06:45]Malloc new data [00:06:45]Processing tag 1038 (040E) [00:06:45]Malloc new data [00:06:45]Processing tag 1077 (0435) [00:06:45]Malloc new data [00:06:45]SetTLVBufToDocument err=0 [00:06:45]KKMLoadAndSignOpenShiftData store KKM data [00:06:45]KKMLoadAndSignOpenShiftData err=0 [00:06:45]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кутманалиева Н. Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 Место: АЗС № 113 "Партнер Нефть" 01.11.2024 00:06 Смена: 558 РНМ: 0000000000091644 ЗНМ: 0300000087 ФД: 73131 ФМ: 0000000000874662 ФПД: 116871670868882 [00:06:45]StoreToDocumentArchive [00:06:45]shift 558 fd 73131 [00:06:45]Create dir for shift 0558 [00:06:45]save to /storage/0558/doc_00073131 [00:06:45]save last doc name /storage/0558/doc_00073131 to /storage/kkm_last_doc_name [00:06:45]save OK [00:06:45]Clear old archive folders... [00:06:45]Remove dir /storage/0557 [00:06:45]opendir ok [00:06:45]file . [00:06:45]file .. [00:06:45]file doc_00072925 [00:06:45]remove file /storage/0557/doc_00072925 [00:06:45]file doc_00072926 [00:06:45]remove file /storage/0557/doc_00072926 [00:06:45]file doc_00072927 [00:06:45]remove file /storage/0557/doc_00072927 [00:06:45]file doc_00072928 [00:06:45]remove file /storage/0557/doc_00072928 [00:06:45]file doc_00072929 [00:06:45]remove file /storage/0557/doc_00072929 [00:06:45]file doc_00072930 [00:06:45]remove file /storage/0557/doc_00072930 [00:06:45]file doc_00072931 [00:06:45]remove file /storage/0557/doc_00072931 [00:06:45]file doc_00072932 [00:06:45]remove file /storage/0557/doc_00072932 [00:06:45]file doc_00072933 [00:06:45]remove file /storage/0557/doc_00072933 [00:06:45]file doc_00072934 [00:06:45]remove file /storage/0557/doc_00072934 [00:06:45]file doc_00072935 [00:06:45]remove file /storage/0557/doc_00072935 [00:06:45]file doc_00072936 [00:06:45]remove file /storage/0557/doc_00072936 [00:06:45]file doc_00072937 [00:06:45]remove file /storage/0557/doc_00072937 [00:06:45]file doc_00072938 [00:06:45]remove file /storage/0557/doc_00072938 [00:06:45]file doc_00072939 [00:06:45]remove file /storage/0557/doc_00072939 [00:06:45]file doc_00072940 [00:06:45]remove file /storage/0557/doc_00072940 [00:06:45]file doc_00072941 [00:06:45]remove file /storage/0557/doc_00072941 [00:06:45]file doc_00072942 [00:06:45]remove file /storage/0557/doc_00072942 [00:06:45]file doc_00072943 [00:06:45]remove file /storage/0557/doc_00072943 [00:06:45]file doc_00072944 [00:06:45]remove file /storage/0557/doc_00072944 [00:06:45]file doc_00072945 [00:06:45]remove file /storage/0557/doc_00072945 [00:06:45]file doc_00072946 [00:06:45]remove file /storage/0557/doc_00072946 [00:06:45]file doc_00072947 [00:06:45]remove file /storage/0557/doc_00072947 [00:06:45]file doc_00072948 [00:06:45]remove file /storage/0557/doc_00072948 [00:06:45]file doc_00072949 [00:06:45]remove file /storage/0557/doc_00072949 [00:06:45]file doc_00072950 [00:06:45]remove file /storage/0557/doc_00072950 [00:06:45]file doc_00072951 [00:06:45]remove file /storage/0557/doc_00072951 [00:06:45]file doc_00072952 [00:06:45]remove file /storage/0557/doc_00072952 [00:06:45]file doc_00072953 [00:06:45]remove file /storage/0557/doc_00072953 [00:06:45]file doc_00072954 [00:06:45]remove file /storage/0557/doc_00072954 [00:06:45]file doc_00072955 [00:06:45]remove file /storage/0557/doc_00072955 [00:06:45]file doc_00072956 [00:06:45]remove file /storage/0557/doc_00072956 [00:06:45]file doc_00072957 [00:06:45]remove file /storage/0557/doc_00072957 [00:06:45]file doc_00072958 [00:06:45]remove file /storage/0557/doc_00072958 [00:06:45]file doc_00072959 [00:06:45]remove file /storage/0557/doc_00072959 [00:06:45]file doc_00072960 [00:06:45]remove file /storage/0557/doc_00072960 [00:06:45]file doc_00072961 [00:06:45]remove file /storage/0557/doc_00072961 [00:06:45]file doc_00072962 [00:06:45]remove file /storage/0557/doc_00072962 [00:06:45]file doc_00072963 [00:06:45]remove file /storage/0557/doc_00072963 [00:06:45]file doc_00072964 [00:06:45]remove file /storage/0557/doc_00072964 [00:06:45]file doc_00072965 [00:06:45]remove file /storage/0557/doc_00072965 [00:06:45]file doc_00072966 [00:06:45]remove file /storage/0557/doc_00072966 [00:06:45]file doc_00072967 [00:06:45]remove file /storage/0557/doc_00072967 [00:06:45]file doc_00072968 [00:06:45]remove file /storage/0557/doc_00072968 [00:06:45]file doc_00072969 [00:06:45]remove file /storage/0557/doc_00072969 [00:06:45]file doc_00072970 [00:06:45]remove file /storage/0557/doc_00072970 [00:06:45]file doc_00072971 [00:06:45]remove file /storage/0557/doc_00072971 [00:06:45]file doc_00072972 [00:06:45]remove file /storage/0557/doc_00072972 [00:06:45]file doc_00072973 [00:06:45]remove file /storage/0557/doc_00072973 [00:06:45]file doc_00072974 [00:06:45]remove file /storage/0557/doc_00072974 [00:06:45]file doc_00072975 [00:06:45]remove file /storage/0557/doc_00072975 [00:06:45]file doc_00072976 [00:06:45]remove file /storage/0557/doc_00072976 [00:06:45]file doc_00072977 [00:06:45]remove file /storage/0557/doc_00072977 [00:06:45]file doc_00072978 [00:06:45]remove file /storage/0557/doc_00072978 [00:06:45]file doc_00072979 [00:06:45]remove file /storage/0557/doc_00072979 [00:06:45]file doc_00072980 [00:06:45]remove file /storage/0557/doc_00072980 [00:06:45]file doc_00072981 [00:06:45]remove file /storage/0557/doc_00072981 [00:06:45]file doc_00072982 [00:06:45]remove file /storage/0557/doc_00072982 [00:06:45]file doc_00072983 [00:06:45]remove file /storage/0557/doc_00072983 [00:06:45]file doc_00072984 [00:06:45]remove file /storage/0557/doc_00072984 [00:06:45]file doc_00072985 [00:06:45]remove file /storage/0557/doc_00072985 [00:06:46]file doc_00072986 [00:06:46]remove file /storage/0557/doc_00072986 [00:06:46]file doc_00072987 [00:06:46]remove file /storage/0557/doc_00072987 [00:06:46]file doc_00072988 [00:06:46]remove file /storage/0557/doc_00072988 [00:06:46]file doc_00072989 [00:06:46]remove file /storage/0557/doc_00072989 [00:06:46]file doc_00072990 [00:06:46]remove file /storage/0557/doc_00072990 [00:06:46]file doc_00072991 [00:06:46]remove file /storage/0557/doc_00072991 [00:06:46]file doc_00072992 [00:06:46]remove file /storage/0557/doc_00072992 [00:06:46]file doc_00072993 [00:06:46]remove file /storage/0557/doc_00072993 [00:06:46]file doc_00072994 [00:06:46]remove file /storage/0557/doc_00072994 [00:06:46]file doc_00072995 [00:06:46]remove file /storage/0557/doc_00072995 [00:06:46]file doc_00072996 [00:06:46]remove file /storage/0557/doc_00072996 [00:06:46]file doc_00072997 [00:06:46]remove file /storage/0557/doc_00072997 [00:06:46]file doc_00072998 [00:06:46]remove file /storage/0557/doc_00072998 [00:06:46]file doc_00072999 [00:06:46]remove file /storage/0557/doc_00072999 [00:06:46]file doc_00073000 [00:06:46]remove file /storage/0557/doc_00073000 [00:06:46]file doc_00073001 [00:06:46]remove file /storage/0557/doc_00073001 [00:06:46]file doc_00073002 [00:06:46]remove file /storage/0557/doc_00073002 [00:06:46]file doc_00073003 [00:06:46]remove file /storage/0557/doc_00073003 [00:06:46]file doc_00073004 [00:06:46]remove file /storage/0557/doc_00073004 [00:06:46]file doc_00073005 [00:06:46]remove file /storage/0557/doc_00073005 [00:06:46]file doc_00073006 [00:06:46]remove file /storage/0557/doc_00073006 [00:06:46]file doc_00073007 [00:06:46]remove file /storage/0557/doc_00073007 [00:06:46]file doc_00073008 [00:06:46]remove file /storage/0557/doc_00073008 [00:06:46]file doc_00073009 [00:06:46]remove file /storage/0557/doc_00073009 [00:06:46]file doc_00073010 [00:06:46]remove file /storage/0557/doc_00073010 [00:06:46]file doc_00073011 [00:06:46]remove file /storage/0557/doc_00073011 [00:06:46]file doc_00073012 [00:06:46]remove file /storage/0557/doc_00073012 [00:06:46]file doc_00073013 [00:06:46]remove file /storage/0557/doc_00073013 [00:06:46]file doc_00073014 [00:06:46]remove file /storage/0557/doc_00073014 [00:06:46]file doc_00073015 [00:06:46]remove file /storage/0557/doc_00073015 [00:06:46]file doc_00073016 [00:06:46]remove file /storage/0557/doc_00073016 [00:06:46]file doc_00073017 [00:06:46]remove file /storage/0557/doc_00073017 [00:06:46]file doc_00073018 [00:06:46]remove file /storage/0557/doc_00073018 [00:06:46]file doc_00073019 [00:06:46]remove file /storage/0557/doc_00073019 [00:06:46]file doc_00073020 [00:06:46]remove file /storage/0557/doc_00073020 [00:06:46]file doc_00073021 [00:06:46]remove file /storage/0557/doc_00073021 [00:06:46]file doc_00073022 [00:06:46]remove file /storage/0557/doc_00073022 [00:06:46]file doc_00073023 [00:06:46]remove file /storage/0557/doc_00073023 [00:06:46]file doc_00073024 [00:06:46]remove file /storage/0557/doc_00073024 [00:06:46]file doc_00073025 [00:06:46]remove file /storage/0557/doc_00073025 [00:06:46]file doc_00073026 [00:06:46]remove file /storage/0557/doc_00073026 [00:06:46]file doc_00073027 [00:06:46]remove file /storage/0557/doc_00073027 [00:06:46]file doc_00073028 [00:06:46]remove file /storage/0557/doc_00073028 [00:06:46]file doc_00073029 [00:06:46]remove file /storage/0557/doc_00073029 [00:06:46]file doc_00073030 [00:06:46]remove file /storage/0557/doc_00073030 [00:06:46]file doc_00073031 [00:06:46]remove file /storage/0557/doc_00073031 [00:06:46]file doc_00073032 [00:06:46]remove file /storage/0557/doc_00073032 [00:06:46]file doc_00073033 [00:06:46]remove file /storage/0557/doc_00073033 [00:06:46]file doc_00073034 [00:06:46]remove file /storage/0557/doc_00073034 [00:06:46]file doc_00073035 [00:06:46]remove file /storage/0557/doc_00073035 [00:06:46]file doc_00073036 [00:06:46]remove file /storage/0557/doc_00073036 [00:06:46]file doc_00073037 [00:06:46]remove file /storage/0557/doc_00073037 [00:06:46]file doc_00073038 [00:06:46]remove file /storage/0557/doc_00073038 [00:06:46]file doc_00073039 [00:06:46]remove file /storage/0557/doc_00073039 [00:06:46]file doc_00073040 [00:06:46]remove file /storage/0557/doc_00073040 [00:06:46]file doc_00073041 [00:06:46]remove file /storage/0557/doc_00073041 [00:06:46]file doc_00073042 [00:06:46]remove file /storage/0557/doc_00073042 [00:06:46]file doc_00073043 [00:06:46]remove file /storage/0557/doc_00073043 [00:06:46]file doc_00073044 [00:06:46]remove file /storage/0557/doc_00073044 [00:06:46]file doc_00073045 [00:06:46]remove file /storage/0557/doc_00073045 [00:06:46]file doc_00073046 [00:06:46]remove file /storage/0557/doc_00073046 [00:06:46]file doc_00073047 [00:06:46]remove file /storage/0557/doc_00073047 [00:06:46]file doc_00073048 [00:06:46]remove file /storage/0557/doc_00073048 [00:06:46]file doc_00073049 [00:06:46]remove file /storage/0557/doc_00073049 [00:06:46]file doc_00073050 [00:06:46]remove file /storage/0557/doc_00073050 [00:06:46]file doc_00073051 [00:06:46]remove file /storage/0557/doc_00073051 [00:06:46]file doc_00073052 [00:06:46]remove file /storage/0557/doc_00073052 [00:06:46]file doc_00073053 [00:06:46]remove file /storage/0557/doc_00073053 [00:06:46]file doc_00073054 [00:06:46]remove file /storage/0557/doc_00073054 [00:06:46]file doc_00073055 [00:06:46]remove file /storage/0557/doc_00073055 [00:06:46]file doc_00073056 [00:06:46]remove file /storage/0557/doc_00073056 [00:06:46]file doc_00073057 [00:06:46]remove file /storage/0557/doc_00073057 [00:06:46]file doc_00073058 [00:06:46]remove file /storage/0557/doc_00073058 [00:06:46]file doc_00073059 [00:06:46]remove file /storage/0557/doc_00073059 [00:06:46]file doc_00073060 [00:06:46]remove file /storage/0557/doc_00073060 [00:06:46]file doc_00073061 [00:06:46]remove file /storage/0557/doc_00073061 [00:06:46]file doc_00073062 [00:06:46]remove file /storage/0557/doc_00073062 [00:06:46]file doc_00073063 [00:06:46]remove file /storage/0557/doc_00073063 [00:06:46]file doc_00073064 [00:06:46]remove file /storage/0557/doc_00073064 [00:06:46]file doc_00073065 [00:06:46]remove file /storage/0557/doc_00073065 [00:06:46]file doc_00073066 [00:06:46]remove file /storage/0557/doc_00073066 [00:06:46]file doc_00073067 [00:06:46]remove file /storage/0557/doc_00073067 [00:06:46]file doc_00073068 [00:06:46]remove file /storage/0557/doc_00073068 [00:06:46]file doc_00073069 [00:06:46]remove file /storage/0557/doc_00073069 [00:06:46]file doc_00073070 [00:06:46]remove file /storage/0557/doc_00073070 [00:06:46]file doc_00073071 [00:06:46]remove file /storage/0557/doc_00073071 [00:06:46]file doc_00073072 [00:06:46]remove file /storage/0557/doc_00073072 [00:06:46]file doc_00073073 [00:06:46]remove file /storage/0557/doc_00073073 [00:06:46]file doc_00073074 [00:06:46]remove file /storage/0557/doc_00073074 [00:06:46]file doc_00073075 [00:06:46]remove file /storage/0557/doc_00073075 [00:06:46]file doc_00073076 [00:06:46]remove file /storage/0557/doc_00073076 [00:06:46]file doc_00073077 [00:06:46]remove file /storage/0557/doc_00073077 [00:06:46]file doc_00073078 [00:06:46]remove file /storage/0557/doc_00073078 [00:06:46]file doc_00073079 [00:06:46]remove file /storage/0557/doc_00073079 [00:06:46]file doc_00073080 [00:06:46]remove file /storage/0557/doc_00073080 [00:06:46]file doc_00073081 [00:06:46]remove file /storage/0557/doc_00073081 [00:06:46]file doc_00073082 [00:06:46]remove file /storage/0557/doc_00073082 [00:06:46]file doc_00073083 [00:06:46]remove file /storage/0557/doc_00073083 [00:06:46]file doc_00073084 [00:06:46]remove file /storage/0557/doc_00073084 [00:06:46]file doc_00073085 [00:06:46]remove file /storage/0557/doc_00073085 [00:06:46]file doc_00073086 [00:06:46]remove file /storage/0557/doc_00073086 [00:06:46]file doc_00073087 [00:06:46]remove file /storage/0557/doc_00073087 [00:06:46]file doc_00073088 [00:06:46]remove file /storage/0557/doc_00073088 [00:06:46]file doc_00073089 [00:06:46]remove file /storage/0557/doc_00073089 [00:06:46]file doc_00073090 [00:06:46]remove file /storage/0557/doc_00073090 [00:06:46]file doc_00073091 [00:06:46]remove file /storage/0557/doc_00073091 [00:06:46]file doc_00073092 [00:06:46]remove file /storage/0557/doc_00073092 [00:06:46]file doc_00073093 [00:06:46]remove file /storage/0557/doc_00073093 [00:06:46]file doc_00073094 [00:06:46]remove file /storage/0557/doc_00073094 [00:06:46]file doc_00073095 [00:06:46]remove file /storage/0557/doc_00073095 [00:06:46]file doc_00073096 [00:06:46]remove file /storage/0557/doc_00073096 [00:06:46]file doc_00073097 [00:06:46]remove file /storage/0557/doc_00073097 [00:06:46]file doc_00073098 [00:06:46]remove file /storage/0557/doc_00073098 [00:06:46]file doc_00073099 [00:06:46]remove file /storage/0557/doc_00073099 [00:06:46]file doc_00073100 [00:06:46]remove file /storage/0557/doc_00073100 [00:06:46]file doc_00073101 [00:06:46]remove file /storage/0557/doc_00073101 [00:06:46]file doc_00073102 [00:06:46]remove file /storage/0557/doc_00073102 [00:06:46]file doc_00073103 [00:06:46]remove file /storage/0557/doc_00073103 [00:06:46]file doc_00073104 [00:06:46]remove file /storage/0557/doc_00073104 [00:06:46]file doc_00073105 [00:06:46]remove file /storage/0557/doc_00073105 [00:06:46]file doc_00073106 [00:06:46]remove file /storage/0557/doc_00073106 [00:06:46]file doc_00073107 [00:06:46]remove file /storage/0557/doc_00073107 [00:06:46]file doc_00073108 [00:06:46]remove file /storage/0557/doc_00073108 [00:06:46]file doc_00073109 [00:06:46]remove file /storage/0557/doc_00073109 [00:06:46]file doc_00073110 [00:06:46]remove file /storage/0557/doc_00073110 [00:06:46]file doc_00073111 [00:06:46]remove file /storage/0557/doc_00073111 [00:06:46]file doc_00073112 [00:06:46]remove file /storage/0557/doc_00073112 [00:06:46]file doc_00073113 [00:06:46]remove file /storage/0557/doc_00073113 [00:06:46]file doc_00073114 [00:06:46]remove file /storage/0557/doc_00073114 [00:06:46]file doc_00073115 [00:06:46]remove file /storage/0557/doc_00073115 [00:06:46]file doc_00073116 [00:06:46]remove file /storage/0557/doc_00073116 [00:06:46]file doc_00073117 [00:06:46]remove file /storage/0557/doc_00073117 [00:06:46]file doc_00073118 [00:06:46]remove file /storage/0557/doc_00073118 [00:06:46]file doc_00073119 [00:06:46]remove file /storage/0557/doc_00073119 [00:06:46]file doc_00073120 [00:06:46]remove file /storage/0557/doc_00073120 [00:06:46]file doc_00073121 [00:06:46]remove file /storage/0557/doc_00073121 [00:06:46]file doc_00073122 [00:06:46]remove file /storage/0557/doc_00073122 [00:06:46]file doc_00073123 [00:06:46]remove file /storage/0557/doc_00073123 [00:06:46]file doc_00073124 [00:06:46]remove file /storage/0557/doc_00073124 [00:06:46]file doc_00073125 [00:06:46]remove file /storage/0557/doc_00073125 [00:06:46]file doc_00073126 [00:06:46]remove file /storage/0557/doc_00073126 [00:06:46]file doc_00073127 [00:06:46]remove file /storage/0557/doc_00073127 [00:06:46]file doc_00073128 [00:06:46]remove file /storage/0557/doc_00073128 [00:06:46]file doc_00073129 [00:06:46]remove file /storage/0557/doc_00073129 [00:06:46]file doc_00073130 [00:06:46]remove file /storage/0557/doc_00073130 [00:06:46]remove dir /storage/0557 [00:06:46]ProcessDocumentItem done err = 0, tmpTLVsize=262 [00:06:46]tlvbuf is 00E19C90 [00:06:46]SAM_PROTO_ClearQueue [00:06:46]wFMCommunicate request_size=4 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 09 00 00 [00:06:46]Write to MH i2c: E2 08 00 43 01 80 09 00 00 00 00 00 00 B6 [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:46]Read from MH i2c: E2 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 03 00 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [00:06:46]RAPDU: 90 00 [00:06:46]wFMCommunicate OK [00:06:46]SAM_PROTO_ClearQueue done [00:06:46]KKMCreateOFDPacket [00:06:46]OFDProtocolAddRootSTLVToBuf [00:06:46]FM_MakeSignedData [00:06:46]FM_MakeSignedData [00:06:46]SAM_PROTO_SignData [00:06:46]wFMCommunicate request_size=4 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 0D 01 02 [00:06:46]Write to MH i2c: E2 08 00 44 01 80 0D 01 02 00 00 00 00 BE [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:46]Read from MH i2c: E2 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 03 00 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [00:06:46]RAPDU: 90 00 [00:06:46]wFMCommunicate OK [00:06:46]wFMCommunicate request_size=255 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 0D 02 02 FA 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 95 1B 24 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [00:06:46]Write to MH i2c: E2 02 01 45 01 80 0D 02 02 FA 00 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 95 1B 24 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 4B [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 03 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [00:06:47]RAPDU: 90 00 [00:06:47]wFMCommunicate OK [00:06:47]wFMCommunicate request_size=21 [00:06:47]MH_SAM_APDU [00:06:47]CAPDU: 80 0D 02 02 10 38 37 34 36 36 32 35 04 06 00 6A 4B 4E 6D 2B 92 [00:06:47]Write to MH i2c: E2 18 00 46 01 80 0D 02 02 10 00 38 37 34 36 36 32 35 04 06 00 6A 4B 4E 6D 2B 92 00 00 8E [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 03 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [00:06:47]RAPDU: 90 00 [00:06:47]wFMCommunicate OK [00:06:47]wFMCommunicate request_size=4 [00:06:47]MH_SAM_APDU [00:06:47]CAPDU: 80 0D 03 02 [00:06:47]Write to MH i2c: E2 08 00 47 01 80 0D 03 02 00 00 00 00 C3 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 0B 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 0B 00 47 01 00 0B 12 0D F1 5F C3 09 30 90 00 3A [00:06:47]RAPDU: 0B 12 0D F1 5F C3 09 30 90 00 [00:06:47]wFMCommunicate OK [00:06:47]SAM_PROTO_SignData done [00:06:47]FM_MakeSignedData done [00:06:47]CreateOFDProtocolMessage [00:06:47]wFMCommunicate request_size=4 [00:06:47]MH_SAM_APDU [00:06:47]CAPDU: 80 11 00 00 [00:06:47]Write to MH i2c: E2 08 00 48 01 80 11 00 00 00 00 00 00 C3 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 17 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 17 00 48 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 17 [00:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:06:47]wFMCommunicate OK [00:06:47]CreateOFDProtocolMessage done [00:06:47]OFDSenderStorePacket 73131 [00:06:47]StoreOFDPacket docnum=73131 [00:06:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 1A 01 00 00 CF A8 12 01 37 33 5A 02 01 00 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 95 1B 24 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 6A 4B 4E 6D 2B 92 0B 12 0D F1 5F C3 09 30 [00:06:47]CheckFolder [00:06:47]dirname=/storage/ofd_packets [00:06:47]CheckFolder done [00:06:47]ProducePacketName [00:06:47]name=ofd_packets/00073131 [00:06:47]NVStorageSaveData ofd_packets/00073131 [00:06:47]File name is /storage/ofd_packets/00073131 [00:06:47]Write 312 bytes [00:06:47]NVStorageSaveData done [00:06:47]OFDSenderStorePacket done [00:06:47]KKMCreateOFDPacket done [00:06:47]NVStorageSaveData kkm_last_timestamp [00:06:47]File name is /storage/kkm_last_timestamp [00:06:47]Write 4 bytes [00:06:47]NVStorageSaveData done [00:06:47]ExternCall_PrintAddStr [00:06:47]wPrintStart [00:06:47]Write to MH i2c: 01 00 00 49 01 4A [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: 01 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: 01 07 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: 01 07 00 49 01 00 00 00 00 00 FF 0F 5F [00:06:47]RasterBufferAndPrint [00:06:47]line Отчет об открытии смены [00:06:47]line ФФД: 1.0 [00:06:47]line ИНН: 02508201610067 [00:06:47]line Кассир: Кутманалиева Н. [00:06:47]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:06:47]line Место: АЗС № 113 "Партнер Нефть" [00:06:47]line 01.11.2024 00:06 [00:06:47]line Смена: 558 [00:06:47]line РНМ: 0000000000091644 [00:06:47]line ЗНМ: 0300000087 [00:06:47]line ФД: 73131 [00:06:47]line ФМ: 0000000000874662 [00:06:47]line ФПД: 116871670868882 [00:06:47]written 0, free lines is 4095 [00:06:47]OFD Sender: Processing packet 73131 [packets to send 282, broken 281] [00:06:47]ProducePacketName [00:06:47]name=ofd_packets/00073131 [00:06:47]OFD Sender: To server: pG, [00:06:47]CommunicateWithHost lk.salyk.kg:30040 [00:06:47]ConnectInit lk.salyk.kg [00:06:47]Write to MH i2c: 01 00 00 5B 01 5C [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: 01 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: 01 07 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 55 0E C6 [00:06:47]RasterBufferAndPrint [00:06:47]line [00:06:47]line [00:06:47]line [00:06:47]line [00:06:47]line [00:06:47]written 0, free lines is 3681 [00:06:47]MH_Cut [00:06:47]Write to MH i2c: D1 01 00 62 01 01 35 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: D1 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: D1 01 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: D1 01 00 62 01 00 34 [00:06:47]Write to MH i2c: 01 00 00 63 01 64 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:48]*** Cut start [00:06:48]*** Partial cut [00:06:48]*** CUTSNS_PIN = 1 [00:06:48]recv_with_timeout no data received [00:06:48]*** CUTSNS_PIN = 0 [00:06:48]*** Brake cut motor [00:06:48]Read from MH i2c: 01 [00:06:48]MH_I2C_Read... [00:06:48]*** Stop cut motor [00:06:48]*** Cut end [00:06:48]Read from MH i2c: 01 07 00 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: 01 07 00 63 01 00 00 00 00 00 FF 0F 79 [00:06:48]process_action open_shift done [00:06:48]requested_data is exist [00:06:48]produce_requested_data [00:06:48]requested_item fd.num is exist - process it [00:06:48]SAM_PROTO_GetFieldsCounters [00:06:48]wFMCommunicate request_size=4 [00:06:48]MH_SAM_APDU [00:06:48]CAPDU: 80 13 00 00 [00:06:48]Write to MH i2c: E2 08 00 64 01 80 13 00 00 00 00 00 00 E1 [00:06:48]Write i2c OK [00:06:48]MH_I2C_Read... [00:06:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:48]Read from MH i2c: E2 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 62 00 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 62 00 64 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [00:06:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:48]wFMCommunicate OK [00:06:48]SAM_PROTO_GetFieldsCounters done [00:06:48]requested_item shift.num is exist - process it [00:06:48]requested_item shift.opened is exist - process it [00:06:48]req_shift_opened [00:06:48]FM_GetShiftState [00:06:48]SAM_PROTO_GetShiftState [00:06:48]wFMCommunicate request_size=4 [00:06:48]MH_SAM_APDU [00:06:48]CAPDU: 80 13 01 00 [00:06:48]Write to MH i2c: E2 08 00 65 01 80 13 01 00 00 00 00 00 E3 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:49]Read from MH i2c: E2 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 0E 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 0E 00 65 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 2A [00:06:49]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:06:49]wFMCommunicate OK [00:06:49]SAM_PROTO_GetShiftState done [00:06:49]FM_GetShiftState done [00:06:49]req_shift_opened done [00:06:49]requested_item shift.open_date is exist - process it [00:06:49]req_shift_open_date [00:06:49]req_shift_open_date done [00:06:49]produce_requested_data done [00:06:49]produce_requested_data return {"fd.num":73131,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [00:06:49]process_action_free open_shift [00:06:49]json_value_free [00:06:49]json_value_free done [00:06:49]process_json_proto returns [00:06:49]Send response to host [00:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":73131,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [00:06:49]free response buf [00:06:49]execute_script done [00:06:49]execute_script returns [00:06:49]free content buf [00:06:49]Sock 9.Close socket [00:06:49]Sock 9.Thread stoped [00:06:49]accept exits with 7 [00:06:49]New connection [00:06:49]New thread 3066854756 created [00:06:49]Thread 3066998116 joined [00:06:49]Waiting for new connection... [00:06:49] Sock 7.Parse request [00:06:49]Sock 7.Check first char [00:06:49]Sock 7.First char is OK [00:06:49]request: POST /json_proto HTTP/1.0 [00:06:49]Method: POST [00:06:49]URL: /json_proto [00:06:49]Method is POST - this is cgi request [00:06:49]url: /json_proto [00:06:49]query_string will be loaded in cgi processing [00:06:49]execute_cgi json_proto POST (null) [00:06:49]execute_cgi path=json_proto method=POST [00:06:49]POST find Content-Length [00:06:49]Host: 172.17.43.195:8080 [00:06:49]Content-Length: 331 [00:06:49]Content-Type: application/json [00:06:49] [00:06:49]POST finish read [00:06:49]Found Content-Length = 331 [00:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:49]execute_script... [00:06:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:49]POST & json_proto [00:06:49]process_json_proto [00:06:49]json parsed OK: [00:06:49]protocol is kg_v1.0 [00:06:49]action value=get_value [00:06:49]process_action get_value [00:06:49]cmd_get_value [00:06:49]process_action get_value done [00:06:49]requested_data is exist [00:06:49]produce_requested_data [00:06:49]requested_item fm.sale.total is exist - process it [00:06:49]SAM_PROTO_GetFMData [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 13 03 00 [00:06:49]Write to MH i2c: E2 08 00 66 01 80 13 03 00 00 00 00 00 E6 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:49]Read from MH i2c: E2 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 FD 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 FD 00 66 01 00 C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 E1 [00:06:49]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4F 19 01 00 69 04 A3 00 6F 04 04 00 5F 18 01 00 B1 04 05 00 28 79 EC A4 01 70 04 05 00 08 96 34 59 01 72 04 04 00 20 E3 B7 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 94 FB B5 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 06 C3 B9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [00:06:49]wFMCommunicate OK [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 17 00 00 [00:06:49]Write to MH i2c: E2 08 00 67 01 80 17 00 00 00 00 00 00 E8 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:49]Read from MH i2c: E2 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 FD 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 FD 00 67 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 68 [00:06:50]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:06:50]wFMCommunicate OK [00:06:50]wFMCommunicate request_size=4 [00:06:50]MH_SAM_APDU [00:06:50]CAPDU: 80 17 00 00 [00:06:50]Write to MH i2c: E2 08 00 68 01 80 17 00 00 00 00 00 00 E9 [00:06:50]Write i2c OK [00:06:50]MH_I2C_Read... [00:06:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:50]Read from MH i2c: E2 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 68 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 FE [00:06:50]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:06:50]wFMCommunicate OK [00:06:50]wFMCommunicate request_size=4 [00:06:50]MH_SAM_APDU [00:06:50]CAPDU: 80 17 00 00 [00:06:50]Write to MH i2c: E2 08 00 69 01 80 17 00 00 00 00 00 00 EA [00:06:50]Write i2c OK [00:06:50]MH_I2C_Read... [00:06:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:50]Read from MH i2c: E2 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 69 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 62 [00:06:50]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:06:51]wFMCommunicate OK [00:06:51]wFMCommunicate request_size=4 [00:06:51]MH_SAM_APDU [00:06:51]CAPDU: 80 17 00 00 [00:06:51]Write to MH i2c: E2 08 00 6A 01 80 17 00 00 00 00 00 00 EB [00:06:51]Write i2c OK [00:06:51]MH_I2C_Read... [00:06:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:06:51]Read from MH i2c: E2 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 E1 00 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 E1 00 6A 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D9 [00:06:51]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:51]wFMCommunicate OK [00:06:51]SAM_PROTO_GetFMData done [00:06:51]requested_item fm.sale_refund.total is exist - process it [00:06:51]requested_item fm.buy.total is exist - process it [00:06:51]requested_item shift.sale.total is exist - process it [00:06:51]SAM_PROTO_GetShiftData [00:06:51]wFMCommunicate request_size=4 [00:06:51]MH_SAM_APDU [00:06:51]CAPDU: 80 13 02 00 [00:06:51]Write to MH i2c: E2 08 00 6B 01 80 13 02 00 00 00 00 00 EA [00:06:51]Write i2c OK [00:06:51]MH_I2C_Read... [00:06:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:51]Read from MH i2c: E2 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 FD 00 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 FD 00 6B 01 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 5D [00:06:52]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:06:52]wFMCommunicate OK [00:06:52]wFMCommunicate request_size=4 [00:06:52]MH_SAM_APDU [00:06:52]CAPDU: 80 17 00 00 [00:06:52]Write to MH i2c: E2 08 00 6C 01 80 17 00 00 00 00 00 00 ED [00:06:52]Write i2c OK [00:06:52]MH_I2C_Read... [00:06:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:52]Read from MH i2c: E2 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 FD 00 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 FD 00 6C 01 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 ConnectInit Can't take IP for lk.salyk.kg [00:06:52]00 CommunicateWithHost connect error [00:06:52]72 CommunicateWithHost err = -1 [00:06:52]04 OFD Sender: Server communicate error [00:06:52]00 00 00 04 75 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 F5 [00:06:52]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:06:52]wFMCommunicate OK [00:06:52]wFMCommunicate request_size=4 [00:06:52]MH_SAM_APDU [00:06:52]CAPDU: 80 17 00 00 [00:06:52]Write to MH i2c: E2 08 00 6D 01 80 17 00 00 00 00 00 00 EE [00:06:52]Write i2c OK [00:06:52]MH_I2C_Read... [00:06:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:52]Read from MH i2c: E2 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 FD 00 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 FD 00 6D 01 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 C0 [00:06:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:06:53]wFMCommunicate OK [00:06:53]wFMCommunicate request_size=4 [00:06:53]MH_SAM_APDU [00:06:53]CAPDU: 80 17 00 00 [00:06:53]Write to MH i2c: E2 08 00 6E 01 80 17 00 00 00 00 00 00 EF [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:53]Read from MH i2c: E2 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 FD 00 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 FD 00 6E 01 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 61 [00:06:53]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:06:53]wFMCommunicate OK [00:06:53]wFMCommunicate request_size=4 [00:06:53]MH_SAM_APDU [00:06:53]CAPDU: 80 17 00 00 [00:06:53]Write to MH i2c: E2 08 00 6F 01 80 17 00 00 00 00 00 00 F0 [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:06:53]Read from MH i2c: E2 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 BD 00 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 BD 00 6F 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D6 [00:06:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:54]wFMCommunicate OK [00:06:54]SAM_PROTO_GetShiftData done [00:06:54]requested_item shift.sale.total_cash is exist - process it [00:06:54]requested_item shift.sale_refund.total is exist - process it [00:06:54]requested_item shift.sale_refund.total_cash is exist - process it [00:06:54]requested_item shift.buy.total is exist - process it [00:06:54]requested_item shift.buy.total_cash is exist - process it [00:06:54]produce_requested_data done [00:06:54]produce_requested_data return {"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:54]process_action_free get_value [00:06:54]json_value_free [00:06:54]json_value_free done [00:06:54]process_json_proto returns [00:06:54]Send response to host [00:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70619282.32,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:54]free response buf [00:06:54]execute_script done [00:06:54]execute_script returns [00:06:54]free content buf [00:06:54]Sock 7.Close socket [00:06:54]Sock 7.Thread stoped [00:06:57]OFD Sender: Processing packet 73131 [packets to send 282, broken 281] [00:06:57]ProducePacketName [00:06:57]name=ofd_packets/00073131 [00:06:57]OFD Sender: To server: pG, [00:06:57]CommunicateWithHost lk.salyk.kg:30040 [00:06:57]ConnectInit lk.salyk.kg [00:07:01]recv_with_timeout no data received [00:07:02]ConnectInit Can't take IP for lk.salyk.kg [00:07:02]CommunicateWithHost connect error [00:07:02]CommunicateWithHost err = -1 [00:07:02]OFD Sender: Server communicate error [00:07:07]OFD Sender: Processing packet 73131 [packets to send 282, broken 281] [00:07:07]ProducePacketName [00:07:07]name=ofd_packets/00073131 [00:07:07]OFD Sender: To server: pG, [00:07:07]CommunicateWithHost lk.salyk.kg:30040 [00:07:07]ConnectInit lk.salyk.kg [00:07:15]recv_with_timeout no data received [00:07:22]Connected sock=10 [00:07:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 1A 01 00 00 CF A8 12 01 37 33 5A 02 01 00 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 95 1B 24 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 6A 4B 4E 6D 2B 92 0B 12 0D F1 5F C3 09 30 [00:07:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B2 D2 47 00 03 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 34 36 36 32 10 04 04 00 AB 1D 01 00 F4 03 04 00 6E C6 23 67 B6 04 01 00 00 7F AE D0 21 04 7A F7 F0 [00:07:24]CommunicateWithHost err = 0 [00:07:24]CheckOFDResponse [00:07:24]1017 (14) - 77093643461234 [00:07:24]1041 (16) - 0000000000874662 [00:07:24]1040 (4) - 73131 [00:07:24]1012 (4) - 31.10.2024 18:03 [00:07:24]1206 (1) - 0 [00:07:24]OFD Sender: Remove packet 73131 [00:07:24]ProducePacketName [00:07:24]name=ofd_packets/00073131 [00:07:24]NVStorageDeleteData [00:07:24]OFD Sender: No OFD packet to send [00:07:28]recv_with_timeout no data received [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:42]recv_with_timeout no data received [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:07:57]recv_with_timeout no data received [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:11]recv_with_timeout no data received [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:25]recv_with_timeout no data received [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:36]recv_with_timeout no data received [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:02]recv_with_timeout no data received [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:19]recv_with_timeout no data received [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:29]recv_with_timeout no data received [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:28]recv_with_timeout no data received [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:39]recv_with_timeout no data received [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:04]recv_with_timeout no data received [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:21]recv_with_timeout no data received [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:38]accept exits with 9 [00:13:38]New connection [00:13:38]New thread 3066998116 created [00:13:38]Thread 3066854756 joined [00:13:38]Waiting for new connection... [00:13:38] Sock 9.Parse request [00:13:38]Sock 9.Check first char [00:13:38]Sock 9.First char is OK [00:13:38]request: POST /json_proto HTTP/1.0 [00:13:38]Method: POST [00:13:38]URL: /json_proto [00:13:38]Method is POST - this is cgi request [00:13:38]url: /json_proto [00:13:38]query_string will be loaded in cgi processing [00:13:38]execute_cgi json_proto POST (null) [00:13:38]execute_cgi path=json_proto method=POST [00:13:38]POST find Content-Length [00:13:38]Host: 172.17.43.195:8080 [00:13:38]Content-Length: 800 [00:13:38]Content-Type: application/json [00:13:38] [00:13:38]POST finish read [00:13:38]Found Content-Length = 800 [00:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:38]execute_script... [00:13:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:38]POST & json_proto [00:13:38]process_json_proto [00:13:38]json parsed OK: [00:13:38]protocol is kg_v1.0 [00:13:38]action value=close_receipt [00:13:38]process_action close_receipt [00:13:38]cmd_close_receipt [00:13:38]MH_GetDate [00:13:38]Write to MH i2c: F0 00 00 70 01 60 [00:13:38]Write i2c OK [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: F0 [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: F0 09 00 [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: F0 09 00 70 01 00 33 1D 24 67 74 2C AD 66 F7 [00:13:38]GetLastDocTimeStamp 1730419605 [00:13:38]current date 1730420019 [00:13:38]FM_GetShiftState [00:13:38]SAM_PROTO_GetShiftState [00:13:38]wFMCommunicate request_size=4 [00:13:38]MH_SAM_APDU [00:13:38]CAPDU: 80 13 01 00 [00:13:38]Write to MH i2c: E2 08 00 71 01 80 13 01 00 00 00 00 00 EF [00:13:38]Write i2c OK [00:13:38]MH_I2C_Read... [00:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:38]Read from MH i2c: E2 [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: E2 0E 00 [00:13:38]MH_I2C_Read... [00:13:38]Read from MH i2c: E2 0E 00 71 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 36 [00:13:38]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:13:38]wFMCommunicate OK [00:13:38]SAM_PROTO_GetShiftState done [00:13:38]FM_GetShiftState done [00:13:38]opened in 1730419605 [00:13:38]opened+sec_in_day 1730506005 [00:13:38]quantity*price = 20003 [00:13:38]sum+1 = 20004 [00:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 1 01.11.2024 00:13 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 73132 ФПД: 203807044147322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001339&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73132&fm=203807044147322&tin=02508201610067®Number=0000000000091644&sum=20003 [00:13:39]StoreToDocumentArchive [00:13:39]shift 558 fd 73132 [00:13:39]save to /storage/0558/doc_00073132 [00:13:39]save last doc name /storage/0558/doc_00073132 to /storage/kkm_last_doc_name [00:13:39]save OK [00:13:39]Clear old archive folders... [00:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:13:39]tlvbuf is 00C71D90 [00:13:39]SAM_PROTO_ClearQueue [00:13:39]wFMCommunicate request_size=4 [00:13:39]MH_SAM_APDU [00:13:39]CAPDU: 80 09 00 00 [00:13:39]Write to MH i2c: E2 08 00 7E 01 80 09 00 00 00 00 00 00 F1 [00:13:39]Write i2c OK [00:13:39]MH_I2C_Read... [00:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:39]Read from MH i2c: E2 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 03 00 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 03 00 7E 01 00 90 00 F3 [00:13:39]RAPDU: 90 00 [00:13:39]wFMCommunicate OK [00:13:39]SAM_PROTO_ClearQueue done [00:13:39]KKMCreateOFDPacket [00:13:39]OFDProtocolAddRootSTLVToBuf [00:13:39]FM_MakeSignedData [00:13:39]FM_MakeSignedData [00:13:39]SAM_PROTO_SignData [00:13:39]wFMCommunicate request_size=4 [00:13:39]MH_SAM_APDU [00:13:39]CAPDU: 80 0D 01 02 [00:13:39]Write to MH i2c: E2 08 00 7F 01 80 0D 01 02 00 00 00 00 F9 [00:13:39]Write i2c OK [00:13:39]MH_I2C_Read... [00:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:39]Read from MH i2c: E2 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 03 00 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 03 00 7F 01 00 90 00 F4 [00:13:39]RAPDU: 90 00 [00:13:39]wFMCommunicate OK [00:13:39]wFMCommunicate request_size=255 [00:13:39]MH_SAM_APDU [00:13:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 33 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1D 01 00 35 04 06 00 B9 [00:13:39]Write to MH i2c: E2 02 01 80 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 33 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1D 01 00 35 04 06 00 B9 00 00 DF [00:13:39]Write i2c OK [00:13:39]MH_I2C_Read... [00:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:39]Read from MH i2c: E2 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 03 00 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 03 00 80 01 00 90 00 F5 [00:13:39]RAPDU: 90 00 [00:13:39]wFMCommunicate OK [00:13:39]wFMCommunicate request_size=10 [00:13:39]MH_SAM_APDU [00:13:39]CAPDU: 80 0D 02 02 05 5C 86 78 18 7A [00:13:39]Write to MH i2c: E2 0D 00 81 01 80 0D 02 02 05 00 5C 86 78 18 7A 00 00 F2 [00:13:39]Write i2c OK [00:13:39]MH_I2C_Read... [00:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:39]Read from MH i2c: E2 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 03 00 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 03 00 81 01 00 90 00 F6 [00:13:39]RAPDU: 90 00 [00:13:39]wFMCommunicate OK [00:13:39]wFMCommunicate request_size=4 [00:13:39]MH_SAM_APDU [00:13:39]CAPDU: 80 0D 03 02 [00:13:39]Write to MH i2c: E2 08 00 82 01 80 0D 03 02 00 00 00 00 FE [00:13:39]Write i2c OK [00:13:39]MH_I2C_Read... [00:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:39]Read from MH i2c: E2 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 0B 00 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 0B 00 82 01 00 03 8F 0F A0 9D 11 71 E5 90 00 44 [00:13:39]RAPDU: 03 8F 0F A0 9D 11 71 E5 90 00 [00:13:39]wFMCommunicate OK [00:13:39]SAM_PROTO_SignData done [00:13:39]FM_MakeSignedData done [00:13:39]CreateOFDProtocolMessage [00:13:39]wFMCommunicate request_size=4 [00:13:39]MH_SAM_APDU [00:13:39]CAPDU: 80 11 00 00 [00:13:39]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [00:13:39]Write i2c OK [00:13:39]MH_I2C_Read... [00:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:39]Read from MH i2c: E2 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 17 00 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [00:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:13:39]wFMCommunicate OK [00:13:39]CreateOFDProtocolMessage done [00:13:39]OFDSenderStorePacket 73132 [00:13:39]StoreOFDPacket docnum=73132 [00:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E6 61 07 01 A8 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 33 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1D 01 00 35 04 06 00 B9 5C 86 78 18 7A 03 8F 0F A0 9D 11 71 E5 [00:13:39]CheckFolder [00:13:39]dirname=/storage/ofd_packets [00:13:39]CheckFolder done [00:13:39]ProducePacketName [00:13:39]name=ofd_packets/00073132 [00:13:39]NVStorageSaveData ofd_packets/00073132 [00:13:39]File name is /storage/ofd_packets/00073132 [00:13:39]Write 301 bytes [00:13:39]NVStorageSaveData done [00:13:39]OFDSenderStorePacket done [00:13:39]KKMCreateOFDPacket done [00:13:39]NVStorageSaveData kkm_last_timestamp [00:13:39]File name is /storage/kkm_last_timestamp [00:13:39]Write 4 bytes [00:13:39]NVStorageSaveData done [00:13:39]ExternCall_PrintAddStr [00:13:39]wPrintStart [00:13:39]Write to MH i2c: 01 00 00 84 01 85 [00:13:39]Write i2c OK [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: 01 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: 01 07 00 [00:13:39]MH_I2C_Read... [00:13:39]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 FF 0F 9A [00:13:39]RasterBufferAndPrint [00:13:39]line Счет N : (1)952730 [00:13:39]line ИНН: 02508201610067 [00:13:39]line Контрольно-Кассовый Чек [00:13:39]line ПРОДАЖА [00:13:39]line ТРК (МРК, ГНК) : 63 [00:13:39]line Товар: 2710124130 [00:13:39]line Аи-92-К-5 [00:13:39]line 2.990 * 66.90 [00:13:39]line = 200.03 [00:13:39]line НДС 12% НСП 1% [00:13:39]line > о реализуемом товаре [00:13:39]line ИТОГО: 200.03 [00:13:39]line НСП 1% : 1.77 [00:13:39]line НДС 12% : 21.24 [00:13:39]line Наличными: 0.00 [00:13:39]line Безнал.: 200.03 [00:13:39]line Место: АЗС № 113 "Партнер Нефть" [00:13:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:13:39]line СНО: Общий режим [00:13:39]line Чек 1 01.11.2024 00:13 [00:13:39]line Смена: 558 ФФД: 1.0 [00:13:39]line ЗНМ: 0300000087 [00:13:39]line РНМ: 0000000000091644 [00:13:39]line Версия ККМ: 001 [00:13:39]line Платежная система: O! деньги [00:13:39]line ФМ: 0000000000874662 [00:13:39]line ФД: 73132 [00:13:39]line ФПД: 203807044147322 [00:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001339&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73132&fm=203807044147322&tin=02508201610067®Number=0000000000091644&sum=20003 [00:13:39]written 0, free lines is 4095 [00:13:40]OFD Sender: Processing packet 73132 [packets to send 282, broken 281] [00:13:40]ProducePacketName [00:13:40]name=ofd_packets/00073132 [00:13:40]OFD Sender: To server: pG, [00:13:40]CommunicateWithHost lk.salyk.kg:30040 [00:13:40]ConnectInit lk.salyk.kg [00:13:40]Write to MH i2c: 01 00 00 AE 01 AF [00:13:40]Write i2c OK [00:13:40]MH_I2C_Read... [00:13:40]Read from MH i2c: 01 [00:13:40]MH_I2C_Read... [00:13:40]Read from MH i2c: 01 07 00 [00:13:40]MH_I2C_Read... [00:13:40]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 E2 0C A4 [00:13:40]RasterBufferAndPrint [00:13:40]line [00:13:40]line [00:13:40]line [00:13:40]line [00:13:40]line [00:13:40]written 0, free lines is 3302 [00:13:40]MH_Cut [00:13:40]Write to MH i2c: D1 01 00 B5 01 01 88 [00:13:40]Write i2c OK [00:13:40]MH_I2C_Read... [00:13:40]Read from MH i2c: D1 [00:13:40]MH_I2C_Read... [00:13:40]Read from MH i2c: D1 01 00 [00:13:40]MH_I2C_Read... [00:13:40]Read from MH i2c: D1 01 00 B5 01 00 87 [00:13:40]Write to MH i2c: 01 00 00 B6 01 B7 [00:13:40]Write i2c OK [00:13:40]MH_I2C_Read... [00:13:41]*** Cut start [00:13:41]*** Partial cut [00:13:41]*** CUTSNS_PIN = 1 [00:13:41]*** CUTSNS_PIN = 0 [00:13:41]*** Brake cut motor [00:13:41]Read from MH i2c: 01 [00:13:41]MH_I2C_Read... [00:13:41]*** Stop cut motor [00:13:41]*** Cut end [00:13:41]Read from MH i2c: 01 07 00 [00:13:41]MH_I2C_Read... [00:13:41]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 FF 0F CC [00:13:41]process_action close_receipt done [00:13:41]requested_data is exist [00:13:41]produce_requested_data [00:13:41]requested_item fm.sn is exist - process it [00:13:41]wFMCommunicate request_size=4 [00:13:41]MH_SAM_APDU [00:13:41]CAPDU: 80 11 00 00 [00:13:41]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [00:13:41]Write i2c OK [00:13:41]MH_I2C_Read... [00:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:41]Read from MH i2c: E2 [00:13:41]MH_I2C_Read... [00:13:41]Read from MH i2c: E2 17 00 [00:13:41]MH_I2C_Read... [00:13:41]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 86 [00:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:13:41]wFMCommunicate OK [00:13:41]requested_item fd.num is exist - process it [00:13:41]SAM_PROTO_GetFieldsCounters [00:13:41]wFMCommunicate request_size=4 [00:13:41]MH_SAM_APDU [00:13:41]CAPDU: 80 13 00 00 [00:13:41]Write to MH i2c: E2 08 00 B8 01 80 13 00 00 00 00 00 00 35 [00:13:41]Write i2c OK [00:13:41]MH_I2C_Read... [00:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:42]Read from MH i2c: E2 [00:13:42]MH_I2C_Read... [00:13:42]Read from MH i2c: E2 62 00 [00:13:42]MH_I2C_Read... [00:13:42]Read from MH i2c: E2 62 00 B8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [00:13:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:42]wFMCommunicate OK [00:13:42]SAM_PROTO_GetFieldsCounters done [00:13:42]requested_item shift.num is exist - process it [00:13:42]requested_item shift.opened is exist - process it [00:13:42]req_shift_opened [00:13:42]FM_GetShiftState [00:13:42]SAM_PROTO_GetShiftState [00:13:42]wFMCommunicate request_size=4 [00:13:42]MH_SAM_APDU [00:13:42]CAPDU: 80 13 01 00 [00:13:42]Write to MH i2c: E2 08 00 B9 01 80 13 01 00 00 00 00 00 37 [00:13:42]Write i2c OK [00:13:42]MH_I2C_Read... [00:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:42]Read from MH i2c: E2 [00:13:42]MH_I2C_Read... [00:13:42]Read from MH i2c: E2 0E 00 [00:13:42]MH_I2C_Read... [00:13:42]Read from MH i2c: E2 0E 00 B9 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 7E [00:13:42]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:13:42]wFMCommunicate OK [00:13:42]SAM_PROTO_GetShiftState done [00:13:42]FM_GetShiftState done [00:13:42]req_shift_opened done [00:13:42]requested_item shift.open_date is exist - process it [00:13:42]req_shift_open_date [00:13:42]req_shift_open_date done [00:13:42]produce_requested_data done [00:13:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73132,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [00:13:42]process_action_free close_receipt [00:13:42]json_value_free [00:13:42]json_value_free done [00:13:42]process_json_proto returns [00:13:42]Send response to host [00:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73132,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [00:13:42]free response buf [00:13:42]execute_script done [00:13:42]execute_script returns [00:13:42]free content buf [00:13:42]Sock 9.Close socket [00:13:42]Sock 9.Thread stoped [00:13:44]Connected sock=11 [00:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E6 61 07 01 A8 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 33 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1D 01 00 35 04 06 00 B9 5C 86 78 18 7A 03 8F 0F A0 9D 11 71 E5 [00:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DC 7A 47 00 B1 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 34 36 36 32 10 04 04 00 AC 1D 01 00 F4 03 04 00 EB C7 23 67 B6 04 01 00 00 0F 46 2F F0 FD 11 9C F7 [00:13:44]CommunicateWithHost err = 0 [00:13:44]CheckOFDResponse [00:13:44]1017 (14) - 77093643461234 [00:13:44]1041 (16) - 0000000000874662 [00:13:44]1040 (4) - 73132 [00:13:44]1012 (4) - 31.10.2024 18:09 [00:13:44]1206 (1) - 0 [00:13:44]OFD Sender: Remove packet 73132 [00:13:44]ProducePacketName [00:13:44]name=ofd_packets/00073132 [00:13:44]NVStorageDeleteData [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:40]recv_with_timeout no data received [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:51]recv_with_timeout no data received [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:01]recv_with_timeout no data received [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]recv_with_timeout no data received [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:09]recv_with_timeout no data received [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:25]recv_with_timeout no data received [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:36]recv_with_timeout no data received [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:54]recv_with_timeout no data received [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:28]recv_with_timeout no data received [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:36]recv_with_timeout no data received [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:19]recv_with_timeout no data received [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:29]recv_with_timeout no data received [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:45]recv_with_timeout no data received [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:24]recv_with_timeout no data received [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:24:58]recv_with_timeout no data received [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:08]recv_with_timeout no data received [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:19]recv_with_timeout no data received [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:19]recv_with_timeout no data received [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:13]recv_with_timeout no data received [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]recv_with_timeout no data received [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:16]recv_with_timeout no data received [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:35]recv_with_timeout no data received [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:30]recv_with_timeout no data received [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:56]recv_with_timeout no data received [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:07]recv_with_timeout no data received [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:31]recv_with_timeout no data received [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:51]recv_with_timeout no data received [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:09]recv_with_timeout no data received [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:32]recv_with_timeout no data received [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:04]accept exits with 7 [00:39:04]New connection [00:39:04]New thread 3066854756 created [00:39:04]Thread 3066998116 joined [00:39:04]Waiting for new connection... [00:39:04] Sock 7.Parse request [00:39:04]Sock 7.Check first char [00:39:04]Sock 7.First char is OK [00:39:04]request: POST /json_proto HTTP/1.0 [00:39:04]Method: POST [00:39:04]URL: /json_proto [00:39:04]Method is POST - this is cgi request [00:39:04]url: /json_proto [00:39:04]query_string will be loaded in cgi processing [00:39:04]execute_cgi json_proto POST (null) [00:39:04]execute_cgi path=json_proto method=POST [00:39:04]POST find Content-Length [00:39:04]Host: 172.17.43.195:8080 [00:39:04]Content-Length: 678 [00:39:04]Content-Type: application/json [00:39:04] [00:39:04]POST finish read [00:39:04]Found Content-Length = 678 [00:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:04]execute_script... [00:39: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)952731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:04]POST & json_proto [00:39:04]process_json_proto [00:39:04]json parsed OK: [00:39:04]protocol is kg_v1.0 [00:39:04]action value=close_receipt [00:39:04]process_action close_receipt [00:39:04]cmd_close_receipt [00:39:04]MH_GetDate [00:39:04]Write to MH i2c: F0 00 00 BA 01 AA [00:39:04]Write i2c OK [00:39:04]MH_I2C_Read... [00:39:04]Read from MH i2c: F0 [00:39:04]MH_I2C_Read... [00:39:04]Read from MH i2c: F0 09 00 [00:39:04]MH_I2C_Read... [00:39:04]Read from MH i2c: F0 09 00 BA 01 00 29 23 24 67 74 2C AD 66 3D [00:39:04]GetLastDocTimeStamp 1730420019 [00:39:04]current date 1730421545 [00:39:04]FM_GetShiftState [00:39:04]SAM_PROTO_GetShiftState [00:39:04]wFMCommunicate request_size=4 [00:39:04]MH_SAM_APDU [00:39:04]CAPDU: 80 13 01 00 [00:39:04]Write to MH i2c: E2 08 00 BB 01 80 13 01 00 00 00 00 00 39 [00:39:04]Write i2c OK [00:39:04]MH_I2C_Read... [00:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:04]Read from MH i2c: E2 [00:39:04]MH_I2C_Read... [00:39:04]Read from MH i2c: E2 0E 00 [00:39:04]MH_I2C_Read... [00:39:04]Read from MH i2c: E2 0E 00 BB 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 80 [00:39:04]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:39:04]wFMCommunicate OK [00:39:04]SAM_PROTO_GetShiftState done [00:39:04]FM_GetShiftState done [00:39:04]opened in 1730419605 [00:39:04]opened+sec_in_day 1730506005 [00:39:04]quantity*price = 80012 [00:39:04]sum+1 = 80013 [00:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 2 01.11.2024 00:39 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73133 ФПД: 180865085469319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003905&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73133&fm=180865085469319&tin=02508201610067®Number=0000000000091644&sum=80000 [00:39:05]StoreToDocumentArchive [00:39:05]shift 558 fd 73133 [00:39:05]save to /storage/0558/doc_00073133 [00:39:05]save last doc name /storage/0558/doc_00073133 to /storage/kkm_last_doc_name [00:39:05]save OK [00:39:05]Clear old archive folders... [00:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:39:05]tlvbuf is 00C69A40 [00:39:05]SAM_PROTO_ClearQueue [00:39:05]wFMCommunicate request_size=4 [00:39:05]MH_SAM_APDU [00:39:05]CAPDU: 80 09 00 00 [00:39:05]Write to MH i2c: E2 08 00 C8 01 80 09 00 00 00 00 00 00 3B [00:39:05]Write i2c OK [00:39:05]MH_I2C_Read... [00:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:05]Read from MH i2c: E2 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 03 00 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 03 00 C8 01 00 90 00 3D [00:39:05]RAPDU: 90 00 [00:39:05]wFMCommunicate OK [00:39:05]SAM_PROTO_ClearQueue done [00:39:05]KKMCreateOFDPacket [00:39:05]OFDProtocolAddRootSTLVToBuf [00:39:05]FM_MakeSignedData [00:39:05]FM_MakeSignedData [00:39:05]SAM_PROTO_SignData [00:39:05]wFMCommunicate request_size=4 [00:39:05]MH_SAM_APDU [00:39:05]CAPDU: 80 0D 01 02 [00:39:05]Write to MH i2c: E2 08 00 C9 01 80 0D 01 02 00 00 00 00 43 [00:39:05]Write i2c OK [00:39:05]MH_I2C_Read... [00:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:05]Read from MH i2c: E2 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 03 00 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 03 00 C9 01 00 90 00 3E [00:39:05]RAPDU: 90 00 [00:39:05]wFMCommunicate OK [00:39:05]wFMCommunicate request_size=255 [00:39:05]MH_SAM_APDU [00:39:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 29 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1D 01 00 35 04 06 00 A4 [00:39:05]Write to MH i2c: E2 02 01 CA 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 29 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1D 01 00 35 04 06 00 A4 00 00 36 [00:39:05]Write i2c OK [00:39:05]MH_I2C_Read... [00:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:06]Read from MH i2c: E2 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 03 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [00:39:06]RAPDU: 90 00 [00:39:06]wFMCommunicate OK [00:39:06]wFMCommunicate request_size=10 [00:39:06]MH_SAM_APDU [00:39:06]CAPDU: 80 0D 02 02 05 7E EF 2B F2 87 [00:39:06]Write to MH i2c: E2 0D 00 CB 01 80 0D 02 02 05 00 7E EF 2B F2 87 00 00 61 [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:06]Read from MH i2c: E2 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 03 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [00:39:06]RAPDU: 90 00 [00:39:06]wFMCommunicate OK [00:39:06]wFMCommunicate request_size=4 [00:39:06]MH_SAM_APDU [00:39:06]CAPDU: 80 0D 03 02 [00:39:06]Write to MH i2c: E2 08 00 CC 01 80 0D 03 02 00 00 00 00 48 [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:06]Read from MH i2c: E2 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 0B 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 0B 00 CC 01 00 0C 1F 92 0F F9 92 1A A9 90 00 63 [00:39:06]RAPDU: 0C 1F 92 0F F9 92 1A A9 90 00 [00:39:06]wFMCommunicate OK [00:39:06]SAM_PROTO_SignData done [00:39:06]FM_MakeSignedData done [00:39:06]CreateOFDProtocolMessage [00:39:06]wFMCommunicate request_size=4 [00:39:06]MH_SAM_APDU [00:39:06]CAPDU: 80 11 00 00 [00:39:06]Write to MH i2c: E2 08 00 CD 01 80 11 00 00 00 00 00 00 48 [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:06]Read from MH i2c: E2 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 17 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 17 00 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9C [00:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:39:06]wFMCommunicate OK [00:39:06]CreateOFDProtocolMessage done [00:39:06]OFDSenderStorePacket 73133 [00:39:06]StoreOFDPacket docnum=73133 [00:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C6 21 07 01 B8 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 29 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1D 01 00 35 04 06 00 A4 7E EF 2B F2 87 0C 1F 92 0F F9 92 1A A9 [00:39:06]CheckFolder [00:39:06]dirname=/storage/ofd_packets [00:39:06]CheckFolder done [00:39:06]ProducePacketName [00:39:06]name=ofd_packets/00073133 [00:39:06]NVStorageSaveData ofd_packets/00073133 [00:39:06]File name is /storage/ofd_packets/00073133 [00:39:06]Write 301 bytes [00:39:06]NVStorageSaveData done [00:39:06]OFDSenderStorePacket done [00:39:06]KKMCreateOFDPacket done [00:39:06]NVStorageSaveData kkm_last_timestamp [00:39:06]File name is /storage/kkm_last_timestamp [00:39:06]Write 4 bytes [00:39:06]NVStorageSaveData done [00:39:06]ExternCall_PrintAddStr [00:39:06]wPrintStart [00:39:06]Write to MH i2c: 01 00 00 CE 01 CF [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: 01 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: 01 07 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [00:39:06]RasterBufferAndPrint [00:39:06]line Счет N : (1)952731 [00:39:06]line ИНН: 02508201610067 [00:39:06]line Контрольно-Кассовый Чек [00:39:06]line ПРОДАЖА [00:39:06]line ТРК (МРК, ГНК) : 63 [00:39:06]line Товар: 2710124130 [00:39:06]line Аи-92-К-5 [00:39:06]line 11.960 * 66.90 [00:39:06]line = 800.12 [00:39:06]line НДС 12% НСП 1% [00:39:06]line > о реализуемом товаре [00:39:06]line ОКРУГЛЕНИЕ: -0.12 [00:39:06]line ИТОГО: 800.00 [00:39:06]line Внесено: 800.00 [00:39:06]line СДАЧА: 0.00 [00:39:06]line НСП 1% : 7.08 [00:39:06]line НДС 12% : 84.97 [00:39:06]line Наличными: 800.00 [00:39:06]line Безнал.: 0.00 [00:39:06]line Место: АЗС № 113 "Партнер Нефть" [00:39:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:39:06]line СНО: Общий режим [00:39:06]line Чек 2 01.11.2024 00:39 [00:39:06]line Смена: 558 ФФД: 1.0 [00:39:06]line ЗНМ: 0300000087 [00:39:06]line РНМ: 0000000000091644 [00:39:06]line Версия ККМ: 001 [00:39:06]line ФМ: 0000000000874662 [00:39:06]line ФД: 73133 [00:39:06]line ФПД: 180865085469319 [00:39:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003905&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73133&fm=180865085469319&tin=02508201610067®Number=0000000000091644&sum=80000 [00:39:06]written 0, free lines is 4095 [00:39:06]OFD Sender: Processing packet 73133 [packets to send 282, broken 281] [00:39:06]ProducePacketName [00:39:06]name=ofd_packets/00073133 [00:39:06]OFD Sender: To server: pG, [00:39:06]CommunicateWithHost lk.salyk.kg:30040 [00:39:06]ConnectInit lk.salyk.kg [00:39:06]Write to MH i2c: 01 00 00 F9 01 FA [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: 01 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: 01 07 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 D8 0C E5 [00:39:06]RasterBufferAndPrint [00:39:06]line [00:39:06]line [00:39:06]line [00:39:06]line [00:39:06]line [00:39:06]written 0, free lines is 3296 [00:39:06]MH_Cut [00:39:06]Write to MH i2c: D1 01 00 00 02 01 D4 [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: D1 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: D1 01 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: D1 01 00 00 02 00 D3 [00:39:06]Write to MH i2c: 01 00 00 01 02 03 [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:07]*** Cut start [00:39:07]*** Partial cut [00:39:07]*** CUTSNS_PIN = 1 [00:39:07]*** CUTSNS_PIN = 0 [00:39:07]*** Brake cut motor [00:39:08]Read from MH i2c: 01 [00:39:08]MH_I2C_Read... [00:39:08]*** Stop cut motor [00:39:08]*** Cut end [00:39:08]Read from MH i2c: 01 07 00 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 FF 0F 18 [00:39:08]process_action close_receipt done [00:39:08]requested_data is exist [00:39:08]produce_requested_data [00:39:08]requested_item fm.sn is exist - process it [00:39:08]wFMCommunicate request_size=4 [00:39:08]MH_SAM_APDU [00:39:08]CAPDU: 80 11 00 00 [00:39:08]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [00:39:08]Write i2c OK [00:39:08]MH_I2C_Read... [00:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:08]Read from MH i2c: E2 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 17 00 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D2 [00:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:39:08]wFMCommunicate OK [00:39:08]requested_item fd.num is exist - process it [00:39:08]SAM_PROTO_GetFieldsCounters [00:39:08]wFMCommunicate request_size=4 [00:39:08]MH_SAM_APDU [00:39:08]CAPDU: 80 13 00 00 [00:39:08]Write to MH i2c: E2 08 00 03 02 80 13 00 00 00 00 00 00 81 [00:39:08]Write i2c OK [00:39:08]MH_I2C_Read... [00:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:08]Read from MH i2c: E2 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 62 00 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 62 00 03 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AD 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [00:39:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AD 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:08]wFMCommunicate OK [00:39:08]SAM_PROTO_GetFieldsCounters done [00:39:08]requested_item shift.num is exist - process it [00:39:08]requested_item shift.opened is exist - process it [00:39:08]req_shift_opened [00:39:08]FM_GetShiftState [00:39:08]SAM_PROTO_GetShiftState [00:39:08]wFMCommunicate request_size=4 [00:39:08]MH_SAM_APDU [00:39:08]CAPDU: 80 13 01 00 [00:39:08]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [00:39:08]Write i2c OK [00:39:08]MH_I2C_Read... [00:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:08]Read from MH i2c: E2 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 0E 00 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 CA [00:39:08]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:39:08]wFMCommunicate OK [00:39:08]SAM_PROTO_GetShiftState done [00:39:08]FM_GetShiftState done [00:39:08]req_shift_opened done [00:39:08]requested_item shift.open_date is exist - process it [00:39:08]req_shift_open_date [00:39:08]req_shift_open_date done [00:39:08]produce_requested_data done [00:39:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73133,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [00:39:08]process_action_free close_receipt [00:39:08]json_value_free [00:39:08]json_value_free done [00:39:08]process_json_proto returns [00:39:08]Send response to host [00:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73133,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [00:39:08]free response buf [00:39:08]execute_script done [00:39:08]execute_script returns [00:39:08]free content buf [00:39:08]Sock 7.Close socket [00:39:08]Sock 7.Thread stoped [00:39:10]recv_with_timeout no data received [00:39:11]ConnectInit Can't take IP for lk.salyk.kg [00:39:11]CommunicateWithHost connect error [00:39:11]CommunicateWithHost err = -1 [00:39:11]OFD Sender: Server communicate error [00:39:16]OFD Sender: Processing packet 73133 [packets to send 282, broken 281] [00:39:16]ProducePacketName [00:39:16]name=ofd_packets/00073133 [00:39:16]OFD Sender: To server: pG, [00:39:16]CommunicateWithHost lk.salyk.kg:30040 [00:39:16]ConnectInit lk.salyk.kg [00:39:18]Connected sock=9 [00:39:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C6 21 07 01 B8 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 29 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1D 01 00 35 04 06 00 A4 7E EF 2B F2 87 0C 1F 92 0F F9 92 1A A9 [00:39:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B6 3B 47 00 73 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1D 01 00 F4 03 04 00 E9 CD 23 67 B6 04 01 00 00 87 FC 5C 6F 0E FA 81 71 [00:39:19]CommunicateWithHost err = 0 [00:39:19]CheckOFDResponse [00:39:19]1017 (14) - 77093643461234 [00:39:19]1041 (16) - 0000000000874662 [00:39:19]1040 (4) - 73133 [00:39:19]1012 (4) - 31.10.2024 18:35 [00:39:19]1206 (1) - 0 [00:39:19]OFD Sender: Remove packet 73133 [00:39:19]ProducePacketName [00:39:19]name=ofd_packets/00073133 [00:39:19]NVStorageDeleteData [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]recv_with_timeout no data received [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:40]recv_with_timeout no data received [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:01]accept exits with 10 [00:41:01]New connection [00:41:01]New thread 3066998116 created [00:41:01]Thread 3066854756 joined [00:41:01]Waiting for new connection... [00:41:01] Sock 10.Parse request [00:41:01]Sock 10.Check first char [00:41:01]Sock 10.First char is OK [00:41:01]request: POST /json_proto HTTP/1.0 [00:41:01]Method: POST [00:41:01]URL: /json_proto [00:41:01]Method is POST - this is cgi request [00:41:01]url: /json_proto [00:41:01]query_string will be loaded in cgi processing [00:41:01]execute_cgi json_proto POST (null) [00:41:01]execute_cgi path=json_proto method=POST [00:41:01]POST find Content-Length [00:41:01]Host: 172.17.43.195:8080 [00:41:01]Content-Length: 682 [00:41:01]Content-Type: application/json [00:41:01] [00:41:01]POST finish read [00:41:01]Found Content-Length = 682 [00:41:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:01]execute_script... [00:41:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:01]POST & json_proto [00:41:01]process_json_proto [00:41:01]json parsed OK: [00:41:01]protocol is kg_v1.0 [00:41:01]action value=close_receipt [00:41:01]process_action close_receipt [00:41:01]cmd_close_receipt [00:41:01]MH_GetDate [00:41:01]Write to MH i2c: F0 00 00 05 02 F6 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: F0 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: F0 09 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: F0 09 00 05 02 00 9E 23 24 67 74 2C AD 66 FE [00:41:01]GetLastDocTimeStamp 1730421545 [00:41:01]current date 1730421662 [00:41:01]FM_GetShiftState [00:41:01]SAM_PROTO_GetShiftState [00:41:01]wFMCommunicate request_size=4 [00:41:01]MH_SAM_APDU [00:41:01]CAPDU: 80 13 01 00 [00:41:01]Write to MH i2c: E2 08 00 06 02 80 13 01 00 00 00 00 00 85 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0E 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0E 00 06 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 CC [00:41:01]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:41:01]wFMCommunicate OK [00:41:01]SAM_PROTO_GetShiftState done [00:41:01]FM_GetShiftState done [00:41:01]opened in 1730419605 [00:41:01]opened+sec_in_day 1730506005 [00:41:01]quantity*price = 100015 [00:41:01]sum+1 = 100017 [00:41:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 3 01.11.2024 00:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73134 ФПД: 229002364470007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004102&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73134&fm=229002364470007&tin=02508201610067®Number=0000000000091644&sum=100000 [00:41:02]StoreToDocumentArchive [00:41:02]shift 558 fd 73134 [00:41:02]save to /storage/0558/doc_00073134 [00:41:02]save last doc name /storage/0558/doc_00073134 to /storage/kkm_last_doc_name [00:41:02]save OK [00:41:02]Clear old archive folders... [00:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:02]tlvbuf is 00C63B40 [00:41:02]SAM_PROTO_ClearQueue [00:41:02]wFMCommunicate request_size=4 [00:41:02]MH_SAM_APDU [00:41:02]CAPDU: 80 09 00 00 [00:41:02]Write to MH i2c: E2 08 00 13 02 80 09 00 00 00 00 00 00 87 [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:02]Read from MH i2c: E2 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: E2 03 00 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [00:41:02]RAPDU: 90 00 [00:41:02]wFMCommunicate OK [00:41:02]SAM_PROTO_ClearQueue done [00:41:02]KKMCreateOFDPacket [00:41:02]OFDProtocolAddRootSTLVToBuf [00:41:02]FM_MakeSignedData [00:41:02]FM_MakeSignedData [00:41:02]SAM_PROTO_SignData [00:41:02]wFMCommunicate request_size=4 [00:41:02]MH_SAM_APDU [00:41:02]CAPDU: 80 0D 01 02 [00:41:02]Write to MH i2c: E2 08 00 14 02 80 0D 01 02 00 00 00 00 8F [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:02]Read from MH i2c: E2 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: E2 03 00 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [00:41:02]RAPDU: 90 00 [00:41:02]wFMCommunicate OK [00:41:02]wFMCommunicate request_size=255 [00:41:02]MH_SAM_APDU [00:41:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9E 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1D 01 00 35 04 06 00 D0 [00:41:02]Write to MH i2c: E2 02 01 15 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9E 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1D 01 00 35 04 06 00 D0 00 00 33 [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [00:41:03]RAPDU: 90 00 [00:41:03]wFMCommunicate OK [00:41:03]wFMCommunicate request_size=10 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 0D 02 02 05 46 C4 96 42 F7 [00:41:03]Write to MH i2c: E2 0D 00 16 02 80 0D 02 02 05 00 46 C4 96 42 F7 00 00 75 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [00:41:03]RAPDU: 90 00 [00:41:03]wFMCommunicate OK [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 0D 03 02 [00:41:03]Write to MH i2c: E2 08 00 17 02 80 0D 03 02 00 00 00 00 94 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 0B 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 0B 00 17 02 00 D6 01 F2 B7 AC F8 8C F8 90 00 3D [00:41:03]RAPDU: D6 01 F2 B7 AC F8 8C F8 90 00 [00:41:03]wFMCommunicate OK [00:41:03]SAM_PROTO_SignData done [00:41:03]FM_MakeSignedData done [00:41:03]CreateOFDProtocolMessage [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 11 00 00 [00:41:03]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 17 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 17 00 18 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E8 [00:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:41:03]wFMCommunicate OK [00:41:03]CreateOFDProtocolMessage done [00:41:03]OFDSenderStorePacket 73134 [00:41:03]StoreOFDPacket docnum=73134 [00:41:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 87 E1 07 01 EA 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9E 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1D 01 00 35 04 06 00 D0 46 C4 96 42 F7 D6 01 F2 B7 AC F8 8C F8 [00:41:03]CheckFolder [00:41:03]dirname=/storage/ofd_packets [00:41:03]CheckFolder done [00:41:03]ProducePacketName [00:41:03]name=ofd_packets/00073134 [00:41:03]NVStorageSaveData ofd_packets/00073134 [00:41:03]File name is /storage/ofd_packets/00073134 [00:41:03]Write 301 bytes [00:41:03]NVStorageSaveData done [00:41:03]OFDSenderStorePacket done [00:41:03]KKMCreateOFDPacket done [00:41:03]NVStorageSaveData kkm_last_timestamp [00:41:03]File name is /storage/kkm_last_timestamp [00:41:03]Write 4 bytes [00:41:03]NVStorageSaveData done [00:41:03]ExternCall_PrintAddStr [00:41:03]wPrintStart [00:41:03]Write to MH i2c: 01 00 00 19 02 1B [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 07 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 FF 0F 30 [00:41:03]RasterBufferAndPrint [00:41:03]line Счет N : (1)952733 [00:41:03]line ИНН: 02508201610067 [00:41:03]line Контрольно-Кассовый Чек [00:41:03]line ПРОДАЖА [00:41:03]line ТРК (МРК, ГНК) : 63 [00:41:03]line Товар: 2710124130 [00:41:03]line Аи-92-К-5 [00:41:03]line 14.950 * 66.90 [00:41:03]line = 1000.16 [00:41:03]line НДС 12% НСП 1% [00:41:03]line > о реализуемом товаре [00:41:03]line ОКРУГЛЕНИЕ: -0.16 [00:41:03]line ИТОГО: 1000.00 [00:41:03]line Внесено: 1000.00 [00:41:03]line СДАЧА: 0.00 [00:41:03]line НСП 1% : 8.85 [00:41:03]line НДС 12% : 106.21 [00:41:03]line Наличными: 1000.00 [00:41:03]line Безнал.: 0.00 [00:41:03]line Место: АЗС № 113 "Партнер Нефть" [00:41:03]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:41:03]line СНО: Общий режим [00:41:03]line Чек 3 01.11.2024 00:41 [00:41:03]line Смена: 558 ФФД: 1.0 [00:41:03]line ЗНМ: 0300000087 [00:41:03]line РНМ: 0000000000091644 [00:41:03]line Версия ККМ: 001 [00:41:03]line ФМ: 0000000000874662 [00:41:03]line ФД: 73134 [00:41:03]line ФПД: 229002364470007 [00:41:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004102&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73134&fm=229002364470007&tin=02508201610067®Number=0000000000091644&sum=100000 [00:41:03]OFD Sender: Processing packet 73134 [packets to send 282, broken 281] [00:41:03]ProducePacketName [00:41:03]name=ofd_packets/00073134 [00:41:03]OFD Sender: To server: pG, [00:41:03]CommunicateWithHost lk.salyk.kg:30040 [00:41:03]ConnectInit lk.salyk.kg [00:41:03]written 0, free lines is 4095 [00:41:03]Connected sock=9 [00:41:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 87 E1 07 01 EA 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9E 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1D 01 00 35 04 06 00 D0 46 C4 96 42 F7 D6 01 F2 B7 AC F8 8C F8 [00:41:04]Write to MH i2c: 01 00 00 44 02 46 [00:41:04]Write i2c OK [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: 01 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: 01 07 00 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: 01 07 00 44 02 00 00 00 00 00 E4 0C 3D [00:41:04]RasterBufferAndPrint [00:41:04]line [00:41:04]line [00:41:04]line [00:41:04]line [00:41:04]line [00:41:04]written 0, free lines is 3306 [00:41:04]MH_Cut [00:41:04]Write to MH i2c: D1 01 00 4B 02 01 1F [00:41:04]Write i2c OK [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: D1 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: D1 01 00 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: D1 01 00 4B 02 00 1E [00:41:04]Write to MH i2c: 01 00 00 4C 02 4E [00:41:04]Write i2c OK [00:41:04]MH_I2C_Read... [00:41:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 05 F9 47 00 F1 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1D 01 00 F4 03 04 00 52 CE 23 67 B6 04 01 00 00 A1 B3 30 7F D3 C8 3A 2A [00:41:04]CommunicateWithHost err = 0 [00:41:04]CheckOFDResponse [00:41:04]1017 (14) - 77093643461234 [00:41:04]1041 (16) - 0000000000874662 [00:41:04]1040 (4) - 73134 [00:41:04]1012 (4) - 31.10.2024 18:37 [00:41:04]1206 (1) - 0 [00:41:04]OFD Sender: Remove packet 73134 [00:41:04]ProducePacketName [00:41:04]name=ofd_packets/00073134 [00:41:04]NVStorageDeleteData [00:41:04]*** Cut start [00:41:04]*** Partial cut [00:41:04]*** CUTSNS_PIN = 1 [00:41:04]OFD Sender: No OFD packet to send [00:41:04]*** CUTSNS_PIN = 0 [00:41:05]*** Brake cut motor [00:41:05]Read from MH i2c: 01 [00:41:05]MH_I2C_Read... [00:41:05]*** Stop cut motor [00:41:05]*** Cut end [00:41:05]Read from MH i2c: 01 07 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: 01 07 00 4C 02 00 00 00 00 00 FF 0F 63 [00:41:05]process_action close_receipt done [00:41:05]requested_data is exist [00:41:05]produce_requested_data [00:41:05]requested_item fm.sn is exist - process it [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 11 00 00 [00:41:05]Write to MH i2c: E2 08 00 4D 02 80 11 00 00 00 00 00 00 C9 [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 17 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 17 00 4D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1D [00:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:41:05]wFMCommunicate OK [00:41:05]requested_item fd.num is exist - process it [00:41:05]SAM_PROTO_GetFieldsCounters [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 13 00 00 [00:41:05]Write to MH i2c: E2 08 00 4E 02 80 13 00 00 00 00 00 00 CC [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 62 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 62 00 4E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AE 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [00:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AE 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:05]wFMCommunicate OK [00:41:05]SAM_PROTO_GetFieldsCounters done [00:41:05]requested_item shift.num is exist - process it [00:41:05]requested_item shift.opened is exist - process it [00:41:05]req_shift_opened [00:41:05]FM_GetShiftState [00:41:05]SAM_PROTO_GetShiftState [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 13 01 00 [00:41:05]Write to MH i2c: E2 08 00 4F 02 80 13 01 00 00 00 00 00 CE [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 0E 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 0E 00 4F 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 15 [00:41:05]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:41:05]wFMCommunicate OK [00:41:05]SAM_PROTO_GetShiftState done [00:41:05]FM_GetShiftState done [00:41:05]req_shift_opened done [00:41:05]requested_item shift.open_date is exist - process it [00:41:05]req_shift_open_date [00:41:05]req_shift_open_date done [00:41:05]produce_requested_data done [00:41:05]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73134,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [00:41:05]process_action_free close_receipt [00:41:05]json_value_free [00:41:05]json_value_free done [00:41:05]process_json_proto returns [00:41:05]Send response to host [00:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73134,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [00:41:05]free response buf [00:41:05]execute_script done [00:41:05]execute_script returns [00:41:05]free content buf [00:41:05]Sock 10.Close socket [00:41:05]Sock 10.Thread stoped [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:37]accept exits with 7 [00:41:37]New connection [00:41:37]New thread 3066854756 created [00:41:37]Thread 3066998116 joined [00:41:37]Waiting for new connection... [00:41:37] Sock 7.Parse request [00:41:37]Sock 7.Check first char [00:41:37]Sock 7.First char is OK [00:41:37]request: POST /json_proto HTTP/1.0 [00:41:37]Method: POST [00:41:37]URL: /json_proto [00:41:37]Method is POST - this is cgi request [00:41:37]url: /json_proto [00:41:37]query_string will be loaded in cgi processing [00:41:37]execute_cgi json_proto POST (null) [00:41:37]execute_cgi path=json_proto method=POST [00:41:37]POST find Content-Length [00:41:37]Host: 172.17.43.195:8080 [00:41:37]Content-Length: 687 [00:41:37]Content-Type: application/json [00:41:37] [00:41:37]POST finish read [00:41:37]Found Content-Length = 687 [00:41:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:37]execute_script... [00:41: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)952732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:37]POST & json_proto [00:41:37]process_json_proto [00:41:37]json parsed OK: [00:41:37]protocol is kg_v1.0 [00:41:37]action value=close_receipt [00:41:37]process_action close_receipt [00:41:37]cmd_close_receipt [00:41:37]MH_GetDate [00:41:37]Write to MH i2c: F0 00 00 50 02 41 [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: F0 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: F0 09 00 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: F0 09 00 50 02 00 C2 23 24 67 74 2C AD 66 6D [00:41:37]GetLastDocTimeStamp 1730421662 [00:41:37]current date 1730421698 [00:41:37]FM_GetShiftState [00:41:37]SAM_PROTO_GetShiftState [00:41:37]wFMCommunicate request_size=4 [00:41:37]MH_SAM_APDU [00:41:37]CAPDU: 80 13 01 00 [00:41:37]Write to MH i2c: E2 08 00 51 02 80 13 01 00 00 00 00 00 D0 [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:37]Read from MH i2c: E2 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 0E 00 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 0E 00 51 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 17 [00:41:37]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:41:37]wFMCommunicate OK [00:41:37]SAM_PROTO_GetShiftState done [00:41:37]FM_GetShiftState done [00:41:37]opened in 1730419605 [00:41:37]opened+sec_in_day 1730506005 [00:41:37]quantity*price = 300075 [00:41:37]sum+1 = 300077 [00:41:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 4 01.11.2024 00:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73135 ФПД: 264497644689539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004138&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73135&fm=264497644689539&tin=02508201610067®Number=0000000000091644&sum=300000 [00:41:38]StoreToDocumentArchive [00:41:38]shift 558 fd 73135 [00:41:38]save to /storage/0558/doc_00073135 [00:41:38]save last doc name /storage/0558/doc_00073135 to /storage/kkm_last_doc_name [00:41:38]save OK [00:41:38]Clear old archive folders... [00:41:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:41:38]tlvbuf is 00C60EE0 [00:41:38]SAM_PROTO_ClearQueue [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 09 00 00 [00:41:38]Write to MH i2c: E2 08 00 5E 02 80 09 00 00 00 00 00 00 D2 [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 03 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [00:41:38]RAPDU: 90 00 [00:41:38]wFMCommunicate OK [00:41:38]SAM_PROTO_ClearQueue done [00:41:38]KKMCreateOFDPacket [00:41:38]OFDProtocolAddRootSTLVToBuf [00:41:38]FM_MakeSignedData [00:41:38]FM_MakeSignedData [00:41:38]SAM_PROTO_SignData [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 0D 01 02 [00:41:38]Write to MH i2c: E2 08 00 5F 02 80 0D 01 02 00 00 00 00 DA [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 03 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [00:41:38]RAPDU: 90 00 [00:41:38]wFMCommunicate OK [00:41:38]wFMCommunicate request_size=255 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C2 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1D 01 00 35 04 06 00 [00:41:38]Write to MH i2c: E2 02 01 60 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C2 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1D 01 00 35 04 06 00 00 00 EF [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 03 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [00:41:38]RAPDU: 90 00 [00:41:38]wFMCommunicate OK [00:41:38]wFMCommunicate request_size=11 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 0D 02 02 06 F0 8F 28 27 D8 83 [00:41:38]Write to MH i2c: E2 0E 00 61 02 80 0D 02 02 06 00 F0 8F 28 27 D8 83 00 00 12 [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 03 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 03 00 61 02 00 90 00 D7 [00:41:38]RAPDU: 90 00 [00:41:38]wFMCommunicate OK [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 0D 03 02 [00:41:38]Write to MH i2c: E2 08 00 62 02 80 0D 03 02 00 00 00 00 DF [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 0B 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 0B 00 62 02 00 14 B7 BC BE A5 22 74 93 90 00 F3 [00:41:38]RAPDU: 14 B7 BC BE A5 22 74 93 90 00 [00:41:38]wFMCommunicate OK [00:41:38]SAM_PROTO_SignData done [00:41:38]FM_MakeSignedData done [00:41:38]CreateOFDProtocolMessage [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 11 00 00 [00:41:38]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 17 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [00:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:41:38]wFMCommunicate OK [00:41:38]CreateOFDProtocolMessage done [00:41:38]OFDSenderStorePacket 73135 [00:41:38]StoreOFDPacket docnum=73135 [00:41:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 18 E3 08 01 75 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C2 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1D 01 00 35 04 06 00 F0 8F 28 27 D8 83 14 B7 BC BE A5 22 74 93 [00:41:38]CheckFolder [00:41:38]dirname=/storage/ofd_packets [00:41:38]CheckFolder done [00:41:38]ProducePacketName [00:41:38]name=ofd_packets/00073135 [00:41:38]NVStorageSaveData ofd_packets/00073135 [00:41:38]File name is /storage/ofd_packets/00073135 [00:41:38]Write 302 bytes [00:41:38]NVStorageSaveData done [00:41:38]OFDSenderStorePacket done [00:41:38]KKMCreateOFDPacket done [00:41:38]NVStorageSaveData kkm_last_timestamp [00:41:38]File name is /storage/kkm_last_timestamp [00:41:38]Write 4 bytes [00:41:38]NVStorageSaveData done [00:41:38]OFD Sender: Processing packet 73135 [packets to send 282, broken 281] [00:41:38]ProducePacketName [00:41:38]name=ofd_packets/00073135 [00:41:38]OFD Sender: To server: pG, [00:41:38]CommunicateWithHost lk.salyk.kg:30040 [00:41:38]ConnectInit lk.salyk.kg [00:41:38]ExternCall_PrintAddStr [00:41:38]wPrintStart [00:41:38]Write to MH i2c: 01 00 00 64 02 66 [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: 01 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: 01 07 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 FF 0F 7B [00:41:38]RasterBufferAndPrint [00:41:38]line Счет N : (1)952732 [00:41:38]line ИНН: 02508201610067 [00:41:38]line Контрольно-Кассовый Чек [00:41:38]line ПРОДАЖА [00:41:38]line ТРК (МРК, ГНК) : 43 [00:41:38]line Товар: 2710194210 [00:41:38]line ДТ(л)-К-5 [00:41:38]line 39.380 * 76.20 [00:41:38]line = 3000.76 [00:41:38]line НДС 12% НСП 1% [00:41:38]line > о реализуемом товаре [00:41:38]line ОКРУГЛЕНИЕ: -0.76 [00:41:38]line ИТОГО: 3000.00 [00:41:38]line Внесено: 3000.00 [00:41:38]line СДАЧА: 0.00 [00:41:38]line НСП 1% : 26.55 [00:41:38]line НДС 12% : 318.66 [00:41:38]line Наличными: 3000.00 [00:41:38]line Безнал.: 0.00 [00:41:38]line Место: АЗС № 113 "Партнер Нефть" [00:41:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:41:38]line СНО: Общий режим [00:41:38]line Чек 4 01.11.2024 00:41 [00:41:38]line Смена: 558 ФФД: 1.0 [00:41:38]line ЗНМ: 0300000087 [00:41:38]line РНМ: 0000000000091644 [00:41:38]line Версия ККМ: 001 [00:41:38]line ФМ: 0000000000874662 [00:41:38]line ФД: 73135 [00:41:38]line ФПД: 264497644689539 [00:41:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004138&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73135&fm=264497644689539&tin=02508201610067®Number=0000000000091644&sum=300000 [00:41:39]written 0, free lines is 4095 [00:41:39]Connected sock=11 [00:41:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 18 E3 08 01 75 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C2 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1D 01 00 35 04 06 00 F0 8F 28 27 D8 83 14 B7 BC BE A5 22 74 93 [00:41:39]Write to MH i2c: 01 00 00 8F 02 91 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: 01 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: 01 07 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: 01 07 00 8F 02 00 00 00 00 00 D8 0C 7C [00:41:39]RasterBufferAndPrint [00:41:39]line [00:41:39]line [00:41:39]line [00:41:39]line [00:41:39]line [00:41:39]written 0, free lines is 3295 [00:41:39]MH_Cut [00:41:39]Write to MH i2c: D1 01 00 96 02 01 6A [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: D1 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: D1 01 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: D1 01 00 96 02 00 69 [00:41:39]Write to MH i2c: 01 00 00 97 02 99 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 37 04 47 00 99 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1D 01 00 F4 03 04 00 76 CE 23 67 B6 04 01 00 00 5B F2 7D E6 1F 98 3E 5E [00:41:39]CommunicateWithHost err = 0 [00:41:39]CheckOFDResponse [00:41:39]1017 (14) - 77093643461234 [00:41:39]1041 (16) - 0000000000874662 [00:41:39]1040 (4) - 73135 [00:41:39]1012 (4) - 31.10.2024 18:37 [00:41:39]1206 (1) - 0 [00:41:39]OFD Sender: Remove packet 73135 [00:41:39]ProducePacketName [00:41:39]name=ofd_packets/00073135 [00:41:39]NVStorageDeleteData [00:41:40]OFD Sender: No OFD packet to send [00:41:40]*** Cut start [00:41:40]*** Partial cut [00:41:40]*** CUTSNS_PIN = 1 [00:41:40]*** CUTSNS_PIN = 0 [00:41:40]*** Brake cut motor [00:41:41]Read from MH i2c: 01 [00:41:41]MH_I2C_Read... [00:41:41]*** Stop cut motor [00:41:41]*** Cut end [00:41:41]Read from MH i2c: 01 07 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 FF 0F AE [00:41:41]process_action close_receipt done [00:41:41]requested_data is exist [00:41:41]produce_requested_data [00:41:41]requested_item fm.sn is exist - process it [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 11 00 00 [00:41:41]Write to MH i2c: E2 08 00 98 02 80 11 00 00 00 00 00 00 14 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 17 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 17 00 98 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 68 [00:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:41:41]wFMCommunicate OK [00:41:41]requested_item fd.num is exist - process it [00:41:41]SAM_PROTO_GetFieldsCounters [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 13 00 00 [00:41:41]Write to MH i2c: E2 08 00 99 02 80 13 00 00 00 00 00 00 17 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 62 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 62 00 99 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [00:41:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:41]wFMCommunicate OK [00:41:41]SAM_PROTO_GetFieldsCounters done [00:41:41]requested_item shift.num is exist - process it [00:41:41]requested_item shift.opened is exist - process it [00:41:41]req_shift_opened [00:41:41]FM_GetShiftState [00:41:41]SAM_PROTO_GetShiftState [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 13 01 00 [00:41:41]Write to MH i2c: E2 08 00 9A 02 80 13 01 00 00 00 00 00 19 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 0E 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 0E 00 9A 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 60 [00:41:41]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:41:41]wFMCommunicate OK [00:41:41]SAM_PROTO_GetShiftState done [00:41:41]FM_GetShiftState done [00:41:41]req_shift_opened done [00:41:41]requested_item shift.open_date is exist - process it [00:41:41]req_shift_open_date [00:41:41]req_shift_open_date done [00:41:41]produce_requested_data done [00:41:41]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73135,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [00:41:41]process_action_free close_receipt [00:41:41]json_value_free [00:41:41]json_value_free done [00:41:41]process_json_proto returns [00:41:41]Send response to host [00:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73135,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [00:41:41]free response buf [00:41:41]execute_script done [00:41:41]execute_script returns [00:41:41]free content buf [00:41:41]Sock 7.Close socket [00:41:41]Sock 7.Thread stoped [00:41:45]OFD Sender: No OFD packet to send [00:41:48]recv_with_timeout no data received [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:03]recv_with_timeout no data received [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:11]accept exits with 10 [00:43:11]New connection [00:43:11]New thread 3066998116 created [00:43:11]Thread 3066854756 joined [00:43:11]Waiting for new connection... [00:43:11] Sock 10.Parse request [00:43:11]Sock 10.Check first char [00:43:11]Sock 10.First char is OK [00:43:11]request: POST /json_proto HTTP/1.0 [00:43:11]Method: POST [00:43:11]URL: /json_proto [00:43:11]Method is POST - this is cgi request [00:43:11]url: /json_proto [00:43:11]query_string will be loaded in cgi processing [00:43:11]execute_cgi json_proto POST (null) [00:43:11]execute_cgi path=json_proto method=POST [00:43:11]POST find Content-Length [00:43:11]Host: 172.17.43.195:8080 [00:43:11]Content-Length: 677 [00:43:11]Content-Type: application/json [00:43:11] [00:43:11]POST finish read [00:43:11]Found Content-Length = 677 [00:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:11]execute_script... [00:43:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:11]POST & json_proto [00:43:11]process_json_proto [00:43:11]json parsed OK: [00:43:11]protocol is kg_v1.0 [00:43:11]action value=close_receipt [00:43:11]process_action close_receipt [00:43:11]cmd_close_receipt [00:43:11]MH_GetDate [00:43:11]Write to MH i2c: F0 00 00 9B 02 8C [00:43:11]Write i2c OK [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: F0 [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: F0 09 00 [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: F0 09 00 9B 02 00 20 24 24 67 74 2C AD 66 17 [00:43:11]GetLastDocTimeStamp 1730421698 [00:43:11]current date 1730421792 [00:43:11]FM_GetShiftState [00:43:11]SAM_PROTO_GetShiftState [00:43:11]wFMCommunicate request_size=4 [00:43:11]MH_SAM_APDU [00:43:11]CAPDU: 80 13 01 00 [00:43:11]Write to MH i2c: E2 08 00 9C 02 80 13 01 00 00 00 00 00 1B [00:43:11]Write i2c OK [00:43:11]MH_I2C_Read... [00:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:11]Read from MH i2c: E2 [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: E2 0E 00 [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: E2 0E 00 9C 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 62 [00:43:11]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:43:11]wFMCommunicate OK [00:43:11]SAM_PROTO_GetShiftState done [00:43:11]FM_GetShiftState done [00:43:11]opened in 1730419605 [00:43:11]opened+sec_in_day 1730506005 [00:43:11]quantity*price = 50041 [00:43:11]sum+1 = 50042 [00:43:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 5 01.11.2024 00:43 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73136 ФПД: 11590389655120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004312&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73136&fm=11590389655120&tin=02508201610067®Number=0000000000091644&sum=50000 [00:43:12]StoreToDocumentArchive [00:43:12]shift 558 fd 73136 [00:43:12]save to /storage/0558/doc_00073136 [00:43:12]save last doc name /storage/0558/doc_00073136 to /storage/kkm_last_doc_name [00:43:12]save OK [00:43:12]Clear old archive folders... [00:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:12]tlvbuf is 00C69A70 [00:43:12]SAM_PROTO_ClearQueue [00:43:12]wFMCommunicate request_size=4 [00:43:12]MH_SAM_APDU [00:43:12]CAPDU: 80 09 00 00 [00:43:12]Write to MH i2c: E2 08 00 A9 02 80 09 00 00 00 00 00 00 1D [00:43:12]Write i2c OK [00:43:12]MH_I2C_Read... [00:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:12]Read from MH i2c: E2 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 A9 02 00 90 00 1F [00:43:12]RAPDU: 90 00 [00:43:12]wFMCommunicate OK [00:43:12]SAM_PROTO_ClearQueue done [00:43:12]KKMCreateOFDPacket [00:43:12]OFDProtocolAddRootSTLVToBuf [00:43:12]FM_MakeSignedData [00:43:12]FM_MakeSignedData [00:43:12]SAM_PROTO_SignData [00:43:12]wFMCommunicate request_size=4 [00:43:12]MH_SAM_APDU [00:43:12]CAPDU: 80 0D 01 02 [00:43:12]Write to MH i2c: E2 08 00 AA 02 80 0D 01 02 00 00 00 00 25 [00:43:12]Write i2c OK [00:43:12]MH_I2C_Read... [00:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:12]Read from MH i2c: E2 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [00:43:12]RAPDU: 90 00 [00:43:12]wFMCommunicate OK [00:43:12]wFMCommunicate request_size=255 [00:43:12]MH_SAM_APDU [00:43:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 20 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1D 01 00 35 04 06 00 0A [00:43:12]Write to MH i2c: E2 02 01 AB 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 20 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1D 01 00 35 04 06 00 0A 00 00 90 [00:43:12]Write i2c OK [00:43:12]MH_I2C_Read... [00:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:12]Read from MH i2c: E2 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 AB 02 00 90 00 21 [00:43:12]RAPDU: 90 00 [00:43:12]wFMCommunicate OK [00:43:12]wFMCommunicate request_size=10 [00:43:12]MH_SAM_APDU [00:43:12]CAPDU: 80 0D 02 02 05 8A 99 0E E6 50 [00:43:12]Write to MH i2c: E2 0D 00 AC 02 80 0D 02 02 05 00 8A 99 0E E6 50 00 00 99 [00:43:12]Write i2c OK [00:43:12]MH_I2C_Read... [00:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:12]Read from MH i2c: E2 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [00:43:12]RAPDU: 90 00 [00:43:12]wFMCommunicate OK [00:43:12]wFMCommunicate request_size=4 [00:43:12]MH_SAM_APDU [00:43:12]CAPDU: 80 0D 03 02 [00:43:12]Write to MH i2c: E2 08 00 AD 02 80 0D 03 02 00 00 00 00 2A [00:43:12]Write i2c OK [00:43:12]MH_I2C_Read... [00:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:12]Read from MH i2c: E2 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 0B 00 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 0B 00 AD 02 00 8F AE 2C 56 9A 29 78 A9 90 00 CE [00:43:12]RAPDU: 8F AE 2C 56 9A 29 78 A9 90 00 [00:43:12]wFMCommunicate OK [00:43:12]SAM_PROTO_SignData done [00:43:12]FM_MakeSignedData done [00:43:12]CreateOFDProtocolMessage [00:43:12]wFMCommunicate request_size=4 [00:43:12]MH_SAM_APDU [00:43:12]CAPDU: 80 11 00 00 [00:43:12]Write to MH i2c: E2 08 00 AE 02 80 11 00 00 00 00 00 00 2A [00:43:12]Write i2c OK [00:43:12]MH_I2C_Read... [00:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:12]Read from MH i2c: E2 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 17 00 [00:43:12]MH_I2C_Read... [00:43:13]Read from MH i2c: E2 17 00 AE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7E [00:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:43:13]wFMCommunicate OK [00:43:13]CreateOFDProtocolMessage done [00:43:13]OFDSenderStorePacket 73136 [00:43:13]StoreOFDPacket docnum=73136 [00:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2A B6 07 01 D3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 20 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1D 01 00 35 04 06 00 0A 8A 99 0E E6 50 8F AE 2C 56 9A 29 78 A9 [00:43:13]CheckFolder [00:43:13]dirname=/storage/ofd_packets [00:43:13]CheckFolder done [00:43:13]ProducePacketName [00:43:13]name=ofd_packets/00073136 [00:43:13]NVStorageSaveData ofd_packets/00073136 [00:43:13]File name is /storage/ofd_packets/00073136 [00:43:13]Write 301 bytes [00:43:13]NVStorageSaveData done [00:43:13]OFDSenderStorePacket done [00:43:13]KKMCreateOFDPacket done [00:43:13]NVStorageSaveData kkm_last_timestamp [00:43:13]File name is /storage/kkm_last_timestamp [00:43:13]Write 4 bytes [00:43:13]NVStorageSaveData done [00:43:13]ExternCall_PrintAddStr [00:43:13]wPrintStart [00:43:13]Write to MH i2c: 01 00 00 AF 02 B1 [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 07 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 FF 0F C6 [00:43:13]RasterBufferAndPrint [00:43:13]line Счет N : (1)952734 [00:43:13]line ИНН: 02508201610067 [00:43:13]line Контрольно-Кассовый Чек [00:43:13]line ПРОДАЖА [00:43:13]line ТРК (МРК, ГНК) : 63 [00:43:13]line Товар: 2710124130 [00:43:13]line Аи-92-К-5 [00:43:13]line 7.480 * 66.90 [00:43:13]line = 500.41 [00:43:13]line НДС 12% НСП 1% [00:43:13]line > о реализуемом товаре [00:43:13]line ОКРУГЛЕНИЕ: -0.41 [00:43:13]line ИТОГО: 500.00 [00:43:13]line Внесено: 500.00 [00:43:13]line СДАЧА: 0.00 [00:43:13]line НСП 1% : 4.43 [00:43:13]line НДС 12% : 53.14 [00:43:13]line Наличными: 500.00 [00:43:13]line Безнал.: 0.00 [00:43:13]line Место: АЗС № 113 "Партнер Нефть" [00:43:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:43:13]line СНО: Общий режим [00:43:13]line Чек 5 01.11.2024 00:43 [00:43:13]line Смена: 558 ФФД: 1.0 [00:43:13]line ЗНМ: 0300000087 [00:43:13]line РНМ: 0000000000091644 [00:43:13]line Версия ККМ: 001 [00:43:13]line ФМ: 0000000000874662 [00:43:13]line ФД: 73136 [00:43:13]line ФПД: 11590389655120 [00:43:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004312&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73136&fm=11590389655120&tin=02508201610067®Number=0000000000091644&sum=50000 [00:43:13]written 0, free lines is 4095 [00:43:13]OFD Sender: Processing packet 73136 [packets to send 282, broken 281] [00:43:13]ProducePacketName [00:43:13]name=ofd_packets/00073136 [00:43:13]OFD Sender: To server: pG, [00:43:13]CommunicateWithHost lk.salyk.kg:30040 [00:43:13]ConnectInit lk.salyk.kg [00:43:13]Write to MH i2c: 01 00 00 DA 02 DC [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 07 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 07 00 DA 02 00 00 00 00 00 CD 0C BC [00:43:13]RasterBufferAndPrint [00:43:13]line [00:43:13]line [00:43:13]line [00:43:13]line [00:43:13]line [00:43:13]written 0, free lines is 3283 [00:43:13]MH_Cut [00:43:13]Write to MH i2c: D1 01 00 E1 02 01 B5 [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: D1 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: D1 01 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: D1 01 00 E1 02 00 B4 [00:43:13]Write to MH i2c: 01 00 00 E2 02 E4 [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:14]*** Cut start [00:43:14]*** Partial cut [00:43:14]*** CUTSNS_PIN = 1 [00:43:14]*** CUTSNS_PIN = 0 [00:43:14]*** Brake cut motor [00:43:15]Read from MH i2c: 01 [00:43:15]MH_I2C_Read... [00:43:15]*** Stop cut motor [00:43:15]*** Cut end [00:43:15]Read from MH i2c: 01 07 00 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: 01 07 00 E2 02 00 00 00 00 00 FF 0F F9 [00:43:15]process_action close_receipt done [00:43:15]requested_data is exist [00:43:15]produce_requested_data [00:43:15]requested_item fm.sn is exist - process it [00:43:15]wFMCommunicate request_size=4 [00:43:15]MH_SAM_APDU [00:43:15]CAPDU: 80 11 00 00 [00:43:15]Write to MH i2c: E2 08 00 E3 02 80 11 00 00 00 00 00 00 5F [00:43:15]Write i2c OK [00:43:15]MH_I2C_Read... [00:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:15]Read from MH i2c: E2 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 17 00 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 17 00 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B3 [00:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:43:15]wFMCommunicate OK [00:43:15]requested_item fd.num is exist - process it [00:43:15]SAM_PROTO_GetFieldsCounters [00:43:15]wFMCommunicate request_size=4 [00:43:15]MH_SAM_APDU [00:43:15]CAPDU: 80 13 00 00 [00:43:15]Write to MH i2c: E2 08 00 E4 02 80 13 00 00 00 00 00 00 62 [00:43:15]Write i2c OK [00:43:15]MH_I2C_Read... [00:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:15]Read from MH i2c: E2 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 62 00 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 62 00 E4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B0 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [00:43:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B0 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:15]wFMCommunicate OK [00:43:15]SAM_PROTO_GetFieldsCounters done [00:43:15]requested_item shift.num is exist - process it [00:43:15]requested_item shift.opened is exist - process it [00:43:15]req_shift_opened [00:43:15]FM_GetShiftState [00:43:15]SAM_PROTO_GetShiftState [00:43:15]wFMCommunicate request_size=4 [00:43:15]MH_SAM_APDU [00:43:15]CAPDU: 80 13 01 00 [00:43:15]Write to MH i2c: E2 08 00 E5 02 80 13 01 00 00 00 00 00 64 [00:43:15]Write i2c OK [00:43:15]MH_I2C_Read... [00:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:15]Read from MH i2c: E2 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 0E 00 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 0E 00 E5 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 AB [00:43:15]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:43:15]wFMCommunicate OK [00:43:15]SAM_PROTO_GetShiftState done [00:43:15]FM_GetShiftState done [00:43:15]req_shift_opened done [00:43:15]requested_item shift.open_date is exist - process it [00:43:15]req_shift_open_date [00:43:15]req_shift_open_date done [00:43:15]produce_requested_data done [00:43:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73136,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [00:43:15]process_action_free close_receipt [00:43:15]json_value_free [00:43:15]json_value_free done [00:43:15]process_json_proto returns [00:43:15]Send response to host [00:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73136,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [00:43:15]free response buf [00:43:15]execute_script done [00:43:15]execute_script returns [00:43:15]free content buf [00:43:15]Sock 10.Close socket [00:43:15]Sock 10.Thread stoped [00:43:15]Connected sock=7 [00:43:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2A B6 07 01 D3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 20 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1D 01 00 35 04 06 00 0A 8A 99 0E E6 50 8F AE 2C 56 9A 29 78 A9 [00:43:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 48 39 47 00 84 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1D 01 00 F4 03 04 00 D6 CE 23 67 B6 04 01 00 00 A2 AA E1 07 ED 4C 16 1C [00:43:15]CommunicateWithHost err = 0 [00:43:15]CheckOFDResponse [00:43:15]1017 (14) - 77093643461234 [00:43:15]1041 (16) - 0000000000874662 [00:43:15]1040 (4) - 73136 [00:43:15]1012 (4) - 31.10.2024 18:39 [00:43:15]1206 (1) - 0 [00:43:15]OFD Sender: Remove packet 73136 [00:43:15]ProducePacketName [00:43:15]name=ofd_packets/00073136 [00:43:15]NVStorageDeleteData [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:29]recv_with_timeout no data received [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:40]recv_with_timeout no data received [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:29]recv_with_timeout no data received [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45: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:19]recv_with_timeout no data received [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46: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:09]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:32]recv_with_timeout no data received [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:46]recv_with_timeout no data received [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]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:12]recv_with_timeout no data received [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:31]recv_with_timeout no data received [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:49]recv_with_timeout no data received [00:52:51]accept exits with 9 [00:52:51]New connection [00:52:51]New thread 3066854756 created [00:52:51]Thread 3066998116 joined [00:52:51]Waiting for new connection... [00:52:51] Sock 9.Parse request [00:52:51]Sock 9.Check first char [00:52:51]Sock 9.First char is OK [00:52:51]request: POST /json_proto HTTP/1.0 [00:52:51]Method: POST [00:52:51]URL: /json_proto [00:52:51]Method is POST - this is cgi request [00:52:51]url: /json_proto [00:52:51]query_string will be loaded in cgi processing [00:52:51]execute_cgi json_proto POST (null) [00:52:51]execute_cgi path=json_proto method=POST [00:52:51]POST find Content-Length [00:52:51]Host: 172.17.43.195:8080 [00:52:51]Content-Length: 688 [00:52:51]Content-Type: application/json [00:52:51] [00:52:51]POST finish read [00:52:51]Found Content-Length = 688 [00:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:51]execute_script... [00:52:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:51]POST & json_proto [00:52:51]process_json_proto [00:52:51]json parsed OK: [00:52:51]protocol is kg_v1.0 [00:52:51]action value=close_receipt [00:52:51]process_action close_receipt [00:52:51]cmd_close_receipt [00:52:51]MH_GetDate [00:52:51]Write to MH i2c: F0 00 00 E6 02 D7 [00:52:51]Write i2c OK [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: F0 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: F0 09 00 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: F0 09 00 E6 02 00 64 26 24 67 74 2C AD 66 A8 [00:52:51]GetLastDocTimeStamp 1730421792 [00:52:51]current date 1730422372 [00:52:51]FM_GetShiftState [00:52:51]SAM_PROTO_GetShiftState [00:52:51]wFMCommunicate request_size=4 [00:52:51]MH_SAM_APDU [00:52:51]CAPDU: 80 13 01 00 [00:52:51]Write to MH i2c: E2 08 00 E7 02 80 13 01 00 00 00 00 00 66 [00:52:51]Write i2c OK [00:52:51]MH_I2C_Read... [00:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:51]Read from MH i2c: E2 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 0E 00 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 0E 00 E7 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 AD [00:52:51]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:52:51]wFMCommunicate OK [00:52:51]SAM_PROTO_GetShiftState done [00:52:51]FM_GetShiftState done [00:52:51]opened in 1730419605 [00:52:51]opened+sec_in_day 1730506005 [00:52:51]quantity*price = 800023 [00:52:51]sum+1 = 800025 [00:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 6 01.11.2024 00:52 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73137 ФПД: 171774036985562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T005252&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73137&fm=171774036985562&tin=02508201610067®Number=0000000000091644&sum=800000 [00:52:52]StoreToDocumentArchive [00:52:52]shift 558 fd 73137 [00:52:52]save to /storage/0558/doc_00073137 [00:52:52]save last doc name /storage/0558/doc_00073137 to /storage/kkm_last_doc_name [00:52:52]save OK [00:52:52]Clear old archive folders... [00:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:52:52]tlvbuf is 00E51A30 [00:52:52]SAM_PROTO_ClearQueue [00:52:52]wFMCommunicate request_size=4 [00:52:52]MH_SAM_APDU [00:52:52]CAPDU: 80 09 00 00 [00:52:52]Write to MH i2c: E2 08 00 F4 02 80 09 00 00 00 00 00 00 68 [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:52]Read from MH i2c: E2 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 03 00 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 03 00 F4 02 00 90 00 6A [00:52:52]RAPDU: 90 00 [00:52:52]wFMCommunicate OK [00:52:52]SAM_PROTO_ClearQueue done [00:52:52]KKMCreateOFDPacket [00:52:52]OFDProtocolAddRootSTLVToBuf [00:52:52]FM_MakeSignedData [00:52:52]FM_MakeSignedData [00:52:52]SAM_PROTO_SignData [00:52:52]wFMCommunicate request_size=4 [00:52:52]MH_SAM_APDU [00:52:52]CAPDU: 80 0D 01 02 [00:52:52]Write to MH i2c: E2 08 00 F5 02 80 0D 01 02 00 00 00 00 70 [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:52]Read from MH i2c: E2 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 03 00 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [00:52:52]RAPDU: 90 00 [00:52:52]wFMCommunicate OK [00:52:52]wFMCommunicate request_size=255 [00:52:52]MH_SAM_APDU [00:52:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 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 64 26 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1D 01 00 35 04 06 00 [00:52:52]Write to MH i2c: E2 02 01 F6 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 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 64 26 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1D 01 00 35 04 06 00 00 00 31 [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:52]Read from MH i2c: E2 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 03 00 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [00:52:52]RAPDU: 90 00 [00:52:52]wFMCommunicate OK [00:52:52]wFMCommunicate request_size=11 [00:52:52]MH_SAM_APDU [00:52:52]CAPDU: 80 0D 02 02 06 9C 3A 42 74 C6 DA [00:52:52]Write to MH i2c: E2 0E 00 F7 02 80 0D 02 02 06 00 9C 3A 42 74 C6 DA 00 00 AB [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:52]Read from MH i2c: E2 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 03 00 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [00:52:52]RAPDU: 90 00 [00:52:52]wFMCommunicate OK [00:52:52]wFMCommunicate request_size=4 [00:52:52]MH_SAM_APDU [00:52:52]CAPDU: 80 0D 03 02 [00:52:52]Write to MH i2c: E2 08 00 F8 02 80 0D 03 02 00 00 00 00 75 [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:52]Read from MH i2c: E2 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 0B 00 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 0B 00 F8 02 00 74 A5 DE D1 09 35 62 E3 90 00 C1 [00:52:52]RAPDU: 74 A5 DE D1 09 35 62 E3 90 00 [00:52:52]wFMCommunicate OK [00:52:52]SAM_PROTO_SignData done [00:52:52]FM_MakeSignedData done [00:52:52]CreateOFDProtocolMessage [00:52:52]wFMCommunicate request_size=4 [00:52:52]MH_SAM_APDU [00:52:52]CAPDU: 80 11 00 00 [00:52:52]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:52]Read from MH i2c: E2 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 17 00 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C9 [00:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:52:52]wFMCommunicate OK [00:52:52]CreateOFDProtocolMessage done [00:52:52]OFDSenderStorePacket 73137 [00:52:52]StoreOFDPacket docnum=73137 [00:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 C7 E7 08 01 9A B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 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 64 26 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1D 01 00 35 04 06 00 9C 3A 42 74 C6 DA 74 A5 DE D1 09 35 62 E3 [00:52:52]CheckFolder [00:52:52]dirname=/storage/ofd_packets [00:52:52]CheckFolder done [00:52:52]ProducePacketName [00:52:52]name=ofd_packets/00073137 [00:52:52]NVStorageSaveData ofd_packets/00073137 [00:52:52]File name is /storage/ofd_packets/00073137 [00:52:52]Write 302 bytes [00:52:52]NVStorageSaveData done [00:52:52]OFDSenderStorePacket done [00:52:52]KKMCreateOFDPacket done [00:52:52]NVStorageSaveData kkm_last_timestamp [00:52:52]File name is /storage/kkm_last_timestamp [00:52:52]Write 4 bytes [00:52:52]NVStorageSaveData done [00:52:52]OFD Sender: Processing packet 73137 [packets to send 282, broken 281] [00:52:52]ProducePacketName [00:52:52]name=ofd_packets/00073137 [00:52:52]OFD Sender: To server: pG, [00:52:52]CommunicateWithHost lk.salyk.kg:30040 [00:52:52]ConnectInit lk.salyk.kg [00:52:52]ExternCall_PrintAddStr [00:52:52]wPrintStart [00:52:52]Write to MH i2c: 01 00 00 FA 02 FC [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: 01 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: 01 07 00 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 FF 0F 11 [00:52:52]RasterBufferAndPrint [00:52:52]line Счет N : (1)952735 [00:52:52]line ИНН: 02508201610067 [00:52:52]line Контрольно-Кассовый Чек [00:52:52]line ПРОДАЖА [00:52:52]line ТРК (МРК, ГНК) : 22 [00:52:52]line Товар: 2710194210 [00:52:52]line ДТ(л)-К-5 [00:52:52]line 104.990 * 76.20 [00:52:52]line = 8000.24 [00:52:52]line НДС 12% НСП 1% [00:52:52]line > о реализуемом товаре [00:52:52]line ОКРУГЛЕНИЕ: -0.24 [00:52:52]line ИТОГО: 8000.00 [00:52:52]line Внесено: 8000.00 [00:52:52]line СДАЧА: 0.00 [00:52:52]line НСП 1% : 70.80 [00:52:52]line НДС 12% : 849.58 [00:52:52]line Наличными: 8000.00 [00:52:52]line Безнал.: 0.00 [00:52:52]line Место: АЗС № 113 "Партнер Нефть" [00:52:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:52:52]line СНО: Общий режим [00:52:52]line Чек 6 01.11.2024 00:52 [00:52:52]line Смена: 558 ФФД: 1.0 [00:52:52]line ЗНМ: 0300000087 [00:52:52]line РНМ: 0000000000091644 [00:52:52]line Версия ККМ: 001 [00:52:52]line ФМ: 0000000000874662 [00:52:52]line ФД: 73137 [00:52:52]line ФПД: 171774036985562 [00:52:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T005252&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73137&fm=171774036985562&tin=02508201610067®Number=0000000000091644&sum=800000 [00:52:53]written 0, free lines is 4095 [00:52:53]Connected sock=11 [00:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 C7 E7 08 01 9A B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 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 64 26 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1D 01 00 35 04 06 00 9C 3A 42 74 C6 DA 74 A5 DE D1 09 35 62 E3 [00:52:53]Write to MH i2c: 01 00 00 25 03 28 [00:52:53]Write i2c OK [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: 01 [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: 01 07 00 [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: 01 07 00 25 03 00 00 00 00 00 DD 0C 18 [00:52:53]RasterBufferAndPrint [00:52:53]line [00:52:53]line [00:52:53]line [00:52:53]line [00:52:53]line [00:52:53]written 0, free lines is 3299 [00:52:53]MH_Cut [00:52:53]Write to MH i2c: D1 01 00 2C 03 01 01 [00:52:53]Write i2c OK [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: D1 [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: D1 01 00 [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: D1 01 00 2C 03 00 00 [00:52:53]Write to MH i2c: 01 00 00 2D 03 30 [00:52:53]Write i2c OK [00:52:53]MH_I2C_Read... [00:52:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 61 8F 47 00 91 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1D 01 00 F4 03 04 00 18 D1 23 67 B6 04 01 00 00 5C 2D 6F 56 5E 70 55 A1 [00:52:54]CommunicateWithHost err = 0 [00:52:54]CheckOFDResponse [00:52:54]1017 (14) - 77093643461234 [00:52:54]1041 (16) - 0000000000874662 [00:52:54]1040 (4) - 73137 [00:52:54]1012 (4) - 31.10.2024 18:48 [00:52:54]1206 (1) - 0 [00:52:54]OFD Sender: Remove packet 73137 [00:52:54]ProducePacketName [00:52:54]name=ofd_packets/00073137 [00:52:54]NVStorageDeleteData [00:52:54]*** Cut start [00:52:54]*** Partial cut [00:52:54]*** CUTSNS_PIN = 1 [00:52:54]*** CUTSNS_PIN = 0 [00:52:54]*** Brake cut motor [00:52:54]OFD Sender: No OFD packet to send [00:52:55]Read from MH i2c: 01 [00:52:55]MH_I2C_Read... [00:52:55]*** Stop cut motor [00:52:55]*** Cut end [00:52:55]Read from MH i2c: 01 07 00 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 FF 0F 45 [00:52:55]process_action close_receipt done [00:52:55]requested_data is exist [00:52:55]produce_requested_data [00:52:55]requested_item fm.sn is exist - process it [00:52:55]wFMCommunicate request_size=4 [00:52:55]MH_SAM_APDU [00:52:55]CAPDU: 80 11 00 00 [00:52:55]Write to MH i2c: E2 08 00 2E 03 80 11 00 00 00 00 00 00 AB [00:52:55]Write i2c OK [00:52:55]MH_I2C_Read... [00:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:55]Read from MH i2c: E2 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 17 00 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 17 00 2E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FF [00:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:52:55]wFMCommunicate OK [00:52:55]requested_item fd.num is exist - process it [00:52:55]SAM_PROTO_GetFieldsCounters [00:52:55]wFMCommunicate request_size=4 [00:52:55]MH_SAM_APDU [00:52:55]CAPDU: 80 13 00 00 [00:52:55]Write to MH i2c: E2 08 00 2F 03 80 13 00 00 00 00 00 00 AE [00:52:55]Write i2c OK [00:52:55]MH_I2C_Read... [00:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:55]Read from MH i2c: E2 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 62 00 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 62 00 2F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [00:52:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:52:55]wFMCommunicate OK [00:52:55]SAM_PROTO_GetFieldsCounters done [00:52:55]requested_item shift.num is exist - process it [00:52:55]requested_item shift.opened is exist - process it [00:52:55]req_shift_opened [00:52:55]FM_GetShiftState [00:52:55]SAM_PROTO_GetShiftState [00:52:55]wFMCommunicate request_size=4 [00:52:55]MH_SAM_APDU [00:52:55]CAPDU: 80 13 01 00 [00:52:55]Write to MH i2c: E2 08 00 30 03 80 13 01 00 00 00 00 00 B0 [00:52:55]Write i2c OK [00:52:55]MH_I2C_Read... [00:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:55]Read from MH i2c: E2 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 0E 00 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 0E 00 30 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 F7 [00:52:55]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:52:55]wFMCommunicate OK [00:52:55]SAM_PROTO_GetShiftState done [00:52:55]FM_GetShiftState done [00:52:55]req_shift_opened done [00:52:55]requested_item shift.open_date is exist - process it [00:52:55]req_shift_open_date [00:52:55]req_shift_open_date done [00:52:55]produce_requested_data done [00:52:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73137,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [00:52:55]process_action_free close_receipt [00:52:55]json_value_free [00:52:55]json_value_free done [00:52:55]process_json_proto returns [00:52:55]Send response to host [00:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73137,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [00:52:55]free response buf [00:52:55]execute_script done [00:52:55]execute_script returns [00:52:55]free content buf [00:52:55]Sock 9.Close socket [00:52:55]Sock 9.Thread stoped [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:37]accept exits with 7 [00:55:37]New connection [00:55:37]New thread 3066998116 created [00:55:37]Thread 3066854756 joined [00:55:37]Waiting for new connection... [00:55:37] Sock 7.Parse request [00:55:37]Sock 7.Check first char [00:55:37]Sock 7.First char is OK [00:55:37]request: POST /json_proto HTTP/1.0 [00:55:37]Method: POST [00:55:37]URL: /json_proto [00:55:37]Method is POST - this is cgi request [00:55:37]url: /json_proto [00:55:37]query_string will be loaded in cgi processing [00:55:37]execute_cgi json_proto POST (null) [00:55:37]execute_cgi path=json_proto method=POST [00:55:37]POST find Content-Length [00:55:37]Host: 172.17.43.195:8080 [00:55:37]Content-Length: 677 [00:55:37]Content-Type: application/json [00:55:37] [00:55:37]POST finish read [00:55:37]Found Content-Length = 677 [00:55:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:37]execute_script... [00:55: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)952736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:37]POST & json_proto [00:55:37]process_json_proto [00:55:37]json parsed OK: [00:55:37]protocol is kg_v1.0 [00:55:37]action value=close_receipt [00:55:37]process_action close_receipt [00:55:37]cmd_close_receipt [00:55:37]MH_GetDate [00:55:37]Write to MH i2c: F0 00 00 31 03 23 [00:55:37]Write i2c OK [00:55:37]MH_I2C_Read... [00:55:37]Read from MH i2c: F0 [00:55:37]MH_I2C_Read... [00:55:37]Read from MH i2c: F0 09 00 [00:55:37]MH_I2C_Read... [00:55:37]Read from MH i2c: F0 09 00 31 03 00 0A 27 24 67 74 2C AD 66 9B [00:55:37]GetLastDocTimeStamp 1730422372 [00:55:37]current date 1730422538 [00:55:37]FM_GetShiftState [00:55:37]SAM_PROTO_GetShiftState [00:55:37]wFMCommunicate request_size=4 [00:55:37]MH_SAM_APDU [00:55:37]CAPDU: 80 13 01 00 [00:55:37]Write to MH i2c: E2 08 00 32 03 80 13 01 00 00 00 00 00 B2 [00:55:37]Write i2c OK [00:55:37]MH_I2C_Read... [00:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:37]Read from MH i2c: E2 [00:55:37]MH_I2C_Read... [00:55:37]Read from MH i2c: E2 0E 00 [00:55:37]MH_I2C_Read... [00:55:37]Read from MH i2c: E2 0E 00 32 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 F9 [00:55:37]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [00:55:37]wFMCommunicate OK [00:55:37]SAM_PROTO_GetShiftState done [00:55:37]FM_GetShiftState done [00:55:37]opened in 1730419605 [00:55:37]opened+sec_in_day 1730506005 [00:55:37]quantity*price = 30038 [00:55:37]sum+1 = 30039 [00:55:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 7 01.11.2024 00:55 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73138 ФПД: 37907432244981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T005538&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73138&fm=37907432244981&tin=02508201610067®Number=0000000000091644&sum=30000 [00:55:38]StoreToDocumentArchive [00:55:38]shift 558 fd 73138 [00:55:38]save to /storage/0558/doc_00073138 [00:55:38]save last doc name /storage/0558/doc_00073138 to /storage/kkm_last_doc_name [00:55:38]save OK [00:55:38]Clear old archive folders... [00:55:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:55:38]tlvbuf is 00C5FDB0 [00:55:38]SAM_PROTO_ClearQueue [00:55:38]wFMCommunicate request_size=4 [00:55:38]MH_SAM_APDU [00:55:38]CAPDU: 80 09 00 00 [00:55:38]Write to MH i2c: E2 08 00 3F 03 80 09 00 00 00 00 00 00 B4 [00:55:38]Write i2c OK [00:55:38]MH_I2C_Read... [00:55:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:38]Read from MH i2c: E2 [00:55:38]MH_I2C_Read... [00:55:38]Read from MH i2c: E2 03 00 [00:55:38]MH_I2C_Read... [00:55:38]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [00:55:38]RAPDU: 90 00 [00:55:38]wFMCommunicate OK [00:55:38]SAM_PROTO_ClearQueue done [00:55:38]KKMCreateOFDPacket [00:55:38]OFDProtocolAddRootSTLVToBuf [00:55:38]FM_MakeSignedData [00:55:38]FM_MakeSignedData [00:55:38]SAM_PROTO_SignData [00:55:38]wFMCommunicate request_size=4 [00:55:38]MH_SAM_APDU [00:55:38]CAPDU: 80 0D 01 02 [00:55:38]Write to MH i2c: E2 08 00 40 03 80 0D 01 02 00 00 00 00 BC [00:55:38]Write i2c OK [00:55:38]MH_I2C_Read... [00:55:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:39]Read from MH i2c: E2 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 03 00 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [00:55:39]RAPDU: 90 00 [00:55:39]wFMCommunicate OK [00:55:39]wFMCommunicate request_size=255 [00:55:39]MH_SAM_APDU [00:55:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 0A 27 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1D 01 00 35 04 06 00 22 [00:55:39]Write to MH i2c: E2 02 01 41 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 0A 27 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1D 01 00 35 04 06 00 22 00 00 24 [00:55:39]Write i2c OK [00:55:39]MH_I2C_Read... [00:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:39]Read from MH i2c: E2 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 03 00 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [00:55:39]RAPDU: 90 00 [00:55:39]wFMCommunicate OK [00:55:39]wFMCommunicate request_size=10 [00:55:39]MH_SAM_APDU [00:55:39]CAPDU: 80 0D 02 02 05 7A 03 08 86 F5 [00:55:39]Write to MH i2c: E2 0D 00 42 03 80 0D 02 02 05 00 7A 03 08 86 F5 00 00 C9 [00:55:39]Write i2c OK [00:55:39]MH_I2C_Read... [00:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:39]Read from MH i2c: E2 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 03 00 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [00:55:39]RAPDU: 90 00 [00:55:39]wFMCommunicate OK [00:55:39]wFMCommunicate request_size=4 [00:55:39]MH_SAM_APDU [00:55:39]CAPDU: 80 0D 03 02 [00:55:39]Write to MH i2c: E2 08 00 43 03 80 0D 03 02 00 00 00 00 C1 [00:55:39]Write i2c OK [00:55:39]MH_I2C_Read... [00:55:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:39]Read from MH i2c: E2 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 0B 00 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 0B 00 43 03 00 93 49 22 6F 41 38 54 7A 90 00 76 [00:55:39]RAPDU: 93 49 22 6F 41 38 54 7A 90 00 [00:55:39]wFMCommunicate OK [00:55:39]SAM_PROTO_SignData done [00:55:39]FM_MakeSignedData done [00:55:39]CreateOFDProtocolMessage [00:55:39]wFMCommunicate request_size=4 [00:55:39]MH_SAM_APDU [00:55:39]CAPDU: 80 11 00 00 [00:55:39]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [00:55:39]Write i2c OK [00:55:39]MH_I2C_Read... [00:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:39]Read from MH i2c: E2 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 17 00 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 15 [00:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:55:39]wFMCommunicate OK [00:55:39]CreateOFDProtocolMessage done [00:55:39]OFDSenderStorePacket 73138 [00:55:39]StoreOFDPacket docnum=73138 [00:55:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 17 A3 07 01 AA CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 0A 27 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1D 01 00 35 04 06 00 22 7A 03 08 86 F5 93 49 22 6F 41 38 54 7A [00:55:39]CheckFolder [00:55:39]dirname=/storage/ofd_packets [00:55:39]CheckFolder done [00:55:39]ProducePacketName [00:55:39]name=ofd_packets/00073138 [00:55:39]NVStorageSaveData ofd_packets/00073138 [00:55:39]File name is /storage/ofd_packets/00073138 [00:55:39]Write 301 bytes [00:55:39]NVStorageSaveData done [00:55:39]OFDSenderStorePacket done [00:55:39]KKMCreateOFDPacket done [00:55:39]NVStorageSaveData kkm_last_timestamp [00:55:39]File name is /storage/kkm_last_timestamp [00:55:39]Write 4 bytes [00:55:39]NVStorageSaveData done [00:55:39]ExternCall_PrintAddStr [00:55:39]wPrintStart [00:55:39]Write to MH i2c: 01 00 00 45 03 48 [00:55:39]Write i2c OK [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: 01 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: 01 07 00 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [00:55:39]RasterBufferAndPrint [00:55:39]line Счет N : (1)952736 [00:55:39]line ИНН: 02508201610067 [00:55:39]line Контрольно-Кассовый Чек [00:55:39]line ПРОДАЖА [00:55:39]line ТРК (МРК, ГНК) : 53 [00:55:39]line Товар: 2710124130 [00:55:39]line Аи-92-К-5 [00:55:39]line 4.490 * 66.90 [00:55:39]line = 300.38 [00:55:39]line НДС 12% НСП 1% [00:55:39]line > о реализуемом товаре [00:55:39]line ОКРУГЛЕНИЕ: -0.38 [00:55:39]line ИТОГО: 300.00 [00:55:39]line Внесено: 300.00 [00:55:39]line СДАЧА: 0.00 [00:55:39]line НСП 1% : 2.66 [00:55:39]line НДС 12% : 31.90 [00:55:39]line Наличными: 300.00 [00:55:39]line Безнал.: 0.00 [00:55:39]line Место: АЗС № 113 "Партнер Нефть" [00:55:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:55:39]line СНО: Общий режим [00:55:39]line Чек 7 01.11.2024 00:55 [00:55:39]line Смена: 558 ФФД: 1.0 [00:55:39]line ЗНМ: 0300000087 [00:55:39]line РНМ: 0000000000091644 [00:55:39]line Версия ККМ: 001 [00:55:39]line ФМ: 0000000000874662 [00:55:39]line ФД: 73138 [00:55:39]line ФПД: 37907432244981 [00:55:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T005538&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73138&fm=37907432244981&tin=02508201610067®Number=0000000000091644&sum=30000 [00:55:39]written 0, free lines is 4095 [00:55:39]OFD Sender: Processing packet 73138 [packets to send 282, broken 281] [00:55:39]ProducePacketName [00:55:39]name=ofd_packets/00073138 [00:55:39]OFD Sender: To server: pG, [00:55:39]CommunicateWithHost lk.salyk.kg:30040 [00:55:39]ConnectInit lk.salyk.kg [00:55:39]Write to MH i2c: 01 00 00 70 03 73 [00:55:39]Write i2c OK [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: 01 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: 01 07 00 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 D3 0C 59 [00:55:39]RasterBufferAndPrint [00:55:39]line [00:55:39]line [00:55:39]line [00:55:39]line [00:55:39]line [00:55:39]written 0, free lines is 3287 [00:55:39]MH_Cut [00:55:39]Write to MH i2c: D1 01 00 77 03 01 4C [00:55:39]Write i2c OK [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: D1 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: D1 01 00 [00:55:39]MH_I2C_Read... [00:55:39]Read from MH i2c: D1 01 00 77 03 00 4B [00:55:39]Write to MH i2c: 01 00 00 78 03 7B [00:55:39]Write i2c OK [00:55:39]MH_I2C_Read... [00:55:40]Connected sock=11 [00:55:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 17 A3 07 01 AA CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 0A 27 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1D 01 00 35 04 06 00 22 7A 03 08 86 F5 93 49 22 6F 41 38 54 7A [00:55:40]*** Cut start [00:55:40]*** Partial cut [00:55:40]*** CUTSNS_PIN = 1 [00:55:40]*** CUTSNS_PIN = 0 [00:55:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9C 8E 47 00 70 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1D 01 00 F4 03 04 00 BF D1 23 67 B6 04 01 00 00 63 E3 ED 6F 60 90 90 00 [00:55:40]CommunicateWithHost err = 0 [00:55:40]CheckOFDResponse [00:55:40]1017 (14) - 77093643461234 [00:55:40]1041 (16) - 0000000000874662 [00:55:40]1040 (4) - 73138 [00:55:40]1012 (4) - 31.10.2024 18:51 [00:55:40]1206 (1) - 0 [00:55:40]OFD Sender: Remove packet 73138 [00:55:40]ProducePacketName [00:55:40]name=ofd_packets/00073138 [00:55:40]NVStorageDeleteData [00:55:40]*** Brake cut motor [00:55:41]OFD Sender: No OFD packet to send [00:55:41]Read from MH i2c: 01 [00:55:41]MH_I2C_Read... [00:55:41]*** Stop cut motor [00:55:41]*** Cut end [00:55:41]Read from MH i2c: 01 07 00 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [00:55:41]process_action close_receipt done [00:55:41]requested_data is exist [00:55:41]produce_requested_data [00:55:41]requested_item fm.sn is exist - process it [00:55:41]wFMCommunicate request_size=4 [00:55:41]MH_SAM_APDU [00:55:41]CAPDU: 80 11 00 00 [00:55:41]Write to MH i2c: E2 08 00 79 03 80 11 00 00 00 00 00 00 F6 [00:55:41]Write i2c OK [00:55:41]MH_I2C_Read... [00:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:41]Read from MH i2c: E2 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: E2 17 00 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: E2 17 00 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 4A [00:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:55:41]wFMCommunicate OK [00:55:41]requested_item fd.num is exist - process it [00:55:41]SAM_PROTO_GetFieldsCounters [00:55:41]wFMCommunicate request_size=4 [00:55:41]MH_SAM_APDU [00:55:41]CAPDU: 80 13 00 00 [00:55:41]Write to MH i2c: E2 08 00 7A 03 80 13 00 00 00 00 00 00 F9 [00:55:41]Write i2c OK [00:55:41]MH_I2C_Read... [00:55:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:41]Read from MH i2c: E2 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: E2 62 00 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: E2 62 00 7A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B2 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [00:55:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B2 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:41]wFMCommunicate OK [00:55:41]SAM_PROTO_GetFieldsCounters done [00:55:41]requested_item shift.num is exist - process it [00:55:41]requested_item shift.opened is exist - process it [00:55:41]req_shift_opened [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 7B 03 80 13 01 00 00 00 00 00 FB [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 7B 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 42 [00:55:41]RAPDU: 09 00 01 95 1B 24 67 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]req_shift_opened done [00:55:41]requested_item shift.open_date is exist - process it [00:55:41]req_shift_open_date [00:55:41]req_shift_open_date done [00:55:41]produce_requested_data done [00:55:41]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73138,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [00:55:41]process_action_free close_receipt [00:55:41]json_value_free [00:55:41]json_value_free done [00:55:41]process_json_proto returns [00:55:41]Send response to host [00:55:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73138,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [00:55:41]free response buf [00:55:41]execute_script done [00:55:41]execute_script returns [00:55:41]free content buf [00:55:41]Sock 7.Close socket [00:55:41]Sock 7.Thread stoped [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:43]ConnectInit Can't connect to host [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:17]recv_with_timeout no data received [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:28]recv_with_timeout no data received [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:10]accept exits with 10 [01:00:10]New connection [01:00:10]New thread 3066854756 created [01:00:10]Thread 3066998116 joined [01:00:10]Waiting for new connection... [01:00:10] Sock 10.Parse request [01:00:10]Sock 10.Check first char [01:00:10]Sock 10.First char is OK [01:00:10]request: POST /json_proto HTTP/1.0 [01:00:10]Method: POST [01:00:10]URL: /json_proto [01:00:10]Method is POST - this is cgi request [01:00:10]url: /json_proto [01:00:10]query_string will be loaded in cgi processing [01:00:10]execute_cgi json_proto POST (null) [01:00:10]execute_cgi path=json_proto method=POST [01:00:10]POST find Content-Length [01:00:10]Host: 172.17.43.195:8080 [01:00:10]Content-Length: 678 [01:00:10]Content-Type: application/json [01:00:10] [01:00:10]POST finish read [01:00:10]Found Content-Length = 678 [01:00:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:10]execute_script... [01:00:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:10]POST & json_proto [01:00:10]process_json_proto [01:00:10]json parsed OK: [01:00:10]protocol is kg_v1.0 [01:00:10]action value=close_receipt [01:00:10]process_action close_receipt [01:00:10]cmd_close_receipt [01:00:10]MH_GetDate [01:00:10]Write to MH i2c: F0 00 00 7C 03 6E [01:00:10]Write i2c OK [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: F0 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: F0 09 00 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: F0 09 00 7C 03 00 1B 28 24 67 74 2C AD 66 F8 [01:00:10]GetLastDocTimeStamp 1730422538 [01:00:10]current date 1730422811 [01:00:10]FM_GetShiftState [01:00:10]SAM_PROTO_GetShiftState [01:00:10]wFMCommunicate request_size=4 [01:00:10]MH_SAM_APDU [01:00:10]CAPDU: 80 13 01 00 [01:00:10]Write to MH i2c: E2 08 00 7D 03 80 13 01 00 00 00 00 00 FD [01:00:10]Write i2c OK [01:00:10]MH_I2C_Read... [01:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:10]Read from MH i2c: E2 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 0E 00 [01:00:10]MH_I2C_Read... [01:00:10]Read from MH i2c: E2 0E 00 7D 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 44 [01:00:10]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:00:10]wFMCommunicate OK [01:00:10]SAM_PROTO_GetShiftState done [01:00:10]FM_GetShiftState done [01:00:10]opened in 1730419605 [01:00:10]opened+sec_in_day 1730506005 [01:00:10]quantity*price = 80012 [01:00:10]sum+1 = 80013 [01:00:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 8 01.11.2024 01:00 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73139 ФПД: 113726644525376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010011&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73139&fm=113726644525376&tin=02508201610067®Number=0000000000091644&sum=80000 [01:00:11]StoreToDocumentArchive [01:00:11]shift 558 fd 73139 [01:00:11]save to /storage/0558/doc_00073139 [01:00:11]save last doc name /storage/0558/doc_00073139 to /storage/kkm_last_doc_name [01:00:11]save OK [01:00:11]Clear old archive folders... [01:00:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:00:11]tlvbuf is 00E2AAF0 [01:00:11]SAM_PROTO_ClearQueue [01:00:11]wFMCommunicate request_size=4 [01:00:11]MH_SAM_APDU [01:00:11]CAPDU: 80 09 00 00 [01:00:11]Write to MH i2c: E2 08 00 8A 03 80 09 00 00 00 00 00 00 FF [01:00:11]Write i2c OK [01:00:11]MH_I2C_Read... [01:00:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:00:11]Read from MH i2c: E2 [01:00:11]MH_I2C_Read... [01:00:11]Read from MH i2c: E2 03 00 [01:00:11]MH_I2C_Read... [01:00:11]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [01:00:11]RAPDU: 90 00 [01:00:11]wFMCommunicate OK [01:00:11]SAM_PROTO_ClearQueue done [01:00:11]KKMCreateOFDPacket [01:00:11]OFDProtocolAddRootSTLVToBuf [01:00:11]FM_MakeSignedData [01:00:11]FM_MakeSignedData [01:00:11]SAM_PROTO_SignData [01:00:11]wFMCommunicate request_size=4 [01:00:11]MH_SAM_APDU [01:00:11]CAPDU: 80 0D 01 02 [01:00:11]Write to MH i2c: E2 08 00 8B 03 80 0D 01 02 00 00 00 00 07 [01:00:11]Write i2c OK [01:00:11]MH_I2C_Read... [01:00:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:00:12]Read from MH i2c: E2 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 03 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [01:00:12]RAPDU: 90 00 [01:00:12]wFMCommunicate OK [01:00:12]wFMCommunicate request_size=255 [01:00:12]MH_SAM_APDU [01:00:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 1B 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1D 01 00 35 04 06 00 67 [01:00:12]Write to MH i2c: E2 02 01 8C 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 1B 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1D 01 00 35 04 06 00 67 00 00 C0 [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:12]Read from MH i2c: E2 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 03 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [01:00:12]RAPDU: 90 00 [01:00:12]wFMCommunicate OK [01:00:12]wFMCommunicate request_size=10 [01:00:12]MH_SAM_APDU [01:00:12]CAPDU: 80 0D 02 02 05 6F 0C 3F 99 40 [01:00:12]Write to MH i2c: E2 0D 00 8D 03 80 0D 02 02 05 00 6F 0C 3F 99 40 00 00 A7 [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:12]Read from MH i2c: E2 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 03 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [01:00:12]RAPDU: 90 00 [01:00:12]wFMCommunicate OK [01:00:12]wFMCommunicate request_size=4 [01:00:12]MH_SAM_APDU [01:00:12]CAPDU: 80 0D 03 02 [01:00:12]Write to MH i2c: E2 08 00 8E 03 80 0D 03 02 00 00 00 00 0C [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:00:12]Read from MH i2c: E2 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 0B 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 0B 00 8E 03 00 F9 9F B6 B9 7E C8 28 03 90 00 85 [01:00:12]RAPDU: F9 9F B6 B9 7E C8 28 03 90 00 [01:00:12]wFMCommunicate OK [01:00:12]SAM_PROTO_SignData done [01:00:12]FM_MakeSignedData done [01:00:12]CreateOFDProtocolMessage [01:00:12]wFMCommunicate request_size=4 [01:00:12]MH_SAM_APDU [01:00:12]CAPDU: 80 11 00 00 [01:00:12]Write to MH i2c: E2 08 00 8F 03 80 11 00 00 00 00 00 00 0C [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:12]Read from MH i2c: E2 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 17 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: E2 17 00 8F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 60 [01:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:00:12]wFMCommunicate OK [01:00:12]CreateOFDProtocolMessage done [01:00:12]OFDSenderStorePacket 73139 [01:00:12]StoreOFDPacket docnum=73139 [01:00:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DE EE 07 01 B2 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 1B 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1D 01 00 35 04 06 00 67 6F 0C 3F 99 40 F9 9F B6 B9 7E C8 28 03 [01:00:12]CheckFolder [01:00:12]dirname=/storage/ofd_packets [01:00:12]CheckFolder done [01:00:12]ProducePacketName [01:00:12]name=ofd_packets/00073139 [01:00:12]NVStorageSaveData ofd_packets/00073139 [01:00:12]File name is /storage/ofd_packets/00073139 [01:00:12]Write 301 bytes [01:00:12]NVStorageSaveData done [01:00:12]OFDSenderStorePacket done [01:00:12]KKMCreateOFDPacket done [01:00:12]NVStorageSaveData kkm_last_timestamp [01:00:12]File name is /storage/kkm_last_timestamp [01:00:12]Write 4 bytes [01:00:12]NVStorageSaveData done [01:00:12]ExternCall_PrintAddStr [01:00:12]wPrintStart [01:00:12]Write to MH i2c: 01 00 00 90 03 93 [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: 01 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: 01 07 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [01:00:12]RasterBufferAndPrint [01:00:12]line Счет N : (1)952737 [01:00:12]line ИНН: 02508201610067 [01:00:12]line Контрольно-Кассовый Чек [01:00:12]line ПРОДАЖА [01:00:12]line ТРК (МРК, ГНК) : 63 [01:00:12]line Товар: 2710124130 [01:00:12]line Аи-92-К-5 [01:00:12]line 11.960 * 66.90 [01:00:12]line = 800.12 [01:00:12]line НДС 12% НСП 1% [01:00:12]line > о реализуемом товаре [01:00:12]line ОКРУГЛЕНИЕ: -0.12 [01:00:12]line ИТОГО: 800.00 [01:00:12]line Внесено: 800.00 [01:00:12]line СДАЧА: 0.00 [01:00:12]line НСП 1% : 7.08 [01:00:12]line НДС 12% : 84.97 [01:00:12]line Наличными: 800.00 [01:00:12]line Безнал.: 0.00 [01:00:12]line Место: АЗС № 113 "Партнер Нефть" [01:00:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:00:12]line СНО: Общий режим [01:00:12]line Чек 8 01.11.2024 01:00 [01:00:12]line Смена: 558 ФФД: 1.0 [01:00:12]line ЗНМ: 0300000087 [01:00:12]line РНМ: 0000000000091644 [01:00:12]line Версия ККМ: 001 [01:00:12]line ФМ: 0000000000874662 [01:00:12]line ФД: 73139 [01:00:12]line ФПД: 113726644525376 [01:00:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010011&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73139&fm=113726644525376&tin=02508201610067®Number=0000000000091644&sum=80000 [01:00:12]written 0, free lines is 4095 [01:00:12]OFD Sender: Processing packet 73139 [packets to send 282, broken 281] [01:00:12]ProducePacketName [01:00:12]name=ofd_packets/00073139 [01:00:12]OFD Sender: To server: pG, [01:00:12]CommunicateWithHost lk.salyk.kg:30040 [01:00:12]ConnectInit lk.salyk.kg [01:00:12]Write to MH i2c: 01 00 00 BB 03 BE [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: 01 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: 01 07 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: 01 07 00 BB 03 00 00 00 00 00 CF 0C A0 [01:00:12]RasterBufferAndPrint [01:00:12]line [01:00:12]line [01:00:12]line [01:00:12]line [01:00:12]line [01:00:12]written 0, free lines is 3286 [01:00:12]MH_Cut [01:00:12]Write to MH i2c: D1 01 00 C2 03 01 97 [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: D1 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: D1 01 00 [01:00:12]MH_I2C_Read... [01:00:12]Read from MH i2c: D1 01 00 C2 03 00 96 [01:00:12]Write to MH i2c: 01 00 00 C3 03 C6 [01:00:12]Write i2c OK [01:00:12]MH_I2C_Read... [01:00:13]*** Cut start [01:00:13]*** Partial cut [01:00:13]*** CUTSNS_PIN = 1 [01:00:13]*** CUTSNS_PIN = 0 [01:00:13]*** Brake cut motor [01:00:14]Read from MH i2c: 01 [01:00:14]MH_I2C_Read... [01:00:14]*** Stop cut motor [01:00:14]*** Cut end [01:00:14]Read from MH i2c: 01 07 00 [01:00:14]MH_I2C_Read... [01:00:14]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 FF 0F DB [01:00:14]process_action close_receipt done [01:00:14]requested_data is exist [01:00:14]produce_requested_data [01:00:14]requested_item fm.sn is exist - process it [01:00:14]wFMCommunicate request_size=4 [01:00:14]MH_SAM_APDU [01:00:14]CAPDU: 80 11 00 00 [01:00:14]Write to MH i2c: E2 08 00 C4 03 80 11 00 00 00 00 00 00 41 [01:00:14]Write i2c OK [01:00:14]MH_I2C_Read... [01:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:14]Read from MH i2c: E2 [01:00:14]MH_I2C_Read... [01:00:14]Read from MH i2c: E2 17 00 [01:00:14]MH_I2C_Read... [01:00:14]Read from MH i2c: E2 17 00 C4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 95 [01:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:00:14]wFMCommunicate OK [01:00:14]requested_item fd.num is exist - process it [01:00:14]SAM_PROTO_GetFieldsCounters [01:00:14]wFMCommunicate request_size=4 [01:00:14]MH_SAM_APDU [01:00:14]CAPDU: 80 13 00 00 [01:00:14]Write to MH i2c: E2 08 00 C5 03 80 13 00 00 00 00 00 00 44 [01:00:14]Write i2c OK [01:00:14]MH_I2C_Read... [01:00:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:00:14]Read from MH i2c: E2 [01:00:14]MH_I2C_Read... [01:00:14]Read from MH i2c: E2 62 00 [01:00:14]MH_I2C_Read... [01:00:14]Read from MH i2c: E2 62 00 C5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [01:00:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:00:14]wFMCommunicate OK [01:00:14]SAM_PROTO_GetFieldsCounters done [01:00:14]requested_item shift.num is exist - process it [01:00:14]requested_item shift.opened is exist - process it [01:00:14]req_shift_opened [01:00:14]FM_GetShiftState [01:00:14]SAM_PROTO_GetShiftState [01:00:14]wFMCommunicate request_size=4 [01:00:14]MH_SAM_APDU [01:00:14]CAPDU: 80 13 01 00 [01:00:14]Write to MH i2c: E2 08 00 C6 03 80 13 01 00 00 00 00 00 46 [01:00:14]Write i2c OK [01:00:14]MH_I2C_Read... [01:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:14]Read from MH i2c: E2 [01:00:14]MH_I2C_Read... [01:00:14]Read from MH i2c: E2 0E 00 [01:00:14]MH_I2C_Read... [01:00:14]Read from MH i2c: E2 0E 00 C6 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 8D [01:00:14]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:00:14]wFMCommunicate OK [01:00:14]SAM_PROTO_GetShiftState done [01:00:14]FM_GetShiftState done [01:00:14]req_shift_opened done [01:00:14]requested_item shift.open_date is exist - process it [01:00:14]req_shift_open_date [01:00:14]req_shift_open_date done [01:00:14]produce_requested_data done [01:00:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73139,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [01:00:14]process_action_free close_receipt [01:00:14]json_value_free [01:00:14]json_value_free done [01:00:14]process_json_proto returns [01:00:14]Send response to host [01:00:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73139,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [01:00:14]free response buf [01:00:14]execute_script done [01:00:14]execute_script returns [01:00:14]free content buf [01:00:14]Sock 10.Close socket [01:00:14]Sock 10.Thread stoped [01:00:16]recv_with_timeout no data received [01:00:17]ConnectInit Can't take IP for lk.salyk.kg [01:00:17]CommunicateWithHost connect error [01:00:17]CommunicateWithHost err = -1 [01:00:17]OFD Sender: Server communicate error [01:00:22]OFD Sender: Processing packet 73139 [packets to send 282, broken 281] [01:00:22]ProducePacketName [01:00:22]name=ofd_packets/00073139 [01:00:22]OFD Sender: To server: pG, [01:00:22]CommunicateWithHost lk.salyk.kg:30040 [01:00:22]ConnectInit lk.salyk.kg [01:00:23]Connected sock=10 [01:00:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DE EE 07 01 B2 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 1B 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1D 01 00 35 04 06 00 67 6F 0C 3F 99 40 F9 9F B6 B9 7E C8 28 03 [01:00:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 3E FE 47 00 E8 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 34 36 36 32 10 04 04 00 B3 1D 01 00 F4 03 04 00 DA D2 23 67 B6 04 01 00 00 A0 39 92 50 E5 50 C6 57 [01:00:23]CommunicateWithHost err = 0 [01:00:23]CheckOFDResponse [01:00:23]1017 (14) - 77093643461234 [01:00:23]1041 (16) - 0000000000874662 [01:00:23]1040 (4) - 73139 [01:00:23]1012 (4) - 31.10.2024 18:56 [01:00:23]1206 (1) - 0 [01:00:23]OFD Sender: Remove packet 73139 [01:00:23]ProducePacketName [01:00:23]name=ofd_packets/00073139 [01:00:23]NVStorageDeleteData [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:50]recv_with_timeout no data received [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:05]recv_with_timeout no data received [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:16]recv_with_timeout no data received [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]recv_with_timeout no data received [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:35]recv_with_timeout no data received [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:38]recv_with_timeout no data received [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:06:59]recv_with_timeout no data received [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:00]accept exits with 9 [01:09:00]New connection [01:09:00]New thread 3066998116 created [01:09:00]Thread 3066854756 joined [01:09:00]Waiting for new connection... [01:09:00] Sock 9.Parse request [01:09:00]Sock 9.Check first char [01:09:00]Sock 9.First char is OK [01:09:00]request: POST /json_proto HTTP/1.0 [01:09:00]Method: POST [01:09:00]URL: /json_proto [01:09:00]Method is POST - this is cgi request [01:09:00]url: /json_proto [01:09:00]query_string will be loaded in cgi processing [01:09:00]execute_cgi json_proto POST (null) [01:09:00]execute_cgi path=json_proto method=POST [01:09:00]POST find Content-Length [01:09:00]Host: 172.17.43.195:8080 [01:09:00]Content-Length: 685 [01:09:00]Content-Type: application/json [01:09:00] [01:09:00]POST finish read [01:09:00]Found Content-Length = 685 [01:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:00]execute_script... [01:09: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)952738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:00]POST & json_proto [01:09:00]process_json_proto [01:09:00]json parsed OK: [01:09:00]protocol is kg_v1.0 [01:09:00]action value=close_receipt [01:09:00]process_action close_receipt [01:09:00]cmd_close_receipt [01:09:00]MH_GetDate [01:09:00]Write to MH i2c: F0 00 00 C7 03 B9 [01:09:00]Write i2c OK [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: F0 [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: F0 09 00 [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: F0 09 00 C7 03 00 2D 2A 24 67 74 2C AD 66 57 [01:09:00]GetLastDocTimeStamp 1730422811 [01:09:00]current date 1730423341 [01:09:00]FM_GetShiftState [01:09:00]SAM_PROTO_GetShiftState [01:09:00]wFMCommunicate request_size=4 [01:09:00]MH_SAM_APDU [01:09:00]CAPDU: 80 13 01 00 [01:09:00]Write to MH i2c: E2 08 00 C8 03 80 13 01 00 00 00 00 00 48 [01:09:00]Write i2c OK [01:09:00]MH_I2C_Read... [01:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:00]Read from MH i2c: E2 [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: E2 0E 00 [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: E2 0E 00 C8 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 8F [01:09:00]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:09:00]wFMCommunicate OK [01:09:00]SAM_PROTO_GetShiftState done [01:09:00]FM_GetShiftState done [01:09:00]opened in 1730419605 [01:09:00]opened+sec_in_day 1730506005 [01:09:00]quantity*price = 200023 [01:09:00]sum+1 = 200025 [01:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 9 01.11.2024 01:09 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73140 ФПД: 13793177295330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010901&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73140&fm=13793177295330&tin=02508201610067®Number=0000000000091644&sum=200000 [01:09:01]StoreToDocumentArchive [01:09:01]shift 558 fd 73140 [01:09:01]save to /storage/0558/doc_00073140 [01:09:01]save last doc name /storage/0558/doc_00073140 to /storage/kkm_last_doc_name [01:09:01]save OK [01:09:01]Clear old archive folders... [01:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:09:01]tlvbuf is 00C61110 [01:09:01]SAM_PROTO_ClearQueue [01:09:01]wFMCommunicate request_size=4 [01:09:01]MH_SAM_APDU [01:09:01]CAPDU: 80 09 00 00 [01:09:01]Write to MH i2c: E2 08 00 D5 03 80 09 00 00 00 00 00 00 4A [01:09:01]Write i2c OK [01:09:01]MH_I2C_Read... [01:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:01]Read from MH i2c: E2 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 03 00 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [01:09:01]RAPDU: 90 00 [01:09:01]wFMCommunicate OK [01:09:01]SAM_PROTO_ClearQueue done [01:09:01]KKMCreateOFDPacket [01:09:01]OFDProtocolAddRootSTLVToBuf [01:09:01]FM_MakeSignedData [01:09:01]FM_MakeSignedData [01:09:01]SAM_PROTO_SignData [01:09:01]wFMCommunicate request_size=4 [01:09:01]MH_SAM_APDU [01:09:01]CAPDU: 80 0D 01 02 [01:09:01]Write to MH i2c: E2 08 00 D6 03 80 0D 01 02 00 00 00 00 52 [01:09:01]Write i2c OK [01:09:01]MH_I2C_Read... [01:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:01]Read from MH i2c: E2 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 03 00 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [01:09:01]RAPDU: 90 00 [01:09:01]wFMCommunicate OK [01:09:01]wFMCommunicate request_size=255 [01:09:01]MH_SAM_APDU [01:09:01]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2D 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1D 01 00 35 04 06 00 0C 8B [01:09:01]Write to MH i2c: E2 02 01 D7 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2D 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1D 01 00 35 04 06 00 0C 8B 00 00 AD [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [01:09:02]RAPDU: 90 00 [01:09:02]wFMCommunicate OK [01:09:02]wFMCommunicate request_size=9 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 0D 02 02 04 79 6E D9 E2 [01:09:02]Write to MH i2c: E2 0C 00 D8 03 80 0D 02 02 04 00 79 6E D9 E2 00 00 FF [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [01:09:02]RAPDU: 90 00 [01:09:02]wFMCommunicate OK [01:09:02]wFMCommunicate request_size=4 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 0D 03 02 [01:09:02]Write to MH i2c: E2 08 00 D9 03 80 0D 03 02 00 00 00 00 57 [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 0B 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 0B 00 D9 03 00 CC C7 9B 17 F4 B1 BD 6D 90 00 6C [01:09:02]RAPDU: CC C7 9B 17 F4 B1 BD 6D 90 00 [01:09:02]wFMCommunicate OK [01:09:02]SAM_PROTO_SignData done [01:09:02]FM_MakeSignedData done [01:09:02]CreateOFDProtocolMessage [01:09:02]wFMCommunicate request_size=4 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 11 00 00 [01:09:02]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 17 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AB [01:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:09:02]wFMCommunicate OK [01:09:02]CreateOFDProtocolMessage done [01:09:02]OFDSenderStorePacket 73140 [01:09:02]StoreOFDPacket docnum=73140 [01:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 71 75 06 01 A3 30 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2D 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1D 01 00 35 04 06 00 0C 8B 79 6E D9 E2 CC C7 9B 17 F4 B1 BD 6D [01:09:02]CheckFolder [01:09:02]dirname=/storage/ofd_packets [01:09:02]CheckFolder done [01:09:02]ProducePacketName [01:09:02]name=ofd_packets/00073140 [01:09:02]NVStorageSaveData ofd_packets/00073140 [01:09:02]File name is /storage/ofd_packets/00073140 [01:09:02]Write 300 bytes [01:09:02]NVStorageSaveData done [01:09:02]OFDSenderStorePacket done [01:09:02]KKMCreateOFDPacket done [01:09:02]NVStorageSaveData kkm_last_timestamp [01:09:02]File name is /storage/kkm_last_timestamp [01:09:02]Write 4 bytes [01:09:02]NVStorageSaveData done [01:09:02]ExternCall_PrintAddStr [01:09:02]wPrintStart [01:09:02]Write to MH i2c: 01 00 00 DB 03 DE [01:09:02]OFD Sender: Processing packet 73140 [packets to send 282, broken 281] [01:09:02]ProducePacketName [01:09:02]name=ofd_packets/00073140 [01:09:02]OFD Sender: To server: pG, [01:09:02]CommunicateWithHost lk.salyk.kg:30040 [01:09:02]ConnectInit lk.salyk.kg [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: 01 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: 01 07 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 FF 0F F3 [01:09:02]RasterBufferAndPrint [01:09:02]line Счет N : (1)952738 [01:09:02]line ИНН: 02508201610067 [01:09:02]line Контрольно-Кассовый Чек [01:09:02]line ПРОДАЖА [01:09:02]line ТРК (МРК, ГНК) : 71 [01:09:02]line Товар: 2711190000 [01:09:02]line ГАЗ-К-3 [01:09:02]line 51.420 * 38.90 [01:09:02]line = 2000.24 [01:09:02]line НДС 12% НСП 1% [01:09:02]line > о реализуемом товаре [01:09:02]line ОКРУГЛЕНИЕ: -0.24 [01:09:02]line ИТОГО: 2000.00 [01:09:02]line Внесено: 2000.00 [01:09:02]line СДАЧА: 0.00 [01:09:02]line НСП 1% : 17.70 [01:09:02]line НДС 12% : 212.41 [01:09:02]line Наличными: 2000.00 [01:09:02]line Безнал.: 0.00 [01:09:02]line Место: АЗС № 113 "Партнер Нефть" [01:09:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:09:02]line СНО: Общий режим [01:09:02]line Чек 9 01.11.2024 01:09 [01:09:02]line Смена: 558 ФФД: 1.0 [01:09:02]line ЗНМ: 0300000087 [01:09:02]line РНМ: 0000000000091644 [01:09:02]line Версия ККМ: 001 [01:09:02]line ФМ: 0000000000874662 [01:09:02]line ФД: 73140 [01:09:02]line ФПД: 13793177295330 [01:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010901&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73140&fm=13793177295330&tin=02508201610067®Number=0000000000091644&sum=200000 [01:09:02]Connected sock=7 [01:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 71 75 06 01 A3 30 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2D 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1D 01 00 35 04 06 00 0C 8B 79 6E D9 E2 CC C7 9B 17 F4 B1 BD 6D [01:09:02]written 0, free lines is 4095 [01:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A1 6D 47 00 D0 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1D 01 00 F4 03 04 00 E1 D4 23 67 B6 04 01 00 00 3D 9D 70 E3 0F 70 28 5A [01:09:03]CommunicateWithHost err = 0 [01:09:03]CheckOFDResponse [01:09:03]1017 (14) - 77093643461234 [01:09:03]1041 (16) - 0000000000874662 [01:09:03]1040 (4) - 73140 [01:09:03]1012 (4) - 31.10.2024 19:05 [01:09:03]1206 (1) - 0 [01:09:03]OFD Sender: Remove packet 73140 [01:09:03]ProducePacketName [01:09:03]name=ofd_packets/00073140 [01:09:03]NVStorageDeleteData [01:09:03]Write to MH i2c: 01 00 00 06 04 0A [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: 01 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: 01 07 00 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 D0 0C ED [01:09:03]RasterBufferAndPrint [01:09:03]line [01:09:03]line [01:09:03]line [01:09:03]line [01:09:03]line [01:09:03]written 0, free lines is 3287 [01:09:03]MH_Cut [01:09:03]Write to MH i2c: D1 01 00 0D 04 01 E3 [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: D1 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: D1 01 00 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: D1 01 00 0D 04 00 E2 [01:09:03]Write to MH i2c: 01 00 00 0E 04 12 [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]OFD Sender: No OFD packet to send [01:09:03]*** Cut start [01:09:03]*** Partial cut [01:09:03]*** CUTSNS_PIN = 1 [01:09:04]*** CUTSNS_PIN = 0 [01:09:04]*** Brake cut motor [01:09:04]Read from MH i2c: 01 [01:09:04]MH_I2C_Read... [01:09:04]*** Stop cut motor [01:09:04]*** Cut end [01:09:04]Read from MH i2c: 01 07 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 FF 0F 27 [01:09:04]process_action close_receipt done [01:09:04]requested_data is exist [01:09:04]produce_requested_data [01:09:04]requested_item fm.sn is exist - process it [01:09:04]wFMCommunicate request_size=4 [01:09:04]MH_SAM_APDU [01:09:04]CAPDU: 80 11 00 00 [01:09:04]Write to MH i2c: E2 08 00 0F 04 80 11 00 00 00 00 00 00 8D [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:04]Read from MH i2c: E2 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 17 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 17 00 0F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E1 [01:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:09:04]wFMCommunicate OK [01:09:04]requested_item fd.num is exist - process it [01:09:04]SAM_PROTO_GetFieldsCounters [01:09:04]wFMCommunicate request_size=4 [01:09:04]MH_SAM_APDU [01:09:04]CAPDU: 80 13 00 00 [01:09:04]Write to MH i2c: E2 08 00 10 04 80 13 00 00 00 00 00 00 90 [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:04]Read from MH i2c: E2 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 62 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 62 00 10 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [01:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:09:04]wFMCommunicate OK [01:09:04]SAM_PROTO_GetFieldsCounters done [01:09:04]requested_item shift.num is exist - process it [01:09:04]requested_item shift.opened is exist - process it [01:09:04]req_shift_opened [01:09:04]FM_GetShiftState [01:09:04]SAM_PROTO_GetShiftState [01:09:04]wFMCommunicate request_size=4 [01:09:04]MH_SAM_APDU [01:09:04]CAPDU: 80 13 01 00 [01:09:04]Write to MH i2c: E2 08 00 11 04 80 13 01 00 00 00 00 00 92 [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:04]Read from MH i2c: E2 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 0E 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 0E 00 11 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 D9 [01:09:04]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:09:04]wFMCommunicate OK [01:09:04]SAM_PROTO_GetShiftState done [01:09:04]FM_GetShiftState done [01:09:04]req_shift_opened done [01:09:04]requested_item shift.open_date is exist - process it [01:09:04]req_shift_open_date [01:09:04]req_shift_open_date done [01:09:04]produce_requested_data done [01:09:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73140,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [01:09:04]process_action_free close_receipt [01:09:04]json_value_free [01:09:04]json_value_free done [01:09:04]process_json_proto returns [01:09:04]Send response to host [01:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73140,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [01:09:04]free response buf [01:09:04]execute_script done [01:09:04]execute_script returns [01:09:04]free content buf [01:09:04]Sock 9.Close socket [01:09:04]Sock 9.Thread stoped [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:22]recv_with_timeout no data received [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:21]recv_with_timeout no data received [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:31]recv_with_timeout no data received [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:11]recv_with_timeout no data received [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:21]recv_with_timeout no data received [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:38]recv_with_timeout no data received [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:32]recv_with_timeout no data received [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:42]recv_with_timeout no data received [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:52]recv_with_timeout no data received [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:10]recv_with_timeout no data received [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:18]recv_with_timeout no data received [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:47]recv_with_timeout no data received [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:22]recv_with_timeout no data received [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:15]recv_with_timeout no data received [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:35]recv_with_timeout no data received [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:02]recv_with_timeout no data received [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:27]recv_with_timeout no data received [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:57]recv_with_timeout no data received [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]accept exits with 10 [01:22:04]New connection [01:22:04]New thread 3066854756 created [01:22:04]Thread 3066998116 joined [01:22:04]Waiting for new connection... [01:22:04] Sock 10.Parse request [01:22:04]Sock 10.Check first char [01:22:04]Sock 10.First char is OK [01:22:04]request: POST /json_proto HTTP/1.0 [01:22:04]Method: POST [01:22:04]URL: /json_proto [01:22:04]Method is POST - this is cgi request [01:22:04]url: /json_proto [01:22:04]query_string will be loaded in cgi processing [01:22:04]execute_cgi json_proto POST (null) [01:22:04]execute_cgi path=json_proto method=POST [01:22:04]POST find Content-Length [01:22:04]Host: 172.17.43.195:8080 [01:22:04]Content-Length: 687 [01:22:04]Content-Type: application/json [01:22:04] [01:22:04]POST finish read [01:22:04]Found Content-Length = 687 [01:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:04]execute_script... [01:22: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)952739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:04]POST & json_proto [01:22:04]process_json_proto [01:22:04]json parsed OK: [01:22:04]protocol is kg_v1.0 [01:22:04]action value=close_receipt [01:22:04]process_action close_receipt [01:22:04]cmd_close_receipt [01:22:04]MH_GetDate [01:22:04]Write to MH i2c: F0 00 00 12 04 05 [01:22:04]Write i2c OK [01:22:04]MH_I2C_Read... [01:22:04]Read from MH i2c: F0 [01:22:04]MH_I2C_Read... [01:22:04]Read from MH i2c: F0 09 00 [01:22:04]MH_I2C_Read... [01:22:04]Read from MH i2c: F0 09 00 12 04 00 3D 2D 24 67 74 2C AD 66 B6 [01:22:04]GetLastDocTimeStamp 1730423341 [01:22:04]current date 1730424125 [01:22:04]FM_GetShiftState [01:22:04]SAM_PROTO_GetShiftState [01:22:04]wFMCommunicate request_size=4 [01:22:04]MH_SAM_APDU [01:22:04]CAPDU: 80 13 01 00 [01:22:04]Write to MH i2c: E2 08 00 13 04 80 13 01 00 00 00 00 00 94 [01:22:04]Write i2c OK [01:22:04]MH_I2C_Read... [01:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:04]Read from MH i2c: E2 [01:22:04]MH_I2C_Read... [01:22:04]Read from MH i2c: E2 0E 00 [01:22:04]MH_I2C_Read... [01:22:04]Read from MH i2c: E2 0E 00 13 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 DB [01:22:04]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:22:04]wFMCommunicate OK [01:22:04]SAM_PROTO_GetShiftState done [01:22:04]FM_GetShiftState done [01:22:04]opened in 1730419605 [01:22:04]opened+sec_in_day 1730506005 [01:22:04]quantity*price = 150037 [01:22:04]sum+1 = 150039 [01:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 10 01.11.2024 01:22 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73141 ФПД: 275337804829995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T012205&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73141&fm=275337804829995&tin=02508201610067®Number=0000000000091644&sum=150000 [01:22:05]StoreToDocumentArchive [01:22:05]shift 558 fd 73141 [01:22:05]save to /storage/0558/doc_00073141 [01:22:05]save last doc name /storage/0558/doc_00073141 to /storage/kkm_last_doc_name [01:22:05]save OK [01:22:05]Clear old archive folders... [01:22:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:22:05]tlvbuf is 00E29E70 [01:22:05]SAM_PROTO_ClearQueue [01:22:05]wFMCommunicate request_size=4 [01:22:05]MH_SAM_APDU [01:22:05]CAPDU: 80 09 00 00 [01:22:05]Write to MH i2c: E2 08 00 20 04 80 09 00 00 00 00 00 00 96 [01:22:05]Write i2c OK [01:22:05]MH_I2C_Read... [01:22:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:22:05]Read from MH i2c: E2 [01:22:05]MH_I2C_Read... [01:22:05]Read from MH i2c: E2 03 00 [01:22:05]MH_I2C_Read... [01:22:05]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [01:22:05]RAPDU: 90 00 [01:22:05]wFMCommunicate OK [01:22:05]SAM_PROTO_ClearQueue done [01:22:05]KKMCreateOFDPacket [01:22:05]OFDProtocolAddRootSTLVToBuf [01:22:05]FM_MakeSignedData [01:22:05]FM_MakeSignedData [01:22:05]SAM_PROTO_SignData [01:22:05]wFMCommunicate request_size=4 [01:22:05]MH_SAM_APDU [01:22:05]CAPDU: 80 0D 01 02 [01:22:05]Write to MH i2c: E2 08 00 21 04 80 0D 01 02 00 00 00 00 9E [01:22:05]Write i2c OK [01:22:05]MH_I2C_Read... [01:22:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:22:05]Read from MH i2c: E2 [01:22:05]MH_I2C_Read... [01:22:05]Read from MH i2c: E2 03 00 [01:22:05]MH_I2C_Read... [01:22:05]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [01:22:05]RAPDU: 90 00 [01:22:05]wFMCommunicate OK [01:22:05]wFMCommunicate request_size=255 [01:22:05]MH_SAM_APDU [01:22:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3D 2D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1D 01 00 35 04 06 00 [01:22:05]Write to MH i2c: E2 02 01 22 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3D 2D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1D 01 00 35 04 06 00 00 00 84 [01:22:05]Write i2c OK [01:22:05]MH_I2C_Read... [01:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:05]Read from MH i2c: E2 [01:22:05]MH_I2C_Read... [01:22:05]Read from MH i2c: E2 03 00 [01:22:05]MH_I2C_Read... [01:22:05]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [01:22:05]RAPDU: 90 00 [01:22:05]wFMCommunicate OK [01:22:05]wFMCommunicate request_size=11 [01:22:05]MH_SAM_APDU [01:22:05]CAPDU: 80 0D 02 02 06 FA 6B 14 0C D5 2B [01:22:05]Write to MH i2c: E2 0E 00 23 04 80 0D 02 02 06 00 FA 6B 14 0C D5 2B 00 00 32 [01:22:05]Write i2c OK [01:22:05]MH_I2C_Read... [01:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:05]Read from MH i2c: E2 [01:22:05]MH_I2C_Read... [01:22:05]Read from MH i2c: E2 03 00 [01:22:05]MH_I2C_Read... [01:22:05]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [01:22:05]RAPDU: 90 00 [01:22:05]wFMCommunicate OK [01:22:05]wFMCommunicate request_size=4 [01:22:05]MH_SAM_APDU [01:22:05]CAPDU: 80 0D 03 02 [01:22:05]Write to MH i2c: E2 08 00 24 04 80 0D 03 02 00 00 00 00 A3 [01:22:05]Write i2c OK [01:22:05]MH_I2C_Read... [01:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:22:06]Read from MH i2c: E2 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: E2 0B 00 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: E2 0B 00 24 04 00 09 25 0E 7D 61 3B EF 6E 90 00 56 [01:22:06]RAPDU: 09 25 0E 7D 61 3B EF 6E 90 00 [01:22:06]wFMCommunicate OK [01:22:06]SAM_PROTO_SignData done [01:22:06]FM_MakeSignedData done [01:22:06]CreateOFDProtocolMessage [01:22:06]wFMCommunicate request_size=4 [01:22:06]MH_SAM_APDU [01:22:06]CAPDU: 80 11 00 00 [01:22:06]Write to MH i2c: E2 08 00 25 04 80 11 00 00 00 00 00 00 A3 [01:22:06]Write i2c OK [01:22:06]MH_I2C_Read... [01:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:06]Read from MH i2c: E2 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: E2 17 00 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: E2 17 00 25 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F7 [01:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:22:06]wFMCommunicate OK [01:22:06]CreateOFDProtocolMessage done [01:22:06]OFDSenderStorePacket 73141 [01:22:06]StoreOFDPacket docnum=73141 [01:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 33 68 08 01 AF DA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3D 2D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1D 01 00 35 04 06 00 FA 6B 14 0C D5 2B 09 25 0E 7D 61 3B EF 6E [01:22:06]CheckFolder [01:22:06]dirname=/storage/ofd_packets [01:22:06]CheckFolder done [01:22:06]ProducePacketName [01:22:06]name=ofd_packets/00073141 [01:22:06]NVStorageSaveData ofd_packets/00073141 [01:22:06]File name is /storage/ofd_packets/00073141 [01:22:06]Write 302 bytes [01:22:06]NVStorageSaveData done [01:22:06]OFDSenderStorePacket done [01:22:06]KKMCreateOFDPacket done [01:22:06]NVStorageSaveData kkm_last_timestamp [01:22:06]File name is /storage/kkm_last_timestamp [01:22:06]Write 4 bytes [01:22:06]NVStorageSaveData done [01:22:06]ExternCall_PrintAddStr [01:22:06]wPrintStart [01:22:06]Write to MH i2c: 01 00 00 26 04 2A [01:22:06]Write i2c OK [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: 01 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: 01 07 00 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 FF 0F 3F [01:22:06]RasterBufferAndPrint [01:22:06]line Счет N : (1)952739 [01:22:06]line ИНН: 02508201610067 [01:22:06]line Контрольно-Кассовый Чек [01:22:06]line ПРОДАЖА [01:22:06]line ТРК (МРК, ГНК) : 33 [01:22:06]line Товар: 2710194210 [01:22:06]line ДТ(л)-К-5 [01:22:06]line 19.690 * 76.20 [01:22:06]line = 1500.38 [01:22:06]line НДС 12% НСП 1% [01:22:06]line > о реализуемом товаре [01:22:06]line ОКРУГЛЕНИЕ: -0.38 [01:22:06]line ИТОГО: 1500.00 [01:22:06]line Внесено: 1500.00 [01:22:06]line СДАЧА: 0.00 [01:22:06]line НСП 1% : 13.28 [01:22:06]line НДС 12% : 159.33 [01:22:06]line Наличными: 1500.00 [01:22:06]line Безнал.: 0.00 [01:22:06]line Место: АЗС № 113 "Партнер Нефть" [01:22:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:22:06]line СНО: Общий режим [01:22:06]line Чек 10 01.11.2024 01:22 [01:22:06]line Смена: 558 ФФД: 1.0 [01:22:06]line ЗНМ: 0300000087 [01:22:06]line РНМ: 0000000000091644 [01:22:06]line Версия ККМ: 001 [01:22:06]line ФМ: 0000000000874662 [01:22:06]line ФД: 73141 [01:22:06]line ФПД: 275337804829995 [01:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T012205&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73141&fm=275337804829995&tin=02508201610067®Number=0000000000091644&sum=150000 [01:22:06]OFD Sender: Processing packet 73141 [packets to send 282, broken 281] [01:22:06]ProducePacketName [01:22:06]name=ofd_packets/00073141 [01:22:06]OFD Sender: To server: pG, [01:22:06]CommunicateWithHost lk.salyk.kg:30040 [01:22:06]ConnectInit lk.salyk.kg [01:22:06]written 0, free lines is 4095 [01:22:06]recv_with_timeout no data received [01:22:06]Write to MH i2c: 01 00 00 51 04 55 [01:22:06]Write i2c OK [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: 01 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: 01 07 00 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 DF 0C 47 [01:22:06]RasterBufferAndPrint [01:22:06]line [01:22:06]line [01:22:06]line [01:22:06]line [01:22:06]line [01:22:06]written 0, free lines is 3301 [01:22:06]MH_Cut [01:22:06]Write to MH i2c: D1 01 00 58 04 01 2E [01:22:06]Write i2c OK [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: D1 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: D1 01 00 [01:22:06]MH_I2C_Read... [01:22:06]Read from MH i2c: D1 01 00 58 04 00 2D [01:22:06]Write to MH i2c: 01 00 00 59 04 5D [01:22:06]Write i2c OK [01:22:06]MH_I2C_Read... [01:22:07]*** Cut start [01:22:07]*** Partial cut [01:22:07]*** CUTSNS_PIN = 1 [01:22:07]*** CUTSNS_PIN = 0 [01:22:07]*** Brake cut motor [01:22:08]Read from MH i2c: 01 [01:22:08]MH_I2C_Read... [01:22:08]*** Stop cut motor [01:22:08]*** Cut end [01:22:08]Read from MH i2c: 01 07 00 [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 FF 0F 72 [01:22:08]process_action close_receipt done [01:22:08]requested_data is exist [01:22:08]produce_requested_data [01:22:08]requested_item fm.sn is exist - process it [01:22:08]wFMCommunicate request_size=4 [01:22:08]MH_SAM_APDU [01:22:08]CAPDU: 80 11 00 00 [01:22:08]Write to MH i2c: E2 08 00 5A 04 80 11 00 00 00 00 00 00 D8 [01:22:08]Write i2c OK [01:22:08]MH_I2C_Read... [01:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:08]Read from MH i2c: E2 [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: E2 17 00 [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: E2 17 00 5A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2C [01:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:22:08]wFMCommunicate OK [01:22:08]requested_item fd.num is exist - process it [01:22:08]SAM_PROTO_GetFieldsCounters [01:22:08]wFMCommunicate request_size=4 [01:22:08]MH_SAM_APDU [01:22:08]CAPDU: 80 13 00 00 [01:22:08]Write to MH i2c: E2 08 00 5B 04 80 13 00 00 00 00 00 00 DB [01:22:08]Write i2c OK [01:22:08]MH_I2C_Read... [01:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:22:08]Read from MH i2c: E2 [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: E2 62 00 [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: E2 62 00 5B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [01:22:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:22:08]wFMCommunicate OK [01:22:08]SAM_PROTO_GetFieldsCounters done [01:22:08]requested_item shift.num is exist - process it [01:22:08]requested_item shift.opened is exist - process it [01:22:08]req_shift_opened [01:22:08]FM_GetShiftState [01:22:08]SAM_PROTO_GetShiftState [01:22:08]wFMCommunicate request_size=4 [01:22:08]MH_SAM_APDU [01:22:08]CAPDU: 80 13 01 00 [01:22:08]Write to MH i2c: E2 08 00 5C 04 80 13 01 00 00 00 00 00 DD [01:22:08]Write i2c OK [01:22:08]MH_I2C_Read... [01:22:08]Connected sock=11 [01:22:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 33 68 08 01 AF DA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3D 2D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1D 01 00 35 04 06 00 FA 6B 14 0C D5 2B 09 25 0E 7D 61 3B EF 6E [01:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:08]Read from MH i2c: E2 [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: E2 0E 00 [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: E2 0E 00 5C 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 24 [01:22:08]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:22:08]wFMCommunicate OK [01:22:08]SAM_PROTO_GetShiftState done [01:22:08]FM_GetShiftState done [01:22:08]req_shift_opened done [01:22:08]requested_item shift.open_date is exist - process it [01:22:08]req_shift_open_date [01:22:08]req_shift_open_date done [01:22:08]produce_requested_data done [01:22:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73141,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [01:22:08]process_action_free close_receipt [01:22:08]json_value_free [01:22:08]json_value_free done [01:22:08]process_json_proto returns [01:22:08]Send response to host [01:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73141,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [01:22:08]free response buf [01:22:08]execute_script done [01:22:08]execute_script returns [01:22:08]free content buf [01:22:08]Sock 10.Close socket [01:22:08]Sock 10.Thread stoped [01:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 EC 08 47 00 F2 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1D 01 00 F4 03 04 00 F3 D7 23 67 B6 04 01 00 00 CC DC 74 3F AE 8A B3 1B [01:22:09]CommunicateWithHost err = 0 [01:22:09]CheckOFDResponse [01:22:09]1017 (14) - 77093643461234 [01:22:09]1041 (16) - 0000000000874662 [01:22:09]1040 (4) - 73141 [01:22:09]1012 (4) - 31.10.2024 19:18 [01:22:09]1206 (1) - 0 [01:22:09]OFD Sender: Remove packet 73141 [01:22:09]ProducePacketName [01:22:09]name=ofd_packets/00073141 [01:22:09]NVStorageDeleteData [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:17]recv_with_timeout no data received [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:21]recv_with_timeout no data received [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:52]recv_with_timeout no data received [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:42]recv_with_timeout no data received [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:42]recv_with_timeout no data received [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:09]recv_with_timeout no data received [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:21]recv_with_timeout no data received [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:41]recv_with_timeout no data received [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:26]recv_with_timeout no data received [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:54]recv_with_timeout no data received [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:23]recv_with_timeout no data received [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]recv_with_timeout no data received [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:07]recv_with_timeout no data received [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:53]recv_with_timeout no data received [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:08]recv_with_timeout no data received [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:55]ConnectInit Can't connect to host [01:43:56]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7800379+1722625140=1730425519 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 AF 32 24 67 74 2C AD 66 1E [01:45:19]Current date/time: 01.11.2024 01:45 [01:45:19]FM_Init [01:45:19]wFMConnect [01:45:19]MH_SAM_On [01:45:19]Write to MH i2c: E0 00 00 08 00 E7 [01:45:19]Write i2c OK [01:45:19]MH_I2C_Read... [01:45:19]*** iso7816_init finished! [01:45:19]*** atr: [01:45:19]*** 0F 3B D5 18 FF 81 91 FE [01:45:19]*** 1F C3 80 73 C8 21 10 0A [01:45:19]*** 00 00 00 00 00 00 00 00 [01:45:19]*** 00 00 00 00 00 00 00 00 [01:45:19]*** 00 00 00 00 00 00 00 00 [01:45:19]*** 00 00 00 00 00 00 00 00 [01:45:19]*** 00 00 00 00 00 00 00 00 [01:45:19]*** 00 00 00 00 00 00 00 00 [01:45:19]Read from MH i2c: E0 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E0 10 00 [01:45:19]MH_I2C_Read... [01:45:19]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 [01:45:19]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [01:45:19]wFMCommunicate request_size=10 [01:45:19]MH_SAM_APDU [01:45:19]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [01:45:19]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [01:45:19]Write i2c OK [01:45:19]MH_I2C_Read... [01:45:19]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [01:45:19]Read from MH i2c: E2 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 03 00 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [01:45:19]RAPDU: 90 00 [01:45:19]wFMCommunicate OK [01:45:19]wFMCommunicate request_size=4 [01:45:19]MH_SAM_APDU [01:45:19]CAPDU: 80 11 00 00 [01:45:19]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [01:45:19]Write i2c OK [01:45:19]MH_I2C_Read... [01:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:19]Read from MH i2c: E2 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 17 00 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [01:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:45:19]wFMCommunicate OK [01:45:19]Detected FM SN is 0000000000874662 [01:45:19]Stored FM SN is 0000000000874662 [01:45:19]wFMCommunicate request_size=9 [01:45:19]MH_SAM_APDU [01:45:19]CAPDU: 80 16 00 00 04 08 EB 00 00 [01:45:19]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [01:45:19]Write i2c OK [01:45:19]MH_I2C_Read... [01:45:19]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [01:45:19]Read from MH i2c: E2 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 03 00 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [01:45:19]RAPDU: 90 00 [01:45:19]wFMCommunicate OK [01:45:19]FM PIN OK [01:45:19]wFMCommunicate request_size=8 [01:45:19]MH_SAM_APDU [01:45:19]CAPDU: 80 14 04 00 03 02 00 01 [01:45:19]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [01:45:19]Write i2c OK [01:45:19]MH_I2C_Read... [01:45:19]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [01:45:19]Read from MH i2c: E2 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 03 00 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [01:45:19]RAPDU: 90 00 [01:45:19]wFMCommunicate OK [01:45:19]wFMCommunicate request_size=13 [01:45:19]MH_SAM_APDU [01:45:19]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [01:45:19]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 [01:45:19]Write i2c OK [01:45:19]MH_I2C_Read... [01:45:19]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [01:45:19]Read from MH i2c: E2 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 03 00 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [01:45:19]RAPDU: 90 00 [01:45:19]wFMCommunicate OK [01:45:19]wFMCommunicate request_size=4 [01:45:19]MH_SAM_APDU [01:45:19]CAPDU: 80 11 00 00 [01:45:19]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [01:45:19]Write i2c OK [01:45:19]MH_I2C_Read... [01:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:19]Read from MH i2c: E2 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 17 00 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [01:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:45:19]wFMCommunicate OK [01:45:19]DocumentArchiveInit [01:45:19]Start Httpd... [01:45:19]Httpd thread 3067219300 created [01:45:19]Write to MH i2c: 01 00 00 0F 00 0F [01:45:19]Write i2c OK [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: 01 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: 01 07 00 [01:45:19]MH_I2C_Read... [01:45:19]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [01:45:19]MH Int Process started [01:45:19]Allocated Socket 8 [01:45:19]Bind OK [01:45:19]Listen OK [01:45:19]httpd running on port 8080 [01:45:19]Waiting for new connection... [01:45:19]OFD Sender: Processing packet 73142 [packets to send 282, broken 281] [01:45:19]ProducePacketName [01:45:19]name=ofd_packets/00073142 [01:45:19]OFD Sender: To server: pG, [01:45:19]CommunicateWithHost lk.salyk.kg:30040 [01:45:19]ConnectInit lk.salyk.kg [01:45:21]accept exits with 9 [01:45:21]New connection [01:45:21]New thread 3066932580 created [01:45:21]Waiting for new connection... [01:45:21] Sock 9.Parse request [01:45:21]Sock 9.Check first char [01:45:21]Sock 9.First char is OK [01:45:21]request: POST /json_proto HTTP/1.0 [01:45:21]Method: POST [01:45:21]URL: /json_proto [01:45:21]Method is POST - this is cgi request [01:45:21]url: /json_proto [01:45:21]query_string will be loaded in cgi processing [01:45:21]execute_cgi json_proto POST (null) [01:45:21]execute_cgi path=json_proto method=POST [01:45:21]POST find Content-Length [01:45:21]Host: 172.17.43.195:8080 [01:45:21]Content-Length: 215 [01:45:21]Content-Type: application/json [01:45:21] [01:45:21]POST finish read [01:45:21]Found Content-Length = 215 [01:45: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" ] } } [01:45:21]execute_script... [01:45: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" ] } } [01:45:21]POST & json_proto [01:45:21]process_json_proto [01:45:21]json parsed OK: [01:45:21]protocol is kg_v1.0 [01:45:21]action value=get_value [01:45:21]process_action get_value [01:45:21]cmd_get_value [01:45:21]process_action get_value done [01:45:21]requested_data is exist [01:45:21]produce_requested_data [01:45:21]requested_item kkm.sn is exist - process it [01:45:21]requested_item kkm.ver is exist - process it [01:45:21]requested_item fm.sn is exist - process it [01:45:21]wFMCommunicate request_size=4 [01:45:21]MH_SAM_APDU [01:45:21]CAPDU: 80 11 00 00 [01:45:21]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [01:45:21]Write i2c OK [01:45:21]MH_I2C_Read... [01:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:21]Read from MH i2c: E2 [01:45:21]MH_I2C_Read... [01:45:21]Read from MH i2c: E2 17 00 [01:45:21]MH_I2C_Read... [01:45:21]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [01:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:45:21]wFMCommunicate OK [01:45:21]requested_item fd.num is exist - process it [01:45:21]SAM_PROTO_GetFieldsCounters [01:45:21]wFMCommunicate request_size=4 [01:45:21]MH_SAM_APDU [01:45:21]CAPDU: 80 13 00 00 [01:45:21]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [01:45:21]Write i2c OK [01:45:21]MH_I2C_Read... [01:45:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:45:21]Read from MH i2c: E2 [01:45:21]MH_I2C_Read... [01:45:21]Read from MH i2c: E2 62 00 [01:45:21]MH_I2C_Read... [01:45:21]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B6 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [01:45:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B6 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:45:21]wFMCommunicate OK [01:45:21]SAM_PROTO_GetFieldsCounters done [01:45:21]requested_item shift.num is exist - process it [01:45:21]requested_item shift.opened is exist - process it [01:45:21]req_shift_opened [01:45:21]FM_GetShiftState [01:45:21]SAM_PROTO_GetShiftState [01:45:21]wFMCommunicate request_size=4 [01:45:21]MH_SAM_APDU [01:45:21]CAPDU: 80 13 01 00 [01:45:21]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [01:45:21]Write i2c OK [01:45:21]MH_I2C_Read... [01:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:21]Read from MH i2c: E2 [01:45:21]MH_I2C_Read... [01:45:21]Read from MH i2c: E2 0E 00 [01:45:21]MH_I2C_Read... [01:45:21]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 D6 [01:45:21]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:45:21]wFMCommunicate OK [01:45:21]SAM_PROTO_GetShiftState done [01:45:21]FM_GetShiftState done [01:45:21]req_shift_opened done [01:45:21]requested_item shift.open_date is exist - process it [01:45:21]req_shift_open_date [01:45:21]req_shift_open_date done [01:45:21]produce_requested_data done [01:45:21]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73142,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [01:45:21]process_action_free get_value [01:45:21]json_value_free [01:45:21]json_value_free done [01:45:21]process_json_proto returns [01:45:21]Send response to host [01:45:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73142,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [01:45:21]free response buf [01:45:21]execute_script done [01:45:21]execute_script returns [01:45:21]free content buf [01:45:21]Sock 9.Close socket [01:45:21]Sock 9.Thread stoped [01:45:21]accept exits with 10 [01:45:21]New connection [01:45:21]New thread 3066789220 created [01:45:21]Thread 3066932580 joined [01:45:21]Waiting for new connection... [01:45:21] Sock 10.Parse request [01:45:21]Sock 10.Check first char [01:45:21]Sock 10.First char is OK [01:45:21]request: POST /json_proto HTTP/1.0 [01:45:21]Method: POST [01:45:21]URL: /json_proto [01:45:21]Method is POST - this is cgi request [01:45:21]url: /json_proto [01:45:21]query_string will be loaded in cgi processing [01:45:21]execute_cgi json_proto POST (null) [01:45:21]execute_cgi path=json_proto method=POST [01:45:21]POST find Content-Length [01:45:21]Host: 172.17.43.195:8080 [01:45:21]Content-Length: 331 [01:45:21]Content-Type: application/json [01:45:21] [01:45:21]POST finish read [01:45:21]Found Content-Length = 331 [01:45: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" ] } } [01:45:21]execute_script... [01:45: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" ] } } [01:45:21]POST & json_proto [01:45:21]process_json_proto [01:45:21]json parsed OK: [01:45:21]protocol is kg_v1.0 [01:45:21]action value=get_value [01:45:21]process_action get_value [01:45:21]cmd_get_value [01:45:21]process_action get_value done [01:45:21]requested_data is exist [01:45:21]produce_requested_data [01:45:21]requested_item fm.sale.total is exist - process it [01:45:21]SAM_PROTO_GetFMData [01:45:21]wFMCommunicate request_size=4 [01:45:21]MH_SAM_APDU [01:45:21]CAPDU: 80 13 03 00 [01:45:21]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [01:45:21]Connected sock=7 [01:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 95 57 08 01 31 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 76 32 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1D 01 00 35 04 06 00 4C 75 8D A9 2A 2F FE B3 89 A5 68 C7 A1 99 [01:45:22]Write i2c OK [01:45:22]MH_I2C_Read... [01:45:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:45:22]Read from MH i2c: E2 [01:45:22]MH_I2C_Read... [01:45:22]Read from MH i2c: E2 FD 00 [01:45:22]MH_I2C_Read... [01:45:22]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 5A 19 01 00 69 04 A3 00 6F 04 04 00 6A 18 01 00 B1 04 05 00 0B E8 0B A5 01 70 04 05 00 C8 B6 53 59 01 72 04 04 00 43 31 B8 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3B 52 B9 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3E 0A BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 08 [01:45:22]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 5A 19 01 00 69 04 A3 00 6F 04 04 00 6A 18 01 00 B1 04 05 00 0B E8 0B A5 01 70 04 05 00 C8 B6 53 59 01 72 04 04 00 43 31 B8 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3B 52 B9 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3E 0A BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [01:45:22]wFMCommunicate OK [01:45:22]wFMCommunicate request_size=4 [01:45:22]MH_SAM_APDU [01:45:22]CAPDU: 80 17 00 00 [01:45:22]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [01:45:22]Write i2c OK [01:45:22]MH_I2C_Read... [01:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 46 E0 47 00 07 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1D 01 00 F4 03 04 00 65 DD 23 67 B6 04 01 00 00 F6 62 6E A5 76 11 ED 1D [01:45:22]CommunicateWithHost err = 0 [01:45:22]CheckOFDResponse [01:45:22]1017 (14) - 77093643461234 [01:45:22]1041 (16) - 0000000000874662 [01:45:22]1040 (4) - 73142 [01:45:22]1012 (4) - 31.10.2024 19:41 [01:45:22]1206 (1) - 0 [01:45:22]OFD Sender: Remove packet 73142 [01:45:22]ProducePacketName [01:45:22]name=ofd_packets/00073142 [01:45:22]NVStorageDeleteData [01:45:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:45:22]Read from MH i2c: E2 [01:45:22]MH_I2C_Read... [01:45:22]Read from MH i2c: E2 FD 00 [01:45:22]MH_I2C_Read... [01:45:22]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [01:45:22]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [01:45:22]wFMCommunicate OK [01:45:22]wFMCommunicate request_size=4 [01:45:22]MH_SAM_APDU [01:45:22]CAPDU: 80 17 00 00 [01:45:22]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [01:45:22]Write i2c OK [01:45:22]MH_I2C_Read... [01:45:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:45:22]Read from MH i2c: E2 [01:45:22]MH_I2C_Read... [01:45:22]Read from MH i2c: E2 FD 00 [01:45:22]MH_I2C_Read... [01:45:22]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [01:45:22]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [01:45:22]wFMCommunicate OK [01:45:22]wFMCommunicate request_size=4 [01:45:22]MH_SAM_APDU [01:45:22]CAPDU: 80 17 00 00 [01:45:22]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [01:45:22]Write i2c OK [01:45:22]MH_I2C_Read... [01:45:23]OFD Sender: No OFD packet to send [01:45:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:45:23]Read from MH i2c: E2 [01:45:23]MH_I2C_Read... [01:45:23]Read from MH i2c: E2 FD 00 [01:45:23]MH_I2C_Read... [01:45:23]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [01:45:23]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [01:45:23]wFMCommunicate OK [01:45:23]wFMCommunicate request_size=4 [01:45:23]MH_SAM_APDU [01:45:23]CAPDU: 80 17 00 00 [01:45:23]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [01:45:23]Write i2c OK [01:45:23]MH_I2C_Read... [01:45:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [01:45:23]Read from MH i2c: E2 [01:45:23]MH_I2C_Read... [01:45:23]Read from MH i2c: E2 E1 00 [01:45:23]MH_I2C_Read... [01:45:23]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [01:45:23]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:45:23]wFMCommunicate OK [01:45:23]SAM_PROTO_GetFMData done [01:45:23]requested_item fm.sale_refund.total is exist - process it [01:45:23]requested_item fm.buy.total is exist - process it [01:45:23]requested_item shift.sale.total is exist - process it [01:45:23]SAM_PROTO_GetShiftData [01:45:23]wFMCommunicate request_size=4 [01:45:23]MH_SAM_APDU [01:45:23]CAPDU: 80 13 02 00 [01:45:23]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [01:45:23]Write i2c OK [01:45:23]MH_I2C_Read... [01:45:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:45:23]Read from MH i2c: E2 [01:45:23]MH_I2C_Read... [01:45:23]Read from MH i2c: E2 FD 00 [01:45:23]MH_I2C_Read... [01:45:23]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 0B 00 00 00 69 04 9A 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 E3 6E 1F 70 04 03 00 C0 20 1F 72 04 02 00 23 4E 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 A7 56 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 38 47 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 CB [01:45:23]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 0B 00 00 00 69 04 9A 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 E3 6E 1F 70 04 03 00 C0 20 1F 72 04 02 00 23 4E 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 A7 56 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 38 47 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [01:45:23]wFMCommunicate OK [01:45:23]wFMCommunicate request_size=4 [01:45:23]MH_SAM_APDU [01:45:23]CAPDU: 80 17 00 00 [01:45:23]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [01:45:24]Write i2c OK [01:45:24]MH_I2C_Read... [01:45:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:45:24]Read from MH i2c: E2 [01:45:24]MH_I2C_Read... [01:45:24]Read from MH i2c: E2 FD 00 [01:45:24]MH_I2C_Read... [01:45:24]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 [01:45:24]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 [01:45:24]wFMCommunicate OK [01:45:24]wFMCommunicate request_size=4 [01:45:24]MH_SAM_APDU [01:45:24]CAPDU: 80 17 00 00 [01:45:24]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [01:45:24]Write i2c OK [01:45:24]MH_I2C_Read... [01:45:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:45:24]Read from MH i2c: E2 [01:45:24]MH_I2C_Read... [01:45:24]Read from MH i2c: E2 FD 00 [01:45:24]MH_I2C_Read... [01:45:24]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 [01:45:24]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 [01:45:24]wFMCommunicate OK [01:45:24]wFMCommunicate request_size=4 [01:45:24]MH_SAM_APDU [01:45:24]CAPDU: 80 17 00 00 [01:45:24]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [01:45:24]Write i2c OK [01:45:24]MH_I2C_Read... [01:45:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:45:24]Read from MH i2c: E2 [01:45:24]MH_I2C_Read... [01:45:24]Read from MH i2c: E2 FD 00 [01:45:24]MH_I2C_Read... [01:45:24]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 [01:45:24]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 [01:45:24]wFMCommunicate OK [01:45:24]wFMCommunicate request_size=4 [01:45:24]MH_SAM_APDU [01:45:24]CAPDU: 80 17 00 00 [01:45:24]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [01:45:24]Write i2c OK [01:45:24]MH_I2C_Read... [01:45:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [01:45:25]Read from MH i2c: E2 [01:45:25]MH_I2C_Read... [01:45:25]Read from MH i2c: E2 CA 00 [01:45:25]MH_I2C_Read... [01:45:25]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 [01:45:25]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 [01:45:25]wFMCommunicate OK [01:45:25]SAM_PROTO_GetShiftData done [01:45:25]requested_item shift.sale.total_cash is exist - process it [01:45:25]requested_item shift.sale_refund.total is exist - process it [01:45:25]requested_item shift.sale_refund.total_cash is exist - process it [01:45:25]requested_item shift.buy.total is exist - process it [01:45:25]requested_item shift.buy.total_cash is exist - process it [01:45:25]produce_requested_data done [01:45:25]produce_requested_data return {"fm.sale.total":70639882.35,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":20600.03,"shift.sale.total_cash":20400.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:45:25]process_action_free get_value [01:45:25]json_value_free [01:45:25]json_value_free done [01:45:25]process_json_proto returns [01:45:25]Send response to host [01:45:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70639882.35,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":20600.03,"shift.sale.total_cash":20400.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:45:25]free response buf [01:45:25]execute_script done [01:45:25]execute_script returns [01:45:25]free content buf [01:45:25]Sock 10.Close socket [01:45:25]Sock 10.Thread stoped [01:45:25]accept exits with 9 [01:45:25]New connection [01:45:25]New thread 3066932580 created [01:45:25]Thread 3066789220 joined [01:45:25]Waiting for new connection... [01:45:25] Sock 9.Parse request [01:45:25]Sock 9.Check first char [01:45:25]Sock 9.First char is OK [01:45:25]request: POST /json_proto HTTP/1.0 [01:45:25]Method: POST [01:45:25]URL: /json_proto [01:45:25]Method is POST - this is cgi request [01:45:25]url: /json_proto [01:45:25]query_string will be loaded in cgi processing [01:45:25]execute_cgi json_proto POST (null) [01:45:25]execute_cgi path=json_proto method=POST [01:45:25]POST find Content-Length [01:45:25]Host: 172.17.43.195:8080 [01:45:25]Content-Length: 144 [01:45:25]Content-Type: application/json [01:45:25] [01:45:25]POST finish read [01:45:25]Found Content-Length = 144 [01:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [01:45:25]execute_script... [01:45:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [01:45:25]POST & json_proto [01:45:25]process_json_proto [01:45:25]json parsed OK: [01:45:25]protocol is kg_v1.0 [01:45:25]action value=print_doc [01:45:25]process_action print_doc [01:45:25]ExternCall_PrintAddStr [01:45:25]wPrintStart [01:45:25]Write to MH i2c: 01 00 00 1D 00 1D [01:45:25]Write i2c OK [01:45:25]MH_I2C_Read... [01:45:25]Read from MH i2c: 01 [01:45:25]MH_I2C_Read... [01:45:25]Read from MH i2c: 01 07 00 [01:45:25]MH_I2C_Read... [01:45:25]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [01:45:25]RasterBufferAndPrint [01:45:25]line Счет N : (1)952740 [01:45:25]line ИНН: 02508201610067 [01:45:25]line Контрольно-Кассовый Чек [01:45:25]line ПРОДАЖА [01:45:25]line ТРК (МРК, ГНК) : 22 [01:45:25]line Товар: 2710194210 [01:45:25]line ДТ(л)-К-5 [01:45:25]line 32.810 * 76.20 [01:45:25]line = 2500.12 [01:45:25]line НДС 12% НСП 1% [01:45:25]line > о реализуемом товаре [01:45:25]line ОКРУГЛЕНИЕ: -0.12 [01:45:25]line ИТОГО: 2500.00 [01:45:25]line Внесено: 2500.00 [01:45:25]line СДАЧА: 0.00 [01:45:25]line НСП 1% : 22.12 [01:45:25]line НДС 12% : 265.50 [01:45:25]line Наличными: 2500.00 [01:45:25]line Безнал.: 0.00 [01:45:25]line Место: АЗС № 113 "Партнер Нефть" [01:45:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:45:25]line СНО: Общий режим [01:45:25]line Чек 11 01.11.2024 01:44 [01:45:25]line Смена: 558 ФФД: 1.0 [01:45:25]line ЗНМ: 0300000087 [01:45:25]line РНМ: 0000000000091644 [01:45:25]line Версия ККМ: 001 [01:45:25]line ФМ: 0000000000874662 [01:45:25]line ФД: 73142 [01:45:25]line ФПД: 84067771558447 [01:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T014422&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73142&fm=84067771558447&tin=02508201610067®Number=0000000000091644&sum=250000 [01:45:25]written 0, free lines is 4095 [01:45:26]Write to MH i2c: 01 00 00 48 00 48 [01:45:26]Write i2c OK [01:45:26]MH_I2C_Read... [01:45:26]Read from MH i2c: 01 [01:45:26]MH_I2C_Read... [01:45:26]Read from MH i2c: 01 07 00 [01:45:26]MH_I2C_Read... [01:45:26]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E7 0C 42 [01:45:26]RasterBufferAndPrint [01:45:26]line [01:45:26]line [01:45:26]line [01:45:26]line [01:45:26]line [01:45:26]written 0, free lines is 3321 [01:45:26]MH_Cut [01:45:26]Write to MH i2c: D1 01 00 4F 00 01 21 [01:45:26]Write i2c OK [01:45:26]MH_I2C_Read... [01:45:26]Read from MH i2c: D1 [01:45:26]MH_I2C_Read... [01:45:26]Read from MH i2c: D1 01 00 [01:45:26]MH_I2C_Read... [01:45:26]Read from MH i2c: D1 01 00 4F 00 00 20 [01:45:26]Write to MH i2c: 01 00 00 50 00 50 [01:45:26]Write i2c OK [01:45:26]MH_I2C_Read... [01:45:26]*** Cut start [01:45:26]*** Partial cut [01:45:26]*** CUTSNS_PIN = 1 [01:45:26]*** CUTSNS_PIN = 0 [01:45:27]*** Brake cut motor [01:45:27]Read from MH i2c: 01 [01:45:27]MH_I2C_Read... [01:45:27]*** Stop cut motor [01:45:27]*** Cut end [01:45:27]Read from MH i2c: 01 07 00 [01:45:27]MH_I2C_Read... [01:45:27]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [01:45:27]process_action print_doc done [01:45:27]requested_data is exist [01:45:27]produce_requested_data [01:45:27]produce_requested_data return (null) [01:45:27]process_action_free print_doc [01:45:27]json_value_free [01:45:27]json_value_free done [01:45:27]process_json_proto returns [01:45:27]Send response to host [01:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [01:45:27]free response buf [01:45:27]execute_script done [01:45:27]execute_script returns [01:45:27]free content buf [01:45:27]Sock 9.Close socket [01:45:27]Sock 9.Thread stoped [01:45:28]OFD Sender: No OFD packet to send [01:45:28]recv_with_timeout no data received [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:39]recv_with_timeout no data received [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:57]recv_with_timeout no data received [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:17]recv_with_timeout no data received [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:28]recv_with_timeout no data received [01:46:29]accept exits with 10 [01:46:29]New connection [01:46:29]New thread 3066789220 created [01:46:29]Thread 3066932580 joined [01:46:29]Waiting for new connection... [01:46:29] Sock 10.Parse request [01:46:29]Sock 10.Check first char [01:46:29]Sock 10.First char is OK [01:46:29]request: POST /json_proto HTTP/1.0 [01:46:29]Method: POST [01:46:29]URL: /json_proto [01:46:29]Method is POST - this is cgi request [01:46:29]url: /json_proto [01:46:29]query_string will be loaded in cgi processing [01:46:29]execute_cgi json_proto POST (null) [01:46:29]execute_cgi path=json_proto method=POST [01:46:29]POST find Content-Length [01:46:29]Host: 172.17.43.195:8080 [01:46:29]Content-Length: 677 [01:46:29]Content-Type: application/json [01:46:29] [01:46:29]POST finish read [01:46:29]Found Content-Length = 677 [01:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:29]execute_script... [01:46: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)952742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:29]POST & json_proto [01:46:29]process_json_proto [01:46:29]json parsed OK: [01:46:29]protocol is kg_v1.0 [01:46:29]action value=close_receipt [01:46:29]process_action close_receipt [01:46:29]cmd_close_receipt [01:46:29]MH_GetDate [01:46:29]Write to MH i2c: F0 00 00 51 00 40 [01:46:29]Write i2c OK [01:46:29]MH_I2C_Read... [01:46:29]Read from MH i2c: F0 [01:46:29]MH_I2C_Read... [01:46:29]Read from MH i2c: F0 09 00 [01:46:29]MH_I2C_Read... [01:46:29]Read from MH i2c: F0 09 00 51 00 00 F6 32 24 67 74 2C AD 66 AF [01:46:29]GetLastDocTimeStamp 1730425462 [01:46:29]current date 1730425590 [01:46:29]FM_GetShiftState [01:46:29]SAM_PROTO_GetShiftState [01:46:29]wFMCommunicate request_size=4 [01:46:29]MH_SAM_APDU [01:46:29]CAPDU: 80 13 01 00 [01:46:29]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [01:46:29]Write i2c OK [01:46:29]MH_I2C_Read... [01:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:29]Read from MH i2c: E2 [01:46:29]MH_I2C_Read... [01:46:29]Read from MH i2c: E2 0E 00 [01:46:29]MH_I2C_Read... [01:46:29]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 16 [01:46:29]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:46:29]wFMCommunicate OK [01:46:29]SAM_PROTO_GetShiftState done [01:46:29]FM_GetShiftState done [01:46:29]opened in 1730419605 [01:46:29]opened+sec_in_day 1730506005 [01:46:29]quantity*price = 60009 [01:46:29]sum+1 = 60010 [01:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 12 01.11.2024 01:46 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73143 ФПД: 145496397231151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T014630&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73143&fm=145496397231151&tin=02508201610067®Number=0000000000091644&sum=60000 [01:46:30]StoreToDocumentArchive [01:46:30]shift 558 fd 73143 [01:46:30]save to /storage/0558/doc_00073143 [01:46:30]save last doc name /storage/0558/doc_00073143 to /storage/kkm_last_doc_name [01:46:30]save OK [01:46:30]Clear old archive folders... [01:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:46:30]tlvbuf is 00201AD0 [01:46:30]SAM_PROTO_ClearQueue [01:46:30]wFMCommunicate request_size=4 [01:46:30]MH_SAM_APDU [01:46:30]CAPDU: 80 09 00 00 [01:46:30]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [01:46:30]Write i2c OK [01:46:30]MH_I2C_Read... [01:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:46:30]Read from MH i2c: E2 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 03 00 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [01:46:30]RAPDU: 90 00 [01:46:30]wFMCommunicate OK [01:46:30]SAM_PROTO_ClearQueue done [01:46:30]KKMCreateOFDPacket [01:46:30]OFDProtocolAddRootSTLVToBuf [01:46:30]FM_MakeSignedData [01:46:30]FM_MakeSignedData [01:46:30]SAM_PROTO_SignData [01:46:30]wFMCommunicate request_size=4 [01:46:30]MH_SAM_APDU [01:46:30]CAPDU: 80 0D 01 02 [01:46:30]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [01:46:30]Write i2c OK [01:46:30]MH_I2C_Read... [01:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:46:30]Read from MH i2c: E2 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 03 00 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [01:46:30]RAPDU: 90 00 [01:46:30]wFMCommunicate OK [01:46:30]wFMCommunicate request_size=255 [01:46:30]MH_SAM_APDU [01:46:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F6 32 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1D 01 00 35 04 06 00 84 [01:46:30]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F6 32 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1D 01 00 35 04 06 00 84 00 00 8D [01:46:30]Write i2c OK [01:46:30]MH_I2C_Read... [01:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:30]Read from MH i2c: E2 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 03 00 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [01:46:30]RAPDU: 90 00 [01:46:30]wFMCommunicate OK [01:46:30]wFMCommunicate request_size=10 [01:46:30]MH_SAM_APDU [01:46:30]CAPDU: 80 0D 02 02 05 54 05 12 B4 2F [01:46:30]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 54 05 12 B4 2F 00 00 34 [01:46:30]Write i2c OK [01:46:30]MH_I2C_Read... [01:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:30]Read from MH i2c: E2 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 03 00 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [01:46:30]RAPDU: 90 00 [01:46:30]wFMCommunicate OK [01:46:30]wFMCommunicate request_size=4 [01:46:30]MH_SAM_APDU [01:46:30]CAPDU: 80 0D 03 02 [01:46:30]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [01:46:30]Write i2c OK [01:46:30]MH_I2C_Read... [01:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:46:31]Read from MH i2c: E2 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 0B 00 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 0B 00 63 00 00 94 6D 77 8E 4B 61 71 07 90 00 09 [01:46:31]RAPDU: 94 6D 77 8E 4B 61 71 07 90 00 [01:46:31]wFMCommunicate OK [01:46:31]SAM_PROTO_SignData done [01:46:31]FM_MakeSignedData done [01:46:31]CreateOFDProtocolMessage [01:46:31]wFMCommunicate request_size=4 [01:46:31]MH_SAM_APDU [01:46:31]CAPDU: 80 11 00 00 [01:46:31]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [01:46:31]Write i2c OK [01:46:31]MH_I2C_Read... [01:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:31]Read from MH i2c: E2 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 17 00 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [01:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:46:31]wFMCommunicate OK [01:46:31]CreateOFDProtocolMessage done [01:46:31]OFDSenderStorePacket 73143 [01:46:31]StoreOFDPacket docnum=73143 [01:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 83 A7 07 01 8B 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F6 32 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1D 01 00 35 04 06 00 84 54 05 12 B4 2F 94 6D 77 8E 4B 61 71 07 [01:46:31]CheckFolder [01:46:31]dirname=/storage/ofd_packets [01:46:31]CheckFolder done [01:46:31]ProducePacketName [01:46:31]name=ofd_packets/00073143 [01:46:31]NVStorageSaveData ofd_packets/00073143 [01:46:31]File name is /storage/ofd_packets/00073143 [01:46:31]Write 301 bytes [01:46:31]NVStorageSaveData done [01:46:31]OFDSenderStorePacket done [01:46:31]KKMCreateOFDPacket done [01:46:31]NVStorageSaveData kkm_last_timestamp [01:46:31]File name is /storage/kkm_last_timestamp [01:46:31]Write 4 bytes [01:46:31]NVStorageSaveData done [01:46:31]ExternCall_PrintAddStr [01:46:31]wPrintStart [01:46:31]Write to MH i2c: 01 00 00 65 00 65 [01:46:31]Write i2c OK [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: 01 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: 01 07 00 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [01:46:31]RasterBufferAndPrint [01:46:31]line Счет N : (1)952742 [01:46:31]line ИНН: 02508201610067 [01:46:31]line Контрольно-Кассовый Чек [01:46:31]line ПРОДАЖА [01:46:31]line ТРК (МРК, ГНК) : 53 [01:46:31]line Товар: 2710124130 [01:46:31]line Аи-92-К-5 [01:46:31]line 8.970 * 66.90 [01:46:31]line = 600.09 [01:46:31]line НДС 12% НСП 1% [01:46:31]line > о реализуемом товаре [01:46:31]line ОКРУГЛЕНИЕ: -0.09 [01:46:31]line ИТОГО: 600.00 [01:46:31]line Внесено: 600.00 [01:46:31]line СДАЧА: 0.00 [01:46:31]line НСП 1% : 5.31 [01:46:31]line НДС 12% : 63.73 [01:46:31]line Наличными: 600.00 [01:46:31]line Безнал.: 0.00 [01:46:31]line Место: АЗС № 113 "Партнер Нефть" [01:46:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:46:31]line СНО: Общий режим [01:46:31]line Чек 12 01.11.2024 01:46 [01:46:31]line Смена: 558 ФФД: 1.0 [01:46:31]line ЗНМ: 0300000087 [01:46:31]line РНМ: 0000000000091644 [01:46:31]line Версия ККМ: 001 [01:46:31]line ФМ: 0000000000874662 [01:46:31]line ФД: 73143 [01:46:31]line ФПД: 145496397231151 [01:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T014630&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73143&fm=145496397231151&tin=02508201610067®Number=0000000000091644&sum=60000 [01:46:31]written 0, free lines is 4095 [01:46:31]OFD Sender: Processing packet 73143 [packets to send 282, broken 281] [01:46:31]ProducePacketName [01:46:31]name=ofd_packets/00073143 [01:46:31]OFD Sender: To server: pG, [01:46:31]CommunicateWithHost lk.salyk.kg:30040 [01:46:31]ConnectInit lk.salyk.kg [01:46:31]Write to MH i2c: 01 00 00 90 00 90 [01:46:31]Write i2c OK [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: 01 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: 01 07 00 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 DF 0C 82 [01:46:31]RasterBufferAndPrint [01:46:31]line [01:46:31]line [01:46:31]line [01:46:31]line [01:46:31]line [01:46:31]written 0, free lines is 3300 [01:46:31]MH_Cut [01:46:31]Write to MH i2c: D1 01 00 97 00 01 69 [01:46:31]Write i2c OK [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: D1 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: D1 01 00 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: D1 01 00 97 00 00 68 [01:46:31]Write to MH i2c: 01 00 00 98 00 98 [01:46:31]Write i2c OK [01:46:31]MH_I2C_Read... [01:46:32]*** Cut start [01:46:32]*** Partial cut [01:46:32]*** CUTSNS_PIN = 1 [01:46:32]*** CUTSNS_PIN = 0 [01:46:32]*** Brake cut motor [01:46:32]Read from MH i2c: 01 [01:46:32]MH_I2C_Read... [01:46:32]*** Stop cut motor [01:46:32]*** Cut end [01:46:32]Read from MH i2c: 01 07 00 [01:46:32]MH_I2C_Read... [01:46:32]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [01:46:32]process_action close_receipt done [01:46:32]requested_data is exist [01:46:32]produce_requested_data [01:46:32]requested_item fm.sn is exist - process it [01:46:32]wFMCommunicate request_size=4 [01:46:32]MH_SAM_APDU [01:46:32]CAPDU: 80 11 00 00 [01:46:32]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [01:46:32]Write i2c OK [01:46:32]MH_I2C_Read... [01:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:32]Read from MH i2c: E2 [01:46:32]MH_I2C_Read... [01:46:32]Read from MH i2c: E2 17 00 [01:46:32]MH_I2C_Read... [01:46:32]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 67 [01:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:46:32]wFMCommunicate OK [01:46:32]requested_item fd.num is exist - process it [01:46:32]SAM_PROTO_GetFieldsCounters [01:46:32]wFMCommunicate request_size=4 [01:46:32]MH_SAM_APDU [01:46:32]CAPDU: 80 13 00 00 [01:46:32]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [01:46:32]Write i2c OK [01:46:32]MH_I2C_Read... [01:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:46:33]Read from MH i2c: E2 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 62 00 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [01:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:46:33]wFMCommunicate OK [01:46:33]SAM_PROTO_GetFieldsCounters done [01:46:33]requested_item shift.num is exist - process it [01:46:33]requested_item shift.opened is exist - process it [01:46:33]req_shift_opened [01:46:33]FM_GetShiftState [01:46:33]SAM_PROTO_GetShiftState [01:46:33]wFMCommunicate request_size=4 [01:46:33]MH_SAM_APDU [01:46:33]CAPDU: 80 13 01 00 [01:46:33]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [01:46:33]Write i2c OK [01:46:33]MH_I2C_Read... [01:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:33]Read from MH i2c: E2 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 0E 00 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 5F [01:46:33]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:46:33]wFMCommunicate OK [01:46:33]SAM_PROTO_GetShiftState done [01:46:33]FM_GetShiftState done [01:46:33]req_shift_opened done [01:46:33]requested_item shift.open_date is exist - process it [01:46:33]req_shift_open_date [01:46:33]req_shift_open_date done [01:46:33]produce_requested_data done [01:46:33]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73143,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [01:46:33]process_action_free close_receipt [01:46:33]json_value_free [01:46:33]json_value_free done [01:46:33]process_json_proto returns [01:46:33]Send response to host [01:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73143,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [01:46:33]free response buf [01:46:33]execute_script done [01:46:33]execute_script returns [01:46:33]free content buf [01:46:33]Sock 10.Close socket [01:46:33]Sock 10.Thread stoped [01:46:33]Connected sock=9 [01:46:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 83 A7 07 01 8B 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F6 32 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1D 01 00 35 04 06 00 84 54 05 12 B4 2F 94 6D 77 8E 4B 61 71 07 [01:46:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 33 DE 47 00 71 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1D 01 00 F4 03 04 00 AC DD 23 67 B6 04 01 00 00 66 4E 20 7E 4A 49 33 7D [01:46:34]CommunicateWithHost err = 0 [01:46:34]CheckOFDResponse [01:46:34]1017 (14) - 77093643461234 [01:46:34]1041 (16) - 0000000000874662 [01:46:34]1040 (4) - 73143 [01:46:34]1012 (4) - 31.10.2024 19:42 [01:46:34]1206 (1) - 0 [01:46:34]OFD Sender: Remove packet 73143 [01:46:34]ProducePacketName [01:46:34]name=ofd_packets/00073143 [01:46:34]NVStorageDeleteData [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:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:26]recv_with_timeout no data received [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:20]recv_with_timeout no data received [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:49:56]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:15]OFD Sender: No OFD packet to send [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:47]recv_with_timeout no data received [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]recv_with_timeout no data received [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:29]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:06]OFD Sender: No OFD packet to send [01:57:09]recv_with_timeout no data received [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:36]recv_with_timeout no data received [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:46]recv_with_timeout no data received [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:07]recv_with_timeout no data received [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:38]recv_with_timeout no data received [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:09]accept exits with 7 [01:59:09]New connection [01:59:09]New thread 3066932580 created [01:59:09]Thread 3066789220 joined [01:59:09]Waiting for new connection... [01:59:09] Sock 7.Parse request [01:59:09]Sock 7.Check first char [01:59:09]Sock 7.First char is OK [01:59:09]request: POST /json_proto HTTP/1.0 [01:59:09]Method: POST [01:59:09]URL: /json_proto [01:59:09]Method is POST - this is cgi request [01:59:09]url: /json_proto [01:59:09]query_string will be loaded in cgi processing [01:59:09]execute_cgi json_proto POST (null) [01:59:09]execute_cgi path=json_proto method=POST [01:59:09]POST find Content-Length [01:59:09]Host: 172.17.43.195:8080 [01:59:09]Content-Length: 687 [01:59:09]Content-Type: application/json [01:59:09] [01:59:09]POST finish read [01:59:09]Found Content-Length = 687 [01:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:09]execute_script... [01:59: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)952743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:09]POST & json_proto [01:59:09]process_json_proto [01:59:09]json parsed OK: [01:59:09]protocol is kg_v1.0 [01:59:09]action value=close_receipt [01:59:09]process_action close_receipt [01:59:09]cmd_close_receipt [01:59:09]MH_GetDate [01:59:09]Write to MH i2c: F0 00 00 9C 00 8B [01:59:09]Write i2c OK [01:59:09]MH_I2C_Read... [01:59:09]Read from MH i2c: F0 [01:59:09]MH_I2C_Read... [01:59:09]Read from MH i2c: F0 09 00 [01:59:09]MH_I2C_Read... [01:59:09]Read from MH i2c: F0 09 00 9C 00 00 EE 35 24 67 74 2C AD 66 F5 [01:59:09]GetLastDocTimeStamp 1730425590 [01:59:09]current date 1730426350 [01:59:09]FM_GetShiftState [01:59:09]SAM_PROTO_GetShiftState [01:59:09]wFMCommunicate request_size=4 [01:59:09]MH_SAM_APDU [01:59:09]CAPDU: 80 13 01 00 [01:59:09]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [01:59:09]Write i2c OK [01:59:09]MH_I2C_Read... [01:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:09]Read from MH i2c: E2 [01:59:09]MH_I2C_Read... [01:59:09]Read from MH i2c: E2 0E 00 [01:59:09]MH_I2C_Read... [01:59:09]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 61 [01:59:09]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:59:09]wFMCommunicate OK [01:59:09]SAM_PROTO_GetShiftState done [01:59:09]FM_GetShiftState done [01:59:09]opened in 1730419605 [01:59:09]opened+sec_in_day 1730506005 [01:59:09]quantity*price = 400050 [01:59:09]sum+1 = 400051 [01:59:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 13 01.11.2024 01:59 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73144 ФПД: 217813640290922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T015910&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73144&fm=217813640290922&tin=02508201610067®Number=0000000000091644&sum=400000 [01:59:10]StoreToDocumentArchive [01:59:10]shift 558 fd 73144 [01:59:10]save to /storage/0558/doc_00073144 [01:59:10]save last doc name /storage/0558/doc_00073144 to /storage/kkm_last_doc_name [01:59:10]save OK [01:59:10]Clear old archive folders... [01:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:59:10]tlvbuf is 002248E0 [01:59:10]SAM_PROTO_ClearQueue [01:59:10]wFMCommunicate request_size=4 [01:59:10]MH_SAM_APDU [01:59:10]CAPDU: 80 09 00 00 [01:59:10]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [01:59:10]Write i2c OK [01:59:10]MH_I2C_Read... [01:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:10]Read from MH i2c: E2 [01:59:10]MH_I2C_Read... [01:59:10]Read from MH i2c: E2 03 00 [01:59:10]MH_I2C_Read... [01:59:10]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [01:59:10]RAPDU: 90 00 [01:59:10]wFMCommunicate OK [01:59:10]SAM_PROTO_ClearQueue done [01:59:10]KKMCreateOFDPacket [01:59:10]OFDProtocolAddRootSTLVToBuf [01:59:10]FM_MakeSignedData [01:59:10]FM_MakeSignedData [01:59:10]SAM_PROTO_SignData [01:59:10]wFMCommunicate request_size=4 [01:59:10]MH_SAM_APDU [01:59:10]CAPDU: 80 0D 01 02 [01:59:10]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [01:59:10]Write i2c OK [01:59:10]MH_I2C_Read... [01:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:10]Read from MH i2c: E2 [01:59:10]MH_I2C_Read... [01:59:10]Read from MH i2c: E2 03 00 [01:59:10]MH_I2C_Read... [01:59:10]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [01:59:10]RAPDU: 90 00 [01:59:10]wFMCommunicate OK [01:59:10]wFMCommunicate request_size=255 [01:59:10]MH_SAM_APDU [01:59:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 EE 35 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1D 01 00 35 04 06 00 [01:59:10]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 EE 35 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1D 01 00 35 04 06 00 00 00 77 [01:59:10]Write i2c OK [01:59:10]MH_I2C_Read... [01:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:11]Read from MH i2c: E2 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: E2 03 00 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [01:59:11]RAPDU: 90 00 [01:59:11]wFMCommunicate OK [01:59:11]wFMCommunicate request_size=11 [01:59:11]MH_SAM_APDU [01:59:11]CAPDU: 80 0D 02 02 06 C6 19 B0 A8 22 6A [01:59:11]Write to MH i2c: E2 0E 00 AD 00 80 0D 02 02 06 00 C6 19 B0 A8 22 6A 00 00 F6 [01:59:11]Write i2c OK [01:59:11]MH_I2C_Read... [01:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:11]Read from MH i2c: E2 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: E2 03 00 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [01:59:11]RAPDU: 90 00 [01:59:11]wFMCommunicate OK [01:59:11]wFMCommunicate request_size=4 [01:59:11]MH_SAM_APDU [01:59:11]CAPDU: 80 0D 03 02 [01:59:11]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [01:59:11]OFD Sender: No OFD packet to send [01:59:11]Write i2c OK [01:59:11]MH_I2C_Read... [01:59:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:11]Read from MH i2c: E2 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: E2 0B 00 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: E2 0B 00 AE 00 00 53 F3 C8 E5 87 CB 58 54 90 00 1B [01:59:11]RAPDU: 53 F3 C8 E5 87 CB 58 54 90 00 [01:59:11]wFMCommunicate OK [01:59:11]SAM_PROTO_SignData done [01:59:11]FM_MakeSignedData done [01:59:11]CreateOFDProtocolMessage [01:59:11]wFMCommunicate request_size=4 [01:59:11]MH_SAM_APDU [01:59:11]CAPDU: 80 11 00 00 [01:59:11]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [01:59:11]Write i2c OK [01:59:11]MH_I2C_Read... [01:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:11]Read from MH i2c: E2 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: E2 17 00 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [01:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:59:11]wFMCommunicate OK [01:59:11]CreateOFDProtocolMessage done [01:59:11]OFDSenderStorePacket 73144 [01:59:11]StoreOFDPacket docnum=73144 [01:59:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 2B 0B 08 01 B4 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 EE 35 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1D 01 00 35 04 06 00 C6 19 B0 A8 22 6A 53 F3 C8 E5 87 CB 58 54 [01:59:11]CheckFolder [01:59:11]dirname=/storage/ofd_packets [01:59:11]CheckFolder done [01:59:11]ProducePacketName [01:59:11]name=ofd_packets/00073144 [01:59:11]NVStorageSaveData ofd_packets/00073144 [01:59:11]File name is /storage/ofd_packets/00073144 [01:59:11]Write 302 bytes [01:59:11]NVStorageSaveData done [01:59:11]OFDSenderStorePacket done [01:59:11]KKMCreateOFDPacket done [01:59:11]NVStorageSaveData kkm_last_timestamp [01:59:11]File name is /storage/kkm_last_timestamp [01:59:11]Write 4 bytes [01:59:11]NVStorageSaveData done [01:59:11]ExternCall_PrintAddStr [01:59:11]wPrintStart [01:59:11]Write to MH i2c: 01 00 00 B0 00 B0 [01:59:11]Write i2c OK [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: 01 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: 01 07 00 [01:59:11]MH_I2C_Read... [01:59:11]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [01:59:11]RasterBufferAndPrint [01:59:11]line Счет N : (1)952743 [01:59:11]line ИНН: 02508201610067 [01:59:11]line Контрольно-Кассовый Чек [01:59:11]line ПРОДАЖА [01:59:11]line ТРК (МРК, ГНК) : 43 [01:59:11]line Товар: 2710194210 [01:59:11]line ДТ(л)-К-5 [01:59:11]line 52.500 * 76.20 [01:59:11]line = 4000.50 [01:59:11]line НДС 12% НСП 1% [01:59:11]line > о реализуемом товаре [01:59:11]line ОКРУГЛЕНИЕ: -0.50 [01:59:11]line ИТОГО: 4000.00 [01:59:11]line Внесено: 4000.00 [01:59:11]line СДАЧА: 0.00 [01:59:11]line НСП 1% : 35.40 [01:59:11]line НДС 12% : 424.83 [01:59:11]line Наличными: 4000.00 [01:59:11]line Безнал.: 0.00 [01:59:11]line Место: АЗС № 113 "Партнер Нефть" [01:59:11]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:59:11]line СНО: Общий режим [01:59:11]line Чек 13 01.11.2024 01:59 [01:59:11]line Смена: 558 ФФД: 1.0 [01:59:11]line ЗНМ: 0300000087 [01:59:11]line РНМ: 0000000000091644 [01:59:11]line Версия ККМ: 001 [01:59:11]line ФМ: 0000000000874662 [01:59:11]line ФД: 73144 [01:59:11]line ФПД: 217813640290922 [01:59:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T015910&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73144&fm=217813640290922&tin=02508201610067®Number=0000000000091644&sum=400000 [01:59:11]OFD Sender: Processing packet 73144 [packets to send 282, broken 281] [01:59:11]ProducePacketName [01:59:11]name=ofd_packets/00073144 [01:59:11]OFD Sender: To server: pG, [01:59:11]CommunicateWithHost lk.salyk.kg:30040 [01:59:11]ConnectInit lk.salyk.kg [01:59:11]written 0, free lines is 4095 [01:59:12]Write to MH i2c: 01 00 00 DB 00 DB [01:59:12]Write i2c OK [01:59:12]MH_I2C_Read... [01:59:12]Read from MH i2c: 01 [01:59:12]MH_I2C_Read... [01:59:12]Read from MH i2c: 01 07 00 [01:59:12]MH_I2C_Read... [01:59:12]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 E6 0C D4 [01:59:12]RasterBufferAndPrint [01:59:12]line [01:59:12]line [01:59:12]line [01:59:12]line [01:59:12]line [01:59:12]written 0, free lines is 3308 [01:59:12]MH_Cut [01:59:12]Write to MH i2c: D1 01 00 E2 00 01 B4 [01:59:12]Write i2c OK [01:59:12]MH_I2C_Read... [01:59:12]Read from MH i2c: D1 [01:59:12]MH_I2C_Read... [01:59:12]Read from MH i2c: D1 01 00 [01:59:12]MH_I2C_Read... [01:59:12]Read from MH i2c: D1 01 00 E2 00 00 B3 [01:59:12]Write to MH i2c: 01 00 00 E3 00 E3 [01:59:12]Write i2c OK [01:59:12]MH_I2C_Read... [01:59:12]Connected sock=9 [01:59:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 2B 0B 08 01 B4 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 EE 35 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1D 01 00 35 04 06 00 C6 19 B0 A8 22 6A 53 F3 C8 E5 87 CB 58 54 [01:59:12]*** Cut start [01:59:12]*** Partial cut [01:59:12]*** CUTSNS_PIN = 1 [01:59:12]*** CUTSNS_PIN = 0 [01:59:13]*** Brake cut motor [01:59:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7F C1 47 00 1C B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1D 01 00 F4 03 04 00 A3 E0 23 67 B6 04 01 00 00 F1 E1 71 5D B0 A1 D2 CB [01:59:13]CommunicateWithHost err = 0 [01:59:13]CheckOFDResponse [01:59:13]1017 (14) - 77093643461234 [01:59:13]1041 (16) - 0000000000874662 [01:59:13]1040 (4) - 73144 [01:59:13]1012 (4) - 31.10.2024 19:55 [01:59:13]1206 (1) - 0 [01:59:13]OFD Sender: Remove packet 73144 [01:59:13]ProducePacketName [01:59:13]name=ofd_packets/00073144 [01:59:13]NVStorageDeleteData [01:59:13]Read from MH i2c: 01 [01:59:13]MH_I2C_Read... [01:59:13]*** Stop cut motor [01:59:13]*** Cut end [01:59:13]Read from MH i2c: 01 07 00 [01:59:13]MH_I2C_Read... [01:59:13]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [01:59:13]process_action close_receipt done [01:59:13]requested_data is exist [01:59:13]produce_requested_data [01:59:13]requested_item fm.sn is exist - process it [01:59:13]wFMCommunicate request_size=4 [01:59:13]MH_SAM_APDU [01:59:13]CAPDU: 80 11 00 00 [01:59:13]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [01:59:13]Write i2c OK [01:59:13]MH_I2C_Read... [01:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:13]Read from MH i2c: E2 [01:59:13]MH_I2C_Read... [01:59:13]Read from MH i2c: E2 17 00 [01:59:13]MH_I2C_Read... [01:59:13]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B2 [01:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:59:13]wFMCommunicate OK [01:59:13]requested_item fd.num is exist - process it [01:59:13]SAM_PROTO_GetFieldsCounters [01:59:13]wFMCommunicate request_size=4 [01:59:13]MH_SAM_APDU [01:59:13]CAPDU: 80 13 00 00 [01:59:13]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [01:59:13]Write i2c OK [01:59:13]MH_I2C_Read... [01:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:59:13]Read from MH i2c: E2 [01:59:13]MH_I2C_Read... [01:59:13]Read from MH i2c: E2 62 00 [01:59:13]MH_I2C_Read... [01:59:13]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B8 1D 01 00 0E 04 04 00 2E 02 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 AF [01:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B8 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:59:13]wFMCommunicate OK [01:59:13]SAM_PROTO_GetFieldsCounters done [01:59:13]requested_item shift.num is exist - process it [01:59:13]requested_item shift.opened is exist - process it [01:59:13]req_shift_opened [01:59:13]FM_GetShiftState [01:59:13]SAM_PROTO_GetShiftState [01:59:13]wFMCommunicate request_size=4 [01:59:13]MH_SAM_APDU [01:59:13]CAPDU: 80 13 01 00 [01:59:13]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [01:59:13]Write i2c OK [01:59:13]MH_I2C_Read... [01:59:13]OFD Sender: No OFD packet to send [01:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:13]Read from MH i2c: E2 [01:59:13]MH_I2C_Read... [01:59:13]Read from MH i2c: E2 0E 00 [01:59:13]MH_I2C_Read... [01:59:13]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 AA [01:59:13]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [01:59:13]wFMCommunicate OK [01:59:13]SAM_PROTO_GetShiftState done [01:59:13]FM_GetShiftState done [01:59:13]req_shift_opened done [01:59:13]requested_item shift.open_date is exist - process it [01:59:13]req_shift_open_date [01:59:13]req_shift_open_date done [01:59:13]produce_requested_data done [01:59:13]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73144,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [01:59:13]process_action_free close_receipt [01:59:13]json_value_free [01:59:13]json_value_free done [01:59:13]process_json_proto returns [01:59:13]Send response to host [01:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73144,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [01:59:13]free response buf [01:59:13]execute_script done [01:59:13]execute_script returns [01:59:13]free content buf [01:59:13]Sock 7.Close socket [01:59:13]Sock 7.Thread stoped [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:31]recv_with_timeout no data received [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]recv_with_timeout no data received [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:26]recv_with_timeout no data received [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:37]recv_with_timeout no data received [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:56]recv_with_timeout no data received [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:06]recv_with_timeout no data received [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:56]recv_with_timeout no data received [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:07]recv_with_timeout no data received [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:31]recv_with_timeout no data received [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:08]recv_with_timeout no data received [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:50]recv_with_timeout no data received [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:31]recv_with_timeout no data received [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]recv_with_timeout no data received [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]recv_with_timeout no data received [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]recv_with_timeout no data received [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:07]recv_with_timeout no data received [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:57]recv_with_timeout no data received [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:17]recv_with_timeout no data received [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:32]recv_with_timeout no data received [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:44]recv_with_timeout no data received [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:39]recv_with_timeout no data received [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:13:59]recv_with_timeout no data received [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:38]recv_with_timeout no data received [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:42]recv_with_timeout no data received [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:19]recv_with_timeout no data received [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:02]recv_with_timeout no data received [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:49]recv_with_timeout no data received [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:38]recv_with_timeout no data received [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:02]recv_with_timeout no data received [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:13]recv_with_timeout no data received [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:33]recv_with_timeout no data received [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:14]recv_with_timeout no data received [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:16]recv_with_timeout no data received [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:18]recv_with_timeout no data received [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:50]recv_with_timeout no data received [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:00]recv_with_timeout no data received [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:40]recv_with_timeout no data received [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:18]recv_with_timeout no data received [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]recv_with_timeout no data received [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:49]recv_with_timeout no data received [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:32]recv_with_timeout no data received [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:29:58]recv_with_timeout no data received [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:15]recv_with_timeout no data received [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:53]recv_with_timeout no data received [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:22]recv_with_timeout no data received [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:50]recv_with_timeout no data received [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:37]recv_with_timeout no data received [02:32:42]OFD Sender: No OFD packet to send [02:32:45]accept exits with 10 [02:32:45]New connection [02:32:45]New thread 3066789220 created [02:32:45]Thread 3066932580 joined [02:32:45]Waiting for new connection... [02:32:45] Sock 10.Parse request [02:32:45]Sock 10.Check first char [02:32:45]Sock 10.First char is OK [02:32:45]request: POST /json_proto HTTP/1.0 [02:32:45]Method: POST [02:32:45]URL: /json_proto [02:32:45]Method is POST - this is cgi request [02:32:45]url: /json_proto [02:32:45]query_string will be loaded in cgi processing [02:32:45]execute_cgi json_proto POST (null) [02:32:45]execute_cgi path=json_proto method=POST [02:32:45]POST find Content-Length [02:32:45]Host: 172.17.43.195:8080 [02:32:45]Content-Length: 685 [02:32:45]Content-Type: application/json [02:32:45] [02:32:45]POST finish read [02:32:45]Found Content-Length = 685 [02:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 48.920, "sum" : 1902.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2450.00, "total" : 1902.00, "payments": [ { "type": 0, "sum" : 1902.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:32:45]execute_script... [02:32:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 48.920, "sum" : 1902.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2450.00, "total" : 1902.00, "payments": [ { "type": 0, "sum" : 1902.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:32:45]POST & json_proto [02:32:45]process_json_proto [02:32:45]json parsed OK: [02:32:45]protocol is kg_v1.0 [02:32:45]action value=close_receipt [02:32:45]process_action close_receipt [02:32:45]cmd_close_receipt [02:32:45]MH_GetDate [02:32:45]Write to MH i2c: F0 00 00 E7 00 D6 [02:32:45]Write i2c OK [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: F0 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: F0 09 00 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: F0 09 00 E7 00 00 CE 3D 24 67 74 2C AD 66 28 [02:32:45]GetLastDocTimeStamp 1730426350 [02:32:45]current date 1730428366 [02:32:45]FM_GetShiftState [02:32:45]SAM_PROTO_GetShiftState [02:32:45]wFMCommunicate request_size=4 [02:32:45]MH_SAM_APDU [02:32:45]CAPDU: 80 13 01 00 [02:32:45]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [02:32:45]Write i2c OK [02:32:45]MH_I2C_Read... [02:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:45]Read from MH i2c: E2 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 0E 00 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 AC [02:32:45]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [02:32:45]wFMCommunicate OK [02:32:45]SAM_PROTO_GetShiftState done [02:32:45]FM_GetShiftState done [02:32:45]opened in 1730419605 [02:32:45]opened+sec_in_day 1730506005 [02:32:45]quantity*price = 190298 [02:32:45]sum+1 = 190300 [02:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 1902.00 Внесено: 2450.00 СДАЧА: 548.00 НСП 1% : 16.84 НДС 12% : 202.09 Наличными: 1902.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 14 01.11.2024 02:32 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73145 ФПД: 177719070956062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T023246&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73145&fm=177719070956062&tin=02508201610067®Number=0000000000091644&sum=190200 [02:32:46]StoreToDocumentArchive [02:32:46]shift 558 fd 73145 [02:32:46]save to /storage/0558/doc_00073145 [02:32:46]save last doc name /storage/0558/doc_00073145 to /storage/kkm_last_doc_name [02:32:46]save OK [02:32:46]Clear old archive folders... [02:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:32:46]tlvbuf is 002244A0 [02:32:46]SAM_PROTO_ClearQueue [02:32:46]wFMCommunicate request_size=4 [02:32:46]MH_SAM_APDU [02:32:46]CAPDU: 80 09 00 00 [02:32:46]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:32:46]Read from MH i2c: E2 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 03 00 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [02:32:46]RAPDU: 90 00 [02:32:46]wFMCommunicate OK [02:32:46]SAM_PROTO_ClearQueue done [02:32:46]KKMCreateOFDPacket [02:32:46]OFDProtocolAddRootSTLVToBuf [02:32:46]FM_MakeSignedData [02:32:46]FM_MakeSignedData [02:32:46]SAM_PROTO_SignData [02:32:46]wFMCommunicate request_size=4 [02:32:46]MH_SAM_APDU [02:32:46]CAPDU: 80 0D 01 02 [02:32:46]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:32:46]Read from MH i2c: E2 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 03 00 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [02:32:46]RAPDU: 90 00 [02:32:46]wFMCommunicate OK [02:32:46]wFMCommunicate request_size=255 [02:32:46]MH_SAM_APDU [02:32:46]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 18 BF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5B E7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 4E 00 00 00 00 07 04 06 00 F8 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 CE 3D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1D 01 00 35 04 06 00 A1 A2 [02:32:46]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 18 BF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5B E7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 4E 00 00 00 00 07 04 06 00 F8 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 CE 3D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1D 01 00 35 04 06 00 A1 A2 00 00 01 [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:46]Read from MH i2c: E2 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 03 00 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [02:32:46]RAPDU: 90 00 [02:32:46]wFMCommunicate OK [02:32:46]wFMCommunicate request_size=9 [02:32:46]MH_SAM_APDU [02:32:46]CAPDU: 80 0D 02 02 04 72 18 1A 1E [02:32:46]Write to MH i2c: E2 0C 00 F8 00 80 0D 02 02 04 00 72 18 1A 1E 00 00 3C [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:46]Read from MH i2c: E2 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 03 00 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [02:32:46]RAPDU: 90 00 [02:32:46]wFMCommunicate OK [02:32:46]wFMCommunicate request_size=4 [02:32:46]MH_SAM_APDU [02:32:46]CAPDU: 80 0D 03 02 [02:32:46]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:32:46]Read from MH i2c: E2 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 0B 00 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 0B 00 F9 00 00 0F 03 4B 9B 85 D8 40 6C 90 00 76 [02:32:46]RAPDU: 0F 03 4B 9B 85 D8 40 6C 90 00 [02:32:46]wFMCommunicate OK [02:32:46]SAM_PROTO_SignData done [02:32:46]FM_MakeSignedData done [02:32:46]CreateOFDProtocolMessage [02:32:46]wFMCommunicate request_size=4 [02:32:46]MH_SAM_APDU [02:32:46]CAPDU: 80 11 00 00 [02:32:46]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:46]Read from MH i2c: E2 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 17 00 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C8 [02:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:32:46]wFMCommunicate OK [02:32:46]CreateOFDProtocolMessage done [02:32:46]OFDSenderStorePacket 73145 [02:32:46]StoreOFDPacket docnum=73145 [02:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C6 80 06 01 38 C5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 18 BF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5B E7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 4E 00 00 00 00 07 04 06 00 F8 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 CE 3D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1D 01 00 35 04 06 00 A1 A2 72 18 1A 1E 0F 03 4B 9B 85 D8 40 6C [02:32:46]CheckFolder [02:32:46]dirname=/storage/ofd_packets [02:32:46]CheckFolder done [02:32:46]ProducePacketName [02:32:46]name=ofd_packets/00073145 [02:32:46]NVStorageSaveData ofd_packets/00073145 [02:32:46]File name is /storage/ofd_packets/00073145 [02:32:46]Write 300 bytes [02:32:46]NVStorageSaveData done [02:32:46]OFDSenderStorePacket done [02:32:46]KKMCreateOFDPacket done [02:32:46]NVStorageSaveData kkm_last_timestamp [02:32:46]File name is /storage/kkm_last_timestamp [02:32:46]Write 4 bytes [02:32:46]NVStorageSaveData done [02:32:46]ExternCall_PrintAddStr [02:32:46]wPrintStart [02:32:46]Write to MH i2c: 01 00 00 FB 00 FB [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: 01 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: 01 07 00 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [02:32:46]RasterBufferAndPrint [02:32:46]line Счет N : (1)952744 [02:32:46]line ИНН: 02508201610067 [02:32:46]line Контрольно-Кассовый Чек [02:32:46]line ПРОДАЖА [02:32:46]line ТРК (МРК, ГНК) : 71 [02:32:46]line Товар: 2711190000 [02:32:46]line ГАЗ-К-3 [02:32:46]line 48.920 * 38.90 [02:32:46]line = 1902.99 [02:32:46]line НДС 12% НСП 1% [02:32:46]line > о реализуемом товаре [02:32:46]line ОКРУГЛЕНИЕ: -0.99 [02:32:46]line ИТОГО: 1902.00 [02:32:46]line Внесено: 2450.00 [02:32:46]line СДАЧА: 548.00 [02:32:46]line НСП 1% : 16.84 [02:32:46]line НДС 12% : 202.09 [02:32:46]line Наличными: 1902.00 [02:32:46]line Безнал.: 0.00 [02:32:46]line Место: АЗС № 113 "Партнер Нефть" [02:32:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [02:32:46]line СНО: Общий режим [02:32:46]line Чек 14 01.11.2024 02:32 [02:32:46]line Смена: 558 ФФД: 1.0 [02:32:46]line ЗНМ: 0300000087 [02:32:46]line РНМ: 0000000000091644 [02:32:46]line Версия ККМ: 001 [02:32:46]line ФМ: 0000000000874662 [02:32:46]line ФД: 73145 [02:32:46]line ФПД: 177719070956062 [02:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T023246&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73145&fm=177719070956062&tin=02508201610067®Number=0000000000091644&sum=190200 [02:32:46]written 0, free lines is 4095 [02:32:46]OFD Sender: Processing packet 73145 [packets to send 282, broken 281] [02:32:46]ProducePacketName [02:32:46]name=ofd_packets/00073145 [02:32:46]OFD Sender: To server: pG, [02:32:46]CommunicateWithHost lk.salyk.kg:30040 [02:32:46]ConnectInit lk.salyk.kg [02:32:47]Write to MH i2c: 01 00 00 26 01 27 [02:32:47]Write i2c OK [02:32:47]MH_I2C_Read... [02:32:47]Read from MH i2c: 01 [02:32:47]MH_I2C_Read... [02:32:47]Read from MH i2c: 01 07 00 [02:32:47]MH_I2C_Read... [02:32:47]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 E1 0C 1B [02:32:47]RasterBufferAndPrint [02:32:47]line [02:32:47]line [02:32:47]line [02:32:47]line [02:32:47]line [02:32:47]written 0, free lines is 3302 [02:32:47]MH_Cut [02:32:47]Write to MH i2c: D1 01 00 2D 01 01 00 [02:32:47]Write i2c OK [02:32:47]MH_I2C_Read... [02:32:47]Read from MH i2c: D1 [02:32:47]MH_I2C_Read... [02:32:47]Read from MH i2c: D1 01 00 [02:32:47]MH_I2C_Read... [02:32:47]Read from MH i2c: D1 01 00 2D 01 00 FF [02:32:47]Write to MH i2c: 01 00 00 2E 01 2F [02:32:47]Write i2c OK [02:32:47]MH_I2C_Read... [02:32:47]Connected sock=9 [02:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C6 80 06 01 38 C5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 18 BF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5B E7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 4E 00 00 00 00 07 04 06 00 F8 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 CE 3D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1D 01 00 35 04 06 00 A1 A2 72 18 1A 1E 0F 03 4B 9B 85 D8 40 6C [02:32:48]*** Cut start [02:32:48]*** Partial cut [02:32:48]*** CUTSNS_PIN = 1 [02:32:48]*** CUTSNS_PIN = 0 [02:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 DF 47 00 CC 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1D 01 00 F4 03 04 00 82 E8 23 67 B6 04 01 00 00 F4 6A 49 F5 CC 54 98 4F [02:32:48]CommunicateWithHost err = 0 [02:32:48]CheckOFDResponse [02:32:48]1017 (14) - 77093643461234 [02:32:48]1041 (16) - 0000000000874662 [02:32:48]1040 (4) - 73145 [02:32:48]1012 (4) - 31.10.2024 20:28 [02:32:48]1206 (1) - 0 [02:32:48]OFD Sender: Remove packet 73145 [02:32:48]ProducePacketName [02:32:48]name=ofd_packets/00073145 [02:32:48]NVStorageDeleteData [02:32:48]*** Brake cut motor [02:32:48]Read from MH i2c: 01 [02:32:48]MH_I2C_Read... [02:32:48]*** Stop cut motor [02:32:48]*** Cut end [02:32:48]Read from MH i2c: 01 07 00 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [02:32:48]process_action close_receipt done [02:32:48]requested_data is exist [02:32:48]produce_requested_data [02:32:48]requested_item fm.sn is exist - process it [02:32:48]wFMCommunicate request_size=4 [02:32:48]MH_SAM_APDU [02:32:48]CAPDU: 80 11 00 00 [02:32:48]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [02:32:48]Write i2c OK [02:32:48]MH_I2C_Read... [02:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:48]Read from MH i2c: E2 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 17 00 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [02:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:32:48]wFMCommunicate OK [02:32:48]requested_item fd.num is exist - process it [02:32:48]SAM_PROTO_GetFieldsCounters [02:32:48]wFMCommunicate request_size=4 [02:32:48]MH_SAM_APDU [02:32:48]CAPDU: 80 13 00 00 [02:32:48]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [02:32:48]Write i2c OK [02:32:48]MH_I2C_Read... [02:32:48]OFD Sender: No OFD packet to send [02:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:32:48]Read from MH i2c: E2 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 62 00 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B9 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [02:32: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B9 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:32:49]wFMCommunicate OK [02:32:49]SAM_PROTO_GetFieldsCounters done [02:32:49]requested_item shift.num is exist - process it [02:32:49]requested_item shift.opened is exist - process it [02:32:49]req_shift_opened [02:32:49]FM_GetShiftState [02:32:49]SAM_PROTO_GetShiftState [02:32:49]wFMCommunicate request_size=4 [02:32:49]MH_SAM_APDU [02:32:49]CAPDU: 80 13 01 00 [02:32:49]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [02:32:49]Write i2c OK [02:32:49]MH_I2C_Read... [02:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:49]Read from MH i2c: E2 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 0E 00 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 F6 [02:32:49]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [02:32:49]wFMCommunicate OK [02:32:49]SAM_PROTO_GetShiftState done [02:32:49]FM_GetShiftState done [02:32:49]req_shift_opened done [02:32:49]requested_item shift.open_date is exist - process it [02:32:49]req_shift_open_date [02:32:49]req_shift_open_date done [02:32:49]produce_requested_data done [02:32:49]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73145,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [02:32:49]process_action_free close_receipt [02:32:49]json_value_free [02:32:49]json_value_free done [02:32:49]process_json_proto returns [02:32:49]Send response to host [02:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73145,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [02:32:49]free response buf [02:32:49]execute_script done [02:32:49]execute_script returns [02:32:49]free content buf [02:32:49]Sock 10.Close socket [02:32:49]Sock 10.Thread stoped [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]recv_with_timeout no data received [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [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:50]recv_with_timeout no data received [02:33:53]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:14]recv_with_timeout no data received [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]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:47]recv_with_timeout no data received [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:17]recv_with_timeout no data received [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:48]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:53]recv_with_timeout no data received [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:40]recv_with_timeout no data received [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:51]recv_with_timeout no data received [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:41]recv_with_timeout no data received [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]recv_with_timeout no data received [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:30]recv_with_timeout no data received [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:39]recv_with_timeout no data received [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:03]recv_with_timeout no data received [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:31]recv_with_timeout no data received [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:09]recv_with_timeout no data received [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:26]recv_with_timeout no data received [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:44]recv_with_timeout no data received [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:00]accept exits with 7 [02:48:00]New connection [02:48:00]New thread 3066932580 created [02:48:00]Thread 3066789220 joined [02:48:00]Waiting for new connection... [02:48:00] Sock 7.Parse request [02:48:00]Sock 7.Check first char [02:48:00]Sock 7.First char is OK [02:48:00]request: POST /json_proto HTTP/1.0 [02:48:00]Method: POST [02:48:00]URL: /json_proto [02:48:00]Method is POST - this is cgi request [02:48:00]url: /json_proto [02:48:00]query_string will be loaded in cgi processing [02:48:00]execute_cgi json_proto POST (null) [02:48:00]execute_cgi path=json_proto method=POST [02:48:00]POST find Content-Length [02:48:00]Host: 172.17.43.195:8080 [02:48:00]Content-Length: 685 [02:48:00]Content-Type: application/json [02:48:00] [02:48:00]POST finish read [02:48:00]Found Content-Length = 685 [02:48:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:48:00]execute_script... [02:48: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)952745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:48:00]POST & json_proto [02:48:00]process_json_proto [02:48:00]json parsed OK: [02:48:00]protocol is kg_v1.0 [02:48:00]action value=close_receipt [02:48:00]process_action close_receipt [02:48:00]cmd_close_receipt [02:48:00]MH_GetDate [02:48:00]Write to MH i2c: F0 00 00 32 01 22 [02:48:00]Write i2c OK [02:48:00]MH_I2C_Read... [02:48:00]Read from MH i2c: F0 [02:48:00]MH_I2C_Read... [02:48:00]Read from MH i2c: F0 09 00 [02:48:00]MH_I2C_Read... [02:48:00]Read from MH i2c: F0 09 00 32 01 00 61 41 24 67 74 2C AD 66 0B [02:48:00]GetLastDocTimeStamp 1730428366 [02:48:00]current date 1730429281 [02:48:00]FM_GetShiftState [02:48:00]SAM_PROTO_GetShiftState [02:48:00]wFMCommunicate request_size=4 [02:48:00]MH_SAM_APDU [02:48:00]CAPDU: 80 13 01 00 [02:48:00]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [02:48:00]Write i2c OK [02:48:00]MH_I2C_Read... [02:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:00]Read from MH i2c: E2 [02:48:00]MH_I2C_Read... [02:48:00]Read from MH i2c: E2 0E 00 [02:48:00]MH_I2C_Read... [02:48:00]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 F8 [02:48:00]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [02:48:00]wFMCommunicate OK [02:48:00]SAM_PROTO_GetShiftState done [02:48:00]FM_GetShiftState done [02:48:00]opened in 1730419605 [02:48:00]opened+sec_in_day 1730506005 [02:48:00]quantity*price = 100011 [02:48:00]sum+1 = 100013 [02:48:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 15 01.11.2024 02:48 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73146 ФПД: 45810751302539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T024801&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73146&fm=45810751302539&tin=02508201610067®Number=0000000000091644&sum=100000 [02:48:01]StoreToDocumentArchive [02:48:01]shift 558 fd 73146 [02:48:01]save to /storage/0558/doc_00073146 [02:48:01]save last doc name /storage/0558/doc_00073146 to /storage/kkm_last_doc_name [02:48:01]save OK [02:48:01]Clear old archive folders... [02:48:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:48:01]tlvbuf is 001A3B40 [02:48:01]SAM_PROTO_ClearQueue [02:48:01]wFMCommunicate request_size=4 [02:48:01]MH_SAM_APDU [02:48:01]CAPDU: 80 09 00 00 [02:48:01]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [02:48:01]Write i2c OK [02:48:01]MH_I2C_Read... [02:48:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:48:01]Read from MH i2c: E2 [02:48:01]MH_I2C_Read... [02:48:01]Read from MH i2c: E2 03 00 [02:48:01]MH_I2C_Read... [02:48:01]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [02:48:01]RAPDU: 90 00 [02:48:01]wFMCommunicate OK [02:48:01]SAM_PROTO_ClearQueue done [02:48:01]KKMCreateOFDPacket [02:48:01]OFDProtocolAddRootSTLVToBuf [02:48:01]FM_MakeSignedData [02:48:01]FM_MakeSignedData [02:48:01]SAM_PROTO_SignData [02:48:01]wFMCommunicate request_size=4 [02:48:01]MH_SAM_APDU [02:48:01]CAPDU: 80 0D 01 02 [02:48:01]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [02:48:01]Write i2c OK [02:48:01]MH_I2C_Read... [02:48:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:48:01]Read from MH i2c: E2 [02:48:01]MH_I2C_Read... [02:48:01]Read from MH i2c: E2 03 00 [02:48:01]MH_I2C_Read... [02:48:01]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [02:48:01]RAPDU: 90 00 [02:48:01]wFMCommunicate OK [02:48:01]wFMCommunicate request_size=255 [02:48:01]MH_SAM_APDU [02:48:01]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 61 41 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1D 01 00 35 04 06 00 29 AA [02:48:01]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 61 41 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1D 01 00 35 04 06 00 29 AA 00 00 33 [02:48:01]Write i2c OK [02:48:01]MH_I2C_Read... [02:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:02]Read from MH i2c: E2 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: E2 03 00 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [02:48:02]RAPDU: 90 00 [02:48:02]wFMCommunicate OK [02:48:02]wFMCommunicate request_size=9 [02:48:02]MH_SAM_APDU [02:48:02]CAPDU: 80 0D 02 02 04 25 8E EB 8B [02:48:02]Write to MH i2c: E2 0C 00 43 01 80 0D 02 02 04 00 25 8E EB 8B 00 00 EF [02:48:02]Write i2c OK [02:48:02]MH_I2C_Read... [02:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:02]Read from MH i2c: E2 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: E2 03 00 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [02:48:02]RAPDU: 90 00 [02:48:02]wFMCommunicate OK [02:48:02]wFMCommunicate request_size=4 [02:48:02]MH_SAM_APDU [02:48:02]CAPDU: 80 0D 03 02 [02:48:02]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [02:48:02]Write i2c OK [02:48:02]MH_I2C_Read... [02:48:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:48:02]Read from MH i2c: E2 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: E2 0B 00 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: E2 0B 00 44 01 00 91 B3 B6 C5 29 43 B3 9A 90 00 39 [02:48:02]RAPDU: 91 B3 B6 C5 29 43 B3 9A 90 00 [02:48:02]wFMCommunicate OK [02:48:02]SAM_PROTO_SignData done [02:48:02]FM_MakeSignedData done [02:48:02]CreateOFDProtocolMessage [02:48:02]wFMCommunicate request_size=4 [02:48:02]MH_SAM_APDU [02:48:02]CAPDU: 80 11 00 00 [02:48:02]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [02:48:02]Write i2c OK [02:48:02]MH_I2C_Read... [02:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:02]Read from MH i2c: E2 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: E2 17 00 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 14 [02:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:48:02]wFMCommunicate OK [02:48:02]CreateOFDProtocolMessage done [02:48:02]OFDSenderStorePacket 73146 [02:48:02]StoreOFDPacket docnum=73146 [02:48:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 E8 37 06 01 9B 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 61 41 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1D 01 00 35 04 06 00 29 AA 25 8E EB 8B 91 B3 B6 C5 29 43 B3 9A [02:48:02]CheckFolder [02:48:02]dirname=/storage/ofd_packets [02:48:02]CheckFolder done [02:48:02]ProducePacketName [02:48:02]name=ofd_packets/00073146 [02:48:02]NVStorageSaveData ofd_packets/00073146 [02:48:02]File name is /storage/ofd_packets/00073146 [02:48:02]Write 300 bytes [02:48:02]NVStorageSaveData done [02:48:02]OFDSenderStorePacket done [02:48:02]KKMCreateOFDPacket done [02:48:02]NVStorageSaveData kkm_last_timestamp [02:48:02]File name is /storage/kkm_last_timestamp [02:48:02]Write 4 bytes [02:48:02]NVStorageSaveData done [02:48:02]ExternCall_PrintAddStr [02:48:02]wPrintStart [02:48:02]Write to MH i2c: 01 00 00 46 01 47 [02:48:02]Write i2c OK [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: 01 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: 01 07 00 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [02:48:02]RasterBufferAndPrint [02:48:02]line Счет N : (1)952745 [02:48:02]line ИНН: 02508201610067 [02:48:02]line Контрольно-Кассовый Чек [02:48:02]line ПРОДАЖА [02:48:02]line ТРК (МРК, ГНК) : 71 [02:48:02]line Товар: 2711190000 [02:48:02]line ГАЗ-К-3 [02:48:02]line 25.710 * 38.90 [02:48:02]line = 1000.12 [02:48:02]line НДС 12% НСП 1% [02:48:02]line > о реализуемом товаре [02:48:02]line ОКРУГЛЕНИЕ: -0.12 [02:48:02]line ИТОГО: 1000.00 [02:48:02]line Внесено: 1000.00 [02:48:02]line СДАЧА: 0.00 [02:48:02]line НСП 1% : 8.85 [02:48:02]line НДС 12% : 106.21 [02:48:02]line Наличными: 1000.00 [02:48:02]line Безнал.: 0.00 [02:48:02]line Место: АЗС № 113 "Партнер Нефть" [02:48:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [02:48:02]line СНО: Общий режим [02:48:02]line Чек 15 01.11.2024 02:48 [02:48:02]line Смена: 558 ФФД: 1.0 [02:48:02]line ЗНМ: 0300000087 [02:48:02]line РНМ: 0000000000091644 [02:48:02]line Версия ККМ: 001 [02:48:02]line ФМ: 0000000000874662 [02:48:02]line ФД: 73146 [02:48:02]line ФПД: 45810751302539 [02:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T024801&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73146&fm=45810751302539&tin=02508201610067®Number=0000000000091644&sum=100000 [02:48:02]written 0, free lines is 4095 [02:48:02]OFD Sender: Processing packet 73146 [packets to send 282, broken 281] [02:48:02]ProducePacketName [02:48:02]name=ofd_packets/00073146 [02:48:02]OFD Sender: To server: pG, [02:48:02]CommunicateWithHost lk.salyk.kg:30040 [02:48:02]ConnectInit lk.salyk.kg [02:48:02]Write to MH i2c: 01 00 00 71 01 72 [02:48:02]Write i2c OK [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: 01 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: 01 07 00 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 DC 0C 61 [02:48:02]RasterBufferAndPrint [02:48:02]line [02:48:02]line [02:48:02]line [02:48:02]line [02:48:02]line [02:48:02]written 0, free lines is 3298 [02:48:02]MH_Cut [02:48:02]Write to MH i2c: D1 01 00 78 01 01 4B [02:48:02]Write i2c OK [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: D1 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: D1 01 00 [02:48:02]MH_I2C_Read... [02:48:02]Read from MH i2c: D1 01 00 78 01 00 4A [02:48:02]Write to MH i2c: 01 00 00 79 01 7A [02:48:02]Write i2c OK [02:48:02]MH_I2C_Read... [02:48:03]Connected sock=10 [02:48:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 E8 37 06 01 9B 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 61 41 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1D 01 00 35 04 06 00 29 AA 25 8E EB 8B 91 B3 B6 C5 29 43 B3 9A [02:48:03]*** Cut start [02:48:03]*** Partial cut [02:48:03]*** CUTSNS_PIN = 1 [02:48:03]*** CUTSNS_PIN = 0 [02:48:03]*** Brake cut motor [02:48:04]Read from MH i2c: 01 [02:48:04]MH_I2C_Read... [02:48:04]*** Stop cut motor [02:48:04]*** Cut end [02:48:04]Read from MH i2c: 01 07 00 [02:48:04]MH_I2C_Read... [02:48:04]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [02:48:04]process_action close_receipt done [02:48:04]requested_data is exist [02:48:04]produce_requested_data [02:48:04]requested_item fm.sn is exist - process it [02:48:04]wFMCommunicate request_size=4 [02:48:04]MH_SAM_APDU [02:48:04]CAPDU: 80 11 00 00 [02:48:04]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [02:48:04]Write i2c OK [02:48:04]MH_I2C_Read... [02:48:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 35 39 47 00 7A 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1D 01 00 F4 03 04 00 16 EC 23 67 B6 04 01 00 00 10 76 1A 15 8B 0D 0E 2F [02:48:04]CommunicateWithHost err = 0 [02:48:04]CheckOFDResponse [02:48:04]1017 (14) - 77093643461234 [02:48:04]1041 (16) - 0000000000874662 [02:48:04]1040 (4) - 73146 [02:48:04]1012 (4) - 31.10.2024 20:44 [02:48:04]1206 (1) - 0 [02:48:04]OFD Sender: Remove packet 73146 [02:48:04]ProducePacketName [02:48:04]name=ofd_packets/00073146 [02:48:04]NVStorageDeleteData [02:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:04]Read from MH i2c: E2 [02:48:04]MH_I2C_Read... [02:48:04]Read from MH i2c: E2 17 00 [02:48:04]MH_I2C_Read... [02:48:04]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 49 [02:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:48:04]wFMCommunicate OK [02:48:04]requested_item fd.num is exist - process it [02:48:04]SAM_PROTO_GetFieldsCounters [02:48:04]wFMCommunicate request_size=4 [02:48:04]MH_SAM_APDU [02:48:04]CAPDU: 80 13 00 00 [02:48:04]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [02:48:04]Write i2c OK [02:48:04]MH_I2C_Read... [02:48:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:48:04]Read from MH i2c: E2 [02:48:04]MH_I2C_Read... [02:48:04]Read from MH i2c: E2 62 00 [02:48:04]MH_I2C_Read... [02:48:04]Read from MH i2c: E2 62 00 7B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BA 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [02:48:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BA 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:48:04]wFMCommunicate OK [02:48:04]SAM_PROTO_GetFieldsCounters done [02:48:04]requested_item shift.num is exist - process it [02:48:04]requested_item shift.opened is exist - process it [02:48:04]req_shift_opened [02:48:04]FM_GetShiftState [02:48:04]SAM_PROTO_GetShiftState [02:48:04]wFMCommunicate request_size=4 [02:48:04]MH_SAM_APDU [02:48:04]CAPDU: 80 13 01 00 [02:48:04]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [02:48:04]Write i2c OK [02:48:04]MH_I2C_Read... [02:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:04]Read from MH i2c: E2 [02:48:04]MH_I2C_Read... [02:48:04]Read from MH i2c: E2 0E 00 [02:48:04]MH_I2C_Read... [02:48:04]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 41 [02:48:04]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [02:48:04]wFMCommunicate OK [02:48:04]SAM_PROTO_GetShiftState done [02:48:04]FM_GetShiftState done [02:48:04]req_shift_opened done [02:48:04]requested_item shift.open_date is exist - process it [02:48:04]req_shift_open_date [02:48:04]req_shift_open_date done [02:48:04]produce_requested_data done [02:48:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73146,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [02:48:04]process_action_free close_receipt [02:48:04]json_value_free [02:48:04]json_value_free done [02:48:04]process_json_proto returns [02:48:04]Send response to host [02:48:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73146,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [02:48:04]free response buf [02:48:04]execute_script done [02:48:04]execute_script returns [02:48:04]free content buf [02:48:04]Sock 7.Close socket [02:48:04]Sock 7.Thread stoped [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:46]recv_with_timeout no data received [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:19]recv_with_timeout no data received [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:22]recv_with_timeout no data received [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:47]recv_with_timeout no data received [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:17]recv_with_timeout no data received [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:01]recv_with_timeout no data received [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:22]recv_with_timeout no data received [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:08]recv_with_timeout no data received [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:26]recv_with_timeout no data received [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:17]recv_with_timeout no data received [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:27]recv_with_timeout no data received [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:23]recv_with_timeout no data received [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:51]recv_with_timeout no data received [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:29]recv_with_timeout no data received [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:01:57]recv_with_timeout no data received [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:31]recv_with_timeout no data received [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:33]recv_with_timeout no data received [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send